Jump to content

exclude an id from getNewProducts


Zayon

Recommended Posts

Hey all, 

I've tried to edit the getNewProducts function like this : 

WHERE product_shop.`active` = 1 AND p.`id_product` != 30

and like this

 $sql->where('product_shop.`active` = 1 AND product_shop.`id_product` != 30');

But the product with id "30" is still present in new products bloc. 

Do you think ive missed something ? 

Thanks for your help 

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