/
PDP Integration

PDP Integration

This section explains how to add the AI Shop Assistant PDP script to your Shopify theme.

To install the PDP, follow the steps outlined below:

  1. Login to Shopify store.

  2. Navigate to Online Store > Themes.

  3. Navigate to the desired theme for the widget, then select the 'Actions' drop-down.

  4. Select “Edit code“, this will take you to the theme code editor.

Note: If you have multiple testing themes in your store (dev, staging etc), you can test the PDP in your testing theme before putting it on your live theme.

image-20241022-230117.png
  1. In the theme code editor, find the main-product.liquid file.

  2. In your main-product.liquid file, find the place where you want to place the PDP on the page

<script src="https://widget.shopassistant-ai.com/preguide_ai.js" data-tenantid='<Please insert your tenant id here>' data-app-type='pdp' defer> </script>

Please insert your tenant id in the 'data-tenantid' attribute.

For Example:

<script src="https://widget.shopassistant-ai.com/preguide_ai.js" data-tenantid='prz_123123123' data-app-type='pdp' defer> </script>

Please ensure to include defer in the script tag.

  1. Hit “Save“ button on the top right.

  2. Navigate to your Shopify store product page, you should be able to see the AI shop assistant PDP on your page!

 

Related content

Shopify Widget Integration
Shopify Widget Integration
More like this
Shopify API
More like this
preezie Widget Integration
preezie Widget Integration
More like this
Shopify Pixel Tracking
Shopify Pixel Tracking
More like this
Shopify Product Events
Shopify Product Events
More like this
Product Feed guide
Product Feed guide
More like this