parser_url = $this->url.'/functions/parser.php'; $this->checkPointSelectedOPC_url = $this->url.'/functions/checkPointSelectedOPC.php'; if ($this->ps15x) { $customerAddresses = $this->context->customer->getAddresses((int)$this->context->cookie->id_lang); $id_delivery_address = (int)$this->context->cart->id_address_delivery; } else { $customerAddresses = Db::getInstance()->ExecuteS('SELECT * FROM '._DB_PREFIX_.'address WHERE id_customer='.(int)$this->context->cookie->id_customer); $id_delivery_address = (int)$this->context->cart->id_address_delivery; } $html = ''; foreach ($customerAddresses as $address) { if ((int)$address['id_address'] === $id_delivery_address) { $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; if (isset($address['phone_mobile'])) { $tel = preg_replace('[^\x30-\x39]', '', $address['phone_mobile']); $tel = Tools::substr($address['phone_mobile'], Tools::strlen($address['phone_mobile']) - 9); $tel = sprintf('%010s', $tel); if (Tools::substr($tel, 1, 1) == 6 || Tools::substr($tel, 1, 1) == 7 || Tools::substr($tel, 1, 1) == 4) $html .= ''; } } } $result = $html.ob_get_clean(); print ($result); die; } } $SoflexibiliteEnv = new InitSoflexibiliteEnv(); $SoflexibiliteEnv->initEnvSoflexibilite();