Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here’s a guide to adding add to cart buttons to your preezie product recommendations. This allows shoppers to directly purchase their preezie recommendations:

...

Note, we highly recommend testing the feature first by adding to a test or cloned journey in isolation before adding to your live journeys!

Table of Contents
minLevel1
maxLevel7

For Shopify customers

Connect it to your product feed

Turn on the

...

feature

  • Then turn on the feature in your CMS admin > Settings > Tenant settings
    Get in touch with support@preezie.com if you need help with this

    • In the admin tab select Shopify then Active

    • If your website has a custom shopping cart integration then you can add an optional Redirect for the shopper directly to your cart page (in a new tab)

      • This is used in the case where the cart is not automatically refreshed when preezie adds products to your cart, i.e. it looks like nothing has happened!

    • Hit > Save API Integration

...

...

Custom integration for all other eCommerce platforms

Turn on the feature

  • Turn on the feature in your CMS admin > Settings > Tenant settings
    Get in touch with support@preezie.com if you need help with this

    • In the admin tab select Custom then Active

    • If your website requires it then you can add an optional Redirect to your cart page after the shopper clicks add to cart (in a new tab)

      • This is used in the case where the cart is not automatically refreshed when preezie adds products to your cart, i.e. it looks like nothing has happened!

    • Hit > Save API Integration

...

Add your custom code

Now the feature is on each time the add to cart button is clicked a preezie custom event przAddToCartEvent will fire. You then need to place this script on your pages to fire your own custom add to cart events.

Code Block
languagejs
setTimeout(() => {

  const przWidget = document.getElementsByClassName('preezie-widget-app')[0]

  if(przWidget) {

    przWidget.addEventListener('przAddToCartEvent', (event) => {

        // add your custom "add to cart" events here

    })

  }          

}, 2000);

Hence each time the add to cart button is clicked przAddToCartEvent is fired and subsequently the actions within your customised script above.

...

Style your buttons

  • Now go to the workflow where you want to show add to cart buttons > Edit

  • UI Result & Behaviours > check Show Add to Cart button on results page

  • Add to cart button text on result page > Type the CTA text that each button will show, e.g. Add to cart

    • Hit Save

Style your buttons

By default your buttons will be styled the same as your Learn more buttons, if you’re not using these or want to style add to cart differently then follow these steps:

...

Once you hit Save! this will be immediately reflected in your widget.

For Magento customers (coming soon)

Coming soon.

...

(coming soon)

Coming soon.