Integrating with Online Store 2.0 for Collection Pages

Prathamesh Pramod Gaonkar

Last Update 2 дня назад

On the Collection pages, you have 3 options:


1. Add a new Spreadr button

2. Replace the Add to Cart button with the Spreadr button

3. Redirect to the Amazon link when the user clicks the product grid



1. Add a new Spreadr button


Let's say you want to add the Spreadr button below the price on the product cards on the Collection page.


Please be sure to look for snippets/card-product.liquid file (or the file that holds the product card info).


Add the code below the price information.

The code will look as - 

This will add a Spreadr button below the price information on the Product Card.


2. Replace the existing Add to Cart button with the Outlink button


Go to snippets/card-product.liquid file.


Add the below code to replace the add to cart button with a Spreadr button for Spreadr products.

The code will look as - 

This will replace the existing Add to Cart button with the Spreadr button.


3. Redirect to the Amazon link by clicking the product card


If you want the users to be redirected to the Amazon page on clicking the product card then follow the steps below:


Go to snippets/card-product.liquid file.


Locate the HTML for the product title. You can search for the keyword 'card_product.title' in the element.


Add the below code:

The code will look as -  

Note: The code may vary from theme to theme.


Similarly, the Spreadr button code can be placed for the Featured Product Card on the Home page, and also on the product grid on the Search page.



(If you are having problems please contact [email protected]. We will do the integration for you.)

 
 

Was this article helpful?

0 out of 0 liked this article