Show / Hide Table of Contents

    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

    Add to cart action

    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
    Advanced
    • Improve this Doc
    Back to top Copyright © 2015-2018 Aviva Solutions
    Generated by DocFX