Exemplo n.º 1
0
 public function getDeliveryOption($default_country = null, $dontAutoSelectOptions = false, $use_cache = true)
 {
     @session_start();
     if (Module::isInstalled('agilepaypal') && isset($_SESSION['agile_paypal_validating_order']) && $_SESSION['agile_paypal_validating_order'] == 1 && isset($this->delivery_option) && $this->delivery_option != '') {
         $_SESSION['agile_paypal_validating_order'] = 0;
         return Tools::unSerialize($this->delivery_option);
     }
     return parent::getDeliveryOption($default_country, $dontAutoSelectOptions, $use_cache);
 }