Add to cart action
The Add to cart action component displays a button a customer can click to add a product to the cart.
Example output
Usage
This component should be used on a product page. It adds the ability to add the current product to the cart. This component depends on the product being the current context item.
Path to component
/sitecore/layout/Renderings/Mercury/Feature/Catalog/Product/AddToCart
Cache behavior
[x] Cacheable
[ ] Clear on Index Update
[x] Vary By Data
[ ] Vary By Device
[ ] Vary By Login
[ ] Vary By Parm
[x] Vary By Query String
[ ] Vary By User
Data source
No data source
Resource texts
Name | Variables | Example |
---|---|---|
mercury-addtocart-button | Add to cart | |
mercury-product-not-instock | Out of stock |