Jump to content

Adding manufacturer as exception to show a module


Recommended Posts

I need to show a specific HTML content only for products made by a specific manufacturer. I have the module, but I don't know how to add the exception.

 

I have found here a similar topic to add the exception for a specific CATEGORY: https://www.prestashop.com/forums/topic/39745-solved-adding-categories-as-exception-to-show-a-block-module-or-how-to-display-a-module-block-only-in-one-category/page-2

 

But if I try to replace

{if $smarty.get.id_category == 2}

with

{if $smarty.get.id_manufacturer == 107}

... it just doesn't work. It's like the manufacturer is not retrieved from the database.

If I do it with id_product it works for that specific product.

 

Why doesn't it work with id_manufacturer?

 

Thanks!

Link to comment
Share on other sites

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...