Share Cart adds a button to your WooCommerce cart page that lets a shopper send their cart to someone else by SMS. The shopper enters their own name and mobile number and their friend’s, and the friend receives an SMS with a link that opens the same cart. Shoppers use it to ask for a second opinion or to let someone else review or pay for the items. You choose where the button appears, what it says and what the SMS contains.
This feature is part of the SMS Alert WordPress plugin. New to it? See the WordPress SMS plugin setup guide.
Before you start
- Install and activate WooCommerce and the SMS Alert plugin, and connect your SMS Alert account.
- Keep SMS credits in your account. Each shared cart sends one SMS.
- On India routes, the message text must match an approved DLT template. See Convert into DLT Template.
How to set up Share Cart
- In the WordPress dashboard, open the SMS Alert menu under WooCommerce and go to the Share Cart tab.
- Enable Share Cart. It is off by default.
- Edit the message that is sent to the friend. Click a variable to insert it.
- Choose the button position (see below).
- Change the button text if you want. The default is “Share Cart”.
- Change the title of the share cart popup if you want.
- Click Save Changes.
To test, add a product to your cart, open the cart page and click the button. Enter your own number as the friend’s number.
Button position
The button is added to the cart page automatically. Choose one of these positions:
Option | Where the button appears |
|---|---|
Before cart table | Above the cart table |
After cart table (default) | Directly below the cart table |
After cart | At the end of the cart page |
Beside update cart | Next to the Update cart button |
To place the button anywhere else, such as a mini cart or a custom page, use the [sa_sharecart] shortcode. See SMS Alert shortcodes.
What the shopper sees
- The shopper adds products to the cart and opens the cart page.
- They click the Share Cart button. It appears only when the cart has at least one item.
- A popup asks for their name and mobile number and their friend’s name and mobile number.
- After they submit, they see “Cart Shared Successfully.” If a number is invalid, the popup shows an error.
- The friend receives an SMS with a link that opens the shared cart.
The shopper does not need to be logged in.
SMS variables
Variable | Replaced with |
|---|---|
| The name of the person sharing the cart |
| The friend’s name |
| The sharer’s mobile number |
| The friend’s mobile number |
| The cart total |
| The cart currency |
| The time the cart was saved |
| The names of the items in the cart |
| The item names with their quantities |
| Your store name |
| Your shop URL |
| The link that opens the shared cart |
Troubleshooting
Problem | What to check |
|---|---|
The Share Cart button does not appear | Confirm Share Cart is enabled and saved, the cart contains at least one item and you are on the cart page (or the page with the shortcode). |
Admins see “Your cart is empty!” | The cart is empty. This message is shown only to administrators. Add a product to see the button. |
The button is in the wrong place | Change the button position in the Share Cart tab, or use the |
The shopper sees an invalid number message | The mobile number is not in a valid format. Check both numbers. |
The friend does not receive the SMS | Check credits, the friend’s number, the sender ID, DLT approval and the delivery report in your SMS Alert account. |
The link does not restore the cart | The link works for the cart saved at the time of sharing. Ask the shopper to share again. |
The SMS is rejected on India routes | The text does not match your approved DLT template. See Template Mismatch Error. |
Frequently asked questions
What does Share Cart do?
It lets a shopper send their WooCommerce cart to a friend by SMS. The friend gets a link that opens the same cart.
Where do I enable it?
In the SMS Alert menu under WooCommerce, on the Share Cart tab. It is off by default.
Where does the button appear?
On the cart page, in the position you choose. You can also use the [sa_sharecart] shortcode.
Can I change the button text?
Yes. The default is “Share Cart”.
Which variables can I use in the message?
[billing_first_name], [friend_name], [your_phone], [friend_phone], [cart_total], [currency], [time], [item_name], [item_name_qty], [store_name], [shop_url] and [cart_url].
Does the shopper need to log in?
No.
Why is the button missing?
The cart is empty, or Share Cart is not enabled.
Does sharing a cart affect abandoned cart reminders?
Sharing also saves the cart with the sharer’s name and mobile number in the same list as abandoned carts. See Abandoned Cart.
Does it use SMS credits?
Yes, one SMS for each shared cart.
