Beispiel #1
0
 public function duplicate()
 {
     $result = parent::duplicate();
     if (isset($result['cart'])) {
         $result['cart']->deleteProduct((int) Configuration::get('GOINTERPAY_ID_TAXES_TDUTIES'));
     }
     return $result;
 }
Beispiel #2
0
 public function duplicate()
 {
     $duplication = parent::duplicate();
     if (!$duplication || !Validate::isLoadedObject($duplication['cart'])) {
         return $duplication;
     }
     $pagename = AgileHelper::getPageName();
     if (($pagename == 'order.php' || $pagename == 'order-opc.php' || $pagename == 'orderopc.php') && Tools::isSubmit('submitReorder') && ($id_order = (int) Tools::getValue('id_order')) && Module::isInstalled('agilesellerlistoptions')) {
         include_once _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/agilesellerlistoptions.php";
         if (method_exists('AgileSellerListOptions', 'ExpiredProductNbrInOrder')) {
             if (AgileSellerListOptions::ExpiredProductNbrInOrder($id_order)) {
                 $duplication['success'] = false;
             }
         }
     }
     return $duplication;
 }