Jump to content

Products selected by default category


alex.sima

Recommended Posts

Hi,

 

I have o module that displays the products from a category an I want display only the products that that have a specific default category.

 

How can I do that?

 

Here is my code:

$categ1 = new Category((int)(Configuration::get('CATEG1')));
$myprods1 = $categ1->getProducts($this->context->language->id, 1, 10, 'id_product', 'DESC'); /* 10 products max. */
$catname1 = $categ1->getName($this->context->language->id);

I've tried few hours to solve this problem, but is out of my capacities.

Thank you!

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