This guide will show you how to quickly add ProductLift widgets to your Prestashop site.
Follow these steps to add ProductLift widgets to your site:
In PrestaShop, go to Design > Pages > Footer and include this script in the footer template.
<script defer src="https://YOUR_PRODUCTLIFT_DOMAIN/widgets_sdk"></script>
Replace YOUR_PRODUCTLIFT_DOMAIN
with your actual ProductLift domain.
Depending on the widget and method you chose, use the appropriate code:
Add the iframe link in a Custom HTML block for the Widget.
<iframe src="YOUR_IFRAME_URL" data-productlift-link width="100%" height="600px" frameborder="0"></iframe>
Replace YOUR_WIDGET_ID
or YOUR_IFRAME_URL
with the appropriate value from your ProductLift dashboard.
Use the class productlift-sidebar=WIDGET_UNIQUE_KEY
in a button element for the Widget.
<button class="productlift-sidebar=YOUR_WIDGET_ID">Open Widget</button>
Replace YOUR_WIDGET_ID
or YOUR_IFRAME_URL
with the appropriate value from your ProductLift dashboard.
Create a <div class="productlift-embed=WIDGET_UNIQUE_KEY"></div>
to embed the Widget.
<div class="productlift-embed=YOUR_WIDGET_ID"></div>
Replace YOUR_WIDGET_ID
or YOUR_IFRAME_URL
with the appropriate value from your ProductLift dashboard.
For specific widgets, you may have additional options:
<div class="productlift-whats-new=YOUR_WHATS_NEW_WIDGET_ID"></div>
<div class="productlift-feedback=YOUR_FEEDBACK_WIDGET_ID"></div>
<button class="productlift-new-post=YOUR_NEW_POST_WIDGET_ID">Create New Post</button>
Your ProductLift widgets should now be live on your Prestashop site.
If you need assistance, don't hesitate to contact our support team at support@productlift.dev.
For a more integrated experience, you can set up single sign-on (SSO) to automatically log in your users. This is a more advanced feature, but if you're interested, check out our SSO guide.