Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Since various store themes use different CSS styles and classes, sometimes the HTML selector for Javascript should be adjusted to properly display the Reward button.

The required element's ID and class can be found, for instance, in the Google Chrome browser where it can be retrieved from the developer console:

                                                                              (click to enlarge)

  1. Open any product page of your store in the Google Chrome browser

  2. Press F12 (Cmd+Opt+I for Mac users) to open developer console

  3. Click on the search icon at top left corner of developer tools panel

  4. Click on the Add to cart button.

  5. As result of the previous steps, the HTML button will be highlighted in the elements section of developer console

  6. Check the "id" attribute of the element. If for example id="add", then final selector string should be "#add".

  7. Type the selector into the corresponding field on the Settings page.

If you see that the "Add to cart" button does not have an "id" attribute, you can add it by yourself. Just follow these steps:

  1. Open Themes section on the admin panel of your web store (Online Store → Themes);

  2. Find Theme from the list which will be used with our installed app.

  3. Click Actions  Edit Code.

  4. Find and open product.liquid file under Templates section.

  5. Add id="addToCart" attribute for the element, which is used as "Add to cart" button in your theme (you should already have found that element in browser's developer tools with the previous guide).

  6. Click to save the modified template.

                                                                                         (click to enlarge)




  • No labels