Unleash the Full Potential of Your PrestaShop Store

Welcome to MyPresta.eu – Your reliable partner in the e-commerce world. Find innovative modules that will take your business to a new level.

Feature to scroll to product tab

07.10.2015

Here you can watch the video about creating cool feature for your PrestaShop product pages. This feature gives you possibility to create special button that will open a product tab and scroll customer to it. Module to create extra tabs  adds this feature to your shop. I will explain here how to use it.


How to create such button?

  1. Log in to your shop back office
  2. Open product edit page
  3. Open product extra tabs pro section
  4. Add new tab
  5. Each tab has got own unique ID, it is necessary in next step. You can see it from the list of the tabs you created ( see screenshot ). Unique tab names are highlighted above, so the unique identifiers for these tabs are:  #extratabpro1 and #extratabpro2 - we have to use them in our button
  6. Correct syntax of the button is:
    <span class="gototab" title="extratabpro1">Open Test Tab</span>
    
  7. Each button to create scroll to tab feature must have class="gototab" and title="" with unique indentifier of the tab.
  8. Now you can use this code anywhere you want to create scroll to tab feature. You can use it in product.tpl file, in short product description, long product description etc.

 

 

video with detailed explanations

Zdjęcie autora: Milosz Myszczuk

Artykuł napisany przez Milosza Myszczuka, eksperta PrestaShop i oficjalnego moderatora społeczności PrestaShop. CEO i założyciel agencji interaktywnej VEKIA. Dowiedz się więcej.

If you like this article, support our work!

Comments