Shortcodes

[sscwc_save_cart_button]

Renders a Save Cart button. The button is hidden automatically when the cart is empty or when guest carts are disabled and the visitor is not logged in.

Parameters:

  • label (string, default: Save Cart) — button text
  • class (string, default: button sscwc-save-cart-button) — CSS classes applied to the button element
  • icon (string, default: yes) — set to no to hide the cart icon
  • icon_class (string, default: dashicons dashicons-cart) — CSS classes for the icon span
  • ajax (string, default: yes) — enables AJAX-based saving

Example:

[sscwc_save_cart_button label="Save My Cart" icon="no"]

[sscwc_saved_carts_list]

Renders a table of the current logged-in user’s saved carts with Load Cart, Share, and Delete actions. Logged-out users see a login prompt.

Parameters:

  • show_expired (string, default: no) — set to yes to include expired carts
  • limit (integer, default: 10) — maximum number of carts to show
  • empty_message (string, default: You have no saved carts.) — message shown when no carts exist

Example:

[sscwc_saved_carts_list limit="5" empty_message="No saved carts found."]