// report bugfix from saving customization with combination

This commit is contained in:
vChabot
2012-02-10 14:08:03 +00:00
parent c593b3ff61
commit 2f14bbc7f3
5 changed files with 82 additions and 6 deletions
+17
View File
@@ -559,5 +559,22 @@ class ProductControllerCore extends FrontController
}
return $specific_prices;
}
public function postProcess()
{
if ($this->ajax)
{
if (Tools::isSubmit('submitCustomizedDatas'))
{
$this->pictureUpload($this->product, $this->context->cart);
$this->textRecord($this->product, $this->context->cart);
$this->formTargetFormat();
}
if (count($this->errors))
die(Tools::jsonEncode(array('hasErrors' => true, 'errors' => $this->errors)));
else
die(Tools::jsonEncode(array('hasErrors' => false, 'conf' => Tools::displayError('Customization saved successfully.'))));
}
}
}