Shopify elements – Product Add To Cart

About Product Add to Cart ElementClick to copy

Shopify Add To Cart element is a must-have for any product listed on a page or product page. It presents the “Add to Cart” button, allowing visitors to add items to their shopping cart automatically when clicked.

You can also watch this video tutorial:

How To Access Product Add To Cart ElementClick to copy

  • Step 1: Click on the 2nd icon in the Element Catalog which is the Add Shopify element function
  • Step 2: Click on the Product Add To Cart element in the dropdown menu
  • Step 3: Drag and drop the element into the page editor and then start using it.

This element comes with three common variations, but we will continue to add more variations to help you save time.

Note that you can search for this element by using the search function instead of finding it in the sidebar.

How To Configure Product Add to Cart ElementClick to copy

The Product Add To Cart element comes with plenty of parameters allowing you to fine-tune content appearance for the best possible conversion rate.

When you drag and drop the element into the page editor, you have two choices for the Product Source option:

  • Auto: If you’re on the Product Page, the product assigned to this page will be displayed in the editor.
  • Custom Product: Select a specific product to display.

Note: If you’re on a Regular Page, the Product Source option is not available.

Select the element in the layout to see its parameters in the General and Styling tabs, which are specific to this element.

General ConfigurationClick to copy

Product Source

2 options as explained above: Auto and Custom Product.

  • Auto:

  • Custom product:

Add After Add To Cart Action

There are 4 options after clicking on ATC button:

  • Stay on the same page
  • Go to cart page
  • Go to check out page
  • Go to custom link
Button Type

There are 3 types of buttons: Text Only, Text With Icon and Icon Only

Button Text

Enter the text to appear on the button (e.g., “Add to cart”)

Add Text

Enter custom text when a product is being added to the cart

Add text product add to cart button
Added Text

Enter custom text when a product is added successfully

Added text product add to cart button
Sold out Text

Enter custom text when a product is sold out

Enable Full Width

Make the Product Add to Cart button show full width of the container

You can get further information about ATTRIBUTES, VISIBILITY, ANIMATION parameters.

Styling ConfigurationClick to copy

In the Styling tab, you have the option to set up and use a Global Style for the Add to Cart button. This allows you to define a consistent style that can be applied across multiple elements on your site. Read more about How to set up and how to use Global style here.

The Styling tab also allows you to customize the appearance of the button for different states: Normal, Mouse Over, Active/Selected, and Disabled.

You can check more information about the PageFly Element Styling

Check out how to create a Buy It Now button which redirects to the Checkout page.

Common CasesClick to copy

1. Change Color Of The Add To Cart ButtonClick to copy

To change the color of the add to cart button, click on the button > Go to Styling tab. There are 2 parameters to settings for the color of the button:

  • Content color: select color for the button text
  • Background color: select color for the button’s background

2. Add Hover State For Add To Cart ButtonClick to copy

You can add hover state for the Add to cart button to make it more active in live view and more call to action. To do that, click on the button > Go to Styling tab > Change the state to “Mouse over state”. Then start to change color for the Content color and Background color.

3. Create A Sticky Product Add To Cart ButtonClick to copy

To create a sticky “Add to Cart” button for a product, you need to create a section that contains the “Add to Cart” button element, then enable the “Sticky Top” function for that section. You can see the full details in the video below.

Tips And Best PracticesClick to copy

  • Use contrasting colors for the content and background in the Normal and Hover states to make the button stand out.
  • Keep the Add to Cart button on a single line for better visibility and attention.

Frequently Asked QuestionsClick to copy

What Is A Product Add-To-Cart?Click to copy

The Add to Cart feature allows shoppers to save items in their cart to continue shopping and complete the checkout process later after selecting all their desired items.

What Is The Difference Between Add-To-Cart And Order?Click to copy

The cart is a shopping basket where shoppers can keep their items but have not purchased them yet (‘out of stock’ items are possible). Here, they can modify or remove items. An order is the next step after the shopper converts, where shipping, delivery information, and payment are provided.

What Is The Add-To-Cart Rate In Marketing?Click to copy

The Add to Cart Rate is the percentage of shoppers who have at least one item in their cart per session.

Thank you for your feedback!

Could not find the answer
to your question?

Chat with us