How to Add ProductLift Widgets to Prestashop

This guide will show you how to quickly add ProductLift widgets to your Prestashop site.

Add ProductLift Widgets to Prestashop

Follow these steps to add ProductLift widgets to your site:

1. Add the ProductLift SDK

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.

2. Implement Your Chosen Integration Method

Depending on the widget and method you chose, use the appropriate code:

Iframe Method:

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.

Sidebar Method:

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.

Embed Method:

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.

Additional Widgets

For specific widgets, you may have additional options:

Changelog "What's New" Widget:
<div class="productlift-whats-new=YOUR_WHATS_NEW_WIDGET_ID"></div>
Feedback Raw Feedback Widget:
<div class="productlift-feedback=YOUR_FEEDBACK_WIDGET_ID"></div>
Feedback Create New Post Widget:
<button class="productlift-new-post=YOUR_NEW_POST_WIDGET_ID">Create New Post</button>

That's it!

Your ProductLift widgets should now be live on your Prestashop site.

Troubleshooting Tips

If you need assistance, don't hesitate to contact our support team at support@productlift.dev.

Advanced Feature: Single Sign-On

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.