rrgc Posted July 11, 2015 Share Posted July 11, 2015 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 More sharing options...
musicmaster Posted July 12, 2015 Share Posted July 12, 2015 I am puzzled what you want. Every product in Prestashop belongs to at least one category. The software does not allow you to take away that last category. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now