Jump to content

block products sorted by online_only field


phper

Recommended Posts

hi all

i want to display the products defined as ( web Exclusive ), i try to get theme by ( online_only ) field in ( ps_product ) table , that's my request code in the php file of my modul :

$products = $category->getProducts(intval($params['cookie']->id_lang), 1,($nb ? $nb : 3), 'online_only', 'DESC');



but doesnt work exactly :(

plz help me to know what's wrong in my code ??

thank you for your replies.

Regards.

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