[-] FO : fixed bug #PSCFV-4336
This commit is contained in:
@@ -2934,6 +2934,12 @@ class CartCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
return $this->_addCustomization($id_product, 0, $index, $type, $file, 0);
|
return $this->_addCustomization($id_product, 0, $index, $type, $file, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function deletePictureToProduct($id_product, $index)
|
||||||
|
{
|
||||||
|
Tools::displayAsDeprecated();
|
||||||
|
return $this->deleteCustomizationToProduct($id_product, 0);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a customer's customization
|
* Remove a customer's customization
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ class ProductControllerCore extends FrontController
|
|||||||
$this->textRecord();
|
$this->textRecord();
|
||||||
$this->formTargetFormat();
|
$this->formTargetFormat();
|
||||||
}
|
}
|
||||||
else if (Tools::getIsset('deletePicture') && !$this->context->cart->deletePictureToProduct($this->product->id, Tools::getValue('deletePicture')))
|
else if (Tools::getIsset('deletePicture') && !$this->context->cart->deleteCustomizationToProduct($this->product->id, Tools::getValue('deletePicture')))
|
||||||
$this->errors[] = Tools::displayError('An error occurred while deleting the selected picture');
|
$this->errors[] = Tools::displayError('An error occurred while deleting the selected picture');
|
||||||
|
|
||||||
$files = $this->context->cart->getProductCustomization($this->product->id, Product::CUSTOMIZE_FILE, true);
|
$files = $this->context->cart->getProductCustomization($this->product->id, Product::CUSTOMIZE_FILE, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user