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

  1. In the WordPress dashboard, open the SMS Alert menu under WooCommerce and go to the Share Cart tab.
  2. Enable Share Cart. It is off by default.
  3. Edit the message that is sent to the friend. Click a variable to insert it.
  4. Choose the button position (see below).
  5. Change the button text if you want. The default is “Share Cart”.
  6. Change the title of the share cart popup if you want.
  7. 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

  1. The shopper adds products to the cart and opens the cart page.
  2. They click the Share Cart button. It appears only when the cart has at least one item.
  3. A popup asks for their name and mobile number and their friend’s name and mobile number.
  4. After they submit, they see “Cart Shared Successfully.” If a number is invalid, the popup shows an error.
  5. 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

[billing_first_name]

The name of the person sharing the cart

[friend_name]

The friend’s name

[your_phone]

The sharer’s mobile number

[friend_phone]

The friend’s mobile number

[cart_total]

The cart total

[currency]

The cart currency

[time]

The time the cart was saved

[item_name]

The names of the items in the cart

[item_name_qty]

The item names with their quantities

[store_name]

Your store name

[shop_url]

Your shop URL

[cart_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 [sa_sharecart] shortcode.

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.

In the SMS Alert menu under WooCommerce, on the Share Cart tab. It is off by default.

On the cart page, in the position you choose. You can also use the [sa_sharecart] shortcode.

Yes. The default is “Share Cart”.

[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].

No.

The cart is empty, or Share Cart is not enabled.

Sharing also saves the cart with the sharer’s name and mobile number in the same list as abandoned carts. See Abandoned Cart.

Yes, one SMS for each shared cart.

Still can't find the solution for your Query?

Contact Support