- [Case Studies](https://www.mergado.com/category/case-studies)
- [eCommerce tips](https://www.mergado.com/category/ecommerce-tips)
- [Online Store Solutions and Platforms](https://www.mergado.com/category/online-store-solutions-and-platforms)
- [Mergado Pack](https://www.mergado.com/category/mergado-pack)
- [Mergado tips](https://www.mergado.com/category/mergado-tips)
- [Mergado News](https://www.mergado.com/category/mergado-news)
- [eCommerce News](https://www.mergado.com/category/ecommerce-news)
- [How to use Mergado](https://www.mergado.com/category/how-to-use-mergado)
- [Interviews with e‑commerce gurus](https://www.mergado.com/category/interviews-e-commerce-gurus)
- [Extensions](https://www.mergado.com/category/apps-bidding-image-marketing-and-more)
- [Expansion with Mergado](https://www.mergado.com/category/expansion-with-mergado)
- [Mergado Lifestyle](https://www.mergado.com/category/mergado-lifestyle)
 



 

 1. [  Home  ](https://www.mergado.com/)
2. [     Mergado Blog  ](https://www.mergado.com/blog)
3. [     Mergado News  ](https://www.mergado.com/category/mergado-news)
4. <a class="flex items-center gap-2 hover:underline" href="" itemid="" itemprop="item" itemscope="" itemtype="https://schema.org/Thing">    **Mergado marketing pack for PrestaShop: the module is now compatible with PrestaShop version 1.7** </a>
 
  

 

#  **Mergado marketing pack for PrestaShop: the module is now compatible with PrestaShop version 1.7** 

 

 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/radim_0.png)   Radim Zhoř  ](https://www.mergado.com/blog/radim-zhor) [Mergado News](https://www.mergado.com/category/mergado-news) 

15. 1. 2019

2 minutes read

 

 

 

 

 

  ![](https://www.mergado.com/sites/default/files/field/image/presta-mmp-eng.png)  

Some time ago, **PrestaShop introduced its version 1.7**. Unlike previous versions, this system works on a different core. This means most **modules were no longer compatible** with PrestaShop‘s new version. Until recently, this was also the case for the Mergado Marketing Pack module.



 

 

 
                function tableOfContents() {
                  return {
                    headings_menu: [],
                    heading_active: '', // Added to track the active section
                    shouldBeSticky: false,

                    generateToC() {
                      const headings = document.querySelectorAll('.js-article-full-headings h2, .js-article-full-headings h3');
                      let headingMap = {};

                      headings.forEach((heading) => { // Use an arrow function to maintain `this` context
                        // Normalize heading text to remove diacritics, then replace non-alphanumeric characters with dashes
                        var normalizedText = heading.textContent.normalize("NFD").replace(/[\u0300-\u036f]/g, ""); // Remove diacritics
                        var id = heading.id ? heading.id : normalizedText.trim().toLowerCase()
                          .split(' ').join('-').replace(/[^a-z0-9\-]/ig, ''); // Updated regex to replace non-alphanumeric characters
                        headingMap[id] = headingMap[id] !== undefined ? ++headingMap[id] : 0;

                        // Use the updated `id` with diacritics removed for the heading id and the TOC
                        const finalId = headingMap[id] ? `${id}-${headingMap[id]}` : id;
                        this.headings_menu.push({
                          id: finalId,
                          title: heading.textContent,
                          level: heading.tagName.toLowerCase(), // Track heading level
                          active: false, // Initially set active to false
                        });
                        heading.id = finalId;
                      });
                    },

                    checkStickyNeeded() {
                      const ul = this.$el.querySelector('ul');
                      if (ul) {
                        this.shouldBeSticky = ul.scrollHeight < window.innerHeight;
                      }
                    },

                    setActiveHeading() {
                      // disabled not working with active state on click
                      // add @scroll.window="setActiveHeading()" to the parent div

                      // const headings = document.querySelectorAll('.js-article-full-headings h2');
                      // let activeHeading = '';
                      // let closestHeadingDistance = Infinity;

                      // headings.forEach((heading) => {
                      //   const rect = heading.getBoundingClientRect();
                      //   const offset = rect.top - window.innerHeight / 2; // Consider heading in the middle of the screen as active

                      //   if (offset < 0 && Math.abs(offset) < closestHeadingDistance) {
                      //     activeHeading = heading.id;
                      //     closestHeadingDistance = Math.abs(offset);
                      //   }
                      // });

                      // // Update the active state in headings_menu
                      // if (activeHeading !== this.heading_active) {
                      //   this.headings_menu = this.headings_menu.map(item => ({
                      //     ...item,
                      //     active: item.id === activeHeading,
                      //   }));
                      //   this.heading_active = activeHeading;

                      // }
                    },

                    setActiveItem(clickedId) {
                      this.headings_menu.forEach(item => {
                        item.active = (item.id === clickedId);
                      });
                      this.heading_active = clickedId; // Optionally update the heading_active property if used
                    },
                  };
                }
               1. <a :class="{ 'border-r-[3px] border-secondary': item.active, 'text-sm': item.level === 'h3' }" :href="'#' + item.id" class="inline-block text-balance hover:underline p-0.5 pr-3">  — </a>
  



 

Some time ago, **PrestaShop introduced its version 1.7**. Unlike previous versions, this system works on a different core. This means **most modules were no longer compatible** with PrestaShop‘s new version. Until recently, this was also the case for the Mergado Marketing Pack module. With the new year, **we introduced the PrestaShop 1.7 module support** — so online store owners who work with this open-source solution can use the Mergado Marketing Pack module again.

### Why use Mergado Marketing Pack for PrestaShop

This module allows you to **export your data in XML format** from your PrestaShop, in the Mergado XML specification. This data is **useful for connecting to Mergado**, where you can convert it to hundreds of other formats.

### How much does it cost?

The module is **free of charge**.

### How to set it up?

See the [Mergado Marketing Pack for PrestaShop module page](https://www.mergado.com/ecommerce-solutions/prestashop) on our website for all installation and setup information.



 

 [  ![](https://www.mergado.com/sites/default/files/perm/paragraph-image/screenshot-prestashop17mergadoshopcom-20190107-14-54-31.png)  ](https://www.mergado.com/sites/default/files/perm/paragraph-image/screenshot-prestashop17mergadoshopcom-20190107-14-54-31.png) 

### What are the benefits of PrestaShop 1.7

Version 1.7 has been completely rebuilt by moving PrestaShop to the PHP Symfony Framework. It includes these **main updates**:

- faster and simplified product page interface
- enhanced back office navigation
- templates that better fit your business
- import/​export tool that gives you backups of your data

Visit [PrestaShop Add-ons marketplace](https://addons.prestashop.com/en/): you will find a large number of modules and themes which are customized for version 1.7. They will help you **add new features to your store** within minutes.

If you use Mergado and run your online store on PrestaShop, **download the Mergado Marketing Pack module**. It helps you **create better XML data files**. It also has a useful set of marketing features. Activate them in the module settings on the “*Advertising Systems*” card.

Do you want to share your ideas on **how to improve Mergado Marketing Pack**? Do you need some advice on installing or modifying the module? Contact us at <mergado@mergado.com>.



 

- [  Mergado Pack ](https://www.mergado.com/tag/mergado-pack)
- [  PrestaShop ](https://www.mergado.com/tag/prestashop)
 
 [    ![](https://www.mergado.com/sites/default/files/perm/image/radim_0.png)  ](https://www.mergado.com/blog/radim-zhor)###  [ Radim Zhoř ](https://www.mergado.com/blog/radim-zhor) 

- He has several years of experience in e‑commerce.
- He works as a Business Development Specialist at Mergado, where he helps to market the Mergado product management tool.

 

 

 

 

 

 

 

 

 

## What you *might be interested in next*

 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/mergado_chatgpt_2.jpg)  

### ChatGPT Shopping: The Future Is Already Here

 

 ](https://www.mergado.com/blog/chatgpt-shopping-future-already-here) 

 [    ![smart value insertion article](https://www.mergado.com/sites/default/files/perm/image/smart_insertion_value.png)  

### Introducing smart value insertion. It will speed up the creation of bulk rules

 

 ](https://www.mergado.com/blog/smart-value-insertion) 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/mergado-element-path.jpg)  

### MERGADO 2 has new tool. It will help you to test element path

 

 ](https://www.mergado.com/blog/mergado-2-element-path-tool) 

 

 

 

## Don’t miss *anything*

 Sign up for our newsletter 

   

       

   By logging in, you agree that we will process your data by the [terms of personal data protection](https://www.mergado.com/cookies). 

  Thank you, you have successfully joined our subscriber's list. 

 

 

 
      function ml_webform_success_5807248() {
        var r = ml_jQuery || jQuery
        r('.ml-subscribe-form-5807248 .row-success').show(), r('.ml-subscribe-form-5807248 .row-form').hide()
      }