| 开发者 |
webdados
ptwooplugins nakedcatplugins |
|---|---|
| 更新时间 | 2025年8月4日 20:07 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
Add this to your (child) theme functions.php file, or use the PRO add-on.
Add this to your (child) theme functions.php file, or use the PRO add-on.
Administrators and Shop managers can use “Shop as client” on the checkout. Add this to your (child) theme functions.php file if you want to allow other user roles to use this functionality.
No. Yes. It’s complicated... The logged in user is the Administrator or Shop Manager. It’s not possible to integrate with the vast amount of user or user role-based discount plugins when the logged in user is not the customer himself, so any customer roled-based discounts will not be applied. However, our PRO add-on integrates with the User Switching plugin and sets the Administrator or Shop Manager that switched to the customer account as the order handler upon checkout, thus allowing to benefit from the fact the customer is logged in and still use our plugin functionalities, like the payment request gateway and seller tracking.
Yes, from version 2.1 onwards.
Yes, on the Free version from version 3.5 onwards and on the PRO add-on from version 3.6 onwards. Known limitations:
shop_as_client_update_customer_data filter is set to true;shop_as_client_pro_customer_data filter does not work;Sure. Go to GlotPress and help us out.
You can report any security bugs found in the source code of this plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.
Check out the PRO add-on FAQs
shop_as_client_after_order_handler after the handler name on the order edit screenwoocommerce-process-checkout-nonce but _wpnoncewoocommerce_checkout_fields instead of woocommerce_billing_fields to add our fields, because in some edge cases is_checkout() would not work and the Shop as Client fields stopped showing on the checkout (free version)SHOPASCLIENT_PRO_REQUIRED_WC constant and use the free plugin SHOPASCLIENT_REQUIRED_WCwp shop-as-client-pro rebuild-users-index)print_f and sprint_f instead of printf and sprintf)shop_as_client_empty_checkout_field_exclusions filter to allow developers to add more fields to the exclusionsshop_as_client_user_email_if_empty to allow developers to provide an email address programmatically when none is provided by the usershop_as_client_update_customer_data filter so that developers can allow the customer details to be updated on their profile;shop_as_client_pro_search_order_statuses filter to limit the order statuses where the customer is searched (if not found as a user)Tested up to tagshop_as_client_allow_checkout filter so that developers can allow other user roles to use the “Shop as client” functionality (Thanks CJ Ratliff / A+ Media for suggesting this)false is returned to the shop_as_client_email_password filterWC tested up to tag