Jump to content

Show all Products without one category


rrgc

Recommended Posts

Hi,

 

I want to get last product from all categories without one category.

 

how can i do this ?

 

this is my code for get product from one category :

$category = new Category(19,(int)Context::getContext()->language->id);	
		$nb = 7;
		$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 7));
		$this->context->smarty->assign(
			array(
				'rightel' => $products,
				'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
				'homeSize' => Image::getSize(ImageType::getFormatedName('home')),
			));

now i want get all product without one category.

 

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