...
In the theme code editor, find the main-product.liquid file.
In your main-product.liquid file, find the place where you want to place the PDP on the page
Add the script by copying and pasting it on the line directly above the </head> tag.
Code Block | ||
---|---|---|
| ||
<script src="https://widget.shopassistant-ai.com/preguide_ai.js" data-tenantid='<Please insert your tenant id here>' data-app-type="pdp" defer><'pdp' defer> </script> |
Info | |||
---|---|---|---|
Please insert your tenant id in the ' For Example:
|
Info |
---|
Please ensure to include |
...
If PDP layout is off, please add an outer container to the script like below
Code Block | ||
---|---|---|
| ||
<div style="display: block; width: 100%;"> <script src="https://widget.shopassistant-ai.com/preguide_ai.js" data-tenantid='prz_123123123' data-app-type=”pdp”'pdp' defer></script> </div> |
Info |
---|
Note: The AI Shop Assistant PDP will be loaded on the specific page where you put the script. |
...