[-] FO : Fix bug #PSCFV-9653 could not return a custom product
This commit is contained in:
1 parent
cf849077ed
commit
19c9ae0a5c
1 file changed
+4
-3
@@ -40,11 +40,12 @@ class OrderFollowControllerCore extends FrontController
|
|||||||
if (Tools::isSubmit('submitReturnMerchandise'))
|
if (Tools::isSubmit('submitReturnMerchandise'))
|
||||||
{
|
{
|
||||||
$customizationQtyInput = Tools::getValue('customization_qty_input');
|
$customizationQtyInput = Tools::getValue('customization_qty_input');
|
||||||
|
$order_qte_input = Tools::getValue('order_qte_input');
|
||||||
|
$customizationIds = Tools::getValue('customization_ids');
|
||||||
|
|
||||||
if (!$id_order = (int)(Tools::getValue('id_order')))
|
if (!$id_order = (int)(Tools::getValue('id_order')))
|
||||||
Tools::redirect('index.php?controller=history');
|
Tools::redirect('index.php?controller=history');
|
||||||
if (!$order_qte_input = Tools::getValue('order_qte_input'))
|
if (!$order_qte_input && !$customizationQtyInput && !$customizationIds)
|
||||||
Tools::redirect('index.php?controller=order-follow&errorDetail1');
|
|
||||||
if (!$customizationQtyInput && $customizationIds = Tools::getValue('customization_ids'))
|
|
||||||
Tools::redirect('index.php?controller=order-follow&errorDetail1');
|
Tools::redirect('index.php?controller=order-follow&errorDetail1');
|
||||||
if (!$customizationIds && !$ids_order_detail = Tools::getValue('ids_order_detail'))
|
if (!$customizationIds && !$ids_order_detail = Tools::getValue('ids_order_detail'))
|
||||||
Tools::redirect('index.php?controller=order-follow&errorDetail2');
|
Tools::redirect('index.php?controller=order-follow&errorDetail2');
|
||||||
|
|||||||
Reference in new issue
Block a user