Jump to content

exclude an id from getNewProducts


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 

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More