0
DOCUMENTATION

Add to Cart

Customisable add-to-cart buttons with quantity selectors, variation support, and AJAX functionality for a seamless buying experience.

Overview

The Add to Cart widget gives you full control over the purchase action on your product pages. It renders the buy button, quantity input, and variation selectors as a single, fully styleable Elementor component. All actions run via AJAX for a smooth, no-reload experience. Goose Commerce manages the cart session in its own database layer.

How to Add It

  1. Open the Elementor editor on your Product Details page template.
  2. Search for Add to Cart in the Elementor widget panel.
  3. Drag it onto the canvas in the product purchase area.
  4. Configure the button label, quantity options, and style in the Content and Style panels.
Note: Assign your Product Details page in Goose → Settings → Pages → Product Details Page before building the template.

Settings Reference

SettingDescriptionDefault
Button TextThe label displayed on the add to cart buttonAdd to Cart
Show QuantityDisplay the quantity selector alongside the buttonEnabled
Min QuantityMinimum quantity a customer can add1
Max QuantityMaximum quantity a customer can add (0 = unlimited)0
AJAX Add to CartAdd to cart without a page reloadEnabled
Redirect After AddRedirect to cart page after adding a productDisabled
Show Stock MessageDisplay current stock status near the buttonEnabled
Button WidthButton width: Auto or Full WidthAuto

Common Use Cases

Use this widget on the Product Details page template for all product types including simple, variable, and kit products. Place it directly below the product price and variation selectors. For variable products, the button activates once all variation options are selected.

Tips & Notes

Tip: Enable AJAX Add to Cart and disable Redirect After Add for a smooth shopping experience that keeps customers on the product page.
Note: Cart data is stored in the Goose Commerce database. Configure your Cart page in Goose → Settings → Pages → Cart Page.
Powered by Goose