bahamont Posted May 22, 2014 Share Posted May 22, 2014 I would like to keep the existents combinations when i use the combinations generator.How can i do that? Link to comment Share on other sites More sharing options...
CartExpert.net Posted May 22, 2014 Share Posted May 22, 2014 Hi. Remove lines if ($this->product->depends_on_stock == 0) { $attributes = Product::getProductAttributesIds($this->product->id, true); foreach ($attributes as $attribute) StockAvailable::removeProductFromStockAvailable($this->product->id, $attribute['id_product_attribute'], Context::getContext()->shop); } SpecificPriceRule::disableAnyApplication(); from AdminAttributeGeneratorController.php Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
bahamont Posted May 22, 2014 Author Share Posted May 22, 2014 (edited) Ok, that works Now i need ask the user if he want delete or not. i write this in content.tpl <input type="radio" name="rbt_comb" value="0" checked="checked" > Keep Combinations. <br> <input type="radio" name="rbt_comb" value="1" /> Delete. How can i save in $flag the value of the selected radio button? Edited May 22, 2014 by bahamont (see edit history) Link to comment Share on other sites More sharing options...
bahamont Posted May 28, 2014 Author Share Posted May 28, 2014 (edited) EDIT That don't work.Prestashop rewrite all the combinations. I only want add the new combination and don't overwrite the rest. Another idea? Edited May 28, 2014 by bahamont (see edit history) 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