Jump to content

Keep combinations when use combinations generator


bahamont

Recommended Posts

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

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 by bahamont (see edit history)
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...