Jump to content

Repeating text for every product in category


spiralciric

Recommended Posts

Prestashop 1.6

This is the example of the problem:

  • I'm selling shoes,
  • I want for every shoe manufacturer to display the table that links internal shoe size with shoe number,
  • Every manufacturer is in separate category.

Vekia posted this code to be added in product.tpl:

if (Tools::getValue('id_product')==5){
    $this->l('write something for product 5');
}

 

I've tried it, and it does not work. I thought I would get from this code to the one I want by changing id_product to id_category, but even the original code does not work.

 

Any idea? Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...