Merge branch 'canaries'
This commit is contained in:
commit
40798cf1c1
@ -3,6 +3,22 @@ class OrderController extends OrderControllerCore {
|
||||
public function preProcess() {
|
||||
global $isVirtualCart, $orderTotal;
|
||||
|
||||
// Bloque les canaries ES
|
||||
if ($this->step == 2) {
|
||||
$delivery = new Address(self::$cart->id_address_delivery);
|
||||
$prefix_postcode = substr($delivery->postcode, 0 ,2);
|
||||
|
||||
if ($delivery->id_country == 6
|
||||
&& (intval($prefix_postcode) == 35 || intval($prefix_postcode) == 38)
|
||||
) {
|
||||
Tools::redirect('order.php?step=1&canaries=1');
|
||||
}
|
||||
}
|
||||
if (Tools::getValue('canaries')) {
|
||||
$this->errors[] = Tools::displayError('Lo sentimos, en estos momentos no distribuimos nuestros productos en Canarias. Si deseas más información, puedes contactar con el Servicio de atención al cliente o llamar al 902 044 399.');
|
||||
}
|
||||
|
||||
|
||||
if(Module::isInstalled('privatesales')) {
|
||||
$removed = FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user