Steppo Posted October 2, 2010 Share Posted October 2, 2010 Hi all!I just tried to duplicate a product for moving to another category and noticed that I cant do that anymore nor have one product in two categories. Error message: Product must be in the default categoryDont know if it is related to my update to latest version of PS - which btw worked like a charm:)Anyone else than me? Cheers// Stefan Link to comment Share on other sites More sharing options...
Steppo Posted October 2, 2010 Author Share Posted October 2, 2010 I think I found it- it is the new dropdown "default category" in the image here that have to be set right. If anyone can explain what it is for I am learning:) Link to comment Share on other sites More sharing options...
Steppo Posted October 2, 2010 Author Share Posted October 2, 2010 I feel...red on my cheeks... is it nor a new function? Have it been there since 1.2.5? Link to comment Share on other sites More sharing options...
rocky Posted October 3, 2010 Share Posted October 3, 2010 No, this is a bug fix in PrestaShop v1.3.2. In PrestaShop v1.3.1 and earlier, it was possible for the default category to be a category that the product wasn't actually in. In PrestaShop v1.3.2, the default category must be a category the product is in, otherwise you will get an error message. Link to comment Share on other sites More sharing options...
Steppo Posted October 3, 2010 Author Share Posted October 3, 2010 Ok Thanks!I was worried that i had missed it from the beginning;) Do we know the basic thought about it? It should be better control of all the product maybe...Cheers Link to comment Share on other sites More sharing options...
rocky Posted October 3, 2010 Share Posted October 3, 2010 See the bug report here. Link to comment Share on other sites More sharing options...
phunter121 Posted May 31, 2011 Share Posted May 31, 2011 Hi guys, what is the actual purpose of the 'Default Category'? Link to comment Share on other sites More sharing options...
romanotulini Posted October 24, 2011 Share Posted October 24, 2011 Here is an solution: check your admin folder / tabs and AdminProducts.php file. Open it and find this code: if (!is_array(Tools::getValue('categoryBox')) OR !in_array(Tools::getValue('id_category_default'), Tools::getValue('categoryBox'))) $this->_errors[] = $this->l('product must be in the default category'); Just delete it... And its working yet... If you dont wanna see this message: Consider changing the default category only find this part of code: <script type="text/javascript"> $(document).ready(function() { $(\'div#categoryList input.categoryBox\').click(function (){ if ($(this).is(\':not(:checked)\') && $(\'div#categoryList input.id_category_default\').val() == $(this).val()) alert(\''.utf8_encode(html_entity_decode($this->l('Consider changing the default category.'))).'\'); }); }); </script> and just delete it. And thats all.. Link to comment Share on other sites More sharing options...
sjaakie3 Posted March 25, 2015 Share Posted March 25, 2015 using Prestashop versie 1.6.0.14 getting the exact same error. But the product is in the correct default category. What is wrong this time? 1 Link to comment Share on other sites More sharing options...
Stéphane V Posted May 14, 2019 Share Posted May 14, 2019 Update for version 1.7.5 : the solution is to check at least one catagory in the RADIO buttons, at the right edge of the categories (not only the checkbox, but also one radio button to define default 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