Jump to content

Скрыть товары у производителя ID=1


Recommended Posts

Как быстро/временно скрыть товары у производителя 

Попробовал через SQL запрос 
update `ps_product` set active = 0 where id_manufacturer = 1; 

Не получилось :(

Link to comment
Share on other sites

Пробовал кучу разных вариантов никак через if не получается

 

{if isset($manufacturer) && $manufacturer.id_manufacturer == 1}

{if isset($product->id_manufacturer) && $product->id_manufacturer == 1 }

{if $product->id_manufacturer == 1 || $product->id_manufacturer == 2 || $product->id_manufacturer == 3 }

{if $manufacturer->id == 1 || $manufacturer->id == 2 || $manufacturer->id == 3 }

{if $product.id_manufacturer == 1 || $product.id_manufacturer == 2 || $product.id_manufacturer == 3 }

{if $product_manufacturer->id_manufacturer == 1 || $product_manufacturer->id_manufacturer == 2 || $product_manufacturer->id_manufacturer == 3 }

 

 

<li>

...

</li>

{/if}

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