CartShare by Ansons
A WooCommerce plugin that enables salespersons to create carts for customers and send SMS notifications via ClickSend.
by KC Cheng · github.com/kzee06/woocommerce-cartshare-by-ansons
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/kzee06/woocommerce-cartshare-by-ansons/archive/refs/heads/main.zipCartShare by Ansons is a WooCommerce plugin that allows specific user roles, such as salespersons, to create carts for customers and send SMS notifications via ClickSend. This plugin helps streamline the sales process by enabling sales personnel to prepare carts and share them directly with customers.
Features
- Create and share carts with customers.
- Send SMS notifications with cart details using ClickSend.
- Manage user roles and permissions for cart sharing.
Installation
- Upload the
cartshare-by-ansonsfolder to the/wp-content/plugins/directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Configure the plugin settings in the WooCommerce settings panel.
Usage
- Ensure the user has the
create_cartcapability. This capability is typically assigned to salespersons. - On the WooCommerce cart page, the user will see a "Share Cart" button if they have the necessary permissions.
- Click the "Share Cart" button to open the modal form.
- Fill in the customer's phone number and branch, then click "Share Cart".
- An order will be created from the current cart, and an SMS will be sent to the customer with the cart details.
Hooks and Filters
Actions
woocommerce_after_cart: Adds the "Share Cart" button to the cart page.wp_footer: Adds the share cart modal to the footer.wp_enqueue_scripts: Enqueues the necessary JavaScript and CSS files.wp_ajax_cartshare_share_cart: Handles the AJAX request for sharing the cart.wp_ajax_nopriv_cartshare_share_cart: Handles the AJAX request for non-logged-in users.
Filters
cartshare_sms_content: Modify the content of the SMS sent to the customer.
Contributing
- Fork the repository on GitHub.
- Create a new branch for your feature or bugfix.
- Make your changes and commit them with a descriptive message.
- Push your changes to your forked repository.
- Create a pull request to the main repository.
Changelog
1.3.6
- Initial release with basic cart sharing functionality.
Credits
- Developed by KC Cheng.
License
This plugin is licensed under the GPL-2.0+ License. See the LICENSE file for details.