Update: we’ve added alternative options in our help documentation. Please take a look at the posts in that section:
This is a splendid guest post by Joseph Smith who has been experimenting with iubenda’s code and PrestaShop (integrating iubenda via the creation of a custom hook). Since the integration he wanted for himself and PrestaShop is not entirely straight forward, he outlined the process for us and you in this guide for iubenda and PrestaShop.
Many would ask “why not just integrate the code in some existing part of the site?”.
But really, I usually prefer keeping the coding for site functionality, whilst keeping the site’s backend for contents: it’s easier to finds things when a little organized 😀
So the question became: “how do I integrate a code snippet, from PrestaShop’s backend, and display it on only one of the CMS pages?”.
Just to point out, I’m a web-programmer and I could have dealt with this problem in very different easier ways, but my hard head helped me learn something new, that’s actually quite simple, so now I want to share 🙂
Basically, the process consists in:
- Inserting a custom hook in PrestaShop’s database;
- Calling the hook with a controller;
- Positioning the hook on the site, exactly where needed;
- Inserting iubenda’s code somewhere in the backend;
Read the whole process in our help documentation. We have moved this part of the article over there because it is where all of our other help is located as well. And when you are done, this is what your Prestashop page will look like:
I hope this tutorial was helpful, happy hooking!