add modules
7
modules/__socolissimo/CHANGELOG
Normal file
@ -0,0 +1,7 @@
|
||||
Socolissimo
|
||||
|
||||
2.3 :
|
||||
|
||||
- Add Backward compatibility to use the module on 1.4 / 1.5 PrestaShop version.
|
||||
(OPC and 5 steps process works)
|
||||
|
34
modules/__socolissimo/ajax.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
include_once('../../config/config.inc.php');
|
||||
include_once('../../init.php');
|
||||
include_once('../../modules/socolissimo/socolissimo.php');
|
||||
|
||||
// To have context available and translation
|
||||
$socolissimo = new Socolissimo();
|
||||
|
||||
// Default answer values => key
|
||||
$result = array(
|
||||
'answer' => true,
|
||||
'msg' => ''
|
||||
);
|
||||
|
||||
// Check Token
|
||||
if (Tools::getValue('token') != sha1('socolissimo'._COOKIE_KEY_.Context::getContext()->cart->id))
|
||||
{
|
||||
$result['answer'] = false;
|
||||
$result['msg'] = $socolissimo->l('Invalid token');
|
||||
}
|
||||
|
||||
// If no problem with token but no delivery available
|
||||
if ($result['answer'] && !($result = $socolissimo->getDeliveryInfos(Context::getContext()->cart->id, Context::getContext()->customer->id)))
|
||||
{
|
||||
$result['answer'] = false;
|
||||
$result['msg'] = $socolissimo->l('No delivery information selected');
|
||||
}
|
||||
|
||||
header('Content-type: application/json');
|
||||
echo json_encode($result);
|
||||
exit(0);
|
||||
|
||||
?>
|
347
modules/__socolissimo/backward_compatibility/Context.php
Normal file
@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if ((bool)Configuration::get('PS_MOBILE_DEVICE'))
|
||||
require_once(_PS_MODULE_DIR_ . '/mobile_theme/Mobile_Detect.php');
|
||||
|
||||
// Retro 1.3, 'class_exists' cause problem with autoload...
|
||||
if (version_compare(_PS_VERSION_, '1.4', '<'))
|
||||
{
|
||||
// Not exist for 1.3
|
||||
class Shop extends ObjectModel
|
||||
{
|
||||
public $id = 1;
|
||||
public $id_shop_group = 1;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public static function getShops()
|
||||
{
|
||||
return array(
|
||||
array('id_shop' => 1, 'name' => 'Default shop')
|
||||
);
|
||||
}
|
||||
|
||||
public static function getCurrentShop()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
class Logger
|
||||
{
|
||||
public static function AddLog($message, $severity = 2)
|
||||
{
|
||||
$fp = fopen(dirname(__FILE__).'/../logs.txt', 'a+');
|
||||
fwrite($fp, '['.(int)$severity.'] '.Tools::safeOutput($message));
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Not exist for 1.3 and 1.4
|
||||
class Context
|
||||
{
|
||||
/**
|
||||
* @var Context
|
||||
*/
|
||||
protected static $instance;
|
||||
|
||||
/**
|
||||
* @var Cart
|
||||
*/
|
||||
public $cart;
|
||||
|
||||
/**
|
||||
* @var Customer
|
||||
*/
|
||||
public $customer;
|
||||
|
||||
/**
|
||||
* @var Cookie
|
||||
*/
|
||||
public $cookie;
|
||||
|
||||
/**
|
||||
* @var Link
|
||||
*/
|
||||
public $link;
|
||||
|
||||
/**
|
||||
* @var Country
|
||||
*/
|
||||
public $country;
|
||||
|
||||
/**
|
||||
* @var Employee
|
||||
*/
|
||||
public $employee;
|
||||
|
||||
/**
|
||||
* @var Controller
|
||||
*/
|
||||
public $controller;
|
||||
|
||||
/**
|
||||
* @var Language
|
||||
*/
|
||||
public $language;
|
||||
|
||||
/**
|
||||
* @var Currency
|
||||
*/
|
||||
public $currency;
|
||||
|
||||
/**
|
||||
* @var AdminTab
|
||||
*/
|
||||
public $tab;
|
||||
|
||||
/**
|
||||
* @var Shop
|
||||
*/
|
||||
public $shop;
|
||||
|
||||
/**
|
||||
* @var Smarty
|
||||
*/
|
||||
public $smarty;
|
||||
|
||||
/**
|
||||
* @ var Mobile Detect
|
||||
*/
|
||||
public $mobile_detect;
|
||||
|
||||
/**
|
||||
* @var boolean|string mobile device of the customer
|
||||
*/
|
||||
protected $mobile_device;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
global $cookie, $cart, $smarty, $link;
|
||||
|
||||
$this->tab = null;
|
||||
|
||||
$this->cookie = $cookie;
|
||||
$this->cart = $cart;
|
||||
$this->smarty = $smarty;
|
||||
$this->link = $link;
|
||||
|
||||
$this->controller = new ControllerBackwardModule();
|
||||
if (is_object($cookie))
|
||||
{
|
||||
$this->currency = new Currency((int)$cookie->id_currency);
|
||||
$this->language = new Language((int)$cookie->id_lang);
|
||||
$this->country = new Country((int)$cookie->id_country);
|
||||
$this->customer = new CustomerBackwardModule((int)$cookie->id_customer);
|
||||
$this->employee = new Employee((int)$cookie->id_employee);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->currency = null;
|
||||
$this->language = null;
|
||||
$this->country = null;
|
||||
$this->customer = null;
|
||||
$this->employee = null;
|
||||
}
|
||||
|
||||
$this->shop = new ShopBackwardModule();
|
||||
|
||||
if ((bool)Configuration::get('PS_MOBILE_DEVICE'))
|
||||
$this->mobile_detect = new Mobile_Detect();
|
||||
}
|
||||
|
||||
public function getMobileDevice()
|
||||
{
|
||||
if (is_null($this->mobile_device))
|
||||
{
|
||||
$this->mobile_device = false;
|
||||
if ($this->checkMobileContext())
|
||||
{
|
||||
switch ((int)Configuration::get('PS_MOBILE_DEVICE'))
|
||||
{
|
||||
case 0: // Only for mobile device
|
||||
if ($this->mobile_detect->isMobile() && !$this->mobile_detect->isTablet())
|
||||
$this->mobile_device = true;
|
||||
break;
|
||||
case 1: // Only for touchpads
|
||||
if ($this->mobile_detect->isTablet() && !$this->mobile_detect->isMobile())
|
||||
$this->mobile_device = true;
|
||||
break;
|
||||
case 2: // For touchpad or mobile devices
|
||||
if ($this->mobile_detect->isMobile() || $this->mobile_detect->isTablet())
|
||||
$this->mobile_device = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->mobile_device;
|
||||
}
|
||||
|
||||
protected function checkMobileContext()
|
||||
{
|
||||
return isset($_SERVER['HTTP_USER_AGENT'])
|
||||
&& (bool)Configuration::get('PS_MOBILE_DEVICE')
|
||||
&& !Context::getContext()->cookie->no_mobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a singleton context
|
||||
*
|
||||
* @return Context
|
||||
*/
|
||||
public static function getContext()
|
||||
{
|
||||
if (!isset(self::$instance))
|
||||
self::$instance = new Context();
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone current context
|
||||
*
|
||||
* @return Context
|
||||
*/
|
||||
public function cloneContext()
|
||||
{
|
||||
return clone($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int Shop context type (Shop::CONTEXT_ALL, etc.)
|
||||
*/
|
||||
public static function shop()
|
||||
{
|
||||
if (!self::$instance->shop->getContextType())
|
||||
return ShopBackwardModule::CONTEXT_ALL;
|
||||
return self::$instance->shop->getContextType();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Shop for Backward compatibility
|
||||
*/
|
||||
class ShopBackwardModule extends Shop
|
||||
{
|
||||
const CONTEXT_ALL = 1;
|
||||
|
||||
public $id = 1;
|
||||
public $id_shop_group = 1;
|
||||
|
||||
|
||||
public function getContextType()
|
||||
{
|
||||
return ShopBackwardModule::CONTEXT_ALL;
|
||||
}
|
||||
|
||||
// Simulate shop for 1.3 / 1.4
|
||||
public function getID()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get shop theme name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTheme()
|
||||
{
|
||||
return _THEME_NAME_;
|
||||
}
|
||||
|
||||
public function isFeatureActive()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Controller for a Backward compatibility
|
||||
* Allow to use method declared in 1.5
|
||||
*/
|
||||
class ControllerBackwardModule
|
||||
{
|
||||
/**
|
||||
* @param $js_uri
|
||||
* @return void
|
||||
*/
|
||||
public function addJS($js_uri)
|
||||
{
|
||||
Tools::addJS($js_uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $css_uri
|
||||
* @param string $css_media_type
|
||||
* @return void
|
||||
*/
|
||||
public function addCSS($css_uri, $css_media_type = 'all')
|
||||
{
|
||||
Tools::addCSS($css_uri, $css_media_type);
|
||||
}
|
||||
|
||||
public function addJquery()
|
||||
{
|
||||
if (_PS_VERSION_ < '1.5')
|
||||
$this->addJS(_PS_JS_DIR_.'jquery/jquery-1.4.4.min.js');
|
||||
elseif (_PS_VERSION_ >= '1.5')
|
||||
$this->addJS(_PS_JS_DIR_.'jquery/jquery-1.7.2.min.js');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Customer for a Backward compatibility
|
||||
* Allow to use method declared in 1.5
|
||||
*/
|
||||
class CustomerBackwardModule extends Customer
|
||||
{
|
||||
public $logged = false;
|
||||
/**
|
||||
* Check customer informations and return customer validity
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @param boolean $with_guest
|
||||
* @return boolean customer validity
|
||||
*/
|
||||
public function isLogged($with_guest = false)
|
||||
{
|
||||
if (!$with_guest && $this->is_guest == 1)
|
||||
return false;
|
||||
|
||||
/* Customer is valid only if it can be load and if object password is the same as database one */
|
||||
if ($this->logged == 1 && $this->id && Validate::isUnsignedId($this->id) && Customer::checkPassword($this->id, $this->passwd))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
24
modules/__socolissimo/backward_compatibility/Display.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class allow to display tpl on the FO
|
||||
*/
|
||||
class BWDisplay extends FrontController
|
||||
{
|
||||
// Assign template, on 1.4 create it else assign for 1.5
|
||||
public function setTemplate($template)
|
||||
{
|
||||
if (_PS_VERSION_ >= '1.5')
|
||||
parent::setTemplate($template);
|
||||
else
|
||||
$this->template = $template;
|
||||
}
|
||||
|
||||
// Overload displayContent for 1.4
|
||||
public function displayContent()
|
||||
{
|
||||
parent::displayContent();
|
||||
|
||||
echo Context::getContext()->smarty->fetch($this->template);
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
version = 0.4
|
55
modules/__socolissimo/backward_compatibility/backward.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/**
|
||||
* Backward function compatibility
|
||||
* Need to be called for each module in 1.4
|
||||
*/
|
||||
|
||||
// Get out if the context is already defined
|
||||
if (!in_array('Context', get_declared_classes()))
|
||||
require_once(dirname(__FILE__).'/Context.php');
|
||||
|
||||
// Get out if the Display (BWDisplay to avoid any conflict)) is already defined
|
||||
if (!in_array('BWDisplay', get_declared_classes()))
|
||||
require_once(dirname(__FILE__).'/Display.php');
|
||||
|
||||
// If not under an object we don't have to set the context
|
||||
if (!isset($this))
|
||||
return;
|
||||
else if (isset($this->context))
|
||||
{
|
||||
// If we are under an 1.5 version and backoffice, we have to set some backward variable
|
||||
if (_PS_VERSION_ >= '1.5' && isset($this->context->employee->id) && $this->context->employee->id)
|
||||
{
|
||||
global $currentIndex;
|
||||
$currentIndex = AdminController::$currentIndex;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
$this->context = Context::getContext();
|
||||
$this->smarty = $this->context->smarty;
|
35
modules/__socolissimo/backward_compatibility/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
101
modules/__socolissimo/classes/SCError.php
Normal file
@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__).'/../socolissimo.php');
|
||||
|
||||
// Inherit of Socolissimo to have acces to the module method and objet model method
|
||||
class SCError extends Socolissimo
|
||||
{
|
||||
// Const for better understanding
|
||||
const WARNING = 0;
|
||||
const REQUIRED = 1;
|
||||
|
||||
// Available error list
|
||||
private $errors_list = array();
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
// Get the parent stuff with Backward Compatibility
|
||||
parent::__construct();
|
||||
|
||||
$this->errors_list = array(
|
||||
// Error code returned by the ECHEC URL request (Required)
|
||||
SCError::REQUIRED => array(
|
||||
'001' => $this->l('FO id missing'),
|
||||
'002' => $this->l('Wrong FO id'),
|
||||
'003' => $this->l('Client access denied'),
|
||||
'004' => $this->l('Required fields missing'),
|
||||
'006' => $this->l('Missing signature'),
|
||||
'007' => $this->l('Wrong sign or number version'),
|
||||
'008' => $this->l('Wrong zip code'),
|
||||
'009' => $this->l('Wrong format of the Validation back url'),
|
||||
'010' => $this->l('Wrong format of the Failed back url'),
|
||||
'011' => $this->l('Invalid transaction number'),
|
||||
'012' => $this->l('Wrong format of the fees'),
|
||||
'015' => $this->l('App server unavailable'),
|
||||
'016' => $this->l('SGBD unavailable')
|
||||
),
|
||||
// Error code returned bu the Validation URL request (Warning)
|
||||
SCError::WARNING => array(
|
||||
'501' => $this->l('Mail field too long, trunked'),
|
||||
'502' => $this->l('Phone field too long, trunked'),
|
||||
'503' => $this->l('Name field too long, trunked'),
|
||||
'504' => $this->l('First name field too long, trunked'),
|
||||
'505' => $this->l('Social reason field too long, trunked'),
|
||||
'506' => $this->l('Floor field too long, trunked'),
|
||||
'507' => $this->l('Hall field too long, trunked'),
|
||||
'508' => $this->l('Locality field too long'),
|
||||
'509' => $this->l('Number and wording access field too long, trunked'),
|
||||
'510' => $this->l('Town field too long, trunked'),
|
||||
'511' => $this->l('Intercom field too long, trunked'),
|
||||
'512' => $this->l('Further Information field too long, trunked'),
|
||||
'513' => $this->l('Door code field too long, trunked'),
|
||||
'514' => $this->l('Door code field too long, trunked'),
|
||||
'515' => $this->l('Customer number too long, trunked'),
|
||||
'516' => $this->l('Transaction order too long, trunked'),
|
||||
'517' => $this->l('ParamPlus field too long, trunked'),
|
||||
|
||||
'131' => $this->l('Invalid civility, field ignored'),
|
||||
'132' => $this->l('Delay preparation is invalid, ignored'),
|
||||
'133' => $this->l('Invalid weight field, ignored'),
|
||||
|
||||
// Keep from previous dev (Personal error)
|
||||
'998' => $this->l('Invalid regenerated sign'),
|
||||
'999' => $this->l('Error occurred during shipping step.'),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return error type
|
||||
*
|
||||
* @param $number (integer or string)
|
||||
* @param bool $type (SCError::REQUIRED or SCError::WARNING)
|
||||
* @return mixed string|bool
|
||||
*/
|
||||
public function getError($number, $type = false)
|
||||
{
|
||||
$number = (string)trim($number);
|
||||
|
||||
if ($type === false || !isset($this->errors_list[$type]))
|
||||
$tab = $this->errors_list[SCError::REQUIRED] + $this->errors_list[SCError::WARNING];
|
||||
else
|
||||
$tab = $this->errors_list[$type];
|
||||
|
||||
return isset($tab[$number]) ? $tab[$number] : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the errors list.
|
||||
*
|
||||
* @param $errors
|
||||
* @param bool $type
|
||||
* @return bool
|
||||
*/
|
||||
public function checkErrors($errors, $type = false)
|
||||
{
|
||||
foreach($errors as $num)
|
||||
if (($str = $this->getError($num, $type)))
|
||||
return $str;
|
||||
return false;
|
||||
}
|
||||
}
|
278
modules/__socolissimo/classes/SCFields.php
Normal file
@ -0,0 +1,278 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__).'/SCError.php');
|
||||
|
||||
// Inherit of Socolissimo to have acces to the module method and objet model method
|
||||
class SCFields extends SCError
|
||||
{
|
||||
// Restriction
|
||||
const REQUIRED = 1;
|
||||
const NOT_REQUIRED = 2;
|
||||
const UNKNOWN = 3; // Not specified on the documentation
|
||||
const IGNORED = 4;
|
||||
const ALL = 5;
|
||||
|
||||
// Delivery type
|
||||
const HOME_DELIVERY = 0;
|
||||
const RELAY_POINT = 1;
|
||||
const API_REQUEST = 2;
|
||||
|
||||
public $context;
|
||||
|
||||
// List of the available restriction type
|
||||
public $restriction_list = array(
|
||||
SCFields::REQUIRED,
|
||||
SCFields::NOT_REQUIRED,
|
||||
SCFields::UNKNOWN,
|
||||
SCFields::IGNORED,
|
||||
SCFields::ALL
|
||||
);
|
||||
|
||||
// List of the available delivery type
|
||||
public $delivery_list = array(
|
||||
SCFields::HOME_DELIVERY => array('DOM', 'RDV'),
|
||||
SCFields::RELAY_POINT => array('BPR', 'A2P', 'MRL', 'CIT', 'ACP', 'CDI'),
|
||||
SCFields::API_REQUEST => array('API')
|
||||
);
|
||||
|
||||
// By default, use the home delivery
|
||||
public $delivery_mode = SCFields::HOME_DELIVERY;
|
||||
|
||||
// Available returned fields for HOME_DELIVERY and RELAY POINT, fields ordered.
|
||||
private $fields = array(
|
||||
SCFields::HOME_DELIVERY => array(
|
||||
'PUDOFOID' => SCFields::REQUIRED,
|
||||
'CENAME' => SCFields::REQUIRED,
|
||||
'DYPREPARATIONTIME' => SCFields::REQUIRED,
|
||||
'DYFORWARDINGCHARGES'=> SCFields::REQUIRED,
|
||||
'TRCLIENTNUMBER' => SCFields::UNKNOWN,
|
||||
'TRORDERNUMBER' => SCFields::UNKNOWN,
|
||||
'ORDERID' => SCFields::REQUIRED,
|
||||
'CECIVILITY' => SCFields::REQUIRED,
|
||||
'CEFIRSTNAME' => SCFields::REQUIRED,
|
||||
'CECOMPANYNAME' => SCFields::NOT_REQUIRED,
|
||||
'CEADRESS1' => SCFields::UNKNOWN,
|
||||
'CEADRESS2' => SCFields::UNKNOWN,
|
||||
'CEADRESS3' => SCFields::REQUIRED,
|
||||
'CEADRESS4' => SCFields::UNKNOWN,
|
||||
'CEZIPCODE' => SCFields::REQUIRED,
|
||||
'CETOWN' => SCFields::REQUIRED,
|
||||
'DELIVERYMODE' => SCFields::REQUIRED,
|
||||
'CEDELIVERYINFORMATION' => SCFields::UNKNOWN,
|
||||
'CEEMAIL' => SCFields::REQUIRED,
|
||||
'CEPHONENUMBER' => SCFields::NOT_REQUIRED,
|
||||
'CEDOORCODE1' => SCFields::UNKNOWN,
|
||||
'CEDOORCODE2' => SCFields::UNKNOWN,
|
||||
'CEENTRYPHONE' => SCFields::UNKNOWN,
|
||||
'TRPARAMPLUS' => SCFields::UNKNOWN,
|
||||
'TRADERCOMPANYNAME' => SCFields::UNKNOWN,
|
||||
'ERRORCODE' => SCFields::UNKNOWN,
|
||||
|
||||
// Error required if specific error exist (handle it has not required for now)
|
||||
'ERR_CENAME' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEFIRSTNAME' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CECOMPANYNAME' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS1' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS2' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS3' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS4' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CETOWN' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEDOORCODE1' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEDOORCODE2' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEENTRYPHONE' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEDELIVERYINFORMATION' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEEMAIL' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEPHONENUMBER' => SCFields::NOT_REQUIRED,
|
||||
'ERR_TRCLIENTNUMBER' => SCFields::NOT_REQUIRED,
|
||||
'ERR_TRORDERNUMBER' => SCFields::NOT_REQUIRED,
|
||||
'ERR_TRPARAMPLUS' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CECIVILITY' => SCFields::NOT_REQUIRED,
|
||||
'ERR_DYWEIGHT' => SCFields::NOT_REQUIRED,
|
||||
'ERR_DYPREPARATIONTIME' => SCFields::NOT_REQUIRED,
|
||||
'TRRETURNURLKO' => SCFields::REQUIRED,
|
||||
|
||||
'SIGNATURE' => SCFields::IGNORED
|
||||
),
|
||||
SCFields::RELAY_POINT => array(
|
||||
'PUDOFOID' => SCFields::REQUIRED,
|
||||
'CENAME' => SCFields::REQUIRED,
|
||||
'DYPREPARATIONTIME' => SCFields::REQUIRED,
|
||||
'DYFORWARDINGCHARGES' => SCFields::REQUIRED,
|
||||
'TRCLIENTNUMBER' => SCFields::UNKNOWN,
|
||||
'TRORDERNUMBER' => SCFields::UNKNOWN,
|
||||
'ORDERID' => SCFields::REQUIRED,
|
||||
'CECIVILITY' => SCFields::REQUIRED,
|
||||
'CEFIRSTNAME' => SCFields::REQUIRED,
|
||||
'CECOMPANYNAME' => SCFields::NOT_REQUIRED,
|
||||
'DELIVERYMODE' => SCFields::REQUIRED,
|
||||
'PRID' => SCFields::REQUIRED,
|
||||
'PRNAME' => SCFields::REQUIRED,
|
||||
'PRCOMPLADRESS' => SCFields::UNKNOWN,
|
||||
'PRADRESS1' => SCFields::REQUIRED,
|
||||
'PRADRESS2' => SCFields::UNKNOWN,
|
||||
'PRZIPCODE' => SCFields::REQUIRED,
|
||||
'PRTOWN' => SCFields::REQUIRED,
|
||||
'LOTACHEMINEMENT' => SCFields::UNKNOWN,
|
||||
'DISTRIBUTIONSORT' => SCFields::UNKNOWN,
|
||||
'VERSIONPLANTRI' => SCFields::UNKNOWN,
|
||||
'CEEMAIL' => SCFields::REQUIRED,
|
||||
'CEPHONENUMBER' => SCFields::REQUIRED,
|
||||
'TRPARAMPLUS' => SCFields::UNKNOWN,
|
||||
'TRADERCOMPANYNAME' => SCFields::UNKNOWN,
|
||||
'ERRORCODE' => SCFields::UNKNOWN,
|
||||
|
||||
// Error required if specific error exist (handle it has not required for now)
|
||||
'ERR_CENAME' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEFIRSTNAME' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CECOMPANYNAME' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS1' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS2' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS3' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEADRESS4' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CETOWN' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEDOORCODE1' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEDOORCODE2' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEENTRYPHONE' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEDELIVERYINFORMATION' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEEMAIL' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CEPHONENUMBER' => SCFields::NOT_REQUIRED,
|
||||
'ERR_TRCLIENTNUMBER' => SCFields::NOT_REQUIRED,
|
||||
'ERR_TRORDERNUMBER' => SCFields::NOT_REQUIRED,
|
||||
'ERR_TRPARAMPLUS' => SCFields::NOT_REQUIRED,
|
||||
'ERR_CECIVILITY' => SCFields::NOT_REQUIRED,
|
||||
'ERR_DYWEIGHT' => SCFields::NOT_REQUIRED,
|
||||
'ERR_DYPREPARATIONTIME' => SCFields::NOT_REQUIRED,
|
||||
'TRRETURNURLKO' => SCFields::REQUIRED,
|
||||
|
||||
'SIGNATURE' => SCFields::IGNORED
|
||||
),
|
||||
SCFields::API_REQUEST => array(
|
||||
'pudoFOId' => SCFields::REQUIRED,
|
||||
'ceName' => SCFields::NOT_REQUIRED,
|
||||
'dyPreparationTime' => SCFields::NOT_REQUIRED,
|
||||
'dyForwardingCharges' => SCFields::REQUIRED,
|
||||
'trClientNumber' => SCFields::NOT_REQUIRED,
|
||||
'trOrderNumber' => SCFields::NOT_REQUIRED,
|
||||
'orderId' => SCFields::REQUIRED,
|
||||
'numVersion' => SCFields::REQUIRED,
|
||||
'ceCivility' => SCFields::NOT_REQUIRED,
|
||||
'ceFirstName' => SCFields::NOT_REQUIRED,
|
||||
'ceCompanyName' => SCFields::NOT_REQUIRED,
|
||||
'ceAdress1' => SCFields::NOT_REQUIRED,
|
||||
'ceAdress2' => SCFields::NOT_REQUIRED,
|
||||
'ceAdress3' => SCFields::NOT_REQUIRED,
|
||||
'ceAdress4' => SCFields::NOT_REQUIRED,
|
||||
'ceZipCode' => SCFields::NOT_REQUIRED,
|
||||
'ceTown' => SCFields::NOT_REQUIRED,
|
||||
'ceEntryPhone' => SCFields::NOT_REQUIRED,
|
||||
'ceDeliveryInformation' => SCFields::NOT_REQUIRED,
|
||||
'ceEmail' => SCFields::NOT_REQUIRED,
|
||||
'cePhoneNumber' => SCFields::NOT_REQUIRED,
|
||||
'ceDoorCode1' => SCFields::NOT_REQUIRED,
|
||||
'ceDoorCode2' => SCFields::NOT_REQUIRED,
|
||||
'dyWeight' => SCFields::NOT_REQUIRED,
|
||||
'trFirstOrder' => SCFields::NOT_REQUIRED,
|
||||
'trParamPlus' => SCFields::NOT_REQUIRED,
|
||||
'trReturnUrlKo' => SCFields::REQUIRED,
|
||||
'trReturnUrlOk' => SCFields::NOT_REQUIRED
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
public function __construct($delivery = 'DOM')
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
include(dirname(__FILE__).'/../backward_compatibility/backward.php');
|
||||
|
||||
$this->setDeliveryMode($delivery);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the field exist for Socolissimp
|
||||
*
|
||||
* @param $name
|
||||
* @return bool
|
||||
*/
|
||||
public function isAvailableFields($name)
|
||||
{
|
||||
return array_key_exists(strtoupper(trim($name)), $this->fields[$this->delivery_mode]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get field for a given restriction
|
||||
*
|
||||
* @param int $type
|
||||
* @return mixed
|
||||
*/
|
||||
public function getFields($restriction = SCFields::ALL)
|
||||
{
|
||||
$tab = array();
|
||||
|
||||
if (in_array($restriction, $this->restriction_list))
|
||||
{
|
||||
foreach($this->fields[$this->delivery_mode] as $key => $value)
|
||||
if ($value == $restriction || $restriction == SCFields::ALL)
|
||||
$tab[] = $key;
|
||||
}
|
||||
|
||||
return $tab;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the fields is required
|
||||
*
|
||||
* @param $name
|
||||
* @return bool
|
||||
*/
|
||||
public function isRequireField($name)
|
||||
{
|
||||
return (in_array(strtoupper($name), $this->fields[$this->delivery_mode]) &&
|
||||
$this->fields[$this->delivery_mode] == SCFields::REQUIRED);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set delivery mode
|
||||
*
|
||||
* @param $delivery
|
||||
* @return bool
|
||||
*/
|
||||
public function setDeliveryMode($delivery)
|
||||
{
|
||||
if ($delivery)
|
||||
{
|
||||
foreach($this->delivery_list as $delivery_mode => $list)
|
||||
{
|
||||
if (in_array($delivery, $list))
|
||||
{
|
||||
$this->delivery_mode = $delivery_mode;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the returned key is proper to the generated one.
|
||||
*
|
||||
* @param $key
|
||||
* @param $params
|
||||
* @return bool
|
||||
*/
|
||||
public function isCorrectSignKey($sign, $params)
|
||||
{
|
||||
$tab = array();
|
||||
foreach($this->fields[$this->delivery_mode] as $key => $value)
|
||||
{
|
||||
if ($value == SCFields::IGNORED)
|
||||
continue;
|
||||
|
||||
$key = trim($key);
|
||||
if (isset($params[$key]))
|
||||
$tab[$key] = $params[$key];
|
||||
}
|
||||
return ($sign == $this->generateKey($tab));
|
||||
}
|
||||
}
|
27
modules/__socolissimo/cron.php
Executable file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
if(isset($_SERVER['REMOTE_ADDR'])) exit;
|
||||
include(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
|
||||
$context = stream_context_create(array(
|
||||
'http' => array(
|
||||
'timeout' => 5
|
||||
)
|
||||
));
|
||||
|
||||
$status = trim((string) file_get_contents('http://ws.colissimo.fr/supervision-pudo/supervision.jsp', 0, $context));
|
||||
|
||||
if(empty($status) || $status == '[KO]') {
|
||||
Db::getInstance()->Execute('
|
||||
UPDATE `'._DB_PREFIX_.'carrier`
|
||||
SET `active` = 1
|
||||
WHERE `name` = "'.pSQL(Configuration::get('SOCOLISSIMO_FALLBACK')).'"
|
||||
AND `deleted` = 0
|
||||
');
|
||||
} else {
|
||||
Db::getInstance()->Execute('
|
||||
UPDATE `'._DB_PREFIX_.'carrier`
|
||||
SET `active` = 0
|
||||
WHERE `name` = "'.pSQL(Configuration::get('SOCOLISSIMO_FALLBACK')).'"
|
||||
AND `deleted` = 0
|
||||
');
|
||||
}
|
92
modules/__socolissimo/de.php
Normal file
@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>ajax_607e1d854783c8229998ac2b5b6923d3'] = 'Token ungültig';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9e13e80360ceb625672531275f01ec1f'] = 'Bieten Sie Ihren Kunden unterschiedliche Liefermethoden mit LaPoste an.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = '\'Versandzone(n)\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = '\'Versandgruppe\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = '\'bester Versanddients\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = '\'Versandpreis\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = '\'Id FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = '\'Schlüssel\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = '\'URL So\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'muss konfiguriert sein, um dieses Modul richtig zu nutzen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_94c614a9df45ea1fcd27b15b7d6f3e67'] = 'Ungültiger Schlüssel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_90a5cb3d07bb39bbd4b76f7f9a0d7947'] = 'Ein Fehler ist beim Abschnitt Versand aufgetreten';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_70b2e65f0f2aabf3e2c58d70cf1e1e9a'] = 'Login FO fehlt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2b639b851983a24bc12358523861c7ff'] = 'Login FO falsch';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ca12228b5ad636c637425a086fe0092'] = 'Kunden unberechtigt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0b1d0c0a00cc2727fcd77902867e3641'] = 'Pflichtfeld fehlt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fa419073252af9d022afe65dccbb34a2'] = 'Fehlende Signatur';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fca3fbced675f75182786525bf4706dc'] = 'Ungültige Signatur';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d14afc3f67d2457d29f0aa0db98e2c9d'] = 'Postleitzahl ungültig';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f9733e52e8841f1e45d015d5af5e8655'] = 'Falsches URL-Format zurück Bestätigung';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_417434a4e55adbc67c9c391902cea7f3'] = 'Falsches URL-Format zurück Fehler';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_140c34f0b21b932e34d11575509d093b'] = 'Ungültige Transaktions-ID';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_28ee1015b475a3a70613ea9c98d712b6'] = 'Format falsch Versandkosten';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_afa50e8b2fc14bf578331b2b8e98179d'] = 'Socolissimo Server nicht verfügbar';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Beschreibung';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'SoColissimo ist ein Service von La Poste, der Ihren Käufern 5 Zustellungsarten anbietet';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6cefaa978ccec960693d10cefeb2c2bf'] = 'Nach Hause';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_46b7627e5f130e33f007ae9d430efe84'] = 'Nach Hause nach Terminvereinbarung';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_36b6babbab9524441a49cc7c6e2bbbfa'] = 'zum Cityssimo Abholstützpunkt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_deaaece9e88f4cfdf1f72c6df6b0a52a'] = 'In ihr Büro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2bb98ed92a6546e5adfee27046c2c0df'] = 'Zu ihrem Händler';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Dieses Modul ist kostenlos und ermöglicht Ihnen das Aktivieren dieses Angebot in Ihrem Shop.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Dokumentation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Wichtig';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Um Ihr SoColissimo-Konto zu eröffnen, kontaktieren Sie bitte \"La Poste\" unter dieser Rufnummer: 3634 (Französische Telefonnummer)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'ID So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'Benutzer-Id für das SoColissimo Backoffice.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Schlüssel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Sicherheitsschlüssel für das SoColissimo Backoffice.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Vorbereitungszeit';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'Tag (e)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b503bab0c9a43c25045cb102487724af'] = 'Durchschnittliche Zeit der Sendungsvorbereitung.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b1076b08727c4e252184a390e16668d7'] = 'Die durchschnittliche Zeit muss die gleiche sein im ColiPoste Back Office.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a25eac9fbba5c5aace5aa74ac02fabae'] = 'Mehraufwendungen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0dbced3ca25b864482dd16e405c0d762'] = 'Zusätzliche Kosten bei Terminvereinbarungen.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_da3291084cc788d52c68d1dd5cc98718'] = 'Zusätzliche Kosten müssen die gleichen im ColiPoste Back Office sein.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3d9f139daab1faaf99dd7bd5b5c966de'] = 'Seien Sie SEHR VORSICHTIG mit diesen Einstellungen, Änderungen können zu einer Fehlfunktion des Moduls führen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'Url So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'URL des SoColissimo Backoffice.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Aktiviert';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Deaktiviert';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_678f3f992afdb9f6e90cd36497ea76a1'] = 'Wenn Sie diese Option wählen, wird socolissimo in einer fancybox angezeigt.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Kontrolle';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Verfügbarkeit von Service SoColissimo erlauben oder nicht erlauben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'URL Kontrolle';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_af688489282270bcd9e3399db85e30df'] = 'Die Überwachung der URL wird für die Verfügbarkeit des socolissimo Service benötigt. Es ist nicht ratsam diese zu deaktivieren.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Speichern';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Information';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Hier sind zwei Adressen, die Sie in Ihrem Back Office SoColissimo ausfüllen müssen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'Bestätigungs-URL';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'Rückgabe-URL';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'ID SO nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Key SO nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Vorbereitungszeit nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Ungültige Vorbereitungszeit';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82b66af7b110e9bc75fd65479786e313'] = 'Mehraufwendungen nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b2bf2a7c883ffae1b7b412d65a41984'] = 'Ungültige Mehraufwendungen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Konfiguration aktualisiert';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Kann Einstellungen nicht speichern';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Versandmodus auswählen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Versadmodus bearbeiten';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Klicken Sie auf eine Liefermethode, um SoColissimo auszuwählen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Versandmodus';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Kunde';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Firma';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'E-Mail-Adresse';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Kundenadresse';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Andere';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Tür-Nr.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Liefer-Informationen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'Stützpunkt-ID';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Abholstützpunkt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Adresse Abholstützpunkt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'E-Mail';
|
4
modules/__socolissimo/en.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
13
modules/__socolissimo/error.tpl
Normal file
@ -0,0 +1,13 @@
|
||||
{if isset($error_list)}
|
||||
<div class="alert error">
|
||||
{l s='Socolissimo errors list:' mod='socolissimo'}
|
||||
<ul style="margin-top: 10px;">
|
||||
{foreach from=$error_list item=current_error}
|
||||
<li>{$current_error}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($so_url_back)}
|
||||
<a href="{$so_url_back}step=2&cgv=1" class="button_small" title="{l s='Back' mod='socolissimo'}">Back</a>
|
||||
{/if}
|
77
modules/__socolissimo/es.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'La Poste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9e13e80360ceb625672531275f01ec1f'] = 'Proponga a sus clientes cinco modos de entraga a través de la Poste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = 'Zona(s) transportista';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = 'Grupo del transportista';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = 'Franja del transportista';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = 'Precio de franja';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = 'Identificante FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = 'Clave de encriptación\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = 'URL de la administración de SoColissimo\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'deben indicarse para funcionar correctamente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Descripción';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'SoColissimo es un servicio propuesto Por La Poste, que le permite proponer a sus compradores cinco modos de entrega:';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6cefaa978ccec960693d10cefeb2c2bf'] = 'Entrega a domicilio';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_46b7627e5f130e33f007ae9d430efe84'] = 'Entrega a domicilio previa cita entre las 17h y las 21h30';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_36b6babbab9524441a49cc7c6e2bbbfa'] = 'Entrega en uno de los 31 espacios Cityssimo, 7/7 y 24h/24';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_deaaece9e88f4cfdf1f72c6df6b0a52a'] = 'Entrega en uno de los 10.000 oficinas de Correos que elijan';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2bb98ed92a6546e5adfee27046c2c0df'] = 'Entrega en uno de los numerosos puntos de recogida en partenariado con La Poste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Este módulo es totalmente gratuito y le permite activar dicha oferta en su tienda.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Documentación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuración';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Importante';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Para abrir una cuenta SoColissimo, póngase en contacto con \"La Poste\" a través de 3634';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'Identificante FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'Usuario So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Clave de encriptación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Clave de encriptación So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Tiempo de preparación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'día(s)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b503bab0c9a43c25045cb102487724af'] = 'Plazo medio de preparación de sus pedidos';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b1076b08727c4e252184a390e16668d7'] = 'El plazo de preparación de pedido debe ser idéntico al indicado en Back Office ColiPoste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a25eac9fbba5c5aace5aa74ac02fabae'] = 'Coste adicional';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0dbced3ca25b864482dd16e405c0d762'] = 'Coste adicional aplicable a la entrega a domicilio previa cita';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_da3291084cc788d52c68d1dd5cc98718'] = 'El coste adicional debe ser idéntico al indicado en el Back Office ColiPoste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3d9f139daab1faaf99dd7bd5b5c966de'] = 'Tenga cuidado con estos parámetros, su modificación puede provocar un disfuncionamiento del módulo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'Dirección FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'URL de la administración de So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Activado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Desactivado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_678f3f992afdb9f6e90cd36497ea76a1'] = 'Si selecciona esta opcion, la pagina de socolissimo se mostrara en fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Supervisión';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Autorizar o no la comprobación de la disponiblidad de los servicios SoColissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'Dirección de comprobación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_af688489282270bcd9e3399db85e30df'] = 'La dirección URL de supervisión asegura la disponibilidad del servicio socolissimo. No se recomienda desactivarla: ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Guardar';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Información';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Aquí tiene las dos direcciones que debe indicar en su Back-Office Coliposte';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'URL de validación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'URL de devolución';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'Identificante FO no especificado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Clave de encriptación no especificada';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Tiempo de preparación no especificado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Tiempo de preparación no válido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82b66af7b110e9bc75fd65479786e313'] = 'Coste adicional no especificado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b2bf2a7c883ffae1b7b412d65a41984'] = 'Coste adicional no válido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuración actualizada';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Imposible guardar los parámetros';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Seleccione modo de envío';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Editar el modo de envío';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Para elegir SoColissimo, marque un modo en entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Modo de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Empresa';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'Dirección email';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tel.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Dirección del cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Otros';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Código acceso portal';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Datos de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'ID del punto de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Punto de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Dirección del punto de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'Email';
|
132
modules/__socolissimo/fr.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>ajax_607e1d854783c8229998ac2b5b6923d3'] = 'Jeton de sécurité invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>ajax_67933de20c945d1759ab891fb9dc1fd7'] = 'Aucune information de livraison sélectionnée';
|
||||
$_MODULE['<{socolissimo}prestashop>error_58d256f5c88c3a887c1c3b8c9ee76f4d'] = 'Liste des erreurs SoColissimo :';
|
||||
$_MODULE['<{socolissimo}prestashop>error_0557fa923dcee4d0f86b1409f5c2167f'] = 'Retour';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9e13e80360ceb625672531275f01ec1f'] = 'Proposez à vos clients 5 modes de livraison via La Poste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = '\'Zone(s) du transporteur\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = '\'Groupe du transporteur\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = '\'Tranche(s) du transporteur\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = '\'Prix de tranche\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = '\'Identifiant FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = '\'Clé de cryptage\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = '\'Url de l\'administration de SoColissimo\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'doivent être renseignés pour fonctionner correctement';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_214157b085c3957c0e8974257eedbcb1'] = 'Étape préliminaire';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c3cf3d1395a847a6917a3baaeee685a'] = 'Afin d\'assurer le fonctionnement correct du module, veuillez compléter ce formulaire.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_decbead7a960de4b67bdabfecf2d7563'] = 'Les champs suivis d\'une * sont obligatoires.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1f8261d17452a959e013666c5df45e07'] = 'Numéro de téléphone';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5563a1ac0ae82c98a8f6f7982733137'] = 'Exemple : 0144183004';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_642d3ba5db8b57e006584b544e490ec7'] = 'Code postal';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_559e4b3499d82515cbe9e9d9b4281d98'] = 'Exemple : 92300';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_188f19afec76e0a3a1336a14ae8b455a'] = 'Nombre moyen de colis';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_043950cb479c3260ade8eeece54b5409'] = '< 250 colis / mois';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b208a9315eacba80fb231724ea47e83'] = '> 250 colis / mois';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_60adc330494a66981dec101c81e27f03'] = 'Siret';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_70d9be9b139893aa6c69b5e77e614311'] = 'Confirmer';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a54c596b03b4a6857bbf031c6045f57e'] = 'Demandez-moi plus tard';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea4788705e6873b424c65e91c2846b19'] = 'Annuler';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Description';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'So Colissimo est un service proposé par La Poste, qui vous permet d\'offrir à vos acheteurs 5 modes de livraison :';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6cefaa978ccec960693d10cefeb2c2bf'] = 'Livraison à domicile';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_46b7627e5f130e33f007ae9d430efe84'] = 'Livraison à domicile sur rendez-vous le soir entre 17h et 21h30';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_36b6babbab9524441a49cc7c6e2bbbfa'] = 'Livraison dans l\'un des 31 espaces Cityssimo, 7j/7 et 24h/24';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_deaaece9e88f4cfdf1f72c6df6b0a52a'] = 'Livraison dans l\'un des 10 000 bureaux de poste de leur choix';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2bb98ed92a6546e5adfee27046c2c0df'] = 'Livraison dans l\'un des nombreux point de retrait du réseau partenaire La Poste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Ce module est gratuit et vous permet d\'activer cette offre sur votre magasin.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Documentation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuration';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Important';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Pour ouvrir un compte SoColissimo, veuillez contacter La Poste à ce numéro : 3634.\"';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'Identifiant FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'Utilisateur du back-office So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Clé de cryptage';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Clé de cryptage du back-office So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Temps de préparation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'Jour(s)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b503bab0c9a43c25045cb102487724af'] = 'Délai moyen de préparation de vos commandes.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b1076b08727c4e252184a390e16668d7'] = 'Le délai de préparation de commande doit être identique à celui saisi dans le back-office ColiPoste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a25eac9fbba5c5aace5aa74ac02fabae'] = 'Surcoût';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0dbced3ca25b864482dd16e405c0d762'] = 'Surcoût à appliquer pour la livraison à domicile sur rendez-vous.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_da3291084cc788d52c68d1dd5cc98718'] = 'Le \"surcoût\" doit être identique à celui saisi dans le back-office ColiPoste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3d9f139daab1faaf99dd7bd5b5c966de'] = 'Soyez très prudent avec ces paramètres, le changement peut provoquer un dysfonctionnement du module.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'Adresse FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'URL de l\'administration de So Colissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Activé';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Désactivé';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_678f3f992afdb9f6e90cd36497ea76a1'] = 'Si vous activez cette option, la page SoColissimo sera affichée dans une fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Supervision';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Autoriser ou non la vérification de la disponibilité des services SoColissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'Adresse de vérification';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_af688489282270bcd9e3399db85e30df'] = 'L\'adresse de surveillance permet de s\'assurer de la disponibilité du service SoColissimo. Il n\'est pas conseillé de la désactiver.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Information';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Voici les deux adresses que vous devez renseigner dans votre back-office Coliposte';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'Adresse web de validation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'Adresse web de retour';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'Identifiant FO non spécifié';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Clé de cryptage non spécifiée';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Temps de préparation non spécifié';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Temps de préparation invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82b66af7b110e9bc75fd65479786e313'] = 'Surcoût non spécifié';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b2bf2a7c883ffae1b7b412d65a41984'] = 'Surcoût invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuration mise à jour';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Impossible de sauvegarder les paramètres';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Choisir un mode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Modifier le mode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Pour choisir SoColissimo, cochez une méthode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Mode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Client';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Entreprise';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'Adresse e-mail';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tél';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Adresse du client';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Autre';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Code de la porte';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Information de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'ID du point de retrait';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Point de retrait';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Adresse du point de retrait';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'E-mail';
|
||||
$_MODULE['<{socolissimo}prestashop>validation_57832417838cf085221e39f83c147a5d'] = 'La clé est requise par SoColissimo :';
|
||||
$_MODULE['<{socolissimo}prestashop>validation_befec70964837a08794ca1b092471d83'] = 'Code d\'erreur :';
|
||||
$_MODULE['<{socolissimo}prestashop>validation_5386b25ee894102717d5fb2bdd836283'] = 'Impossible de mettre le panier à jour. Veuillez de nouveau effectuer votre sélection';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_09456f1fe3dbf4b7bbc3281e6cfcce8f'] = 'L\'ID FO est manquant';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_d157bc2bca42ee803c4d5682833447e8'] = 'Mauvais ID FO';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_078d62fe16fd18fb1290b7eddd5c692e'] = 'L\'accès client a été refusé';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_9618dc6fbd50a810162f28a1e7b67729'] = 'Des champs requis sont manquants';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_fa419073252af9d022afe65dccbb34a2'] = 'Signature manquante';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_f6dcc797fd0cc9653ff0526085364b97'] = 'Mauvais caractère (signe) ou numéro de version';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_d49266fa5f76d20cfc6dad2d716cd16a'] = 'Mauvais code postal';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_3037505be33ffe564f6b6f278ee6b536'] = 'Mauvais format d\'URL de retour en cas de succès';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_713ba29efae98468c7f9b0d541f3370e'] = 'Mauvais format d\'URL de retour en cas d\'échec';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_7d6b1ffe78c8653512bdc1a8649984ce'] = 'Numéro de transaction invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_538d742b2390bdad765c60189627b401'] = 'Mauvais format pour les frais';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_4ec29e1c297cb4d75e223ac54d9c691c'] = 'Serveur applicatif non disponible';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_7d5c0ce28ebf1da037f2b99d373a0203'] = 'Base de données non disponible';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_23f79be9088c762ea0d07bd42a8ec041'] = 'Champ E-mail trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_bce95f9ec4ce6d42936e49825abe0839'] = 'Champ Téléphone trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_5d97ad530e1a82bbd84063ead2b316ef'] = 'Champ Nom trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_a9445019d3028ea49f40cc3dd1ee2e28'] = 'Champ Prénom trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_1297e86f1200d07abab150c737d790e7'] = 'Champ Raison Sociale trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_2bc611d9711c39c122814ad29b38e8ac'] = 'Champ Etage trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_602679b331c4bd70d5694ffff2983d03'] = 'Champ Hall trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_a13367e207d18d6c69a3a5011ca891d2'] = 'Champ Localité trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_bff61d5e6ec4a9971dd99ba861ae3a31'] = 'Champ Numéro et Voie trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_c3a34c592652c707ec12678de049b132'] = 'Champ Ville trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_96a135b97708f797933c08fdedf4dd30'] = 'Champ Intercom trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_b1d27c402a970a7d586ffacd1bb93105'] = 'Champ Autres Informations trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_5bcb093de475128e5be26de510b2c993'] = 'Champ Code Porte trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_4380c2fd3a1cb3774b16bca5dd644416'] = 'Champ ID client trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_058a8646fef2ea3ba2151ec7e59edffa'] = 'Champ Num/Transaction de commande trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_afa8e0d032a3f22ca4aebe1ef0127c7b'] = 'Champ ParamPlus trop long, ce champ a été tronqué';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_ba5991f31d1d97136f09279e31fa8a9e'] = 'Civilité invalide, ce champ a été ignoré';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_9bc9c0654d7347d956f757922119e835'] = 'Délai de préparation invalide, ce champ a été ignoré';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_e66276f222aee14c74f5456bacf4a4a8'] = 'Poids invalide, ce champ a été ignoré';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_3d9dd14d0701cb0b17ea4554d2446ad8'] = 'Caractère (signe) regénéré invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>scerror_90a5cb3d07bb39bbd4b76f7f9a0d7947'] = 'Une erreur est survenue lors de l\'étape de livraison.';
|
35
modules/__socolissimo/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
77
modules/__socolissimo/it.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9e13e80360ceb625672531275f01ec1f'] = 'Offri ai tuoi clienti diverse modalità di consegna LaPoste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = '\'Zona/e del corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = '\'Gruppo Corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = '\'Fascia/e del corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = '\'Prezzo consegna corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = '\'ID FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = '\'Chiave\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = '\'Url So\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'deve essere configurato per utilizzare questo modulo correttamente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Descrizione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'SoColissimo è un servizio offerto da La Poste, che permette di offrire all\'acquirente 5 modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6cefaa978ccec960693d10cefeb2c2bf'] = 'A casa';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_46b7627e5f130e33f007ae9d430efe84'] = 'A casa com appuntamenti';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_36b6babbab9524441a49cc7c6e2bbbfa'] = 'Nello spazio Cityssimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_deaaece9e88f4cfdf1f72c6df6b0a52a'] = 'Nel loro ufficio postale';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2bb98ed92a6546e5adfee27046c2c0df'] = 'Nel loro punto di ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Questo modulo è gratuito e permette di attivare questa offerta nel tuo negozio.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Documentazione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Importante';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Per aprire il tuo account SoColissimo, si prega di contattare \"La Poste\" a questo numero telefonico: 3634 (numero di telefono francese)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'ID So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'ID utente per back office SoColissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Chiave';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Chiave sicura per back office SoColissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Tempo di preparazione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'Giorno/i';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b503bab0c9a43c25045cb102487724af'] = 'Tempo medio di preparazione del materiale.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b1076b08727c4e252184a390e16668d7'] = 'Tempo medio deve essere lo stesso del ColiPoste Back Office.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a25eac9fbba5c5aace5aa74ac02fabae'] = 'Sovraccosto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0dbced3ca25b864482dd16e405c0d762'] = 'Costo aggiuntivo se consegna su appuntamento.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_da3291084cc788d52c68d1dd5cc98718'] = 'Costo aggiuntivo deve essere lo stesso del ColiPoste Back Office.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3d9f139daab1faaf99dd7bd5b5c966de'] = 'Fare MOLTA ATTENZIONE con queste impostazioni, il cambiamento può causare un malfunzionamento del modulo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'URL So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'URL del back office SoColissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Attivato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disattivato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_678f3f992afdb9f6e90cd36497ea76a1'] = 'Se si attiva questa opzione, la pagina di socolissimo verrà visualizzata in una fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Supervisione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Autorizza o meno la verifica di disponibilità dei servizi di SoColissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'Supervisione Url';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_af688489282270bcd9e3399db85e30df'] = 'L\'URL di supervisione è quello di garantire la disponibilità del servizio socolissimo. Non è consigliabile ai disabili.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Salva';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Informazioni';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Qui ci sono due indirizzi che è necessario compilare nel tuo Back Office SoColissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'Convalida degli URL';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'Ritorno url';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'ID SO non specificato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Chiave SO non specificata';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Tempo di preparazione non specificato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Tempo di preparazione non valido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82b66af7b110e9bc75fd65479786e313'] = 'sovraccosto non specificato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b2bf2a7c883ffae1b7b412d65a41984'] = 'Sovraccosto non valido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configurazione aggiornata';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Impossibile salvare le impostazioni';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Selezionare la modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Modifica modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Per scegliere SoColissimo, spunta un metodo di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Società';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'Indirizzo e-mail';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Indirizzo del cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Altri';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Codice della porta';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Informazioni di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'ID punto ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Punto di ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Indirizzo punto di ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'E-mail';
|
BIN
modules/__socolissimo/logo.gif
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
modules/__socolissimo/logo.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
70
modules/__socolissimo/redirect.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2010 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author Prestashop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2010 Prestashop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registred Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once('../../config/config.inc.php');
|
||||
require_once(_PS_ROOT_DIR_.'/init.php');
|
||||
require_once(dirname(__FILE__).'/classes/SCFields.php');
|
||||
|
||||
$so = new SCfields('API');
|
||||
|
||||
$fields = $so->getFields();
|
||||
|
||||
// Build back the fields list for SoColissimo, gift infos are send using the JS
|
||||
$inputs = array();
|
||||
foreach($_GET as $key => $value)
|
||||
if (in_array($key, $fields))
|
||||
$inputs[$key] = Tools::getValue($key);
|
||||
|
||||
$param_plus = array(
|
||||
// Get the data set before
|
||||
Tools::getValue('trParamPlus'),
|
||||
Tools::getValue('gift'),
|
||||
Tools::getValue('gift_message')
|
||||
);
|
||||
|
||||
$inputs['trParamPlus'] = implode('|', $param_plus);
|
||||
// Add signature to get the gift and gift message in the trParamPlus
|
||||
$inputs['signature'] = $so->generateKey($inputs);
|
||||
|
||||
$onload_script = 'parent.$.fancybox.close();';
|
||||
if (Tools::isSubmit('first_call'))
|
||||
$onload_script = 'document.getElementById(\'socoForm\').submit();';
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
|
||||
</head>
|
||||
<body onload="<?php echo $onload_script; ?>">
|
||||
<form id="socoForm" name="form" action="<?php echo Configuration::get('SOCOLISSIMO_URL'); ?>" method="POST">
|
||||
<?php
|
||||
foreach($inputs as $key => $val)
|
||||
echo '<input type="hidden" name="'.$key.'" value="'.$val.'"/>';
|
||||
?>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
BIN
modules/__socolissimo/socolissimo.jpg
Normal file
After Width: | Height: | Size: 7.9 KiB |
1055
modules/__socolissimo/socolissimo.php
Normal file
127
modules/__socolissimo/socolissimo_carrier.tpl
Normal file
@ -0,0 +1,127 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
|
||||
<a href="modules/socolissimo/redirect.php?{$serialsInput|escape:'htmlall':'UTF-8'}" class="iframe" style="display:none" id="soLink"></a>
|
||||
{if isset($opc) && $opc}
|
||||
<script type="text/javascript">
|
||||
var opc = true;
|
||||
</script>
|
||||
{else}
|
||||
<script type="text/javascript">
|
||||
var opc = false;
|
||||
</script>
|
||||
{/if}
|
||||
{if isset($already_select_delivery) && $already_select_delivery}
|
||||
<script type="text/javascript">
|
||||
var already_select_delivery = true;
|
||||
</script>
|
||||
{else}
|
||||
<script type="text/javascript">
|
||||
var already_select_delivery = false;
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
var post = '';
|
||||
|
||||
{foreach from=$inputs item=input key=name name=myLoop}
|
||||
post += "{$name|escape:'htmlall':'UTF-8'}={$input|strip_tags|addslashes}&"
|
||||
{/foreach}
|
||||
{literal}
|
||||
|
||||
$('#soLink').fancybox({
|
||||
'width' : 1000,
|
||||
'height' : 700,
|
||||
'autoScale' : false,
|
||||
'centerOnScroll' : true,
|
||||
'autoDimensions' : false,
|
||||
'transitionIn' : 'none',
|
||||
'transitionOut' : 'none',
|
||||
'hideOnOverlayClick' : false,
|
||||
'hideOnContentClick' : false,
|
||||
'showCloseButton' : false,
|
||||
'showIframeLoading' : true,
|
||||
'enableEscapeButton' : false,
|
||||
'type' : 'iframe',
|
||||
onClosed : function() {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseDir+'/modules/socolissimo/ajax.php',
|
||||
async: false,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
data: 'ajax=true',
|
||||
success: function(jsonData)
|
||||
{
|
||||
if (jsonData.result)
|
||||
$('#form').submit();
|
||||
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
alert('TECHNICAL ERROR\nDetails:\nError thrown: ' + XMLHttpRequest + '\n' + 'Text status: ' + textStatus);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('input[name=id_carrier]').change(function() {
|
||||
so_click();
|
||||
});
|
||||
so_click();
|
||||
});
|
||||
function so_click()
|
||||
{
|
||||
if ($('#id_carrier{/literal}{$id_carrier}{literal}').is(':not(:checked)'))
|
||||
$('[name=processCarrier]').unbind('click').click( function () {
|
||||
return true;
|
||||
});
|
||||
else if (opc)
|
||||
{
|
||||
if (!already_select_delivery)
|
||||
$("#soLink").trigger("click");
|
||||
else if (!$('#edit_socolissimo').length)
|
||||
{
|
||||
$('#id_carrier{/literal}{$id_carrier}{literal}').parent().prepend('<a style="margin-left:5px;" id="edit_socolissimo" href="#" onclick="$(\'#soLink\').trigger(\'click\');"><img src="img/admin/edit.gif"></a>');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('[name=processCarrier]').unbind('click').click(function () {
|
||||
if (acceptCGV())
|
||||
$("#soLink").trigger("click");
|
||||
return false;
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
{foreach from=$inputs item=input key=name name=myLoop}
|
||||
<input type="hidden" name="{$name|escape:'htmlall':'UTF-8'}" value="{$input|strip_tags|addslashes}"/>
|
||||
{/foreach}
|
36
modules/__socolissimo/socolissimo_error.tpl
Normal file
@ -0,0 +1,36 @@
|
||||
{*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
$(document).ready(function(){
|
||||
{/literal}
|
||||
{foreach from=$ids item=id}
|
||||
{literal}$($('#id_carrier{/literal}{$id}{literal}').parent().parent()).remove();{/literal}
|
||||
{/foreach}
|
||||
{literal}
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
208
modules/__socolissimo/socolissimo_fancybox.tpl
Normal file
@ -0,0 +1,208 @@
|
||||
{*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<style type="text/css">
|
||||
.soBackward_compat_tab {literal}{ text-align: center; }{/literal}
|
||||
.soBackward_compat_tab a {literal}{ margin: 10px; }{/literal}
|
||||
</style>
|
||||
|
||||
<a href="#" style="display:none" id="soLink"></a>
|
||||
{if isset($opc) && $opc}
|
||||
<script type="text/javascript">
|
||||
var opc = true;
|
||||
</script>
|
||||
{else}
|
||||
<script type="text/javascript">
|
||||
var opc = false;
|
||||
</script>
|
||||
{/if}
|
||||
{if isset($already_select_delivery) && $already_select_delivery}
|
||||
<script type="text/javascript">
|
||||
var already_select_delivery = true;
|
||||
</script>
|
||||
{else}
|
||||
<script type="text/javascript">
|
||||
var already_select_delivery = false;
|
||||
</script>
|
||||
{/if}
|
||||
<script type="text/javascript">
|
||||
var soInputs = new Object();
|
||||
var soBwdCompat = "{$SOBWD_C}";
|
||||
var soCarrierId = "{$id_carrier}";
|
||||
var soToken = "{$token}";
|
||||
|
||||
{foreach from=$inputs item=input key=name name=myLoop}
|
||||
soInputs.{$name} = "{$input|strip_tags|addslashes}";
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
$('#soLink').fancybox({
|
||||
'width' : 590,
|
||||
'height' : 810,
|
||||
'autoScale' : true,
|
||||
'centerOnScroll' : true,
|
||||
'autoDimensions' : false,
|
||||
'transitionIn' : 'none',
|
||||
'transitionOut' : 'none',
|
||||
'hideOnOverlayClick' : false,
|
||||
'hideOnContentClick' : false,
|
||||
'showCloseButton' : true,
|
||||
'showIframeLoading' : true,
|
||||
'enableEscapeButton' : true,
|
||||
'type' : 'iframe',
|
||||
onStart : function() {
|
||||
$('#soLink').attr('href', 'modules/socolissimo/redirect.php' + serialiseInput(soInputs))
|
||||
},
|
||||
onClosed : function() {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseDir+'/modules/socolissimo/ajax.php',
|
||||
async: false,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
data: "token=" + soToken,
|
||||
success: function(jsonData)
|
||||
{
|
||||
if (jsonData && jsonData.answer && typeof jsonData.answer != undefined && !opc)
|
||||
{
|
||||
if (jsonData.answer)
|
||||
$('#form').submit();
|
||||
else if (jsonData.msg.length)
|
||||
alert(jsonData.msg);
|
||||
}
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
alert('TECHNICAL ERROR\nDetails:\nError thrown: ' + XMLHttpRequest + '\n' + 'Text status: ' + textStatus);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
var interval;
|
||||
|
||||
// 1.4 way
|
||||
if (!soBwdCompat)
|
||||
{
|
||||
$('input[name=id_carrier]').change(function() {
|
||||
so_click();
|
||||
});
|
||||
so_click();
|
||||
}
|
||||
// 1.5 way
|
||||
else if (soCarrierId)
|
||||
so_click();
|
||||
});
|
||||
|
||||
|
||||
function so_click()
|
||||
{
|
||||
if (opc)
|
||||
{
|
||||
if (!already_select_delivery || !$('#edit_socolissimo').length)
|
||||
interval = setInterval(function()
|
||||
{
|
||||
modifyCarrierLine();
|
||||
},100);
|
||||
}
|
||||
else if ((!soBwdCompat && $('#id_carrier' + soCarrierId).is(':not(:checked)')) ||
|
||||
(soBwdCompat && soCarrierId == 0))
|
||||
{
|
||||
$('[name=processCarrier]').unbind('click').live('click', function () {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
$('[name=processCarrier]').unbind('click').live('click', function () {
|
||||
if (($('#id_carrier' + soCarrierId).is(':checked')) || ($('.delivery_option_radio:checked').val() == soCarrierId+','))
|
||||
{
|
||||
if (acceptCGV())
|
||||
$("#soLink").trigger("click");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function modifyCarrierLine()
|
||||
{
|
||||
var carrier = $('input.delivery_option_radio:checked');
|
||||
var container = '#id_carrier' + soCarrierId;
|
||||
|
||||
if (soBwdCompat && soCarrierId > 0)
|
||||
{
|
||||
var carrier_block = carrier.parent('div.delivery_option');
|
||||
|
||||
// Simulate 1.4 table to store the fetched relay point
|
||||
$(carrier_block).append(
|
||||
'<div><table width="' + $(carrier_block).width() + '"><tr>'
|
||||
+ '<td class="soBackward_compat_tab"><input type="hidden" id="id_carrier' + soCarrierId + '" value="' + soCarrierId + '" /></td>'
|
||||
+ '</tr></table></div>');
|
||||
}
|
||||
|
||||
if ($('#button_socolissimo').length != 0)
|
||||
{
|
||||
clearInterval(interval);
|
||||
// delete interval value
|
||||
interval = null;
|
||||
}
|
||||
|
||||
$('#button_socolissimo').remove();
|
||||
|
||||
if ((carrier.val() == soCarrierId) || (carrier.val() == soCarrierId+',')) {
|
||||
$(container).parent().prepend('<a style="margin-left:5px;" class="exclusive" id="button_socolissimo" href="#" onclick="redirect();return;" >{/literal}{$select_label}{literal}</a>');
|
||||
}
|
||||
|
||||
if (already_select_delivery)
|
||||
{
|
||||
$(container).css('display', 'block');
|
||||
$(container).css('margin', 'auto');
|
||||
$(container).css('margin-top', '5px');
|
||||
}
|
||||
else
|
||||
$(container).css('display', 'none');
|
||||
}
|
||||
|
||||
function redirect()
|
||||
{
|
||||
$('#soLink').attr('href', 'modules/socolissimo/redirect.php' + serialiseInput(soInputs));
|
||||
$("#soLink").trigger("click");
|
||||
return false;
|
||||
}
|
||||
|
||||
function serialiseInput(inputs)
|
||||
{
|
||||
var str = '?first_call=1&';
|
||||
for ( var cle in inputs )
|
||||
str += cle + '=' + inputs[cle] + '&';
|
||||
return (str + 'gift=' + $('#gift').attr('checked') + '&gift_message='+ $('#gift_message').attr('value'));
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
45
modules/__socolissimo/socolissimo_redirect.tpl
Normal file
@ -0,0 +1,45 @@
|
||||
{*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
function change_action_form()
|
||||
{
|
||||
if ($('#id_carrier{/literal}{$id_carrier}{literal}').is(':not(:checked)'))
|
||||
$('#form').attr("action", 'order.php');
|
||||
else
|
||||
$('#form').attr("action", '{/literal}{$urlSo}{literal}');
|
||||
}
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('input[name=id_carrier]').change(function() {
|
||||
change_action_form();
|
||||
});
|
||||
change_action_form();
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{foreach from=$inputs item=input key=name name=myLoop}
|
||||
<input type="hidden" name="{$name|escape:'htmlall':'UTF-8'}" value="{$input|strip_tags|escape:'htmlall'}"/>
|
||||
{/foreach}
|
203
modules/__socolissimo/validation.php
Normal file
@ -0,0 +1,203 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
include('../../config/config.inc.php');
|
||||
include('../../init.php');
|
||||
require_once(_PS_MODULE_DIR_.'socolissimo/classes/SCFields.php');
|
||||
|
||||
// Init the Context (inherit Socolissimo and handle error)
|
||||
$so = new SCFields(Tools::getValue('DELIVERYMODE'));
|
||||
|
||||
// Init the Display
|
||||
$display = new BWDisplay();
|
||||
$display->setTemplate(dirname(__FILE__).'/error.tpl');
|
||||
|
||||
$errors_list = array();
|
||||
$redirect = __PS_BASE_URI__.((_PS_VERSION_ < '1.5') ? 'order.php?' : 'index.php?controller=order&');
|
||||
$so->context->smarty->assign('so_url_back', $redirect);
|
||||
|
||||
$return = array();
|
||||
|
||||
// If error code not defined or empty / null
|
||||
$errors_codes = ($tab = Tools::getValue('ERRORCODE')) ? explode(' ', trim($tab)) : array();
|
||||
|
||||
// If no required error code, start to get the POST data
|
||||
if (!$so->checkErrors($errors_codes, SCError::REQUIRED))
|
||||
{
|
||||
foreach ($_POST AS $key => $val)
|
||||
if ($so->isAvailableFields($key))
|
||||
$return[strtoupper($key)] = utf8_encode(urldecode(stripslashes($val)));
|
||||
|
||||
// GET parameter, the only one
|
||||
$return['TRRETURNURLKO'] = Tools::getValue('TRRETURNURLKO');
|
||||
|
||||
foreach ($so->getFields(SCFields::REQUIRED) as $field)
|
||||
if (!isset($return[$field]))
|
||||
$errors_list[] = $so->l('This key is required for Socolissimo:').$field;
|
||||
}
|
||||
else
|
||||
foreach($errors_codes as $code)
|
||||
$errors_list[] = $so->l('Error code:').' '.$so->getError($code);
|
||||
|
||||
if (empty($errors_list))
|
||||
{
|
||||
if ($so->isCorrectSignKey(Tools::getValue('SIGNATURE'), $return) &&
|
||||
$so->context->cart->id && saveOrderShippingDetails($so->context->cart->id, (int)($return['TRCLIENTNUMBER']),$return, $so))
|
||||
{
|
||||
$TRPARAMPLUS = explode('|', Tools::getValue('TRPARAMPLUS'));
|
||||
|
||||
if (count($TRPARAMPLUS) > 1)
|
||||
{
|
||||
$so->context->cart->id_carrier = (int)$TRPARAMPLUS[0];
|
||||
$so->context->cart->gift = (int)$TRPARAMPLUS[1];
|
||||
}
|
||||
elseif (count($TRPARAMPLUS) == 1)
|
||||
{
|
||||
$so->context->cart->id_carrier = (int) $TRPARAMPLUS[0];
|
||||
}
|
||||
|
||||
if ((int)$so->context->cart->gift && Validate::isMessage($TRPARAMPLUS[2]))
|
||||
$so->context->cart->gift_message = strip_tags($TRPARAMPLUS[2]);
|
||||
|
||||
if (!$so->context->cart->update())
|
||||
$errors_list[] = $so->l('Cart can\'t be updated. Please try again your selection');
|
||||
else
|
||||
Tools::redirect($redirect.'step=3&cgv=1&id_carrier=' . $so->context->cart->id_carrier);
|
||||
}
|
||||
else
|
||||
$errors_list[] = $so->getError('999');
|
||||
}
|
||||
|
||||
$so->context->smarty->assign('error_list', $errors_list);
|
||||
$display->run();
|
||||
|
||||
function saveOrderShippingDetails($idCart, $idCustomer, $soParams, $so_object)
|
||||
{
|
||||
$deliveryMode = array(
|
||||
'DOM' => 'Livraison à domicile', 'BPR' => 'Livraison en Bureau de Poste',
|
||||
'A2P' => 'Livraison Commerce de proximité', 'MRL' => 'Livraison Commerce de proximité',
|
||||
'CIT' => 'Livraison en Cityssimo', 'ACP' => 'Agence ColiPoste', 'CDI' => 'Centre de distribution',
|
||||
'RDV' => 'Livraison sur Rendez-vous');
|
||||
|
||||
$db = Db::getInstance();
|
||||
$db->executeS('SELECT * FROM '._DB_PREFIX_.'socolissimo_delivery_info WHERE id_cart = '.(int)($idCart).' AND id_customer ='.(int)($idCustomer));
|
||||
$numRows = (int)($db->NumRows());
|
||||
if ($numRows == 0)
|
||||
{
|
||||
$sql = 'INSERT INTO '._DB_PREFIX_.'socolissimo_delivery_info
|
||||
( `id_cart`, `id_customer`, `delivery_mode`, `prid`, `prname`, `prfirstname`, `prcompladress`,
|
||||
`pradress1`, `pradress2`, `pradress3`, `pradress4`, `przipcode`, `prtown`, `cephonenumber`, `ceemail` ,
|
||||
`cecompanyname`, `cedeliveryinformation`, `cedoorcode1`, `cedoorcode2`)
|
||||
VALUES ('.(int)($idCart).','.(int)($idCustomer).',';
|
||||
if ($so_object->delivery_mode == SCFields::RELAY_POINT)
|
||||
$sql .= '\''.pSQL($soParams['DELIVERYMODE']).'\''.',
|
||||
'.(isset($soParams['PRID']) ? '\''.pSQL($soParams['PRID']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRNAME']) ? '\''.pSQL($soParams['PRNAME']).'\'' : '\'\'').',
|
||||
'.(isset($deliveryMode[$soParams['DELIVERYMODE']]) ? '\''.$deliveryMode[$soParams['DELIVERYMODE']].'\'' : '\'So Colissimo\'').',
|
||||
'.(isset($soParams['PRCOMPLADRESS']) ? '\''.pSQL($soParams['PRCOMPLADRESS']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS1']) ? '\''.pSQL($soParams['PRADRESS1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS2']) ? '\''.pSQL($soParams['PRADRESS2']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS3']) ? '\''.pSQL($soParams['PRADRESS3']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS4']) ? '\''.pSQL($soParams['PRADRESS4']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRZIPCODE']) ? '\''.pSQL($soParams['PRZIPCODE']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRTOWN']) ? '\''.pSQL($soParams['PRTOWN']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEPHONENUMBER']) ? '\''.pSQL($soParams['CEPHONENUMBER']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEEMAIL']) ? '\''.pSQL($soParams['CEEMAIL']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CECOMPANYNAME']) ? '\''.pSQL($soParams['CECOMPANYNAME']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDELIVERYINFORMATION']) ? '\''.pSQL($soParams['CEDELIVERYINFORMATION']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE1']) ? '\''.pSQL($soParams['CEDOORCODE1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE2']) ? '\''.pSQL($soParams['CEDOORCODE2']).'\'' : '\'\'').')';
|
||||
else
|
||||
$sql .= '\''.pSQL($soParams['DELIVERYMODE']).'\',\'\',
|
||||
'.(isset($soParams['CENAME']) ? '\''.ucfirst(pSQL($soParams['CENAME'])).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEFIRSTNAME']) ? '\''.ucfirst(pSQL($soParams['CEFIRSTNAME'])).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CECOMPLADRESS']) ? '\''.pSQL($soParams['CECOMPLADRESS']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS1']) ? '\''.pSQL($soParams['CEADRESS1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS2']) ? '\''.pSQL($soParams['CEADRESS2']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS3']) ? '\''.pSQL($soParams['CEADRESS3']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS4']) ? '\''.pSQL($soParams['CEADRESS4']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEZIPCODE']) ? '\''.pSQL($soParams['CEZIPCODE']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CETOWN']) ? '\''.pSQL($soParams['CETOWN']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEPHONENUMBER']) ? '\''.pSQL($soParams['CEPHONENUMBER']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEEMAIL']) ? '\''.pSQL($soParams['CEEMAIL']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CECOMPANYNAME']) ? '\''.pSQL($soParams['CECOMPANYNAME']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDELIVERYINFORMATION']) ? '\''.pSQL($soParams['CEDELIVERYINFORMATION']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE1']) ? '\''.pSQL($soParams['CEDOORCODE1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE2']) ? '\''.pSQL($soParams['CEDOORCODE2']).'\'' : '\'\'').')';
|
||||
|
||||
if (Db::getInstance()->execute($sql))
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$table = _DB_PREFIX_.'socolissimo_delivery_info';
|
||||
$values = array();
|
||||
$values['delivery_mode'] = pSQL($soParams['DELIVERYMODE']);
|
||||
|
||||
if ($so_object->delivery_mode == SCFields::RELAY_POINT)
|
||||
{
|
||||
isset($soParams['PRID']) ? $values['prid'] = pSQL($soParams['PRID']) : '';
|
||||
isset($soParams['PRNAME']) ? $values['prname'] = ucfirst(pSQL($soParams['PRNAME'])) : '';
|
||||
isset($deliveryMode[$soParams['DELIVERYMODE']]) ? $values['prfirstname'] = $deliveryMode[$soParams['DELIVERYMODE']] : $values['prfirstname'] = 'So Colissimo';
|
||||
isset($soParams['PRCOMPLADRESS']) ? $values['prcompladress'] = pSQL($soParams['PRCOMPLADRESS']) : '';
|
||||
isset($soParams['PRADRESS1']) ? $values['pradress1'] = pSQL($soParams['PRADRESS1']) : '';
|
||||
isset($soParams['PRADRESS2']) ? $values['pradress2'] = pSQL($soParams['PRADRESS2']) : '';
|
||||
isset($soParams['PRADRESS3']) ? $values['pradress3'] = pSQL($soParams['PRADRESS3']) : '';
|
||||
isset($soParams['PRADRESS4']) ? $values['pradress4'] = pSQL($soParams['PRADRESS4']) : '';
|
||||
isset($soParams['PRZIPCODE']) ? $values['przipcode'] = pSQL($soParams['PRZIPCODE']) : '';
|
||||
isset($soParams['CETOWN']) ? $values['prtown'] = pSQL($soParams['CETOWN']) : '';
|
||||
isset($soParams['CEPHONENUMBER']) ? $values['cephonenumber'] = pSQL($soParams['CEPHONENUMBER']) : '';
|
||||
isset($soParams['CEEMAIL']) ? $values['ceemail'] = pSQL($soParams['CEEMAIL']) : '';
|
||||
isset($soParams['CEDELIVERYINFORMATION']) ? $values['cedeliveryinformation'] = pSQL($soParams['CEDELIVERYINFORMATION']) : '';
|
||||
isset($soParams['CEDOORCODE1']) ? $values['cedoorcode1'] = pSQL($soParams['CEDOORCODE1']) : '';
|
||||
isset($soParams['CEDOORCODE2']) ? $values['cedoorcode2'] = pSQL($soParams['CEDOORCODE2']) : '';
|
||||
isset($soParams['CECOMPANYNAME']) ? $values['cecompanyname'] = pSQL($soParams['CECOMPANYNAME']) : '';
|
||||
}
|
||||
else
|
||||
{
|
||||
isset($soParams['PRID']) ? $values['prid'] = pSQL($soParams['PRID']) : $values['prid'] = '';
|
||||
isset($soParams['CENAME']) ? $values['prname'] = ucfirst(pSQL($soParams['CENAME'])) : '';
|
||||
isset($soParams['CEFIRSTNAME']) ? $values['prfirstname'] = ucfirst(pSQL($soParams['CEFIRSTNAME'])) : '';
|
||||
isset($soParams['CECOMPLADRESS']) ? $values['prcompladress'] = pSQL($soParams['CECOMPLADRESS']) : '';
|
||||
isset($soParams['CEADRESS1']) ? $values['pradress1'] = pSQL($soParams['CEADRESS1']) : '';
|
||||
isset($soParams['CEADRESS2']) ? $values['pradress2'] = pSQL($soParams['CEADRESS2']) : '';
|
||||
isset($soParams['CEADRESS3']) ? $values['pradress3'] = pSQL($soParams['CEADRESS3']) : '';
|
||||
isset($soParams['CEADRESS4']) ? $values['pradress4'] = pSQL($soParams['CEADRESS4']) : '';
|
||||
isset($soParams['CEZIPCODE']) ? $values['przipcode'] = pSQL($soParams['CEZIPCODE']) : '';
|
||||
isset($soParams['PRTOWN']) ? $values['prtown'] = pSQL($soParams['PRTOWN']) : '';
|
||||
isset($soParams['CEEMAIL']) ? $values['ceemail'] = pSQL($soParams['CEEMAIL']) : '';
|
||||
isset($soParams['CEPHONENUMBER']) ? $values['cephonenumber'] = pSQL($soParams['CEPHONENUMBER']) : '';
|
||||
isset($soParams['CEDELIVERYINFORMATION']) ? $values['cedeliveryinformation'] = pSQL($soParams['CEDELIVERYINFORMATION']) : '';
|
||||
isset($soParams['CEDOORCODE1']) ? $values['cedoorcode1'] = pSQL($soParams['CEDOORCODE1']) : '';
|
||||
isset($soParams['CEDOORCODE2']) ? $values['cedoorcode2'] = pSQL($soParams['CEDOORCODE2']) : '';
|
||||
isset($soParams['CECOMPANYNAME']) ? $values['cecompanyname'] = pSQL($soParams['CECOMPANYNAME']) : '';
|
||||
}
|
||||
$where = ' `id_cart` =\''.(int)($idCart).'\' AND `id_customer` =\''.(int)($idCustomer).'\'';
|
||||
|
||||
if (Db::getInstance()->autoExecute($table, $values, 'UPDATE', $where))
|
||||
return true;
|
||||
}
|
||||
}
|
19
modules/_socolissimo/ajax.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
include_once('../../config/config.inc.php');
|
||||
include_once('../../init.php');
|
||||
include_once('../../modules/socolissimo/socolissimo.php');
|
||||
|
||||
global $cookie;
|
||||
|
||||
if (Tools::getValue('token') == sha1('socolissimo'._COOKIE_KEY_.$cookie->id_cart))
|
||||
die('INVALID TOKEN');
|
||||
|
||||
$socolissimo = new Socolissimo();
|
||||
$result = $socolissimo->getDeliveryInfos($cookie->id_cart,$cookie->id_customer);
|
||||
if (!$result)
|
||||
die('{"result" : false}');
|
||||
else
|
||||
die('{"result" : true}');
|
||||
|
||||
?>
|
27
modules/_socolissimo/cron.php
Executable file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
if(isset($_SERVER['REMOTE_ADDR'])) exit;
|
||||
include(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
|
||||
$context = stream_context_create(array(
|
||||
'http' => array(
|
||||
'timeout' => 5
|
||||
)
|
||||
));
|
||||
|
||||
$status = trim((string) file_get_contents('http://ws.colissimo.fr/supervision-pudo/supervision.jsp', 0, $context));
|
||||
|
||||
if(empty($status) || $status == '[KO]') {
|
||||
Db::getInstance()->Execute('
|
||||
UPDATE `'._DB_PREFIX_.'carrier`
|
||||
SET `active` = 1
|
||||
WHERE `name` = "'.pSQL(Configuration::get('SOCOLISSIMO_FALLBACK')).'"
|
||||
AND `deleted` = 0
|
||||
');
|
||||
} else {
|
||||
Db::getInstance()->Execute('
|
||||
UPDATE `'._DB_PREFIX_.'carrier`
|
||||
SET `active` = 0
|
||||
WHERE `name` = "'.pSQL(Configuration::get('SOCOLISSIMO_FALLBACK')).'"
|
||||
AND `deleted` = 0
|
||||
');
|
||||
}
|
94
modules/_socolissimo/de.php
Executable file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27d52fec98c204daecd4c4df2b8e11fa'] = 'Bieten Sie Ihren Kunden unterschiedliche Liefermethoden mit LaPoste an.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = '\'Versandzone(n)\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = '\'Versandgruppe\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = '\'bester Versanddients\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = '\'Versandpreis\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = '\'Id FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = '\'Schlüssel\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = '\'URL So\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'muss konfiguriert sein, um dieses Modul richtig zu nutzen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_94c614a9df45ea1fcd27b15b7d6f3e67'] = 'Ungültiger Schlüssel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_90a5cb3d07bb39bbd4b76f7f9a0d7947'] = 'Ein Fehler ist beim Abschnitt Versand aufgetreten ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_70b2e65f0f2aabf3e2c58d70cf1e1e9a'] = 'Login FO fehlt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2b639b851983a24bc12358523861c7ff'] = 'Login FO falsch';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ca12228b5ad636c637425a086fe0092'] = 'Kunden unberechtigt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0b1d0c0a00cc2727fcd77902867e3641'] = 'Pflichtfeld fehlt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fa419073252af9d022afe65dccbb34a2'] = 'Fehlende Signatur';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fca3fbced675f75182786525bf4706dc'] = 'Ungültige Signatur';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d14afc3f67d2457d29f0aa0db98e2c9d'] = 'Postleitzahl ungültig';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f9733e52e8841f1e45d015d5af5e8655'] = 'Falsches URL-Format zurück Bestätigung';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_417434a4e55adbc67c9c391902cea7f3'] = 'Falsches URL-Format zurück Fehler';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_140c34f0b21b932e34d11575509d093b'] = 'Ungültige Transaktions-ID';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_28ee1015b475a3a70613ea9c98d712b6'] = 'Format falsch Versandkosten';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_afa50e8b2fc14bf578331b2b8e98179d'] = 'Socolissimo Server nicht verfügbar';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27e0a4f1ce5bb4ad9687a021e95367df'] = 'So Collissimo kann nicht mit dem Eine-Seite Bestellabschluss verwendet werden. Damit Sie dieses Modul nutzen können müssen Sie den Standard Bestallabschluss verwenden (Voreinstellungen -> Art des Bestellvorganges)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Beschreibung';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'SoColissimo ist ein Service von La Poste, der Ihren Käufern 5 Zustellungsarten anbietet';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e5c7c47a2cc967ae4834ad5c076734df'] = 'Nach Hause';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_05ded48a069b0390fd4609e103eec154'] = 'Nach Hause nach Terminvereinbarung';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_402c04ef2c99ebccbc8fb047bb7a1185'] = 'zum Cityssimo Abholstützpunkt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45b080bdf4c705a1e4cd664da70bf41c'] = 'In ihr Büro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e6fb019213dbc66e25bef9d25b889eed'] = 'Zu ihrem Händler';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Dieses Modul ist kostenlos und ermöglicht Ihnen das Aktivieren dieses Angebot in Ihrem Shop.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Dokumentation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Wichtig';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Um Ihr SoColissimo-Konto zu eröffnen, kontaktieren Sie bitte \"La Poste\" unter dieser Rufnummer: 3634 (Französische Telefonnummer)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'ID So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'Benutzer-Id für das SoColissimo Backoffice.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Schlüssel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Sicherheitsschlüssel für das SoColissimo Backoffice.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Vorbereitungszeit';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'Tag (e)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1fb031ceef337d6c513315dc5ec98a27'] = 'Durchschnittliche Zeit der Sendungsvorbereitung.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e986d627f454602880075fe556378073'] = 'Die durchschnittliche Zeit muss die gleiche sein im ColiPoste Back Office.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_31e3fd47be6f64fb2e0a4f85cb63a069'] = 'Mehraufwendungen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a68e8fd6d255edb0ca099c7400252694'] = 'Zusätzliche Kosten bei Terminvereinbarungen.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d38ac03101faea9ed5f9ea96bf8627b4'] = 'Zusätzliche Kosten müssen die gleichen im ColiPoste Back Office sein.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9954970bc5804ff557ced19516e2a55c'] = 'Seien Sie SEHR VORSICHTIG mit diesen Einstellungen, Änderungen können zu einer Fehlfunktion des Moduls führen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'Url So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'URL des SoColissimo Backoffice.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Aktiviert';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Deaktiviert';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_09dbe81fba2031934c74555768a0e990'] = 'Wenn Sie diese Option wählen, wird socolissimo in einer fancybox angezeigt.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Kontrolle';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Verfügbarkeit von Service SoColissimo erlauben oder nicht erlauben ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'URL Kontrolle';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_947d84460ad5676c9d79fa05727f1e8a'] = 'Die Überwachung der URL wird für die Verfügbarkeit des socolissimo Service benötigt. Es ist nicht ratsam diese zu deaktivieren.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Speichern';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Information';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Hier sind zwei Adressen, die Sie in Ihrem Back Office SoColissimo ausfüllen müssen ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'Bestätigungs-URL ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'Rückgabe-URL';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'ID SO nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Key SO nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Vorbereitungszeit nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Ungültige Vorbereitungszeit ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c3288acdf9ecd0a4fb1e308442b06867'] = 'Mehraufwendungen nicht angegeben';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1a89bc7d83f6e90b2368e3401690a87a'] = 'Ungültige Mehraufwendungen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Konfiguration aktualisiert';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Kann Einstellungen nicht speichern';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Versandmodus auswählen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Versadmodus bearbeiten';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Klicken Sie auf eine Liefermethode, um SoColissimo auszuwählen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Versandmodus';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Kunde';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Firma';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'E-Mail-Adresse';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Kundenadresse';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Andere';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Tür-Nr.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Liefer-Informationen';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'Stützpunkt-ID';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Abholstützpunkt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Adresse Abholstützpunkt';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'E-Mail';
|
||||
|
||||
?>
|
4
modules/_socolissimo/en.php
Executable file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
94
modules/_socolissimo/es.php
Executable file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'La Poste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27d52fec98c204daecd4c4df2b8e11fa'] = 'Proponga a sus clientes cinco modos de entraga a través de la Poste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = 'Zona(s) transportista';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = 'Grupo del transportista';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = 'Franja del transportista';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = 'Precio de franja';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = '\'Identificante FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = '\'Clave de encriptación\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = '\'URL de la administración de SoColissimo\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'deben indicarse para funcionar correctamente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_94c614a9df45ea1fcd27b15b7d6f3e67'] = 'Clave no válida';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_90a5cb3d07bb39bbd4b76f7f9a0d7947'] = 'Se ha producido un error en la etapa \'transportista\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_70b2e65f0f2aabf3e2c58d70cf1e1e9a'] = 'Identificante FO inexistente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2b639b851983a24bc12358523861c7ff'] = 'Identificante FO incorrecto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ca12228b5ad636c637425a086fe0092'] = 'Cliente no autorizado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0b1d0c0a00cc2727fcd77902867e3641'] = 'Faltan campos obligatorios';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fa419073252af9d022afe65dccbb34a2'] = 'Falta firma';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fca3fbced675f75182786525bf4706dc'] = 'Firma no válida';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d14afc3f67d2457d29f0aa0db98e2c9d'] = 'Código postal no válido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f9733e52e8841f1e45d015d5af5e8655'] = 'Formato URL devolución Validación incorrecto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_417434a4e55adbc67c9c391902cea7f3'] = 'Formato URL devolución Fracaso incorrecto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_140c34f0b21b932e34d11575509d093b'] = 'ID de la transacción no válida';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_28ee1015b475a3a70613ea9c98d712b6'] = 'Formato de gastos de envío incorrecto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_afa50e8b2fc14bf578331b2b8e98179d'] = 'Servidor SoColissimo no disponible';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27e0a4f1ce5bb4ad9687a021e95367df'] = 'So Colissimo no es compatible con la función One Page Checkout, con el fin de utilizar este módulo, por favor, activa el proceso de compra estándar (Preferencias> \"Tipo de proceso de pedidos\")';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Descripción';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'SoColissimo es un servicio propuesto Por La Poste, que le permite proponer a sus compradores cinco modos de entrega:';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e5c7c47a2cc967ae4834ad5c076734df'] = 'Entrega a domicilio';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_05ded48a069b0390fd4609e103eec154'] = 'Entrega a domicilio previa cita entre las 17h y las 21h30';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_402c04ef2c99ebccbc8fb047bb7a1185'] = 'Entrega en uno de los 31 espacios Cityssimo, 7/7 y 24h/24';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45b080bdf4c705a1e4cd664da70bf41c'] = 'Entrega en uno de los 10.000 oficinas de Correos que elijan';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e6fb019213dbc66e25bef9d25b889eed'] = 'Entrega en uno de los numerosos puntos de recogida en partenariado con La Poste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Este módulo es totalmente gratuito y le permite activar dicha oferta en su tienda.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Documentación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuración';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Importante';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Para abrir una cuenta SoColissimo, póngase en contacto con \"La Poste\" a través de 3634';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'Identificante FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'Usuario So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Clave de encriptación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Clave de encriptación So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Tiempo de preparación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'día(s)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1fb031ceef337d6c513315dc5ec98a27'] = 'Plazo medio de preparación de sus pedidos';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e986d627f454602880075fe556378073'] = 'El plazo de preparación de pedido debe ser idéntico al indicado en Back Office ColiPoste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_31e3fd47be6f64fb2e0a4f85cb63a069'] = 'Coste adicional';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a68e8fd6d255edb0ca099c7400252694'] = 'Coste adicional aplicable a la entrega a domicilio previa cita';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d38ac03101faea9ed5f9ea96bf8627b4'] = 'El coste adicional debe ser idéntico al indicado en el Back Office ColiPoste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9954970bc5804ff557ced19516e2a55c'] = 'Tenga cuidado con estos parámetros, su modificación puede provocar un disfuncionamiento del módulo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'Dirección FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'URL de la administración de So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Activado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Desactivado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_09dbe81fba2031934c74555768a0e990'] = 'Si selecciona esta opcion, la pagina de socolissimo se mostrara en fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Supervisión';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Autorizar o no la comprobación de la disponiblidad de los servicios SoColissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'Dirección de comprobación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_947d84460ad5676c9d79fa05727f1e8a'] = 'La dirección URL de supervisión asegura la disponibilidad del servicio socolissimo. No se recomienda desactivarla: ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Guardar';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Información';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Aquí tiene las dos direcciones que debe indicar en su Back-Office Coliposte';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'URL de validación';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'URL de devolución';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'Identificante FO no especificado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Clave de encriptación no especificada';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Tiempo de preparación no especificado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Tiempo de preparación no válido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c3288acdf9ecd0a4fb1e308442b06867'] = 'Coste adicional no especificado';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1a89bc7d83f6e90b2368e3401690a87a'] = 'Coste adicional no válido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuración actualizada';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Imposible guardar los parámetros';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Seleccione modo de envío';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Editar el modo de envío';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Para elegir SoColissimo, marque un modo en entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Modo de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Empresa';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'Dirección email';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tel.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Dirección del cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Otros';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Código acceso portal';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Datos de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'ID del punto de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Punto de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Dirección del punto de entrega';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'Email';
|
||||
|
||||
?>
|
94
modules/_socolissimo/fr.php
Executable file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'La Poste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27d52fec98c204daecd4c4df2b8e11fa'] = '\'Proposez à vos clients 5 modes de livraison via La Poste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = '\'Zone(s) du transporteur\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = '\'Groupe du transporteur\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = '\'Tranche(s) du transporteur\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = '\'Prix de tranche\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = '\'Identifiant FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = '\'Clé de cryptage\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = '\'Url de l\'administration de SoColissimo\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'doivent être renseignés pour fonctionner correctement';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_94c614a9df45ea1fcd27b15b7d6f3e67'] = 'Clé invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_90a5cb3d07bb39bbd4b76f7f9a0d7947'] = 'une erreur s\'est produite lors de l\'étape transporteur';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_70b2e65f0f2aabf3e2c58d70cf1e1e9a'] = 'Identifiant FO manquant';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2b639b851983a24bc12358523861c7ff'] = 'Identifiant FO incorrect';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ca12228b5ad636c637425a086fe0092'] = 'Client non autorise';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0b1d0c0a00cc2727fcd77902867e3641'] = 'Champs obligatoire manquant';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fa419073252af9d022afe65dccbb34a2'] = 'Signature manquante';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fca3fbced675f75182786525bf4706dc'] = 'Signature invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d14afc3f67d2457d29f0aa0db98e2c9d'] = 'Code postal invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f9733e52e8841f1e45d015d5af5e8655'] = 'Format url retour Validation incorrect';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_417434a4e55adbc67c9c391902cea7f3'] = 'Format url retour Echec incorrect';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_140c34f0b21b932e34d11575509d093b'] = 'ID de la transaction invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_28ee1015b475a3a70613ea9c98d712b6'] = 'Format des frais d’expédition incorrect';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_afa50e8b2fc14bf578331b2b8e98179d'] = 'Serveur Socolissimo non disponible';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27e0a4f1ce5bb4ad9687a021e95367df'] = 'So Colissimo n\'est pas compatible avec la One Page Checkout, afin d\'utiliser ce module, merci d\'activer le processus de commande standard (Préférences > \"Type de processus de commande\")';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Description';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'So Colissimo est un service proposé par La Poste, qui vous permet d\'offrir à vos acheteurs 5 modes de livraison :';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e5c7c47a2cc967ae4834ad5c076734df'] = 'Livraison à Domicile';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_05ded48a069b0390fd4609e103eec154'] = 'Livraison à Domicile sur Rendez-vous le soir entre 17h et 21h30';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_402c04ef2c99ebccbc8fb047bb7a1185'] = 'Livraison dans l\'un des 31 espaces Cityssimo, 7j/7 et 24h/24';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45b080bdf4c705a1e4cd664da70bf41c'] = 'Livraison dans l\'un des 10.000 Bureaux de Poste de leur choix';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e6fb019213dbc66e25bef9d25b889eed'] = 'Livraison dans l\'un des nombreux point de retrait du réseau partenaire La Poste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Ce module est gratuit et vous permet d\'activer cette offre sur votre magasin.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Documentation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuration';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Important';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Pour ouvrir un compte SoColissimo, merci de contacter \"La poste\" à ce numéro: 3634.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'Identifiant FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'Utilisateur So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Clé de cryptage';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Clé de cryptage So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Temps de préparation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'Jour(s)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1fb031ceef337d6c513315dc5ec98a27'] = 'Délai moyen de préparation de vos commandes';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e986d627f454602880075fe556378073'] = 'Le délai de préparation de commande doit être identique à celui saisi dans le Back Office ColiPoste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_31e3fd47be6f64fb2e0a4f85cb63a069'] = 'Surcoût';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a68e8fd6d255edb0ca099c7400252694'] = 'Surcoût à appliquer pour la livraison à domicile sur rendez-vous';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d38ac03101faea9ed5f9ea96bf8627b4'] = 'Le \"surcoût\" doit être identique à celui saisi dans le Back Office ColiPoste';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9954970bc5804ff557ced19516e2a55c'] = 'Soyez très prudent avec ces paramètres, le changement peut provoquer un dysfonctionnement du module';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'Adresse FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'Url de l\'administration de So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Activé';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Désactiver';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_09dbe81fba2031934c74555768a0e990'] = 'Si vous activez cette option, la page SoColissimo sera affichée dans une fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Supervision';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Autoriser ou non la verification de la disponibilité des services SoColissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'Adresse de verification';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_947d84460ad5676c9d79fa05727f1e8a'] = 'L\'URL de surveillance permet de s\'assurer de la disponibilité du service socolissimo. Il n\'est pas conseillé de la desactivé.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c35ba6ddd623b51d29061cb1d809654a'] = 'Transporteur de secours';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_461e84a44ed89cd8959b109e7e2cbfca'] = 'Si le service n\'est pas disponible, activer ce transporteur automatiquement pour permettre aux clients de commander.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Information';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Voici les deux adresses que vous devez renseigner dans votre Back-Office Coliposte';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'Url de validation';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'Url de retour';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'Identifiant FO non spécifié';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Clé de cryptage non spécifié';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Temps de préparation non spécifié';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Temps de préparation invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c3288acdf9ecd0a4fb1e308442b06867'] = 'Surcoût non spécifié';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1a89bc7d83f6e90b2368e3401690a87a'] = 'Surcoût invalide';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuration mise à jour';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Impossible de sauvegarder les paramètres';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Choisir un mode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Editer le mode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Pour choisir SoColissimo, cocher une méthode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Mode de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Client';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Entreprise';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'Adresse e-mail';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Adresse du client';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Autre';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Code de la porte';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Information de livraison';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'ID du point de retrait';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Point de retrait';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Adresse du point de retrait';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'Email';
|
36
modules/_socolissimo/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
94
modules/_socolissimo/it.php
Executable file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_42ab10dea7d96b9c353e0f5bae43ec20'] = 'So Colissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27d52fec98c204daecd4c4df2b8e11fa'] = 'Offri ai tuoi clienti diverse modalità di consegna LaPoste.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f8e355b97fa1be7a8d8c206aa66f0077'] = '\'Zona/e del corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_690c1c6abf905b88281a7cd324af9942'] = '\'Gruppo Corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a18ef2e8b3730915798057a50ecbf2cd'] = '\'Fascia/e del corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_59f26c70c0230e4ec5e4acdfed0e270c'] = '\'Prezzo consegna corriere\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_798547c41ec3e64e2322df678e939344'] = '\'ID FO\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ac08649aa09ff3b879525627bf086dd1'] = '\'Chiave\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a3a53f075adf77334cc34d0f7497ff44'] = '\'Url So\'';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_4d470fde8487e755a50e9235e3dc13ab'] = 'deve essere configurato per utilizzare questo modulo correttamente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_94c614a9df45ea1fcd27b15b7d6f3e67'] = 'Chiave non valida';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_90a5cb3d07bb39bbd4b76f7f9a0d7947'] = 'Errore durante la fase di spedizione ';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_70b2e65f0f2aabf3e2c58d70cf1e1e9a'] = 'Manca Login FO';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_2b639b851983a24bc12358523861c7ff'] = 'Login FO non valido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ca12228b5ad636c637425a086fe0092'] = 'Cliente non autorizzato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0b1d0c0a00cc2727fcd77902867e3641'] = 'Campo obbligatori mancante';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fa419073252af9d022afe65dccbb34a2'] = 'Firma mancante';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fca3fbced675f75182786525bf4706dc'] = 'Firma non valida';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d14afc3f67d2457d29f0aa0db98e2c9d'] = 'CAP non valido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f9733e52e8841f1e45d015d5af5e8655'] = 'Formato url restituzione convalida non corretto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_417434a4e55adbc67c9c391902cea7f3'] = 'Formato url restituzione errore non corretto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_140c34f0b21b932e34d11575509d093b'] = ' ID di transazione non valido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_28ee1015b475a3a70613ea9c98d712b6'] = 'Formato spese di spedizione formato non corretto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_afa50e8b2fc14bf578331b2b8e98179d'] = 'Socolissimo server non disponibile';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_27e0a4f1ce5bb4ad9687a021e95367df'] = 'Così Colissimo non è compatibile con la funzione di Page One Checkout, al fine di utilizzare questo modulo, si prega di attivare il processo standard di ordine (Preferenze> \"tipo di processo Order\")';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b5a7adde1af5c87d7fd797b6245c2a39'] = 'Descrizione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d0b34d3e1cb0cc1150ae6bf650e9b569'] = 'SoColissimo è un servizio offerto da La Poste, che permette di offrire all\'acquirente 5 modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e5c7c47a2cc967ae4834ad5c076734df'] = 'A casa';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_05ded48a069b0390fd4609e103eec154'] = 'A casa com appuntamenti';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_402c04ef2c99ebccbc8fb047bb7a1185'] = 'Nello spazio Cityssimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45b080bdf4c705a1e4cd664da70bf41c'] = 'Nel loro ufficio postale';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e6fb019213dbc66e25bef9d25b889eed'] = 'Nel loro punto di ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9fbff0971c06ee404f638e9abcbd9446'] = 'Questo modulo è gratuito e permette di attivare questa offerta nel tuo negozio.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_5b6cf869265c13af8566f192b4ab3d2a'] = 'Documentazione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0ab984d91ab0a037bdf692bf0e73c349'] = 'Importante';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_58f73ae759adc826a9e15e26280cdaa4'] = 'Per aprire il tuo account SoColissimo, si prega di contattare \"La Poste\" a questo numero telefonico: 3634 (numero di telefono francese)';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9c85d4c2bae6ab548fe23e57bd89ddc4'] = 'ID So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7b95472e0575adc1e3d90a2d7b51e496'] = 'ID utente per back office SoColissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_897356954c2cd3d41b221e3f24f99bba'] = 'Chiave';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fe78e0a947bf1e0c9e0d9485f40e69cb'] = 'Chiave sicura per back office SoColissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_64979b52d796defbdf05356df9e37d57'] = 'Tempo di preparazione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c76660d589be9a49e8846e51b71744ae'] = 'Giorno/i';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1fb031ceef337d6c513315dc5ec98a27'] = 'Tempo medio di preparazione del materiale.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e986d627f454602880075fe556378073'] = 'Tempo medio deve essere lo stesso del ColiPoste Back Office.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_31e3fd47be6f64fb2e0a4f85cb63a069'] = 'Sovraccosto';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a68e8fd6d255edb0ca099c7400252694'] = 'Costo aggiuntivo se consegna su appuntamento.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d38ac03101faea9ed5f9ea96bf8627b4'] = 'Costo aggiuntivo deve essere lo stesso del ColiPoste Back Office.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_9954970bc5804ff557ced19516e2a55c'] = 'Fare MOLTA ATTENZIONE con queste impostazioni, il cambiamento può causare un malfunzionamento del modulo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b0b2896e75025245cbb05e96bd1466d6'] = 'URL So';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce88aabea3b363c753b02ddcb2fbafff'] = 'URL del back office SoColissimo.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_45313bad96da16bf04f88c1fb39419b7'] = 'Fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Attivato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disattivato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_09dbe81fba2031934c74555768a0e990'] = 'Se si attiva questa opzione, la pagina di socolissimo verrà visualizzata in una fancybox';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_85068ddf0b9bcbb6913008356fe328a0'] = 'Supervisione';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_fdd526b84abc0b8fc17060e62d022b84'] = 'Autorizza o meno la verifica di disponibilità dei servizi di SoColissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_32996bdf4214d6cb8bf7fa02273813c8'] = 'Supervisione Url';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_947d84460ad5676c9d79fa05727f1e8a'] = 'L\'URL di supervisione è quello di garantire la disponibilità del servizio socolissimo. Non è consigliabile ai disabili.';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c9cc8cce247e49bae79f15173ce97354'] = 'Salva';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Informazioni';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_3e387f5ebd657c6372f0594c8226863e'] = 'Qui ci sono due indirizzi che è necessario compilare nel tuo Back Office SoColissimo';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_49977cbb6772deeac9ceb89f069e491c'] = 'Convalida degli URL';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_06dc3f24f73027164d2b19556118624e'] = 'Ritorno url';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_82c440defe28e2099cba1af1f0761807'] = 'ID SO non specificato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_826361881cfc18b8b75405d398f633b5'] = 'Chiave SO non specificata';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_0bf6a620e5f22d8b46e3903a993f7741'] = 'Tempo di preparazione non specificato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_228485c5faff886fa4520323dc5b2c76'] = 'Tempo di preparazione non valido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_c3288acdf9ecd0a4fb1e308442b06867'] = 'sovraccosto non specificato';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1a89bc7d83f6e90b2368e3401690a87a'] = 'Sovraccosto non valido';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configurazione aggiornata';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_126d781eae70fa41e9e848f3013e1799'] = 'Impossibile salvare le impostazioni';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_898d22b4259367825dbbbc174f049197'] = 'Selezionare la modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6e55ec92b403f0ab31c29f62c837834a'] = 'Modifica modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_7ea4eac85d1d1967562869cf1e14b1d0'] = 'Per scegliere SoColissimo, spunta un metodo di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_201bdb87f8e278b943d07ae924d5de6e'] = 'Modalità di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce26601dac0dea138b7295f02b7620a7'] = 'Cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_1c76cbfe21c6f44c1d1e59d54f3e4420'] = 'Società';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_8b5dd64ab8d0b8158906796b53a200e2'] = 'Indirizzo e-mail';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_bcc254b55c4a1babdf1dcb82c207506b'] = 'Tel';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e19726b466603bc3e444dd26fbcde074'] = 'Indirizzo del cliente';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_6311ae17c1ee52b36e68aaf4ad066387'] = 'Altri';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_d676596f71fd0f73f735da4bb4225151'] = 'Codice della porta';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ea7d9b60cc8654d2c6e8813529a2f3e8'] = 'Informazioni di consegna';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_e937c6393ce858786bd31a279b50572d'] = 'ID punto ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_f109a88feec5ad3aeb82580c7a20ec31'] = 'Punto di ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_021944549c2795a6e4db23b92f198a5e'] = 'Indirizzo punto di ritiro';
|
||||
$_MODULE['<{socolissimo}prestashop>socolissimo_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'E-mail';
|
||||
|
||||
?>
|
BIN
modules/_socolissimo/logo.gif
Executable file
After Width: | Height: | Size: 1.6 KiB |
46
modules/_socolissimo/redirect.php
Executable file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2010 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author Prestashop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2010 Prestashop SA
|
||||
* @version Release: $Revision: 9182 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registred Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once ('../../config/config.inc.php');
|
||||
|
||||
$onload_script = 'parent.$.fancybox.close();';
|
||||
if (Tools::isSubmit('firstcall'))
|
||||
$onload_script = 'document.getElementById(\'socoForm\').submit();';
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
|
||||
<head>
|
||||
</head>
|
||||
<body onload="<?php echo $onload_script; ?>">
|
||||
<?php
|
||||
echo '<form id="socoForm" name="form" action="'.Configuration::get('SOCOLISSIMO_URL').'" method="POST">';
|
||||
foreach($_GET as $key => $val)
|
||||
echo '<input type="hidden" name="'.$key.'" value="'.$val.'"/>';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</form>
|
BIN
modules/_socolissimo/socolissimo.jpg
Executable file
After Width: | Height: | Size: 7.9 KiB |
817
modules/_socolissimo/socolissimo.php
Executable file
@ -0,0 +1,817 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9183 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
class Socolissimo extends CarrierModule
|
||||
{
|
||||
private $_html = '';
|
||||
private $_postErrors = array();
|
||||
private $url = '';
|
||||
public $_errors = array();
|
||||
public $errorMessage = array();
|
||||
|
||||
private $_config = array(
|
||||
'name' => 'La Poste - So Colissimo',
|
||||
'id_tax_rules_group' => 0,
|
||||
'url' => 'http://www.colissimo.fr/portail_colissimo/suivreResultat.do?parcelnumber=@',
|
||||
'active' => true,
|
||||
'deleted' => 0,
|
||||
'shipping_handling' => false,
|
||||
'range_behavior' => 0,
|
||||
'is_module' => true,
|
||||
'delay' => array('fr'=>'Avec La Poste, Faites-vous livrer là où vous le souhaitez en France Métropolitaine.',
|
||||
'en'=>'Do you deliver wherever you want in France.'),
|
||||
'id_zone' => 1,
|
||||
'shipping_external'=> true,
|
||||
'external_module_name'=> 'socolissimo',
|
||||
'need_range' => true
|
||||
);
|
||||
|
||||
function __construct()
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
$this->name = 'socolissimo';
|
||||
$this->tab = 'shipping_logistics';
|
||||
$this->version = '2.1';
|
||||
$this->author = 'PrestaShop';
|
||||
$this->limited_countries = array('fr');
|
||||
|
||||
parent::__construct ();
|
||||
|
||||
$this->page = basename(__FILE__, '.php');
|
||||
$this->displayName = $this->l('So Colissimo');
|
||||
$this->description = $this->l('Offer your customers, different delivery methods with LaPoste.');
|
||||
$this->url = Tools::getProtocol().htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'modules/'.$this->name.'/validation.php';
|
||||
|
||||
if (self::isInstalled($this->name))
|
||||
{
|
||||
$ids = array();
|
||||
$warning = array();
|
||||
$soCarrier = new Carrier(Configuration::get('SOCOLISSIMO_CARRIER_ID'));
|
||||
if (Validate::isLoadedObject($soCarrier))
|
||||
{
|
||||
if (!$this->checkZone((int)($soCarrier->id)))
|
||||
$warning[] .= $this->l('\'Carrier Zone(s)\'').' ';
|
||||
if (!$this->checkGroup((int)($soCarrier->id)))
|
||||
$warning[] .= $this->l('\'Carrier Group\'').' ';
|
||||
if (!$this->checkRange((int)($soCarrier->id)))
|
||||
$warning[] .= $this->l('\'Carrier Range(s)\'').' ';
|
||||
if (!$this->checkDelivery((int)($soCarrier->id)))
|
||||
$warning[] .= $this->l('\'Carrier price delivery\'').' ';
|
||||
}
|
||||
|
||||
//Check config and display warning
|
||||
if (!Configuration::get('SOCOLISSIMO_ID'))
|
||||
$warning[] .= $this->l('\'Id FO\'').' ';
|
||||
if (!Configuration::get('SOCOLISSIMO_KEY'))
|
||||
$warning[] .= $this->l('\'Key\'').' ';
|
||||
if (!Configuration::get('SOCOLISSIMO_URL'))
|
||||
$warning[] .= $this->l('\'Url So\'').' ';
|
||||
|
||||
if (count($warning))
|
||||
$this->warning .= implode(' , ',$warning).$this->l('must be configured to use this module correctly').' ';
|
||||
}
|
||||
$this->errorMessage = array('998' => $this->l('Invalid key'), '999' => $this->l('Error occurred during shipping step.'), '001' => $this->l('Login FO missing'),
|
||||
'002' => $this->l('Login FO incorrect'), '003' => $this->l('Customer unauthorized'),'004' => $this->l('Required field missing'), '006' => $this->l('Missing signature'),
|
||||
'007' => $this->l('Invalid signature'), '008' => $this->l('Invalid Zip/ Postal code'), '009' => $this->l('Incorrect url format return validation.'), '010' => $this->l('Incorrect url format return error.'),
|
||||
'011' => $this->l('Invalid transaction ID.'), '012' => $this->l('Format incorrect shipping costs.'), '015' => $this->l('Socolissimo server unavailable.'),
|
||||
'016' => $this->l('Socolissimo server unavailable.'), '004' => $this->l('Required field missing'), '004' => $this->l('Required field missing'));
|
||||
|
||||
}
|
||||
|
||||
public function install()
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
if (!parent::install() OR !Configuration::updateValue('SOCOLISSIMO_ID', NULL) OR !Configuration::updateValue('SOCOLISSIMO_KEY', NULL)
|
||||
OR !Configuration::updateValue('SOCOLISSIMO_URL', 'https://ws.colissimo.fr/pudo-fo/storeCall.do') OR !Configuration::updateValue('SOCOLISSIMO_PREPARATION_TIME', 1)
|
||||
OR !Configuration::updateValue('SOCOLISSIMO_OVERCOST', 3.6) OR !$this->registerHook('extraCarrier') OR !$this->registerHook('AdminOrder') OR !$this->registerHook('updateCarrier')
|
||||
OR !$this->registerHook('newOrder') OR !$this->registerHook('paymentTop') OR !Configuration::updateValue('SOCOLISSIMO_SUP_URL', 'http://ws.colissimo.fr/supervision-pudo/supervision.jsp')
|
||||
OR !Configuration::updateValue('SOCOLISSIMO_SUP', true) OR !Configuration::updateValue('SOCOLISSIMO_USE_FANCYBOX', true))
|
||||
return false;
|
||||
|
||||
|
||||
//creat config table in database
|
||||
$sql = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'socolissimo_delivery_info` (
|
||||
`id_cart` int(10) NOT NULL,
|
||||
`id_customer` int(10) NOT NULL,
|
||||
`delivery_mode` varchar(3) NOT NULL,
|
||||
`prid` text(10) NOT NULL,
|
||||
`prname` varchar(64) NOT NULL,
|
||||
`prfirstname` varchar(64) NOT NULL,
|
||||
`prcompladress` text NOT NULL,
|
||||
`pradress1` text NOT NULL,
|
||||
`pradress2` text NOT NULL,
|
||||
`pradress3` text NOT NULL,
|
||||
`pradress4` text NOT NULL,
|
||||
`przipcode` text(10) NOT NULL,
|
||||
`prtown` varchar(64) NOT NULL,
|
||||
`cephonenumber` varchar(10) NOT NULL,
|
||||
`ceemail` varchar(64) NOT NULL,
|
||||
`cecompanyname` varchar(64) NOT NULL,
|
||||
`cedeliveryinformation` text NOT NULL,
|
||||
`cedoorcode1` varchar(10) NOT NULL,
|
||||
`cedoorcode2` varchar(10) NOT NULL,
|
||||
PRIMARY KEY (`id_cart`,`id_customer`)
|
||||
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;';
|
||||
|
||||
if (!Db::getInstance()->Execute($sql))
|
||||
return false;
|
||||
|
||||
//add carrier in back office
|
||||
if (!$this->createSoColissimoCarrier($this->_config))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
$so_id = (int)Configuration::get('SOCOLISSIMO_CARRIER_ID');
|
||||
|
||||
if (!parent::uninstall()
|
||||
OR !Db::getInstance()->Execute('DROP TABLE IF EXISTS`'._DB_PREFIX_.'socolissimo_delivery_info`')
|
||||
OR !$this->unregisterHook('extraCarrier')
|
||||
OR !$this->unregisterHook('payment')
|
||||
OR !$this->unregisterHook('AdminOrder')
|
||||
OR !$this->unregisterHook('newOrder')
|
||||
OR !$this->unregisterHook('updateCarrier')
|
||||
OR !$this->unregisterHook('paymentTop')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_ID')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_USE_FANCYBOX')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_KEY')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_URL')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_OVERCOST')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_PREPARATION_TIME')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_CARRIER_ID')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_SUP')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_SUP_URL')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_OVERCOST_TAX')
|
||||
OR !Configuration::deleteByName('SOCOLISSIMO_FALLBACK'))
|
||||
return false;
|
||||
|
||||
//Delete So Carrier
|
||||
$soCarrier = new Carrier($so_id);
|
||||
//if socolissimo carrier is default set other one as default
|
||||
if (Configuration::get('PS_CARRIER_DEFAULT') == (int)($soCarrier->id))
|
||||
{
|
||||
$carriersD = Carrier::getCarriers((int)($cookie->id_lang));
|
||||
foreach($carriersD as $carrierD)
|
||||
if ($carrierD['active'] AND !$carrierD['deleted'] AND ($carrierD['name'] != $this->_config['name']))
|
||||
Configuration::updateValue('PS_CARRIER_DEFAULT', $carrierD['id_carrier']);
|
||||
}
|
||||
//save old carrier id
|
||||
Configuration::updateValue('SOCOLISSIMO_CARRIER_ID_HIST', Configuration::get('SOCOLISSIMO_CARRIER_ID_HIST').'|'.(int)($soCarrier->id));
|
||||
$soCarrier->deleted = 1;
|
||||
|
||||
if (!$soCarrier->update())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
$this->_html .= '<h2>' . $this->l('So Colissimo').'</h2>';
|
||||
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1)
|
||||
$this->_html .= '<div class="alert error"><img src="'._PS_IMG_.'admin/forbbiden.gif" alt="nok" /> '.$this->l('So Colissimo isn\'t compliant with One Page Checkout feature, in order to use this module, please activate the standard order process (Preferences > "Order process type")').'</div>';
|
||||
|
||||
if (!empty($_POST) AND Tools::isSubmit('submitSave'))
|
||||
{
|
||||
$this->_postValidation();
|
||||
if (!sizeof($this->_postErrors))
|
||||
$this->_postProcess();
|
||||
else
|
||||
foreach ($this->_postErrors AS $err)
|
||||
$this->_html .= '<div class="alert error"><img src="'._PS_IMG_.'admin/forbbiden.gif" alt="nok" /> '.$err.'</div>';
|
||||
}
|
||||
$this->_displayForm();
|
||||
return $this->_html;
|
||||
}
|
||||
|
||||
|
||||
private function _displayForm()
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
$this->_html .= '<form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'" method="post" class="form">
|
||||
<fieldset><legend><img src="'.$this->_path.'logo.gif" alt="" /> '.$this->l('Description').'</legend>'.
|
||||
$this->l('SoColissimo is a service offered by La Poste, which allows you to offer buyers 5 modes of delivery.').' :
|
||||
<br/><br/><ul style ="list-style:disc outside none;margin-left:30px;">
|
||||
<li>'.$this->l('To home').'.</li>
|
||||
<li>'.$this->l('To home (with appointment)').'.</li>
|
||||
<li>'.$this->l('To Cityssimo space').'.</li>
|
||||
<li>'.$this->l('To post office').'.</li>
|
||||
<li>'.$this->l('To merchant').'.</li>
|
||||
</ul>
|
||||
<p>'.$this->l('This module is free and allows you to activate the offer on your store.').'</p>
|
||||
<p><a href="http://www.prestashop.com/download/partner_modules/docs/Intergation_socolissimo.pdf">
|
||||
>'.$this->l('Documentation').'<</a></p>
|
||||
</fieldset>
|
||||
<div class="clear"> </div>
|
||||
<fieldset><legend><img src="'.$this->_path.'logo.gif" alt="" /> '.$this->l('Settings').'</legend>
|
||||
<label style="color:#CC0000;text-decoration : underline;">'.$this->l('Important').': </label>
|
||||
<div class="margin-form">
|
||||
<p style="width:500px">'.$this->l('To open your SoColissimo account, please contact "La Poste" at this phone number: 3634 (French phone number).').'</p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('ID So').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="id_user" value="'.Tools::safeOutput(Tools::getValue('id_user', Configuration::get('SOCOLISSIMO_ID'))).'" />
|
||||
<p>' . $this->l('Id user for back office SoColissimo.') . '</p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('Key').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="key" value="'.Tools::safeOutput(Tools::getValue('key', Configuration::get('SOCOLISSIMO_KEY'))).'" />
|
||||
<p>'.$this->l('Secure key for back office SoColissimo.').'</p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('Preparation time').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" size="5" name="dypreparationtime" value="'.(int)(Tools::getValue('dypreparationtime',Configuration::get('SOCOLISSIMO_PREPARATION_TIME'))).'" /> '.$this->l('Day(s)').'
|
||||
<p>' . $this->l('Average time of preparation of materials.') . ' <br><span style="color:red">'
|
||||
.$this->l('Average time must be the same in Coliposte back office.').'</span></p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('Overcost').' : </label>
|
||||
<div class="margin-form">
|
||||
<input size="11" type="text" size="5" name="overcost" onkeyup="this.value = this.value.replace(/,/g, \'.\');"
|
||||
value="'.(float)(Tools::getValue('overcost',number_format(Configuration::get('SOCOLISSIMO_OVERCOST'), 2, '.', ''))).'" /> € HT
|
||||
<p>'. $this->l('Additional cost if making appointments.') . ' <br><span style="color:red">'
|
||||
.$this->l('Additional cost must be the same in Coliposte back office.').'</span></p>
|
||||
</div>
|
||||
<div class="margin-form">
|
||||
<p>--------------------------------------------------------------------------------------------------------</p>
|
||||
<span style="color:red">'
|
||||
.$this->l('Be VERY CAREFUL with these settings, change may cause a malfunction of the module.').
|
||||
'</span>
|
||||
</div>
|
||||
<label>'.$this->l('Url So').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" size="45" name="url_so" value="'.htmlentities(Tools::getValue('url_so',Configuration::get('SOCOLISSIMO_URL')),ENT_NOQUOTES, 'UTF-8').'" />
|
||||
<p>' . $this->l('Url of back office SoColissimo.') . '</p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('Fancybox').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="radio" name="SOCOLISSIMO_USE_FANCYBOX" id="fancybox_on" value="1" '.(Configuration::get('SOCOLISSIMO_USE_FANCYBOX') ? 'checked="checked" ' : '').'/>
|
||||
<label class="t" for="fancybox_on"> <img src="../img/admin/enabled.gif" alt="'.$this->l('Enabled').'" title="'.$this->l('Enabled').'" /></label>
|
||||
<input type="radio" name="SOCOLISSIMO_USE_FANCYBOX" id="fancybox_off" value="0" '.(!Configuration::get('SOCOLISSIMO_USE_FANCYBOX') ? 'checked="checked" ' : '').'/>
|
||||
<label class="t" for="fancybox_off"> <img src="../img/admin/disabled.gif" alt="'.$this->l('Disabled').'" title="'.$this->l('Disabled').'" /></label>
|
||||
<p>'.$this->l('If you enable this option, the page of socolissimo will displayed in a fancybox').'</p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('Supervision').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="radio" name="sup_active" id="active_on" value="1" '.(Configuration::get('SOCOLISSIMO_SUP') ? 'checked="checked" ' : '').'/>
|
||||
<label class="t" for="active_on"> <img src="../img/admin/enabled.gif" alt="'.$this->l('Enabled').'" title="'.$this->l('Enabled').'" /></label>
|
||||
<input type="radio" name="sup_active" id="active_off" value="0" '.(!Configuration::get('SOCOLISSIMO_SUP') ? 'checked="checked" ' : '').'/>
|
||||
<label class="t" for="active_off"> <img src="../img/admin/disabled.gif" alt="'.$this->l('Disabled').'" title="'.$this->l('Disabled').'" /></label>
|
||||
<p>'.$this->l('Enable or disable the \'check availability\' of SoColissimo service.').'</p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('Url Supervision').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" size="45" name="url_sup" value="'.htmlentities(Tools::getValue('url_sup',Configuration::get('SOCOLISSIMO_SUP_URL')),ENT_NOQUOTES, 'UTF-8').'" />
|
||||
<p>' . $this->l('The URL of supervision is to ensure the availability of the service socolissimo. It is not advisable to disabled.') . '</p>
|
||||
</div>
|
||||
|
||||
<label>'.$this->l('Fallback carrier name').' : </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" size="45" name="fallback_carrier" value="'.htmlentities(Tools::getValue('fallback_carrier',Configuration::get('SOCOLISSIMO_FALLBACK')),ENT_NOQUOTES, 'UTF-8').'" />
|
||||
<p>' . $this->l('If the service is not available, enable this carrier automatically to allow orders.') . '</p>
|
||||
</div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" value="'.$this->l('Save').'" name="submitSave" class="button" style="margin:10px 0px 0px 25px;" />
|
||||
</div>
|
||||
</fieldset></form>
|
||||
|
||||
<div class="clear"> </div>
|
||||
|
||||
<fieldset><legend><img src="'.$this->_path.'logo.gif" alt="" /> '.$this->l('Information').'</legend>
|
||||
<p>'.$this->l('Please fill in these two addresses in your Back Office SoColissimo.').' : </p><br>
|
||||
<label>'.$this->l('Validation url').' : </label>
|
||||
<div class="margin-form">
|
||||
<p>'.htmlentities($this->url,ENT_NOQUOTES, 'UTF-8').'</p>
|
||||
</div>
|
||||
<label>'.$this->l('Return url').' : </label>
|
||||
<div class="margin-form">
|
||||
<p>'.htmlentities($this->url,ENT_NOQUOTES, 'UTF-8').'</p>
|
||||
</div>
|
||||
</fieldset>';
|
||||
}
|
||||
|
||||
private function _postValidation()
|
||||
{
|
||||
if (Tools::getValue('id_user') == NULL)
|
||||
$this->_postErrors[] = $this->l('ID SO not specified');
|
||||
|
||||
if (Tools::getValue('key') == NULL)
|
||||
$this->_postErrors[] = $this->l('Key SO not specified');
|
||||
|
||||
if (Tools::getValue('dypreparationtime') == NULL)
|
||||
$this->_postErrors[] = $this->l('Preparation time not specified');
|
||||
elseif (!Validate::isInt(Tools::getValue('dypreparationtime')))
|
||||
$this->_postErrors[] = $this->l('Invalid preparation time');
|
||||
|
||||
if (Tools::getValue('overcost') == NULL)
|
||||
$this->_postErrors[] = $this->l('Overcost not specified');
|
||||
elseif (!Validate::isFloat(Tools::getValue('overcost')))
|
||||
$this->_postErrors[] = $this->l('Invalid overcost');
|
||||
}
|
||||
|
||||
private function _postProcess()
|
||||
{
|
||||
|
||||
if (Configuration::updateValue('SOCOLISSIMO_ID', Tools::getValue('id_user'))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_KEY', Tools::getValue('key'))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_URL', pSQL(Tools::getValue('url_so')))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_PREPARATION_TIME', (int)(Tools::getValue('dypreparationtime')))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_OVERCOST', (float)(Tools::getValue('overcost')))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_SUP_URL', Tools::getValue('url_sup'))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_OVERCOST_TAX', Tools::getValue('id_tax_rules_group'))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_USE_FANCYBOX', Tools::getValue('SOCOLISSIMO_USE_FANCYBOX'))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_SUP', (int)(Tools::getValue('sup_active')))
|
||||
AND Configuration::updateValue('SOCOLISSIMO_FALLBACK', Tools::getValue('fallback_carrier')))
|
||||
{
|
||||
//save old carrier id if change
|
||||
if (!in_array((int)(Tools::getValue('carrier')), explode('|',Configuration::get('SOCOLISSIMO_CARRIER_ID_HIST'))))
|
||||
Configuration::updateValue('SOCOLISSIMO_CARRIER_ID_HIST', Configuration::get('SOCOLISSIMO_CARRIER_ID_HIST').'|'.(int)(Tools::getValue('carrier')));
|
||||
|
||||
$dataSync = (($so_login = Configuration::get('SOCOLISSIMO_ID'))
|
||||
? '<img src="http://www.prestashop.com/modules/socolissimo.png?ps_id='.urlencode($so_login).'" style="float:right" />' : '');
|
||||
$this->_html .= $this->displayConfirmation($this->l('Configuration updated').$dataSync);
|
||||
|
||||
}
|
||||
else
|
||||
$this->_html .= '<div class="alert error"><img src="'._PS_IMG_.'admin/forbbiden.gif" alt="nok" /> '.$this->l('Cannot save settings').'</div>';
|
||||
}
|
||||
|
||||
public function hookExtraCarrier($params)
|
||||
{
|
||||
global $smarty, $cookie;
|
||||
|
||||
$customer = new Customer($params['address']->id_customer);
|
||||
$gender = array('1'=>'MR','2'=>'MME');
|
||||
if (in_array((int)($customer->id_gender),array(1,2)))
|
||||
$cecivility = $gender[(int)($customer->id_gender)];
|
||||
else
|
||||
$cecivility = 'MR';
|
||||
$carrierSo = new Carrier((int)(Configuration::get('SOCOLISSIMO_CARRIER_ID')));
|
||||
|
||||
if (isset($carrierSo) AND $carrierSo->active)
|
||||
{
|
||||
$signature = $this->make_key(substr($this->lower($params['address']->lastname),0,34),
|
||||
(int)(Configuration::Get('SOCOLISSIMO_PREPARATION_TIME')),
|
||||
number_format((float)($params['cart']->getOrderShippingCost($carrierSo->id, true)), 2, ',', ''),
|
||||
(int)($params['address']->id_customer),(int)($params['address']->id));
|
||||
|
||||
$orderId = $this->formatOrderId((int)($params['address']->id));
|
||||
$inputs = array('PUDOFOID' => Configuration::get('SOCOLISSIMO_ID'),
|
||||
'ORDERID' => $orderId,
|
||||
'CENAME' => substr($this->lower($params['address']->lastname),0, 34),
|
||||
'TRCLIENTNUMBER' => $this->upper((int)($params['address']->id_customer)),
|
||||
'CECIVILITY' => $cecivility,
|
||||
'CEFIRSTNAME' => substr($this->lower($params['address']->firstname),0,29),
|
||||
'CECOMPANYNAME' => substr($this->upper($params['address']->company),0,38),
|
||||
'CEEMAIL' => $params['cookie']->email,
|
||||
'CEPHONENUMBER' => str_replace(array(' ', '.', '-', ',', ';', '+', '/', '\\', '+', '(', ')'),'',$params['address']->phone_mobile),
|
||||
'CEADRESS3' => substr($this->upper($params['address']->address1),0,38),
|
||||
'CEADRESS4' => substr($this->upper($params['address']->address2),0,38),
|
||||
'CEZIPCODE' => $params['address']->postcode,
|
||||
'CETOWN' => substr($this->upper($params['address']->city),0,32),
|
||||
'DYWEIGHT' => ((float)($params['cart']->getTotalWeight()) * 1000),
|
||||
'SIGNATURE' => htmlentities($signature,ENT_NOQUOTES, 'UTF-8'),
|
||||
'carrier_id' => (int)($carrierSo->id),
|
||||
'gift' => '',
|
||||
'gift_message' => '',
|
||||
'TRPARAMPLUS' => '',
|
||||
'DYFORWARDINGCHARGES' => number_format((float)($params['cart']->getOrderShippingCost($carrierSo->id)), 2, ',', ''),
|
||||
'DYPREPARATIONTIME' => (int)(Configuration::Get('SOCOLISSIMO_PREPARATION_TIME')),
|
||||
'TRRETURNURLKO' => htmlentities($this->url,ENT_NOQUOTES, 'UTF-8'),
|
||||
'TRRETURNURLOK' => htmlentities($this->url,ENT_NOQUOTES, 'UTF-8'));
|
||||
|
||||
$serialsInput = '';
|
||||
foreach($inputs as $key => $val)
|
||||
$serialsInput .= '&'.$key.'='.$val;
|
||||
$serialsInput = ltrim($serialsInput, '&');
|
||||
$row['id_carrier'] = (int)($carrierSo->id);
|
||||
$smarty->assign(array('select_label' => $this->l('Select delivery mode'), 'edit_label' => $this->l('Edit delivery mode'), 'token' => sha1('socolissimo'._COOKIE_KEY_.$cookie->id_cart), 'urlSo' => Configuration::get('SOCOLISSIMO_URL').'?trReturnUrlKo='.htmlentities($this->url,ENT_NOQUOTES, 'UTF-8'),'id_carrier' => (int)($row['id_carrier']),
|
||||
'inputs' => $inputs, 'serialsInput' => $serialsInput, 'finishProcess' => $this->l('To choose SoColissimo, click on a delivery method')));
|
||||
|
||||
$country = new Country((int)($params['address']->id_country));
|
||||
|
||||
$carriers = Carrier::getCarriers($cookie->id_lang, true , false,false, NULL, (defined('ALL_CARRIERS') ? ALL_CARRIERS : Carrier::ALL_CARRIERS ));
|
||||
$ids = array();
|
||||
foreach($carriers as $carrier)
|
||||
$ids[] = $carrier['id_carrier'];
|
||||
|
||||
/*
|
||||
p(var_dump($params['cart']->id_carrier == Configuration::Get('SOCOLISSIMO_CARRIER_ID')));
|
||||
p(var_dump((bool)$this->getDeliveryInfos((int)$cookie->id_cart, (int)$cookie->id_customer)));
|
||||
*/
|
||||
|
||||
if ( $params['cart']->id_carrier == Configuration::Get('SOCOLISSIMO_CARRIER_ID') && $this->getDeliveryInfos((int)$cookie->id_cart, (int)$cookie->id_customer))
|
||||
$smarty->assign('already_select_delivery', true);
|
||||
else
|
||||
$smarty->assign('already_select_delivery', false);
|
||||
|
||||
if (($country->iso_code == 'FR') AND (Configuration::Get('SOCOLISSIMO_ID') != NULL)
|
||||
AND (Configuration::get('SOCOLISSIMO_KEY') != NULL) AND $this->checkAvailibility()
|
||||
AND $this->checkSoCarrierAvailable((int)(Configuration::get('SOCOLISSIMO_CARRIER_ID')))
|
||||
AND in_array((int)(Configuration::get('SOCOLISSIMO_CARRIER_ID')),$ids))
|
||||
{
|
||||
if (Configuration::get('PS_ORDER_PROCESS_TYPE') || Configuration::get('SOCOLISSIMO_USE_FANCYBOX'))
|
||||
return $this->display(__FILE__, 'socolissimo_fancybox.tpl');
|
||||
else
|
||||
return $this->display(__FILE__, 'socolissimo_redirect.tpl');
|
||||
}
|
||||
else
|
||||
{
|
||||
$smarty->assign('ids', explode('|',Configuration::get('SOCOLISSIMO_CARRIER_ID_HIST')));
|
||||
return $this->display(__FILE__, 'socolissimo_error.tpl');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function hooknewOrder($params)
|
||||
{
|
||||
global $cookie;
|
||||
if ($params['order']->id_carrier != Configuration::get('SOCOLISSIMO_CARRIER_ID'))
|
||||
return;
|
||||
$order = $params['order'];
|
||||
$order->id_address_delivery = $this->isSameAddress((int)($order->id_address_delivery), (int)($order->id_cart), (int)($order->id_customer));
|
||||
$order->update();
|
||||
}
|
||||
|
||||
public function hookAdminOrder($params)
|
||||
{
|
||||
|
||||
$deliveryMode = array('DOM' => 'Livraison à domicile', 'BPR' => 'Livraison en Bureau de Poste',
|
||||
'A2P' => 'Livraison Commerce de proximité', 'MRL' => 'Livraison Commerce de proximité',
|
||||
'CIT' => 'Livraison en Cityssimo', 'ACP' => 'Agence ColiPoste', 'CDI' => 'Centre de distribution',
|
||||
'RDV' => 'Livraison sur Rendez-vous');
|
||||
|
||||
$order = new Order($params['id_order']);
|
||||
$addressDelivery = new Address((int)($order->id_address_delivery), (int)($params['cookie']->id_lang));
|
||||
|
||||
$soCarrier = new Carrier((int)(Configuration::get('SOCOLISSIMO_CARRIER_ID')));
|
||||
$deliveryInfos = $this->getDeliveryInfos((int)($order->id_cart),(int)($order->id_customer));
|
||||
if (((int)($order->id_carrier) == (int)($soCarrier->id) OR in_array((int)($order->id_carrier), explode('|',Configuration::get('SOCOLISSIMO_CARRIER_ID_HIST')))) AND !empty($deliveryInfos))
|
||||
{
|
||||
$html = '<br><br><fieldset style="width:400px;"><legend><img src="'.$this->_path.'logo.gif" alt="" /> '.$this->l('So Colissimo').'</legend>';
|
||||
$html .= '<b>'.$this->l('Delivery mode').' : </b>';
|
||||
switch ($deliveryInfos['delivery_mode'])
|
||||
{
|
||||
case 'DOM':
|
||||
case 'RDV':
|
||||
$html .= $deliveryMode[$deliveryInfos['delivery_mode']].'<br /><br />';
|
||||
$html .='<b>'.$this->l('Customer').' : </b>'.Tools::htmlentitiesUTF8($addressDelivery->firstname).' '.Tools::htmlentitiesUTF8($addressDelivery->lastname).'<br />'.
|
||||
(!empty($deliveryInfos['cecompanyname']) ? '<b>'.$this->l('Company').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['cecompanyname']).'<br/>' : '' ).
|
||||
(!empty($deliveryInfos['ceemail']) ? '<b>'.$this->l('E-mail address').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['ceemail']).'<br/>' : '' ).
|
||||
(!empty($deliveryInfos['cephonenumber']) ? '<b>'.$this->l('Phone').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['cephonenumber']).'<br/><br/>' : '' ).
|
||||
'<b>'.$this->l('Customer address').' : </b><br/>'
|
||||
.(Tools::htmlentitiesUTF8($addressDelivery->address1) ? Tools::htmlentitiesUTF8($addressDelivery->address1).'<br />' : '')
|
||||
.(!empty($addressDelivery->address2) ? Tools::htmlentitiesUTF8($addressDelivery->address2).'<br />' : '')
|
||||
.(!empty($addressDelivery->postcode) ? Tools::htmlentitiesUTF8($addressDelivery->postcode).'<br />' : '')
|
||||
.(!empty($addressDelivery->city) ? Tools::htmlentitiesUTF8($addressDelivery->city).'<br />' : '')
|
||||
.(!empty($addressDelivery->country) ? Tools::htmlentitiesUTF8($addressDelivery->country).'<br />' : '')
|
||||
.(!empty($addressDelivery->other) ? '<hr><b>'.$this->l('Other').' : </b>'.Tools::htmlentitiesUTF8($addressDelivery->other).'<br /><br />' : '')
|
||||
.(!empty($deliveryInfos['cedoorcode1']) ? '<b>'.$this->l('Door code').' 1 : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['cedoorcode1']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['cedoorcode2']) ? '<b>'.$this->l('Door code').' 2 : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['cedoorcode2']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['cedeliveryinformation']) ? '<b>'.$this->l('Delivery information').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['cedeliveryinformation']).'<br/><br/>' : '' );
|
||||
break;
|
||||
default:
|
||||
$html .= str_replace('+',' ',$deliveryMode[$deliveryInfos['delivery_mode']]).'<br/>'
|
||||
.(!empty($deliveryInfos['prid']) ? '<b>'.$this->l('Pick up point ID').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['prid']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['prname']) ? '<b>'.$this->l('Pick up point').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['prname']).'<br/>' : '' )
|
||||
.'<b>'.$this->l('Pick up point address').' : </b><br/>'
|
||||
.(!empty($deliveryInfos['pradress1']) ? Tools::htmlentitiesUTF8($deliveryInfos['pradress1']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['pradress2']) ? Tools::htmlentitiesUTF8($deliveryInfos['pradress2']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['pradress3']) ? Tools::htmlentitiesUTF8($deliveryInfos['pradress3']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['pradress4']) ? Tools::htmlentitiesUTF8($deliveryInfos['pradress4']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['przipcode']) ? Tools::htmlentitiesUTF8($deliveryInfos['przipcode']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['prtown']) ? Tools::htmlentitiesUTF8($deliveryInfos['prtown']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['ceemail']) ? '<b>'.$this->l('Email').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['ceemail']).'<br/>' : '' )
|
||||
.(!empty($deliveryInfos['cephonenumber']) ? '<b>'.$this->l('Phone').' : </b>'.Tools::htmlentitiesUTF8($deliveryInfos['cephonenumber']).'<br/><br/>' : '' );
|
||||
|
||||
break;
|
||||
}
|
||||
$html .= '</fieldset>';
|
||||
return $html;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function hookupdateCarrier($params)
|
||||
{
|
||||
if ((int)($params['id_carrier']) == (int)(Configuration::get('SOCOLISSIMO_CARRIER_ID')))
|
||||
{
|
||||
Configuration::updateValue('SOCOLISSIMO_CARRIER_ID', (int)($params['carrier']->id));
|
||||
Configuration::updateValue('SOCOLISSIMO_CARRIER_ID_HIST', Configuration::get('SOCOLISSIMO_CARRIER_ID_HIST').'|'.(int)($params['carrier']->id));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function hookpaymentTop($params)
|
||||
{
|
||||
if ($params['cart']->id_carrier == Configuration::Get('SOCOLISSIMO_CARRIER_ID') AND !$this->getDeliveryInfos((int)$params['cookie']->id_cart, (int)$params['cookie']->id_customer))
|
||||
$params['cart']->id_carrier = 0;
|
||||
}
|
||||
|
||||
public function make_key($ceName, $dyPraparationTime, $dyForwardingCharges, $trClientNumber, $orderId)
|
||||
{
|
||||
return sha1(Configuration::get('SOCOLISSIMO_ID').$ceName.$dyPraparationTime.$dyForwardingCharges.$trClientNumber.self::formatOrderId($orderId).Configuration::get('SOCOLISSIMO_KEY'));
|
||||
}
|
||||
|
||||
public static function createSoColissimoCarrier($config)
|
||||
{
|
||||
$carrier = new Carrier();
|
||||
$carrier->name = $config['name'];
|
||||
$carrier->id_tax_rules_group = $config['id_tax_rules_group'];
|
||||
$carrier->id_zone = $config['id_zone'];
|
||||
$carrier->url = $config['url'];
|
||||
$carrier->active = $config['active'];
|
||||
$carrier->deleted = $config['deleted'];
|
||||
$carrier->delay = $config['delay'];
|
||||
$carrier->shipping_handling = $config['shipping_handling'];
|
||||
$carrier->range_behavior = $config['range_behavior'];
|
||||
$carrier->is_module = $config['is_module'];
|
||||
$carrier->shipping_external = $config['shipping_external'];
|
||||
$carrier->external_module_name = $config['external_module_name'];
|
||||
$carrier->need_range = $config['need_range'];
|
||||
|
||||
$languages = Language::getLanguages(true);
|
||||
foreach ($languages as $language) {
|
||||
if ($language['iso_code'] == 'fr')
|
||||
$carrier->delay[$language['id_lang']] = $config['delay'][$language['iso_code']];
|
||||
if ($language['iso_code'] == 'en')
|
||||
$carrier->delay[$language['id_lang']] = $config['delay'][$language['iso_code']];
|
||||
}
|
||||
if ($carrier->add())
|
||||
{
|
||||
|
||||
Configuration::updateValue('SOCOLISSIMO_CARRIER_ID',(int)($carrier->id));
|
||||
$groups = Group::getgroups(true);
|
||||
foreach ($groups as $group)
|
||||
{
|
||||
Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'carrier_group VALUE (\''.(int)($carrier->id).'\',\''.(int)($group['id_group']).'\')');
|
||||
}
|
||||
$rangePrice = new RangePrice();
|
||||
$rangePrice->id_carrier = $carrier->id;
|
||||
$rangePrice->delimiter1 = '0';
|
||||
$rangePrice->delimiter2 = '10000';
|
||||
$rangePrice->add();
|
||||
|
||||
$rangeWeight = new RangeWeight();
|
||||
$rangeWeight->id_carrier = $carrier->id;
|
||||
$rangeWeight->delimiter1 = '0';
|
||||
$rangeWeight->delimiter2 = '10000';
|
||||
$rangeWeight->add();
|
||||
|
||||
$zones = Zone::getZones(true);
|
||||
foreach ($zones as $zone)
|
||||
{
|
||||
Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'carrier_zone VALUE (\''.(int)($carrier->id).'\',\''.(int)($zone['id_zone']).'\')');
|
||||
Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'delivery VALUE (\'\',\''.(int)($carrier->id).'\',\''.(int)($rangePrice->id).'\',NULL,\''.(int)($zone['id_zone']).'\',\'1\')');
|
||||
Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'delivery VALUE (\'\',\''.(int)($carrier->id).'\',NULL,\''.(int)($rangeWeight->id).'\',\''.(int)($zone['id_zone']).'\',\'1\')');
|
||||
}
|
||||
//copy logo
|
||||
if (!copy(dirname(__FILE__).'/socolissimo.jpg',_PS_SHIP_IMG_DIR_.'/'.$carrier->id.'.jpg'))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDeliveryInfos($idCart,$idCustomer)
|
||||
{
|
||||
|
||||
$result = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'socolissimo_delivery_info WHERE id_cart = '.(int)($idCart).' AND id_customer = '.(int)($idCustomer));
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function isSameAddress($idAddress,$idCart,$idCustomer)
|
||||
{
|
||||
$return = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'socolissimo_delivery_info WHERE id_cart =\''.(int)($idCart).'\' AND id_customer =\''.(int)($idCustomer).'\'');
|
||||
$psAddress = new Address((int)($idAddress));
|
||||
$newAddress = new Address();
|
||||
|
||||
if($return) {
|
||||
|
||||
if ($this->upper($psAddress->lastname) != $this->upper($return['prname']) || $this->upper($psAddress->firstname) != $this->upper($return['prfirstname']) || $this->upper($psAddress->address1) != $this->upper($return['pradress3']) || $this->upper($psAddress->address2) != $this->upper($return['pradress2']) || $this->upper($psAddress->postcode) != $this->upper($return['przipcode']) || $this->upper($psAddress->city) != $this->upper($return['prtown']) || str_replace(array(' ', '.', '-', ',', ';', '+', '/', '\\', '+', '(', ')'),'',$psAddress->phone_mobile) != $return['cephonenumber'])
|
||||
{
|
||||
|
||||
$newAddress->id_customer = (int)($idCustomer);
|
||||
$newAddress->lastname = substr($return['prname'],0,32);
|
||||
$newAddress->firstname = substr($return['prfirstname'],0,32);
|
||||
$newAddress->postcode = $return['przipcode'];
|
||||
$newAddress->city = $return['prtown'];
|
||||
$newAddress->id_country = Country::getIdByName(null, 'france');
|
||||
$newAddress->alias = 'So Colissimo - '.date('d-m-Y');
|
||||
|
||||
if (!in_array($return['delivery_mode'], array('DOM','RDV')))
|
||||
{
|
||||
$newAddress->active = 1;
|
||||
$newAddress->deleted = 1;
|
||||
$newAddress->address1 = $return['pradress1'];
|
||||
$newAddress->add();
|
||||
}
|
||||
else
|
||||
{
|
||||
$newAddress->address1 = $return['pradress3'];
|
||||
((isset($return['pradress2'])) ? $newAddress->address2 = $return['pradress2'] : $newAddress->address2 = '');
|
||||
((isset($return['pradress1'])) ? $newAddress->other .= $return['pradress1'] : $newAddress->other = '');
|
||||
((isset($return['pradress4'])) ? $newAddress->other .= ' | '.$return['pradress4'] : $newAddress->other = '');
|
||||
$newAddress->postcode = $return['przipcode'];
|
||||
$newAddress->city = $return['prtown'];
|
||||
$newAddress->id_country = Country::getIdByName(null, 'france');
|
||||
$newAddress->alias = 'So Colissimo - '.date('d-m-Y');
|
||||
$newAddress->add();
|
||||
}
|
||||
return (int)($newAddress->id);
|
||||
}
|
||||
else
|
||||
return (int)($psAddress->id);
|
||||
|
||||
} else {
|
||||
return (int) $psAddress->id;
|
||||
}
|
||||
}
|
||||
|
||||
public function checkZone($id_carrier)
|
||||
{
|
||||
$result = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'carrier_zone WHERE id_carrier = '.(int)($id_carrier));
|
||||
if ($result)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public function checkGroup($id_carrier)
|
||||
{
|
||||
$result = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'carrier_group WHERE id_carrier = '.(int)($id_carrier));
|
||||
if ($result)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public function checkRange($id_carrier)
|
||||
{
|
||||
switch (Configuration::get('PS_SHIPPING_METHOD'))
|
||||
{
|
||||
case '0' :
|
||||
$sql = 'SELECT * FROM '._DB_PREFIX_.'range_price WHERE id_carrier = '.(int)($id_carrier);
|
||||
break;
|
||||
case '1' :
|
||||
$sql = 'SELECT * FROM '._DB_PREFIX_.'range_weight WHERE id_carrier = '.(int)($id_carrier);
|
||||
break;
|
||||
}
|
||||
$result = Db::getInstance()->getRow($sql);
|
||||
if ($result)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public function checkDelivery($id_carrier)
|
||||
{
|
||||
$result = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'delivery WHERE id_carrier = '.(int)($id_carrier));
|
||||
if ($result)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public function upper($strIn)
|
||||
{
|
||||
$strOut = Tools::link_rewrite($strIn);
|
||||
return strtoupper(str_replace('-',' ',$strOut));
|
||||
}
|
||||
|
||||
|
||||
public function lower($strIn)
|
||||
{
|
||||
$strOut = Tools::link_rewrite($strIn);
|
||||
return strtolower(str_replace('-',' ',$strOut));
|
||||
}
|
||||
|
||||
public function formatOrderId($id)
|
||||
{
|
||||
if (strlen($id)<5)
|
||||
while (strLen($id) != 5)
|
||||
{
|
||||
$id = '0'.$id;
|
||||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
public function checkAvailibility()
|
||||
{
|
||||
if (Configuration::get('SOCOLISSIMO_SUP'))
|
||||
{
|
||||
$ctx = @stream_context_create(array('http' => array('timeout' => 1)));
|
||||
$return = @file_get_contents(Configuration::get('SOCOLISSIMO_SUP_URL'), 0, $ctx);
|
||||
|
||||
if (ini_get('allow_url_fopen') == 0)
|
||||
return true;
|
||||
else
|
||||
{
|
||||
if (!empty($return))
|
||||
{
|
||||
preg_match('[OK]',$return, $matches);
|
||||
if ($matches[0] == 'OK')
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
public function displaySoError($key)
|
||||
{
|
||||
return $this->errorMessage[$key];
|
||||
}
|
||||
|
||||
private function checkSoCarrierAvailable($id_carrier)
|
||||
{
|
||||
global $cart, $defaultCountry;
|
||||
$carrier = new Carrier((int)($id_carrier));
|
||||
$address = new Address((int)($cart->id_address_delivery));
|
||||
$id_zone = Address::getZoneById((int)($address->id));
|
||||
|
||||
// Get only carriers that are compliant with shipping method
|
||||
if ((Configuration::get('PS_SHIPPING_METHOD') AND $carrier->getMaxDeliveryPriceByWeight($id_zone) === false)
|
||||
OR (!Configuration::get('PS_SHIPPING_METHOD') AND $carrier->getMaxDeliveryPriceByPrice($id_zone) === false))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// If out-of-range behavior carrier is set on "Desactivate carrier"
|
||||
if ($carrier->range_behavior)
|
||||
{
|
||||
// Get id zone
|
||||
if (isset($cart->id_address_delivery) AND $cart->id_address_delivery)
|
||||
$id_zone = Address::getZoneById((int)($cart->id_address_delivery));
|
||||
else
|
||||
$id_zone = (int)$defaultCountry->id_zone;
|
||||
|
||||
// Get only carriers that have a range compatible with cart
|
||||
if ((Configuration::get('PS_SHIPPING_METHOD') AND (!Carrier::checkDeliveryPriceByWeight((int)($carrier->id), $cart->getTotalWeight(), $id_zone)))
|
||||
OR (!Configuration::get('PS_SHIPPING_METHOD') AND (!Carrier::checkDeliveryPriceByPrice((int)($carrier->id), $cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING), $id_zone, $cart->id_currency))))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getOrderShippingCost($params,$shipping_cost)
|
||||
{
|
||||
global $cart;
|
||||
$deliveryInfo = $this->getDeliveryInfos($cart->id, $cart->id_customer);
|
||||
if (!empty($deliveryInfo))
|
||||
if ($deliveryInfo['delivery_mode'] == 'RDV')
|
||||
$shipping_cost += (float)(Configuration::get('SOCOLISSIMO_OVERCOST'));
|
||||
return $shipping_cost;
|
||||
}
|
||||
|
||||
public function getOrderShippingCostExternal($params){}
|
||||
|
||||
}
|
37
modules/_socolissimo/socolissimo_error.tpl
Executable file
@ -0,0 +1,37 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9182 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
$(document).ready(function(){
|
||||
{/literal}
|
||||
{foreach from=$ids item=id}
|
||||
{literal}$($('#id_carrier{/literal}{$id}{literal}').parent().parent()).remove();{/literal}
|
||||
{/foreach}
|
||||
{literal}
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
186
modules/_socolissimo/socolissimo_fancybox.tpl
Executable file
@ -0,0 +1,186 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6735 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if !$only_gifts}
|
||||
|
||||
<a href="#" class="iframe" style="display:none" id="soLink"></a>
|
||||
{if isset($opc) && $opc}
|
||||
<script type="text/javascript">
|
||||
var opc = true;
|
||||
</script>
|
||||
{else}
|
||||
<script type="text/javascript">
|
||||
var opc = false;
|
||||
</script>
|
||||
{/if}
|
||||
{if isset($already_select_delivery) && $already_select_delivery}
|
||||
<script type="text/javascript">
|
||||
var already_select_delivery = true;
|
||||
</script>
|
||||
{else}
|
||||
<script type="text/javascript">
|
||||
var already_select_delivery = false;
|
||||
</script>
|
||||
{/if}
|
||||
<script type="text/javascript">
|
||||
var soInputs = new Object();
|
||||
{foreach from=$inputs item=input key=name name=myLoop}
|
||||
soInputs.{$name} = "{$input|strip_tags|addslashes}";
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
$('#soLink').fancybox({
|
||||
'width' : 1000,
|
||||
'height' : 700,
|
||||
'autoScale' : false,
|
||||
'centerOnScroll' : true,
|
||||
'autoDimensions' : false,
|
||||
'transitionIn' : 'none',
|
||||
'transitionOut' : 'none',
|
||||
'hideOnOverlayClick' : false,
|
||||
'hideOnContentClick' : false,
|
||||
'showCloseButton' : true,
|
||||
'showIframeLoading' : true,
|
||||
'enableEscapeButton' : true,
|
||||
'type' : 'iframe',
|
||||
onStart: function () {
|
||||
$('#soLink').attr('href', 'modules/socolissimo/redirect.php'+serialiseInput(soInputs));
|
||||
},
|
||||
onClosed : function() {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseDir+'/modules/socolissimo/ajax.php',
|
||||
async: false,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
data: 'token={$token"}',
|
||||
success: function(jsonData)
|
||||
{
|
||||
if (jsonData.result && !opc)
|
||||
$('#form').submit();
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
alert('TECHNICAL ERROR\nDetails:\nError thrown: ' + XMLHttpRequest + '\n' + 'Text status: ' + textStatus);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$(document).ready(function()
|
||||
{
|
||||
var interval;
|
||||
$('input[name=id_carrier]').change(function() {
|
||||
so_click();
|
||||
});
|
||||
so_click();
|
||||
});
|
||||
|
||||
|
||||
function so_click()
|
||||
{
|
||||
if (opc)
|
||||
{
|
||||
if (!already_select_delivery)
|
||||
interval = setInterval(function()
|
||||
{
|
||||
modifyCarrierLine(false);
|
||||
},10);
|
||||
|
||||
else if (!$('#edit_socolissimo').length)
|
||||
interval = setInterval(function()
|
||||
{
|
||||
modifyCarrierLine(true);
|
||||
},10);
|
||||
}
|
||||
else if ($('#id_carrier{/literal}{$id_carrier}{literal}').is(':not(:checked)'))
|
||||
{
|
||||
$('[name=processCarrier]').unbind('click').click(function () {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
$('[name=processCarrier]').unbind('click').click(function () {
|
||||
if (acceptCGV())
|
||||
$("#soLink").trigger("click");
|
||||
return false;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function modifyCarrierLine(edit)
|
||||
{
|
||||
if ($('#button_socolissimo').length != 0)
|
||||
{
|
||||
clearInterval(interval);
|
||||
// delete interval value
|
||||
interval = null;
|
||||
}
|
||||
|
||||
$('#button_socolissimo').remove();
|
||||
if (edit && $('input[name=id_carrier]:checked').attr('value') == {/literal}{$id_carrier}{literal})
|
||||
$('#id_carrier{/literal}{$id_carrier}{literal}').parent().prepend('<a style="margin-left:5px;" class="button" id="button_socolissimo" href="#" onclick="redirect();return;" >{/literal}{$edit_label}{literal}</a>');
|
||||
else
|
||||
$('#id_carrier{/literal}{$id_carrier}{literal}').parent().prepend('<a style="margin-left:5px;" class="exclusive" id="button_socolissimo" href="#" onclick="redirect();return;" >{/literal}{$select_label}{literal}</a>');
|
||||
|
||||
if (already_select_delivery)
|
||||
{
|
||||
$('#id_carrier{/literal}{$id_carrier}{literal}').css('display', 'block');
|
||||
$('#id_carrier{/literal}{$id_carrier}{literal}').css('margin', 'auto');
|
||||
$('#id_carrier{/literal}{$id_carrier}{literal}').css('margin-top', '5px');
|
||||
}
|
||||
else
|
||||
$('#id_carrier{/literal}{$id_carrier}{literal}').css('display', 'none');
|
||||
|
||||
}
|
||||
|
||||
function redirect()
|
||||
{
|
||||
document.location.href = '{/literal}{$urlSo}{literal}'+serialiseInput(soInputs);
|
||||
}
|
||||
|
||||
|
||||
function serialiseInput(inputs)
|
||||
{
|
||||
updateGiftData();
|
||||
soInputs.TRPARAMPLUS = soInputs.carrier_id+'|'+soInputs.gift+'|'+soInputs.gift_message;
|
||||
str = '?firstcall=1&';
|
||||
for ( var cle in inputs )
|
||||
str += cle+'='+inputs[cle]+'&';
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
function updateGiftData()
|
||||
{
|
||||
soInputs.gift = ($('#gift').attr('checked') ? '1' : '0' );
|
||||
soInputs.gift_message = $('#gift_message').attr('value');
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
{/if}
|
46
modules/_socolissimo/socolissimo_redirect.tpl
Executable file
@ -0,0 +1,46 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6735 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
function change_action_form()
|
||||
{
|
||||
if ($('#id_carrier{/literal}{$id_carrier}{literal}').is(':not(:checked)'))
|
||||
$('#form').attr("action", 'order.php');
|
||||
else
|
||||
$('#form').attr("action", '{/literal}{$urlSo}{literal}');
|
||||
}
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('input[name=id_carrier]').change(function() {
|
||||
change_action_form();
|
||||
});
|
||||
change_action_form();
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{foreach from=$inputs item=input key=name name=myLoop}
|
||||
<input type="hidden" name="{$name|escape:'htmlall':'UTF-8'}" value="{$input|strip_tags|addslashes}"/>
|
||||
{/foreach}
|
208
modules/_socolissimo/validation.php
Executable file
@ -0,0 +1,208 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9186 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
include('../../config/config.inc.php');
|
||||
include('../../init.php');
|
||||
include('../../header.php');
|
||||
|
||||
require_once(_PS_MODULE_DIR_ . 'socolissimo/socolissimo.php');
|
||||
|
||||
$validReturn = array('PUDOFOID','CECIVILITY','CENAME','CEFIRSTNAME', 'CECOMPANYNAME','CEEMAIL','CEPHONENUMBER', 'DELIVERYMODE','CEADRESS1','CEADRESS2','CEADRESS3','CEADRESS4',
|
||||
'CEZIPCODE','CEDOORCODE1','CEDOORCODE2','CEENTRYPHONE','DYPREPARATIONTIME','DYFORWARDINGCHARGES','ORDERID', 'SIGNATURE','ERRORCODE','TRPARAMPLUS','TRCLIENTNUMBER','PRID','PRNAME',
|
||||
'PRCOMPLADRESS','PRADRESS1','PRADRESS2','PRZIPCODE', 'PRTOWN','CETOWN','TRADERCOMPANYNAME', 'CEDELIVERYINFORMATION', 'CEDOORCODE1', 'CEDOORCODE2');
|
||||
|
||||
//list of non-blocking error
|
||||
$nonBlockingError = array(133, 131, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501);
|
||||
|
||||
$so = new Socolissimo();
|
||||
|
||||
$return = array();
|
||||
foreach ($_POST AS $key => $val)
|
||||
if (in_array(strtoupper($key),$validReturn))
|
||||
$return[strtoupper($key)] = utf8_encode(urldecode(stripslashes($val)));
|
||||
|
||||
if (isset($return['SIGNATURE']) AND isset($return['CENAME']) AND isset($return['DYPREPARATIONTIME']) AND isset($return['DYFORWARDINGCHARGES']) AND isset($return['TRCLIENTNUMBER']) AND isset($return['ORDERID']) AND isset($return['TRCLIENTNUMBER']))
|
||||
{
|
||||
if (!isset($return['ERRORCODE']) OR $return['ERRORCODE'] == NULL OR in_array($return['ERRORCODE'],$nonBlockingError))
|
||||
{
|
||||
|
||||
if ($return['SIGNATURE'] === socolissimo::make_key($return['CENAME'],(float)($return['DYPREPARATIONTIME']),$return['DYFORWARDINGCHARGES'],$return['TRCLIENTNUMBER'], $return['ORDERID']))
|
||||
{
|
||||
global $cookie ;
|
||||
if (isset($cookie) OR is_object($cookie))
|
||||
{
|
||||
|
||||
if (saveOrderShippingDetails((int)($cookie->id_cart),(int)($return['TRCLIENTNUMBER']),$return))
|
||||
{
|
||||
global $cookie;
|
||||
$cart = new Cart((int)($cookie->id_cart));
|
||||
$TRPARAMPLUS = explode('|', Tools::getValue('TRPARAMPLUS'));
|
||||
$cart->id_carrier = $TRPARAMPLUS[0];
|
||||
$cart->gift = (int)$TRPARAMPLUS[1];
|
||||
if ((int)$cart->gift)
|
||||
if (Validate::isMessage($TRPARAMPLUS[2]))
|
||||
$cart->gift_message = strip_tags($TRPARAMPLUS[2]);
|
||||
if (!$cart->update())
|
||||
Tools::redirect();
|
||||
else
|
||||
Tools::redirect('order.php?step=3&cgv=1');
|
||||
}
|
||||
else
|
||||
echo '<div class="alert error"><img src="' . _PS_IMG_ . 'admin/forbbiden.gif" alt="nok" /> '.$so->displaySoError('999').'
|
||||
<p><br/><a href="'.Tools::getProtocol(true).htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'order.php" class="button_small" title="Retour">« Retour</a></p></div>';
|
||||
}
|
||||
else
|
||||
echo '<div class="alert error"><img src="' . _PS_IMG_ . 'admin/forbbiden.gif" alt="nok" /> '.$so->displaySoError('999').'
|
||||
<p><br/><a href="'.Tools::getProtocol(true).htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'order.php" class="button_small" title="Retour">« Retour</a></p></div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div class="alert error"><img src="' . _PS_IMG_ . 'admin/forbbiden.gif" alt="nok" /> '.$so->displaySoError('998').'
|
||||
<p><br/><a href="'.Tools::getProtocol(true).htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'order.php" class="button_small" title="Retour">« Retour</a></p></div>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div class="alert error"><img src="' . _PS_IMG_ . 'admin/forbbiden.gif" alt="nok" /> '.$so->displaySoError('999').': ';
|
||||
$errors = explode(',', str_replace('+',',', $return['ERRORCODE']));
|
||||
foreach($errors as $error)
|
||||
echo $so->displaySoError(rtrim($error));
|
||||
echo '<p><br/>
|
||||
<a href="'.Tools::getProtocol().htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'order.php" class="button_small" title="Retour">« Retour
|
||||
</a></p></div>'; }
|
||||
}
|
||||
else
|
||||
Tools::redirect();
|
||||
|
||||
include('../../footer.php');
|
||||
|
||||
function saveOrderShippingDetails($idCart, $idCustomer, $soParams)
|
||||
{
|
||||
|
||||
$deliveryMode = array('DOM' => 'Livraison à domicile', 'BPR' => 'Livraison en Bureau de Poste',
|
||||
'A2P' => 'Livraison Commerce de proximité', 'MRL' => 'Livraison Commerce de proximité',
|
||||
'CIT' => 'Livraison en Cityssimo', 'ACP' => 'Agence ColiPoste', 'CDI' => 'Centre de distribution',
|
||||
'RDV' => 'Livraison sur Rendez-vous');
|
||||
|
||||
$db = Db::getInstance();
|
||||
$db->ExecuteS('SELECT * FROM '._DB_PREFIX_.'socolissimo_delivery_info WHERE id_cart = '.(int)($idCart).' AND id_customer ='.(int)($idCustomer));
|
||||
$numRows = (int)($db->NumRows());
|
||||
if ($numRows == 0)
|
||||
{
|
||||
$sql = 'INSERT INTO '._DB_PREFIX_.'socolissimo_delivery_info
|
||||
( `id_cart`, `id_customer`, `delivery_mode`, `prid`, `prname`, `prfirstname`, `prcompladress`,
|
||||
`pradress1`, `pradress2`, `pradress3`, `pradress4`, `przipcode`, `prtown`, `cephonenumber`, `ceemail` , `cecompanyname`, `cedeliveryinformation`, `cedoorcode1`, `cedoorcode2`)
|
||||
VALUES ('.(int)($idCart).','.(int)($idCustomer).',';
|
||||
if ($soParams['DELIVERYMODE'] != 'DOM' AND $soParams['DELIVERYMODE'] != 'RDV')
|
||||
$sql .= '\''.pSQL($soParams['DELIVERYMODE']).'\''.',
|
||||
'.(isset($soParams['PRID']) ? '\''.pSQL($soParams['PRID']).'\'' : '').',
|
||||
'.(isset($soParams['PRNAME']) ? '\''.ucfirst(pSQL($soParams['PRNAME'])).'\'' : '').',
|
||||
'.(isset($deliveryMode[$soParams['DELIVERYMODE']]) ? '\''.$deliveryMode[$soParams['DELIVERYMODE']].'\'' : 'So Colissimo').',
|
||||
'.(isset($soParams['PRCOMPLADRESS']) ? '\''.pSQL($soParams['PRCOMPLADRESS']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS1']) ? '\''.pSQL($soParams['PRADRESS1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS2']) ? '\''.pSQL($soParams['PRADRESS2']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS3']) ? '\''.pSQL($soParams['PRADRESS3']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRADRESS4']) ? '\''.pSQL($soParams['PRADRESS4']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRZIPCODE']) ? '\''.pSQL($soParams['PRZIPCODE']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['PRTOWN']) ? '\''.pSQL($soParams['PRTOWN']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEPHONENUMBER']) ? '\''.pSQL($soParams['CEPHONENUMBER']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEEMAIL']) ? '\''.pSQL($soParams['CEEMAIL']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CECOMPANYNAME']) ? '\''.pSQL($soParams['CECOMPANYNAME']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDELIVERYINFORMATION']) ? '\''.pSQL($soParams['CEDELIVERYINFORMATION']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE1']) ? '\''.pSQL($soParams['CEDOORCODE1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE2']) ? '\''.pSQL($soParams['CEDOORCODE2']).'\'' : '\'\'').')';
|
||||
else
|
||||
$sql .= '\''.pSQL($soParams['DELIVERYMODE']).'\',\'\',
|
||||
'.(isset($soParams['CENAME']) ? '\''.ucfirst(pSQL($soParams['CENAME'])).'\'' : '').',
|
||||
'.(isset($soParams['CEFIRSTNAME']) ? '\''.ucfirst(pSQL($soParams['CEFIRSTNAME'])).'\'' : '').',
|
||||
'.(isset($soParams['CECOMPLADRESS']) ? '\''.pSQL($soParams['CECOMPLADRESS']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS1']) ? '\''.pSQL($soParams['CEADRESS1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS2']) ? '\''.pSQL($soParams['CEADRESS2']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS3']) ? '\''.pSQL($soParams['CEADRESS3']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEADRESS4']) ? '\''.pSQL($soParams['CEADRESS4']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEZIPCODE']) ? '\''.pSQL($soParams['CEZIPCODE']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CETOWN']) ? '\''.pSQL($soParams['CETOWN']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEPHONENUMBER']) ? '\''.pSQL($soParams['CEPHONENUMBER']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEEMAIL']) ? '\''.pSQL($soParams['CEEMAIL']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CECOMPANYNAME']) ? '\''.pSQL($soParams['CECOMPANYNAME']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDELIVERYINFORMATION']) ? '\''.pSQL($soParams['CEDELIVERYINFORMATION']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE1']) ? '\''.pSQL($soParams['CEDOORCODE1']).'\'' : '\'\'').',
|
||||
'.(isset($soParams['CEDOORCODE2']) ? '\''.pSQL($soParams['CEDOORCODE2']).'\'' : '\'\'').')';
|
||||
|
||||
if (Db::getInstance()->Execute($sql))
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$table = _DB_PREFIX_.'socolissimo_delivery_info';
|
||||
$values = array();
|
||||
$values['delivery_mode'] = pSQL($soParams['DELIVERYMODE']);
|
||||
|
||||
if (!in_array($soParams['DELIVERYMODE'], array('DOM', 'RDV')))
|
||||
{
|
||||
(isset($soParams['PRID']) ? $values['prid'] = pSQL($soParams['PRID']) : '');
|
||||
(isset($soParams['PRNAME']) ? $values['prname'] = ucfirst(pSQL($soParams['PRNAME'])) : '');
|
||||
(isset($deliveryMode['DELIVERYMODE']) ? $values['prfirstname'] = $deliveryMode[$soParams['DELIVERYMODE']] : $values['prfirstname'] = 'So Colissimo');
|
||||
(isset($soParams['PRCOMPLADRESS']) ? $values['prcompladress'] = pSQL($soParams['PRCOMPLADRESS']) : '');
|
||||
(isset($soParams['PRADRESS1']) ? $values['pradress1'] = pSQL($soParams['PRADRESS1']) : '');
|
||||
(isset($soParams['PRADRESS2']) ? $values['pradress2'] = pSQL($soParams['PRADRESS2']) : '');
|
||||
(isset($soParams['PRADRESS3']) ? $values['pradress3'] = pSQL($soParams['PRADRESS3']) : '');
|
||||
(isset($soParams['PRADRESS4']) ? $values['pradress4'] = pSQL($soParams['PRADRESS4']) : '');
|
||||
(isset($soParams['PRZIPCODE']) ? $values['przipcode'] = pSQL($soParams['PRZIPCODE']) : '');
|
||||
(isset($soParams['CETOWN']) ? $values['prtown'] = pSQL($soParams['CETOWN']) : '');
|
||||
(isset($soParams['CEPHONENUMBER']) ? $values['cephonenumber'] = pSQL($soParams['CEPHONENUMBER']) : '');
|
||||
(isset($soParams['CEEMAIL']) ? $values['ceemail'] = pSQL($soParams['CEEMAIL']) : '');
|
||||
(isset($soParams['CEDELIVERYINFORMATION']) ? $values['cedeliveryinformation'] = pSQL($soParams['CEDELIVERYINFORMATION']) : '');
|
||||
(isset($soParams['CEDOORCODE1']) ? $values['cedoorcode1'] = pSQL($soParams['CEDOORCODE1']) : '');
|
||||
(isset($soParams['CEDOORCODE2']) ? $values['cedoorcode2'] = pSQL($soParams['CEDOORCODE2']) : '');
|
||||
(isset($soParams['CECOMPANYNAME']) ? $values['cecompanyname'] = pSQL($soParams['CECOMPANYNAME']) : '');
|
||||
}
|
||||
else
|
||||
{
|
||||
(isset($soParams['PRID']) ? $values['prid'] = pSQL($soParams['PRID']) : $values['prid'] = '');
|
||||
(isset($soParams['CENAME']) ? $values['prname'] = ucfirst(pSQL($soParams['CENAME'])) : '');
|
||||
(isset($soParams['CEFIRSTNAME']) ? $values['prfirstname'] = ucfirst(pSQL($soParams['CEFIRSTNAME'])) : '');
|
||||
(isset($soParams['CECOMPLADRESS']) ? $values['prcompladress'] = pSQL($soParams['CECOMPLADRESS']) : '');
|
||||
(isset($soParams['CEADRESS1']) ? $values['pradress1'] = pSQL($soParams['CEADRESS1']) : '');
|
||||
(isset($soParams['CEADRESS2']) ? $values['pradress2'] = pSQL($soParams['CEADRESS2']) : '');
|
||||
(isset($soParams['CEADRESS3']) ? $values['pradress3'] = pSQL($soParams['CEADRESS3']) : '');
|
||||
(isset($soParams['CEADRESS4']) ? $values['pradress4'] = pSQL($soParams['CEADRESS4']) : '');
|
||||
(isset($soParams['CEZIPCODE']) ? $values['przipcode'] = pSQL($soParams['CEZIPCODE']) : '');
|
||||
(isset($soParams['PRTOWN']) ? $values['prtown'] = pSQL($soParams['PRTOWN']) : '') ;
|
||||
(isset($soParams['CEEMAIL']) ? $values['ceemail'] = pSQL($soParams['CEEMAIL']) : '');
|
||||
(isset($soParams['CEPHONENUMBER']) ? $values['cephonenumber'] = pSQL($soParams['CEPHONENUMBER']) : '');
|
||||
(isset($soParams['CEDELIVERYINFORMATION']) ? $values['cedeliveryinformation'] = pSQL($soParams['CEDELIVERYINFORMATION']) : '');
|
||||
(isset($soParams['CEDOORCODE1']) ? $values['cedoorcode1'] = pSQL($soParams['CEDOORCODE1']) : '');
|
||||
(isset($soParams['CEDOORCODE2']) ? $values['cedoorcode2'] = pSQL($soParams['CEDOORCODE2']) : '');
|
||||
(isset($soParams['CECOMPANYNAME']) ? $values['cecompanyname'] = pSQL($soParams['CECOMPANYNAME']) : '');
|
||||
}
|
||||
$where = ' `id_cart` =\''.(int)($idCart).'\' AND `id_customer` =\''.(int)($idCustomer).'\'';
|
||||
|
||||
if (Db::getInstance()->autoExecute($table, $values, 'UPDATE', $where))
|
||||
return true;
|
||||
}
|
||||
}
|
206
modules/advsendtoafriend/advsendtoafriend.php
Executable file
@ -0,0 +1,206 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 8005 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
class AdvSendToAFriend extends Module
|
||||
{
|
||||
function __construct($dontTranslate = false)
|
||||
{
|
||||
$this->name = 'advsendtoafriend';
|
||||
$this->version = '1.1';
|
||||
$this->author = 'Antadis';
|
||||
$this->tab = 'front_office_features';
|
||||
$this->need_instance = 0;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
if(!$dontTranslate)
|
||||
{
|
||||
$this->displayName = $this->l('Send to a Friend module (advanced)');
|
||||
$this->description = $this->l('Allows customers to send a product link to a friend.');
|
||||
}
|
||||
}
|
||||
|
||||
function install()
|
||||
{
|
||||
return (parent::install() AND $this->registerHook('extraLeft'));
|
||||
}
|
||||
|
||||
function hookExtraLeft($params)
|
||||
{
|
||||
global $smarty;
|
||||
$smarty->assign('this_path', $this->_path);
|
||||
return $this->display(__FILE__, 'product_page.tpl');
|
||||
}
|
||||
|
||||
public function displayPageForm()
|
||||
{
|
||||
if (!$this->active)
|
||||
Tools::display404Error();
|
||||
|
||||
$this->displayFrontForm();
|
||||
include(dirname(__FILE__).'/../../footer.php');
|
||||
}
|
||||
|
||||
public function displayFrontForm()
|
||||
{
|
||||
global $smarty, $cookie, $link;
|
||||
$error = false;
|
||||
$confirm = false;
|
||||
|
||||
if(Tools::getValue('id_product')) {
|
||||
/* Product informations */
|
||||
$product = new Product((int)Tools::getValue('id_product'), false, (int)$cookie->id_lang);
|
||||
|
||||
if(!Validate::isLoadedObject($product)) {
|
||||
Tools::display404Error();
|
||||
}
|
||||
|
||||
$productLink = $link->getProductLink($product);
|
||||
|
||||
if (isset($_POST['submitAddtoafriend']))
|
||||
{
|
||||
/* Fields verifications */
|
||||
if (empty($_POST['email']) OR empty($_POST['name']))
|
||||
$error = $this->l('You must fill in all fields.');
|
||||
elseif (empty($_POST['email']) OR !Validate::isEmail($_POST['email']))
|
||||
$error = $this->l('The e-mail given is invalid.');
|
||||
elseif (!Validate::isName($_POST['name']))
|
||||
$error = $this->l('The name given is invalid.');
|
||||
elseif (!isset($_GET['id_product']) OR !is_numeric($_GET['id_product']))
|
||||
$error = $this->l('An error occurred during the process.');
|
||||
else
|
||||
{
|
||||
/* Email generation */
|
||||
$subject = ($cookie->customer_firstname ? $cookie->customer_firstname.' '.strtoupper($cookie->customer_lastname) : $this->l('A friend')).' '.$this->l('sent you a link to').' '.$product->name;
|
||||
$templateVars = array(
|
||||
'{product}' => $product->name,
|
||||
'{product_price}' => Tools::displayPrice($product->price),
|
||||
'{product_link}' => $productLink,
|
||||
'{customer}' => ($cookie->customer_firstname ? $cookie->customer_firstname.' '.strtoupper($cookie->customer_lastname) : $this->l('A friend')),
|
||||
'{name}' => Tools::safeOutput($_POST['name'])
|
||||
);
|
||||
|
||||
/* Email sending */
|
||||
if (!Mail::Send((int)$cookie->id_lang, 'send_to_a_friend', Mail::l('A friend sent you a link to').' '.$product->name, $templateVars, $_POST['email'], NULL, ($cookie->email ? $cookie->email : NULL), ($cookie->customer_firstname ? $cookie->customer_firstname.' '.strtoupper($cookie->customer_lastname) : NULL), NULL, NULL, dirname(__FILE__).'/mails/'))
|
||||
$error = $this->l('An error occurred during the process.');
|
||||
else
|
||||
Tools::redirect(_MODULE_DIR_.$this->name.'/sendtoafriend-form.php?id_product='.(int)$product->id.'&submited');
|
||||
}
|
||||
}
|
||||
|
||||
/* Image */
|
||||
$images = $product->getImages((int)$cookie->id_lang);
|
||||
foreach ($images AS $k => $image)
|
||||
if ($image['cover'])
|
||||
{
|
||||
$cover['id_image'] = (int)$product->id.'-'.(int)$image['id_image'];
|
||||
$cover['legend'] = $image['legend'];
|
||||
}
|
||||
|
||||
if (!isset($cover))
|
||||
$cover = array('id_image' => Language::getIsoById((int)$cookie->id_lang).'-default', 'legend' => 'No picture');
|
||||
|
||||
$smarty->assign(array(
|
||||
'cover' => $cover,
|
||||
'errors' => $error,
|
||||
'confirm' => $confirm,
|
||||
'product' => $product,
|
||||
'productLink' => $productLink
|
||||
));
|
||||
|
||||
include(dirname(__FILE__).'/../../header.php');
|
||||
echo $this->display(__FILE__, 'sendtoafriend.tpl');
|
||||
} elseif(Module::isInstalled('privatesales') && Tools::getValue('id_sale')) {
|
||||
$sale = new sale((int) Tools::getValue('id_sale'));
|
||||
if($sale && $sale->enabled) {
|
||||
$trailers_i18n = array(
|
||||
'fr' => 'bande-annonce',
|
||||
'en' => 'trailer',
|
||||
);
|
||||
|
||||
$langs = Language::getLanguages();
|
||||
$lang = (int) $cookie->id_lang;
|
||||
$isolang = Language::getIsoById($lang);
|
||||
if(Configuration::get('PS_REWRITING_SETTINGS')) {
|
||||
if(count($langs) > 1) {
|
||||
$canonical_url = Tools::getShopDomain(TRUE, TRUE).__PS_BASE_URI__.$iso_code.'/'.(isset($trailers_i18n[$iso_code])? $trailers_i18n[$isolang]: $trailers_i18n['en']).'/'.$sale->id.'-'.Tools::str2url($sale->title[$lang]);
|
||||
} else {
|
||||
$canonical_url = Tools::getShopDomain(TRUE, TRUE).__PS_BASE_URI__.(isset($trailers_i18n[$isolang])? $trailers_i18n[$isolang]: $trailers_i18n['en']).'/'.$sale->id.'-'.Tools::str2url($sale->title[$lang]);
|
||||
}
|
||||
} else {
|
||||
$canonical_url = Tools::getShopDomain(TRUE, TRUE).__PS_BASE_URI__.'modules/privatesales/trailer.php?id_sale='.$sale->id;
|
||||
}
|
||||
|
||||
if (isset($_POST['submitAddtoafriend']))
|
||||
{
|
||||
/* Fields verifications */
|
||||
if (empty($_POST['email']) OR empty($_POST['name']))
|
||||
$error = $this->l('You must fill in all fields.');
|
||||
elseif (empty($_POST['email']) OR !Validate::isEmail($_POST['email']))
|
||||
$error = $this->l('The e-mail given is invalid.');
|
||||
elseif (!Validate::isName($_POST['name']))
|
||||
$error = $this->l('The name given is invalid.');
|
||||
else
|
||||
{
|
||||
/* Email generation */
|
||||
$subject = ($cookie->customer_firstname ? $cookie->customer_firstname.' '.strtoupper($cookie->customer_lastname) : $this->l('A friend')).' '.$this->l('sent you a link to').' '.$product->name;
|
||||
$templateVars = array(
|
||||
'{sale}' => $sale->title[(int) $cookie->id_lang],
|
||||
'{sale_link}' => $canonical_url,
|
||||
'{sale_img}' => Tools::getShopDomain(TRUE, TRUE).__PS_BASE_URI__.'modules/privatesales/img/'.$sale->id.'/liston_'.(int) $cookie->id_lang.'.jpg',
|
||||
'{customer}' => ($cookie->customer_firstname ? $cookie->customer_firstname.' '.strtoupper($cookie->customer_lastname) : $this->l('A friend')),
|
||||
'{name}' => Tools::safeOutput($_POST['name'])
|
||||
);
|
||||
|
||||
/* Email sending */
|
||||
if (!Mail::Send((int)$cookie->id_lang, 'send_to_a_friend_sale', Mail::l('A friend sent you a link to').' '.$sale->title[(int) $cookie->id_lang], $templateVars, $_POST['email'], NULL, ($cookie->email ? $cookie->email : NULL), ($cookie->customer_firstname ? $cookie->customer_firstname.' '.strtoupper($cookie->customer_lastname) : NULL), NULL, NULL, dirname(__FILE__).'/mails/'))
|
||||
$error = $this->l('An error occurred during the process.');
|
||||
else
|
||||
Tools::redirect(_MODULE_DIR_.$this->name.'/sendtoafriend-form.php?id_sale='.(int) $sale->id.'&submited');
|
||||
}
|
||||
}
|
||||
|
||||
$smarty->assign(array(
|
||||
'errors' => $error,
|
||||
'confirm' => $confirm,
|
||||
'psale' => $sale,
|
||||
'saleLink' => $canonical_url
|
||||
));
|
||||
|
||||
include(dirname(__FILE__).'/../../header.php');
|
||||
echo $this->display(__FILE__, 'sendtoafriend.tpl');
|
||||
} else {
|
||||
Tools::display404Error();
|
||||
}
|
||||
} else {
|
||||
Tools::display404Error();
|
||||
}
|
||||
}
|
||||
}
|
23
modules/advsendtoafriend/de.php
Executable file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{sendtoafriend}prestashop>product_page_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'An einen Freund senden';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'An einen Freund senden';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_20589174124c25654cac3736e737d2a3'] = 'Senden Sie diese Seite einem Freund, der an diesem Artiekl interessiert sein könnte.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_b31afdfa73c89b567778f15180c2dd6c'] = 'Ihre Email wurde erfolgreich versendet';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_cc5fd9b9f1cad59fcff97a1f21f34304'] = 'Senden Sie eine Nachricht';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_19d305aea0ccec77d23362111ebdb6b4'] = 'Name des Freundes:';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_7ae8a9a7a5d8fa40d4515fc52f16bb2e'] = 'E-Mail des Freundes:';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2541d938b0a58946090d7abdde0d3890'] = 'senden';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_68728c1897e5936032fe21ffb6b10c2e'] = 'Zurück zur Produktseite';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2074615eb70699e55b1f9289c6c77c25'] = 'An einen Freund senden-Modul';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_3234e2609dd694d8763c390fe97eba04'] = 'Ermöglicht Ihren Kunden, einen Produktlink an Freunde zu senden';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_666f6333e43c215212b916fef3d94af0'] = 'Sie müssen alle Felder ausfüllen.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_ed95f7e7c4691956e0d6f2cd0136d483'] = 'Die E-Mail Ihres Freunds ist ungültig.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_0e2a8a9d9c363a1ed93e7822eb3fc0ca'] = 'Der Name Ihres Freundes ist ungültig.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_98db77c121d8acdba66ec89626ae896c'] = 'Ein Fehler trat während des Prozesses auf.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_22c4733a9ceb239bf825a0cecd1cfaec'] = 'Ein Freund';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_ffa719e6b8863717a9e86579249c7d9b'] = 'hat Ihnen einen Link zu geschickt';
|
||||
|
||||
?>
|
4
modules/advsendtoafriend/en.php
Executable file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
23
modules/advsendtoafriend/es.php
Executable file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{sendtoafriend}prestashop>product_page_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'Enviar a un amigo';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'Enviar a un amigo';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_20589174124c25654cac3736e737d2a3'] = 'Enviar esta página a un amigo al que podía interesarle este artículo.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_b31afdfa73c89b567778f15180c2dd6c'] = 'Su email ha sido enviado con éxito';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_cc5fd9b9f1cad59fcff97a1f21f34304'] = 'Enviar un mensaje';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_19d305aea0ccec77d23362111ebdb6b4'] = 'nombre del amigo:';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_7ae8a9a7a5d8fa40d4515fc52f16bb2e'] = 'Email del amigo:';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2541d938b0a58946090d7abdde0d3890'] = 'enviar';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_68728c1897e5936032fe21ffb6b10c2e'] = 'Volver a la página del producto';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2074615eb70699e55b1f9289c6c77c25'] = 'Módulo enviar a un amigo';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_3234e2609dd694d8763c390fe97eba04'] = 'Permitir a los clientes enviar un enlace del producto a un amigo';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_666f6333e43c215212b916fef3d94af0'] = 'Debe rellenar todos los campos.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_ed95f7e7c4691956e0d6f2cd0136d483'] = 'El email de su amigo no es correcto';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_0e2a8a9d9c363a1ed93e7822eb3fc0ca'] = 'El nombre de su amigo no es correcto';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_98db77c121d8acdba66ec89626ae896c'] = 'Se ha producido un error durante el proceso.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_22c4733a9ceb239bf825a0cecd1cfaec'] = 'Un amigo';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_ffa719e6b8863717a9e86579249c7d9b'] = 'te ha enviado un enlace a';
|
||||
|
||||
?>
|
28
modules/advsendtoafriend/fr.php
Executable file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_b0a55433e668fe39d556faaf6ed55963'] = 'Envoyer à un ami (avancé)';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_3234e2609dd694d8763c390fe97eba04'] = 'Permet aux clients d\'envoyer des liens vers les produits à leurs amis.';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_666f6333e43c215212b916fef3d94af0'] = 'Vous devez remplir tous les champs';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_ed95f7e7c4691956e0d6f2cd0136d483'] = 'L\'email entré n\'est pas valide.';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_0e2a8a9d9c363a1ed93e7822eb3fc0ca'] = 'Le nom entré n\'est pas valide.';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_98db77c121d8acdba66ec89626ae896c'] = 'Une erreur est survenue lors du traitement de votre demande.';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_22c4733a9ceb239bf825a0cecd1cfaec'] = 'Un ami';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>advsendtoafriend_ffa719e6b8863717a9e86579249c7d9b'] = 'vous a envoyé un lien vers';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>product_page_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'Envoyer à un ami';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'Envoyer à un ami';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_1453757e0dd6e89e523ed968206d15f6'] = 'Utilisez le formulaire ci-dessous pour partager le lien par email avec votre ami(e)';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_b31afdfa73c89b567778f15180c2dd6c'] = 'Votre email a bien été envoyé';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_7ae8a9a7a5d8fa40d4515fc52f16bb2e'] = 'Email de votre ami(e) :';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_8b1a9953c4611296a827abf8c47804d7'] = 'Bonjour';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_e55de03786f359e2b133f2a74612eba6'] = 'Nom de l\'ami(e)';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_5f63c7be3e76c673ca840f970c8c5bb2'] = 'Jette un coup d\'œil à';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_e70b59714528d5798b1c8adaf0d0ed15'] = 'cette vente';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_f5bf48aa40cad7891eb709fcf1fde128'] = 'ce produit';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_38f17956e769b211b65229c37818219e'] = 'ça pourrait t\'intéresser';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_ed2b5c0139cec8ad2873829dc1117d50'] = 'sur';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_677182971924ee6799eb365f688c5572'] = 'Amicalement,';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_2541d938b0a58946090d7abdde0d3890'] = 'Envoyer';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_352db88990eaeee0d3fb9cfac345668b'] = 'Retour à la page de la vente';
|
||||
$_MODULE['<{advsendtoafriend}prestashop>sendtoafriend_68728c1897e5936032fe21ffb6b10c2e'] = 'Retour à la page du produit';
|
36
modules/advsendtoafriend/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
23
modules/advsendtoafriend/it.php
Executable file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{sendtoafriend}prestashop>product_page_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'Invia ad un amico';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'Invia ad un amico';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_20589174124c25654cac3736e737d2a3'] = 'Invia questa pagina ad un amico che potrebbe essere interessato all\'articolo seguente.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_b31afdfa73c89b567778f15180c2dd6c'] = 'La tua mail è stata inviata con successo';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_cc5fd9b9f1cad59fcff97a1f21f34304'] = 'Invia un messaggio';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_19d305aea0ccec77d23362111ebdb6b4'] = 'Nome dell\'amico:';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_7ae8a9a7a5d8fa40d4515fc52f16bb2e'] = 'E-mail del tuo amico:';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2541d938b0a58946090d7abdde0d3890'] = 'invia';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_68728c1897e5936032fe21ffb6b10c2e'] = 'Torna alla pagina del prodotto';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2074615eb70699e55b1f9289c6c77c25'] = 'Modulo Invia ad un amico';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_3234e2609dd694d8763c390fe97eba04'] = 'Consente ai clienti di inviare un link prodotto a un amico';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_666f6333e43c215212b916fef3d94af0'] = 'È necessario compilare tutti i campi.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_ed95f7e7c4691956e0d6f2cd0136d483'] = 'E-mail del tuo amico non valida.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_0e2a8a9d9c363a1ed93e7822eb3fc0ca'] = 'Nome del tuo amico non valido.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_98db77c121d8acdba66ec89626ae896c'] = 'Errore durante il processo.';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_22c4733a9ceb239bf825a0cecd1cfaec'] = 'Un amico';
|
||||
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_ffa719e6b8863717a9e86579249c7d9b'] = 'ti ha inviato un link a';
|
||||
|
||||
?>
|
BIN
modules/advsendtoafriend/logo.gif
Executable file
After Width: | Height: | Size: 633 B |
36
modules/advsendtoafriend/mails/en/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
36
modules/advsendtoafriend/mails/en/send_to_a_friend.html
Executable file
@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Message from {shop_name}</title>
|
||||
</head>
|
||||
<body>
|
||||
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">Hi <strong style="color:#DB3484;">{name}</strong>,</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">{customer} has sent you a link to a product that (s)he thinks may interest you.</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
Click here to view this item: <a href="{product_link}">{product}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
|
||||
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered with <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
13
modules/advsendtoafriend/mails/en/send_to_a_friend.txt
Executable file
@ -0,0 +1,13 @@
|
||||
Hi {name},
|
||||
|
||||
|
||||
{customer} has sent you a link to a product that (s)he thinks may interest you.
|
||||
|
||||
{product}: {product_link}
|
||||
|
||||
|
||||
{shop_name} - {shop_url}
|
||||
|
||||
|
||||
|
||||
{shop_url} powered by PrestaShop™
|
36
modules/advsendtoafriend/mails/en/send_to_a_friend_sale.html
Executable file
@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Message from {shop_name}</title>
|
||||
</head>
|
||||
<body>
|
||||
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">Hi <strong style="color:#DB3484;">{name}</strong>,</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">{customer} has sent you a link to a sale that (s)he thinks may interest you.</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="left">
|
||||
Click here to view this item: <a href="{sale_link}">{sale}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
|
||||
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered with <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
13
modules/advsendtoafriend/mails/en/send_to_a_friend_sale.txt
Executable file
@ -0,0 +1,13 @@
|
||||
Hi {name},
|
||||
|
||||
|
||||
{customer} has sent you a link to a sale that (s)he thinks may interest you.
|
||||
|
||||
{sale}: {sale_link}
|
||||
|
||||
|
||||
{shop_name} - {shop_url}
|
||||
|
||||
|
||||
|
||||
{shop_url} powered by PrestaShop™
|
27
modules/advsendtoafriend/product_page.tpl
Executable file
@ -0,0 +1,27 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6594 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<li><a href="{$this_path}sendtoafriend-form.php?id_product={$smarty.get.id_product|intval}">{l s='Send to a friend' mod='sendtoafriend'}</a></li>
|
37
modules/advsendtoafriend/sendtoafriend-form.php
Executable file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7912 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
include(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
include(dirname(__FILE__).'/../../init.php');
|
||||
|
||||
$controller->preProcess();
|
||||
|
||||
require_once(dirname(__FILE__).'/advsendtoafriend.php');
|
||||
|
||||
$sendtoafriend = new AdvSendToAFriend($dontTranslate = true);
|
||||
echo $sendtoafriend->displayPageForm();
|
||||
|
BIN
modules/advsendtoafriend/sendtoafriend.png
Executable file
After Width: | Height: | Size: 754 B |
85
modules/advsendtoafriend/sendtoafriend.tpl
Executable file
@ -0,0 +1,85 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 9036 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}{l s='Send to a friend' mod='advsendtoafriend'}{/capture}
|
||||
{include file="$tpl_dir./breadcrumb.tpl"}
|
||||
|
||||
<h1>{l s='Send to a friend' mod='advsendtoafriend'}</h1>
|
||||
|
||||
{if !isset($smarty.get.submited)}
|
||||
<p class="bold">{l s='Send this page to a friend who might be interested in the item below' mod='advsendtoafriend'}.</p>
|
||||
{/if}
|
||||
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
|
||||
{if isset($smarty.get.submited)}
|
||||
<p class="success">{l s='Your email has been sent successfully' mod='advsendtoafriend'}</p>
|
||||
{else}
|
||||
<form method="post" action="{$request_uri}" class="std">
|
||||
<fieldset>
|
||||
<div class="content">
|
||||
<p>
|
||||
<label for="friend-address">{l s='Friend\'s email:' mod='advsendtoafriend'}</label>
|
||||
<input type="text" id="friend-address" name="email" value="{if isset($smarty.post.name)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" />
|
||||
</p>
|
||||
<div class="letter">
|
||||
<p class="align_center">
|
||||
{l s='Hello' mod='advsendtoafriend'} <input type="text" id="friend-name" name="name" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall':'UTF-8'|stripslashes}{/if}" placeholder="{l s='Friend\'s name' mod='advsendtoafriend'}" /> ,
|
||||
</p>
|
||||
<p>
|
||||
{l s='Have a look at this' mod='advsendtoafriend'} {if isset($psale)}{l s='sale' mod='advsendtoafriend'}{else}{l s='product' mod='advsendtoafriend'}{/if}, {l s='it may interest you' mod='advsendtoafriend'}.
|
||||
</p>
|
||||
<p class="info">
|
||||
{if isset($psale)}
|
||||
<a href="{$saleLink}"><img src="{$base_dir_ssl}modules/privatesales/img/{$psale->id}/liston_{$cookie->id_lang}.jpg" alt=""/></a><br/>
|
||||
<a href="{$saleLink}">{$psale->title[$cookie->id_lang]|escape:'htmlall':'UTF-8'} {l s='on' mod='advsendtoafriend'} {$shop_name}</a>
|
||||
{else}
|
||||
<a href="{$productLink}"><img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'home')}" alt="" title="{$cover.legend|escape:'htmlall':'UTF-8'}" /></a><br/>
|
||||
<a href="{$productLink}">{$product->name|escape:'htmlall':'UTF-8'}</a><br/>
|
||||
<a href="{$productLink}" class="price">{convertPrice price=$product->price}</a>
|
||||
{/if}
|
||||
</p>
|
||||
<p>
|
||||
{l s='Best regards,' mod='advsendtoafriend'}<br />
|
||||
{if $cookie->isLogged()}
|
||||
{$cookie->customer_firstname} {$cookie->customer_lastname|strtoupper}
|
||||
{else}
|
||||
<input type="text" id="guest-name" name="guestname" value="{if isset($smarty.post.guestname)}{$smarty.post.guestname|escape:'htmlall'|stripslashes}{/if}" />
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
<p class="submit">
|
||||
<input type="submit" name="submitAddtoafriend" value="{l s='send' mod='advsendtoafriend'}" class="button" />
|
||||
</p>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
<p class="footer_links">
|
||||
{if isset($psale)}<a href="{$saleLink}" class="button_large">{l s='Back to the sale page' mod='advsendtoafriend'}</a>
|
||||
{else}<a href="{$productLink}" class="button_large">{l s='Back to product page' mod='advsendtoafriend'}</a>{/if}
|
||||
</p>
|
65
modules/ant_refund/ant_refund.php
Executable file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
class Ant_Refund extends Module
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'ant_refund';
|
||||
$this->tab = 'administration';
|
||||
$this->author = 'Antadis';
|
||||
$this->version = '1.0';
|
||||
$this->need_instance = 0;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = $this->l('Refund for non fraud order');
|
||||
$this->description = $this->l('Creating refund when order status is changing to non fraud');
|
||||
}
|
||||
|
||||
public function install()
|
||||
{
|
||||
# Register hooks
|
||||
if(!(parent::install() && $this->registerHook('afterChangeStatus'))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function hookafterChangeStatus($params)
|
||||
{
|
||||
if (!$params['newOrderState']) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$orderState = (int) $params['newOrderState'];
|
||||
if ($orderState == 15
|
||||
|| $orderState == 16) {
|
||||
$order = new Order((int) $params['order']['id']);
|
||||
if (Validate::isLoadedObject($order) ) {
|
||||
$customer = new Customer((int)($order->id_customer));
|
||||
|
||||
/* PRODUITS REMBOURSES */
|
||||
$full_quantity_list = array();
|
||||
$full_product_list = array();
|
||||
foreach(Db::getInstance()->ExecuteS('
|
||||
SELECT d.`id_order_detail`, d.`product_quantity`
|
||||
FROM `'._DB_PREFIX_.'order_detail` d
|
||||
LEFT JOIN `'._DB_PREFIX_.'orders` o ON d.`id_order` = o.`id_order`
|
||||
WHERE d.`id_order` = '.(int) $params['id_order'].'
|
||||
') as $row) {
|
||||
$full_quantity_list[$row['id_order_detail']] = $row['product_quantity'];
|
||||
$full_product_list[$row['id_order_detail']] = $row['id_order_detail'];
|
||||
}
|
||||
|
||||
if (!OrderSlip::createOrderSlip($order, $full_product_list, $full_quantity_list, true)) {
|
||||
$this->_errors[] = Tools::displayError('Cannot generate credit slip');
|
||||
} else {
|
||||
Module::hookExec('orderSlip', array('order' => $order, 'productList' => $full_product_list, 'qtyList' => $full_quantity_list));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
0
modules/ant_refund/fr.php
Normal file
36
modules/ant_refund/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
103
modules/atos_cyberplus/atos_cyberplus.php
Normal file
@ -0,0 +1,103 @@
|
||||
<?php
|
||||
class Atos_cyberplus extends PaymentModule
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'atos_cyberplus';
|
||||
$this->tab = 'payments_gateways';
|
||||
$this->version = 1.0;
|
||||
|
||||
/* The parent construct is required for translations */
|
||||
parent::__construct();
|
||||
|
||||
$this->page = basename(__FILE__, '.php');
|
||||
$this->displayName = $this->l('Atos');
|
||||
$this->description = $this->l('This payment module for banks using ATOS allows your customers to pay by Credit Card');
|
||||
}
|
||||
|
||||
public function install()
|
||||
{
|
||||
Configuration::updateValue('ATOS_MERCHANT_ID', '038862749811111');
|
||||
|
||||
parent::install();
|
||||
$this->registerHook('payment');
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
{
|
||||
Configuration::deleteByName('ATOS_MERCHANT_ID');
|
||||
parent::uninstall();
|
||||
}
|
||||
|
||||
public function _displayForm()
|
||||
{
|
||||
if (!isset($_POST['submit']))
|
||||
$_POST['merchant_id'] = Configuration::get('ATOS_MERCHANT_ID');
|
||||
$this->_html .=
|
||||
'<fieldset>
|
||||
<legend>Settings</legend>
|
||||
<form action="'.$_SERVER['REQUEST_URI'].'" method="post">
|
||||
<label>'.$this->l('Merchant ID').' </label><input type="text" name="merchant_id" value="'.(isset($_POST['merchant_id']) ? $_POST['merchant_id'] : '').'" /><br /><br />
|
||||
<input type="submit" name="submit" value="'.$this->l('Update settings').'" class="button" />
|
||||
</form>
|
||||
</fieldset>';
|
||||
}
|
||||
|
||||
private function _postProcess()
|
||||
{
|
||||
Configuration::updateValue('ATOS_MERCHANT_ID', $_POST['merchant_id']);
|
||||
}
|
||||
|
||||
private function _postValidation()
|
||||
{
|
||||
if(!isset($_POST['merchant_id']) OR empty($_POST['merchant_id']))
|
||||
$this->_postErrors[] = 'You must enter a merchant ID.';
|
||||
elseif (!is_numeric($_POST['merchant_id']))
|
||||
$this->_postErrors[] = 'Your merchant ID is not valid.';
|
||||
|
||||
}
|
||||
|
||||
function getContent()
|
||||
{
|
||||
$this->_html .= '<h2>'.$this->displayName.'</h2>';
|
||||
|
||||
if (!empty($_POST))
|
||||
{
|
||||
$this->_postValidation();
|
||||
if (!count($this->_postErrors))
|
||||
$this->_postProcess();
|
||||
else
|
||||
foreach ($this->_postErrors AS $err)
|
||||
$this->_html .= '<div class="errmsg">'. $err .'</div><br />';
|
||||
}
|
||||
$this->_displayForm();
|
||||
return $this->_html;
|
||||
}
|
||||
|
||||
public function hookPayment($params)
|
||||
{
|
||||
global $cart, $cookie;
|
||||
|
||||
$c = new Customer((int) $cookie->id_customer);
|
||||
|
||||
$ot=round($cart->getOrderTotal(),2);
|
||||
$t=(int)sprintf('%f', $ot * 100);
|
||||
if($_SERVER['REMOTE_ADDR'] == '78.226.56.137' || $_SERVER['REMOTE_ADDR'] == '86.199.86.234' || $_SERVER['REMOTE_ADDR'] == '88.163.22.223') {
|
||||
$parm = 'merchant_id=075028916700025'./*082584341411111*/' merchant_country=fr customer_ip_address="'.Tools::getRemoteAddr().'" templatefile=bbb_tpl amount='.$t.' currency_code=978 transaction_id='.intval($params['cart']->id).' pathfile='.dirname(__FILE__).'/pathfile normal_return_url="http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'order-confirmation.php?key='.$c->secure_key.'&id_cart='.$params['cart']->id.'&id_module='.intval($this->id).'" cancel_return_url="http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'" automatic_response_url="http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'modules/atos_cyberplus/validation.php" customer_id='.intval($params['cart']->id_customer).' ';
|
||||
} else {
|
||||
$parm = 'merchant_id='.Configuration::get('ATOS_MERCHANT_ID').' merchant_country=fr customer_ip_address="'.Tools::getRemoteAddr().'" templatefile=bbb_tpl amount='.$t.' currency_code=978 transaction_id='.intval($params['cart']->id).' pathfile='.dirname(__FILE__).'/pathfile normal_return_url="http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'order-confirmation.php?key='.$c->secure_key.'&id_cart='.$params['cart']->id.'&id_module='.intval($this->id).'" cancel_return_url="http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'" automatic_response_url="http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'modules/atos_cyberplus/validation.php" customer_id='.intval($params['cart']->id_customer).' ';
|
||||
}
|
||||
$result = exec('/home/www/bebeboutik.com/cgi/www/request '.$parm);
|
||||
$resultArray = explode('!', $result);
|
||||
|
||||
if (!isset($resultArray[3]))
|
||||
return '<div class="payment_module">error in atos payment module : can\'t execute request</div>';
|
||||
elseif ($resultArray[1] == -1)
|
||||
return '<div class="payment_module">error in atos payment module : '.$resultArray[2].'</div>';
|
||||
|
||||
return '
|
||||
<div class="payment_module" style="padding: 20px; color: #0099CC;"><p>'.$this->l('Pay with Atos Cyberplus').' '.$this->l('Choose you card type:').'</p>'.str_replace(array('<IMG BORDER=0 SRC="/modules/atos_cyberplus/logos/CLEF.gif">', '<DIV ALIGN=center>Vous utilisez le formulaire sécurisé standard SSL, choisissez une carte ci-dessous :<br><br></DIV>'), '', $resultArray[3]).'</div>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
7
modules/atos_cyberplus/en.php
Executable file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{atos_cyberplus}default>atos_cyberplus_d7c1e1da7e8d6ec700948769ecc5c67d'] = 'This payment module for banks using ATOS allows your customers to pay by credit card';
|
||||
|
||||
?>
|
0
modules/atos_cyberplus/es.php
Normal file
10
modules/atos_cyberplus/fr.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{atos_cyberplus}prestashop>atos_cyberplus_c8529ccddc224398922bcf29406c1b34'] = 'Atos';
|
||||
$_MODULE['<{atos_cyberplus}prestashop>atos_cyberplus_d7c1e1da7e8d6ec700948769ecc5c67d'] = 'Ce module de paiement pour les banques utilisant ATOS permet à vos clients de payer par Carte de Crédit';
|
||||
$_MODULE['<{atos_cyberplus}prestashop>atos_cyberplus_229a7ec501323b94db7ff3157a7623c9'] = 'ID de Marchand';
|
||||
$_MODULE['<{atos_cyberplus}prestashop>atos_cyberplus_b17f3f4dcf653a5776792498a9b44d6a'] = 'Enregistrer les modifications';
|
||||
$_MODULE['<{atos_cyberplus}prestashop>atos_cyberplus_962a69218125c93f0480a9d8416c4053'] = 'Payez avec votre carte bancaire';
|
||||
$_MODULE['<{atos_cyberplus}prestashop>atos_cyberplus_eade41e5c73c7554793e0e5e758d63be'] = ' ';
|
BIN
modules/atos_cyberplus/logo.gif
Executable file
After Width: | Height: | Size: 237 B |
BIN
modules/atos_cyberplus/logos/AMEX.gif
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
modules/atos_cyberplus/logos/AURORE.gif
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
modules/atos_cyberplus/logos/CB.gif
Executable file
After Width: | Height: | Size: 2.6 KiB |
BIN
modules/atos_cyberplus/logos/CLEF.gif
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
modules/atos_cyberplus/logos/INTERVAL.gif
Executable file
After Width: | Height: | Size: 89 B |
BIN
modules/atos_cyberplus/logos/JCB.gif
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
modules/atos_cyberplus/logos/MASTERCARD.gif
Executable file
After Width: | Height: | Size: 3.1 KiB |
BIN
modules/atos_cyberplus/logos/VISA.gif
Executable file
After Width: | Height: | Size: 2.4 KiB |
12
modules/atos_cyberplus/pathfile
Executable file
@ -0,0 +1,12 @@
|
||||
# PrestaShop :
|
||||
#
|
||||
# Attention les paths vers les fichiers ne doivent pas faire + de 76 caracteres !
|
||||
# ---> Faire des liens symboliques
|
||||
#
|
||||
# Sinon erreur : "Error reading pathfile (no key word F_DEFAULT)"
|
||||
|
||||
DEBUG!NO!
|
||||
D_LOGO!/modules/atos_cyberplus/logos/!
|
||||
F_CERTIFICATE!/home/www/bebeboutik.com/cgi/www/certif!
|
||||
F_PARAM!/home/www/bebeboutik.com/cgi/www/parmcom!
|
||||
F_DEFAULT!/home/www/bebeboutik.com/cgi/www/parmcom.cyberplus!
|
BIN
modules/atos_cyberplus/piclogo.png
Executable file
After Width: | Height: | Size: 8.9 KiB |
181
modules/atos_cyberplus/validation.php
Normal file
@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
include(dirname(__FILE__).'/atos_cyberplus.php');
|
||||
|
||||
if (!isset($_POST['DATA']))
|
||||
throw new Exception('error in atos module: data is required');
|
||||
else
|
||||
{
|
||||
$result = exec('/home/www/bebeboutik.com/cgi/www/response pathfile='.dirname(__FILE__).'/pathfile message='.$_POST['DATA']);
|
||||
$resultArray = explode('!', $result);
|
||||
|
||||
// @mail('perron@antadis.com', 'bbb', serialize($resultArray));
|
||||
|
||||
if (!sizeof($resultArray) OR !isset($resultArray[3]) OR !isset($resultArray[6]))
|
||||
{
|
||||
$message = 'error in atos payment module : can\'t execute request';
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
// TODO: mail merchant
|
||||
}
|
||||
elseif ($resultArray[1] == -1)
|
||||
{
|
||||
$message = 'error in atos payment module : '.$resultArray[2];
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
// TODO: mail merchant
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = 'Transaction ID: '.$resultArray[6].'<br />Payment mean: '.$resultArray[7].'<br />Payment has began at: '.$resultArray[8].'<br />
|
||||
Payment received at: '.$resultArray[10].' '.$resultArray[9].'<br />Authorization ID: '.$resultArray[13].'<br />Currency: '.$resultArray[14].'<br />
|
||||
Customer IP address: '.$resultArray[29].'<br />';
|
||||
$orderState = _PS_OS_PAYMENT_;
|
||||
|
||||
/* We need to perform some checks */
|
||||
|
||||
/* Checking whether merchant ID is OK */
|
||||
$merchantId = Configuration::get('ATOS_MERCHANT_ID');
|
||||
if(Db::getInstance()->getValue('SELECT `id_customer` FROM `'._DB_PREFIX_.'cart` WHERE `id_cart` = '.(int) $resultArray[6]) == 2 || Db::getInstance()->getValue('SELECT `id_customer` FROM `'._DB_PREFIX_.'cart` WHERE `id_cart` = '.(int) $resultArray[6]) == 286342) {
|
||||
//$merchantId = '082584341411111';
|
||||
$merchantId = '075028916700025';
|
||||
}
|
||||
if ($resultArray[3] != $merchantId)
|
||||
{
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
$message .= '<span style="color: red;">Merchant ID is not valid ('.$resultArray[3].' should be '.$merchantId.')</span>';
|
||||
}
|
||||
|
||||
/* Checking for cur rency */
|
||||
if ($orderState == _PS_OS_PAYMENT_)
|
||||
{
|
||||
$cart = new Cart($resultArray[6]);
|
||||
$currencies = array(1 => '978');
|
||||
if (isset($currencies[$cart->id_currency]))
|
||||
{
|
||||
if ($currencies[$cart->id_currency] != strtoupper($resultArray[14]))
|
||||
{
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
$message .= '<span style="color: red;">Currency is not the right one (should be '.$currencies[$cart->id_currency].')</span>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Checking for bank code response */
|
||||
if ($orderState == _PS_OS_PAYMENT_)
|
||||
{
|
||||
$responseCode = intval($resultArray[11]);
|
||||
|
||||
switch ($responseCode)
|
||||
{
|
||||
case 3:
|
||||
$message .= '<span style="color: red;">Merchand ID is not valid</span>';
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
break;
|
||||
|
||||
case 5:
|
||||
$message .= '<span style="color: red;">Bank has rejected payment</span>';
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
break;
|
||||
|
||||
case 12:
|
||||
$message .= '<span style="color: red;">Customer has canceled its order</span>';
|
||||
$orderState = _PS_OS_CANCELED_;
|
||||
break;
|
||||
|
||||
case 17:
|
||||
$message .= '<span style="color: red;">Customer has canceled its order</span>';
|
||||
$orderState = _PS_OS_CANCELED_;
|
||||
break;
|
||||
|
||||
case 30:
|
||||
$message .= '<span style="color: red;">Format error</span>';
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
break;
|
||||
|
||||
case 34:
|
||||
$message .= '<span style="color: red;">Bank said that transaction might be fraudulous</span>';
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
break;
|
||||
|
||||
case 75:
|
||||
$message .= '<span style="color: red;">Customer has exceeded max tries for its card number</span>';
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
break;
|
||||
|
||||
case 90:
|
||||
$message .= '<span style="color: red;">Bank server was unavailable</span>';
|
||||
$orderState = _PS_OS_ERROR_;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if($orderState == _PS_OS_PAYMENT_) {
|
||||
// Fraud detection
|
||||
$count_orders = Db::getInstance()->getRow('
|
||||
SELECT COUNT(*) AS `total`
|
||||
FROM `ps_orders`
|
||||
WHERE `id_customer` = '.(int) $cart->id_customer.'
|
||||
AND `date_add` >= DATE_SUB(NOW(), INTERVAL 7 DAY)
|
||||
');
|
||||
|
||||
$count_products = Db::getInstance()->getRow('
|
||||
SELECT COUNT(*)
|
||||
FROM `ps_cart_product`
|
||||
WHERE `id_cart` = '.(int) $cart->id.'
|
||||
');
|
||||
|
||||
$count_total_paid = $cart->getOrderTotal();
|
||||
|
||||
$count_order_ip = Db::getInstance()->getRow('
|
||||
SELECT COUNT(*) AS `total`
|
||||
FROM `ps_payment_iplog`
|
||||
WHERE `ipaddr` = "'.pSQL($resultArray[29]).'"
|
||||
AND `date_add` >= DATE_SUB(NOW(), INTERVAL 7 DAY)
|
||||
');
|
||||
|
||||
$reason = '';
|
||||
|
||||
if($count_orders['total'] + 1 > 3) {
|
||||
$reason .= 'le client a passé plus de 3 commandes sur 7 jours'."\n";
|
||||
}
|
||||
|
||||
if($count_products['total'] > 7 && $count_total_paid > 500.0) {
|
||||
$reason .= 'la commande contient plus de 7 produits et est de plus de 500€'."\n";
|
||||
}
|
||||
|
||||
if($count_order_ip['total'] > 3) {
|
||||
$reason .= 'l\'ip a passé plus de 3 commandes sur 7 jours'."\n";
|
||||
}
|
||||
|
||||
if($reason != '') {
|
||||
@mail('frederic+paiement@bebeboutik.com', '[BEBEBOUTIK] Suspicion de fraude', 'Une commande suspecte a été détectée.
|
||||
|
||||
Détails de la commande :
|
||||
|
||||
- client : '.(int) $cart->id_customer.'
|
||||
|
||||
- panier : '.(int) $cart->id.'
|
||||
|
||||
- raison de l\'alerte :
|
||||
'.$reason.'
|
||||
', 'Content-Type: text/plain; charset="utf-8"'."\r\n".'From: paiement@bebeboutik.com'."\r\n".'Reply-To: perron@antadis.com'."\r\n".'Return-Path: perron@antadis.com'."\r\n");
|
||||
}
|
||||
|
||||
Db::getInstance()->ExecuteS('
|
||||
INSERT INTO `'._DB_PREFIX_.'payment_iplog` VALUES (
|
||||
'.(int) $cart->id_customer.',
|
||||
'.(int) $cart->id.',
|
||||
"'.pSQL($resultArray[29]).'",
|
||||
NOW()
|
||||
)
|
||||
');
|
||||
//
|
||||
}
|
||||
|
||||
$atos = new Atos_cyberplus();
|
||||
$atos->validateOrder($resultArray[6], $orderState, ($resultArray[5] / 100), $atos->displayName, $message);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
238
modules/authorizeaim/authorizeaim.php
Executable file
@ -0,0 +1,238 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 10540 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
class authorizeAIM extends PaymentModule
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'authorizeaim';
|
||||
$this->tab = 'payments_gateways';
|
||||
$this->version = '1.3';
|
||||
$this->author = 'PrestaShop';
|
||||
$this->limited_countries = array('us');
|
||||
$this->need_instance = 0;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = 'Authorize.net AIM (Advanced Integration Method)';
|
||||
$this->description = $this->l('Receive payment with Authorize.net');
|
||||
|
||||
/* For 1.4.3 and less compatibility */
|
||||
$updateConfig = array(
|
||||
'PS_OS_CHEQUE' => 1,
|
||||
'PS_OS_PAYMENT' => 2,
|
||||
'PS_OS_PREPARATION' => 3,
|
||||
'PS_OS_SHIPPING' => 4,
|
||||
'PS_OS_DELIVERED' => 5,
|
||||
'PS_OS_CANCELED' => 6,
|
||||
'PS_OS_REFUND' => 7,
|
||||
'PS_OS_ERROR' => 8,
|
||||
'PS_OS_OUTOFSTOCK' => 9,
|
||||
'PS_OS_BANKWIRE' => 10,
|
||||
'PS_OS_PAYPAL' => 11,
|
||||
'PS_OS_WS_PAYMENT' => 12);
|
||||
|
||||
foreach ($updateConfig as $u => $v)
|
||||
if (!Configuration::get($u) || (int)Configuration::get($u) < 1)
|
||||
{
|
||||
if (defined('_'.$u.'_') && (int)constant('_'.$u.'_') > 0)
|
||||
Configuration::updateValue($u, constant('_'.$u.'_'));
|
||||
else
|
||||
Configuration::updateValue($u, $v);
|
||||
}
|
||||
|
||||
/* Check if cURL is enabled */
|
||||
if (!is_callable('curl_exec'))
|
||||
$this->warning = $this->l('cURL extension must be enabled on your server to use this module.');
|
||||
}
|
||||
|
||||
public function install()
|
||||
{
|
||||
return (parent::install() AND $this->registerHook('orderConfirmation') AND $this->registerHook('payment')
|
||||
AND $this->registerHook('header') AND Configuration::updateValue('AUTHORIZE_AIM_DEMO', 1));
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
{
|
||||
Configuration::deleteByName('AUTHORIZE_AIM_LOGIN_ID');
|
||||
Configuration::deleteByName('AUTHORIZE_AIM_KEY');
|
||||
Configuration::deleteByName('AUTHORIZE_AIM_DEMO');
|
||||
Configuration::deleteByName('AUTHORIZE_AIM_CARD_VISA');
|
||||
Configuration::deleteByName('AUTHORIZE_AIM_CARD_MASTERCARD');
|
||||
Configuration::deleteByName('AUTHORIZE_AIM_CARD_DISCOVER');
|
||||
Configuration::deleteByName('AUTHORIZE_AIM_CARD_AX');
|
||||
|
||||
return parent::uninstall();
|
||||
}
|
||||
|
||||
public function hookOrderConfirmation($params)
|
||||
{
|
||||
global $smarty;
|
||||
|
||||
if ($params['objOrder']->module != $this->name)
|
||||
return;
|
||||
|
||||
if ($params['objOrder']->getCurrentState() != Configuration::get('PS_OS_ERROR'))
|
||||
$smarty->assign(array('status' => 'ok', 'id_order' => intval($params['objOrder']->id)));
|
||||
else
|
||||
$smarty->assign('status', 'failed');
|
||||
|
||||
return $this->display(__FILE__, 'hookorderconfirmation.tpl');
|
||||
}
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
if (Tools::isSubmit('submitModule'))
|
||||
{
|
||||
Configuration::updateValue('AUTHORIZE_AIM_LOGIN_ID', Tools::getvalue('authorizeaim_login_id'));
|
||||
Configuration::updateValue('AUTHORIZE_AIM_KEY', Tools::getvalue('authorizeaim_key'));
|
||||
Configuration::updateValue('AUTHORIZE_AIM_DEMO', Tools::getvalue('authorizeaim_demo_mode'));
|
||||
Configuration::updateValue('AUTHORIZE_AIM_CARD_VISA', Tools::getvalue('authorizeaim_card_visa'));
|
||||
Configuration::updateValue('AUTHORIZE_AIM_CARD_MASTERCARD', Tools::getvalue('authorizeaim_card_mastercard'));
|
||||
Configuration::updateValue('AUTHORIZE_AIM_CARD_DISCOVER', Tools::getvalue('authorizeaim_card_discover'));
|
||||
Configuration::updateValue('AUTHORIZE_AIM_CARD_AX', Tools::getvalue('authorizeaim_card_ax'));
|
||||
|
||||
echo $this->displayConfirmation($this->l('Configuration updated'));
|
||||
}
|
||||
|
||||
return '
|
||||
<h2>'.$this->displayName.'</h2>
|
||||
<fieldset><legend><img src="../modules/'.$this->name.'/logo.gif" alt="" /> '.$this->l('Help').'</legend>
|
||||
<a href="http://www.authorize.net/signupnow/" style="float: right;"><img src="../modules/'.$this->name.'/logo_authorize.png" alt="" /></a>
|
||||
<h3>'.$this->l('In your PrestaShop admin panel').'</h3>
|
||||
- '.$this->l('Fill the Login ID field with the one provided by Authorize.net').'<br />
|
||||
- '.$this->l('Fill the key field with the transaction key provided by Authorize.net').'<br />
|
||||
<span style="color: red;" >- '.$this->l('Warning: Your website must possess a SSL certificate to use the Authorize.net AIM payment system. You are responsible for the safety of your customers\' bank information. PrestaShop cannot be blamed for any security issue on your website.').'</span><br />
|
||||
<br />
|
||||
</fieldset><br />
|
||||
<form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post">
|
||||
<fieldset class="width2">
|
||||
<legend><img src="../img/admin/contact.gif" alt="" />'.$this->l('Settings').'</legend>
|
||||
<label for="authorizeaim_login_id">'.$this->l('Login ID').'</label>
|
||||
<div class="margin-form"><input type="text" size="20" id="authorizeaim_login_id" name="authorizeaim_login_id" value="'.Configuration::get('AUTHORIZE_AIM_LOGIN_ID').'" /></div>
|
||||
<label for="authorizeaim_key">'.$this->l('Key').'</label>
|
||||
<div class="margin-form"><input type="text" size="20" id="authorizeaim_login_id" name="authorizeaim_key" value="'.Configuration::get('AUTHORIZE_AIM_KEY').'" /></div>
|
||||
<label for="authorizeaim_demo_mode">'.$this->l('Mode:').'</label>
|
||||
<div class="margin-form" id="authorizeaim_demo">
|
||||
<input type="radio" name="authorizeaim_demo_mode" value="0" style="vertical-align: middle;" '.(!Tools::getValue('authorizeaim_demo_mode', Configuration::get('AUTHORIZE_AIM_DEMO')) ? 'checked="checked"' : '').' />
|
||||
<span style="color: #080;">'.$this->l('Production').'</span>
|
||||
<input type="radio" name="authorizeaim_demo_mode" value="1" style="vertical-align: middle;" '.(Tools::getValue('authorizeaim_demo_mode', Configuration::get('AUTHORIZE_AIM_DEMO')) ? 'checked="checked"' : '').' />
|
||||
<span style="color: #900;">'.$this->l('Test').'</span>
|
||||
</div>
|
||||
<label for="authorizeaim_cards">'.$this->l('Cards:').'</label>
|
||||
<div class="margin-form" id="authorizeaim_cards">
|
||||
<input type="checkbox" name="authorizeaim_card_visa" '.(Configuration::get('AUTHORIZE_AIM_CARD_VISA') ? 'checked="checked"' : '').' />
|
||||
<img src="../modules/'.$this->name.'/cards/visa.gif" alt="visa" />
|
||||
<input type="checkbox" name="authorizeaim_card_mastercard" '.(Configuration::get('AUTHORIZE_AIM_CARD_MASTERCARD') ? 'checked="checked"' : '').' />
|
||||
<img src="../modules/'.$this->name.'/cards/mastercard.gif" alt="visa" />
|
||||
<input type="checkbox" name="authorizeaim_card_discover" '.(Configuration::get('AUTHORIZE_AIM_CARD_DISCOVER') ? 'checked="checked"' : '').' />
|
||||
<img src="../modules/'.$this->name.'/cards/discover.gif" alt="visa" />
|
||||
<input type="checkbox" name="authorizeaim_card_ax" '.(Configuration::get('AUTHORIZE_AIM_CARD_AX') ? 'checked="checked"' : '').' />
|
||||
<img src="../modules/'.$this->name.'/cards/ax.gif" alt="visa" />
|
||||
</div>
|
||||
<br /><center><input type="submit" name="submitModule" value="'.$this->l('Update settings').'" class="button" /></center>
|
||||
</fieldset>
|
||||
</form>';
|
||||
}
|
||||
|
||||
public function hookPayment($params)
|
||||
{
|
||||
global $cookie, $smarty;
|
||||
|
||||
if (Configuration::get('PS_SSL_ENABLED') || (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off'))
|
||||
{
|
||||
$invoiceAddress = new Address((int)$params['cart']->id_address_invoice);
|
||||
$customer = new Customer((int)$cookie->id_customer);
|
||||
|
||||
$authorizeAIMParams = array();
|
||||
$authorizeAIMParams['x_login'] = Configuration::get('AUTHORIZE_AIM_LOGIN_ID');
|
||||
$authorizeAIMParams['x_tran_key'] = Configuration::get('AUTHORIZE_AIM_KEY');
|
||||
$authorizeAIMParams['x_version'] = '3.1';
|
||||
$authorizeAIMParams['x_delim_data'] = 'TRUE';
|
||||
$authorizeAIMParams['x_delim_char'] = '|';
|
||||
$authorizeAIMParams['x_relay_response'] = 'FALSE';
|
||||
$authorizeAIMParams['x_type'] = 'AUTH_CAPTURE';
|
||||
$authorizeAIMParams['x_method'] = 'CC';
|
||||
$authorizeAIMParams['x_test_request'] = Configuration::get('AUTHORIZE_AIM_DEMO');
|
||||
$authorizeAIMParams['x_invoice_num'] = (int)$params['cart']->id;
|
||||
$authorizeAIMParams['x_amount'] = number_format($params['cart']->getOrderTotal(true, 3), 2, '.', '');
|
||||
$authorizeAIMParams['x_address'] = $invoiceAddress->address1.' '.$invoiceAddress->address2;
|
||||
$authorizeAIMParams['x_zip'] = $invoiceAddress->postcode;
|
||||
$authorizeAIMParams['x_first_name'] = $customer->firstname;
|
||||
$authorizeAIMParams['x_last_name'] = $customer->lastname;
|
||||
|
||||
$isFailed = Tools::getValue('aimerror');
|
||||
|
||||
$cards = array();
|
||||
$cards['visa'] = Configuration::get('AUTHORIZE_AIM_CARD_VISA') == 'on' ? 1 : 0;
|
||||
$cards['mastercard'] = Configuration::get('AUTHORIZE_AIM_CARD_MASTERCARD') == 'on' ? 1 : 0;
|
||||
$cards['discover'] = Configuration::get('AUTHORIZE_AIM_CARD_DISCOVER') == 'on' ? 1 : 0;
|
||||
$cards['ax'] = Configuration::get('AUTHORIZE_AIM_CARD_AX') == 'on' ? 1 : 0;
|
||||
|
||||
$smarty->assign('p', $authorizeAIMParams);
|
||||
$smarty->assign('cards', $cards);
|
||||
$smarty->assign('isFailed', $isFailed);
|
||||
|
||||
return $this->display(__FILE__, 'authorizeaim.tpl');
|
||||
}
|
||||
}
|
||||
|
||||
public function hookHeader()
|
||||
{
|
||||
Tools::addJS(_PS_JS_DIR_.'jquery/jquery.validate.creditcard2-1.0.1.js');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the detail of a payment - Call before the validate order init
|
||||
* correctly the pcc object
|
||||
* See Authorize documentation to know the associated key => value
|
||||
* @param array fields
|
||||
*/
|
||||
public function setTransactionDetail($response)
|
||||
{
|
||||
// If Exist we can store the details
|
||||
if (isset($this->pcc))
|
||||
{
|
||||
$this->pcc->transaction_id = (string)$response[6];
|
||||
|
||||
// 50 => Card number (XXXX0000)
|
||||
$this->pcc->card_number = (string)substr($response[50], -4);
|
||||
|
||||
// 51 => Card Mark (Visa, Master card)
|
||||
$this->pcc->card_brand = (string)$response[51];
|
||||
|
||||
$this->pcc->card_expiration = (string)Tools::getValue('x_exp_date');
|
||||
|
||||
// 68 => Owner name
|
||||
$this->pcc->card_holder = (string)$response[68];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
113
modules/authorizeaim/authorizeaim.tpl
Executable file
@ -0,0 +1,113 @@
|
||||
{*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 10540 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$module_dir}secure.png" />
|
||||
<p class="payment_module" >
|
||||
|
||||
{if $isFailed == 1}
|
||||
<p style="color: red;">{l s='Error, please verify the card information' mod='authorizeaim'}</p>
|
||||
{/if}
|
||||
|
||||
<form name="authorizeaim_form" id="authorizeaim_form" action="{$module_dir}validation.php" method="post">
|
||||
<span style="border: 1px solid #595A5E;display: block;padding: 0.6em;text-decoration: none;margin-left: 0.7em;">
|
||||
<a id="click_authorizeaim" href="#" title="{l s='Pay with authorizeaim' mod='authorizeaim'}" style="display: block;text-decoration: none; font-weight: bold;">
|
||||
{if $cards.visa == 1}<img src="{$module_dir}cards/visa.gif" alt="{l s='visa logo' mod='authorizeaim'}" style="vertical-align: middle;" />{/if}
|
||||
{if $cards.mastercard == 1}<img src="{$module_dir}cards/mastercard.gif" alt="{l s='mastercard logo' mod='authorizeaim'}" style="vertical-align: middle;" />{/if}
|
||||
{if $cards.discover == 1}<img src="{$module_dir}cards/discover.gif" alt="{l s='discover logo' mod='authorizeaim'}" style="vertical-align: middle;" />{/if}
|
||||
{if $cards.ax == 1}<img src="{$module_dir}cards/ax.gif" alt="{l s='american express logo' mod='authorizeaim'}" style="vertical-align: middle;" />{/if}
|
||||
{l s='Secured credit card payment with Authorize.net' mod='authorizeaim'}
|
||||
</a>
|
||||
|
||||
<div id="aut2">
|
||||
|
||||
<br /><br />
|
||||
|
||||
<div style="width: 136px; height: 165px; float: left; padding-top:40px; padding-right: 20px; border-right: 1px solid #DDD;">
|
||||
<img src="{$module_dir}logoa.gif" alt="secure payment" />
|
||||
</div>
|
||||
{foreach from=$p key=k item=v}
|
||||
<input type="hidden" name="{$k}" value="{$v}" />
|
||||
{/foreach}
|
||||
|
||||
<label style="margin-top: 4px; margin-left: 40px;display: block;width: 90px;float: left;">{l s='Full name' mod='authorizeaim'}</label> <input type="text" name="name" id="fullname" size="27" maxlength="25S" /><img src="{$module_dir}secure.png" alt="" style="margin-left: 5px;" /><br /><br />
|
||||
|
||||
<label style="margin-top: 4px; margin-left: 40px;display: block;width: 90px;float: left;">{l s='Card Type' mod='authorizeaim'}</label>
|
||||
<select id="cardType">
|
||||
{if $cards.ax == 1}<option value="AmEx">American Express</option>{/if}
|
||||
{if $cards.visa == 1}<option value="Visa">Visa</option>{/if}
|
||||
{if $cards.mastercard == 1}<option value="MasterCard">MasterCard</option>{/if}
|
||||
{if $cards.discover == 1}<option value="Discover">Discover</option>{/if}
|
||||
</select>
|
||||
<img src="{$module_dir}secure.png" alt="" style="margin-left: 5px;" /><br /><br />
|
||||
|
||||
<label style="margin-top: 4px; margin-left: 40px;display: block;width: 90px;float: left;">{l s='Card number' mod='authorizeaim'}</label> <input type="text" name="x_card_num" id="cardnum" size="27" maxlength="16" autocomplete="Off" /><img src="{$module_dir}secure.png" alt="" style="margin-left: 5px;" /><br /><br />
|
||||
<label style="margin-top: 4px; margin-left: 40px;display: block;width: 90px;float: left;">{l s='Expiration date' mod='authorizeaim'}</label>
|
||||
<select name="x_exp_date_m" style="width: 40px;">{section name=date_m start=01 loop=13}
|
||||
<option value="{$smarty.section.date_m.index}">{$smarty.section.date_m.index}</option>{/section}
|
||||
</select>
|
||||
/
|
||||
<select name="x_exp_date_y">{section name=date_y start=11 loop=20}
|
||||
<option value="{$smarty.section.date_y.index}">20{$smarty.section.date_y.index}</option>{/section}
|
||||
</select>
|
||||
<img src="{$module_dir}secure.png" alt="" style="margin-left: 5px;" /><br /><br />
|
||||
<label style="margin-top: 4px; margin-left: 40px;display: block;width: 90px;float: left;">{l s='CVV' mod='authorizeaim'}</label> <input type="text" name="x_card_code" id="x_card_code" size="4" maxlength="4" /><img src="{$module_dir}secure.png" alt="" style="margin-left: 5px;"/> <img src="{$module_dir}help.png" id="cvv_help" title="{l s='the 3 last digits on the back of your credit card' mod='authorizeaim'}" alt="" /><br /><br />
|
||||
<img src="{$module_dir}cvv.png" id="cvv_help_img" alt=""style="display: none;margin-left: 211px;" />
|
||||
<p style="text-align: center; width: 200px; float: left; margin: 10px 0 15px 102px;"><input type="submit" id="asubmit" value="{l s='Make payment' mod='authorizeaim'}" onclick="return checkAimForm();" style="" class="button exclusive_large" /></p>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</span>
|
||||
</form>
|
||||
</p>
|
||||
<script type="text/javascript">
|
||||
var mess_error = "{l s='Please check your credit card information (Credit card type, number and expiration date)' mod='authorizeaim' js=1}";
|
||||
var mess_error2 = "{l s='Please specify your Full Name' mod='authorizeaim' js=1}";
|
||||
{literal}
|
||||
function checkAimForm()
|
||||
{
|
||||
if ($('#fullname').val() == '')
|
||||
{
|
||||
alert(mess_error2);
|
||||
return false;
|
||||
}
|
||||
else if (!validateCC($('#cardnum').val(), $('#cardType').val()) || $('#x_card_code').val() == '')
|
||||
{
|
||||
alert(mess_error);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $('#authorizeaim_form').submit();
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#cvv_help').click(function(){
|
||||
$('#cvv_help_img').show();
|
||||
$('#cvv_help').unbind();
|
||||
});
|
||||
});
|
||||
|
||||
{/literal}
|
||||
</script>
|
BIN
modules/authorizeaim/cards/ax.gif
Executable file
After Width: | Height: | Size: 560 B |
BIN
modules/authorizeaim/cards/discover.gif
Executable file
After Width: | Height: | Size: 504 B |
36
modules/authorizeaim/cards/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
BIN
modules/authorizeaim/cards/mastercard.gif
Executable file
After Width: | Height: | Size: 595 B |
BIN
modules/authorizeaim/cards/visa.gif
Executable file
After Width: | Height: | Size: 451 B |
BIN
modules/authorizeaim/cvv.png
Executable file
After Width: | Height: | Size: 8.3 KiB |
44
modules/authorizeaim/de.php
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Fehler, bitte Kreditkarteninformationen überprüfen';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Bezahlen Sie mit authorizeaim';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'Visa-Logo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'Master Card-Logo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'Discover-Logo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'American Express Logo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Sichere Kreditkartenzahlung mit Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Vollständiger Name';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Karten-Typ';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Kartennummer';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Verfallsdatum';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'CVV';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'die letzten drei Ziffern auf der Rückseite Ihrer Kreditkarte';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_40566b26dcc126bce704f2c1d622a6a3'] = 'Bestellung bestätigen';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Bitte überprüfen Sie Ihre Kreditkarteninformationen (Kreditkarten-Typ, Kreditkarten-Nr. und Verfallsdatum)';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Bitte geben Sie den kompletten Namen an';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Zahlung mit Authorize.net erhalten';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'cURL muss aktiviert sein, um dieses Modul nutzen zu können.';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Konfiguration aktualisiert';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Hilfe';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'In Ihrem PrestaShop Admin-Panel';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Füllen Sie das Login-ID-Feld mit der von Authorize.net vorgesehenen Kennung aus';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Füllen Sie das Schlüsselfeld mit dem Transaktionsschlüssel von Authorize.net aus';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Hinweis: Ihre Webseite muss ein SSL-Zertifikat besitzen, um Authorize.net AIM verwenden zu können. Sie selbst sind für die sichere Aufbewahrung und Übermittlung der von Ihren Kunden an Sie übermittelten personenbezogenen Daten wie z.B. die Bankdaten verantwortlich. Prestashop entzieht sich jeder Verantwortung falls die Daten gestohlen werden.';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'Login-ID';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Schlüssel';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Modus:';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Produktion';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Test';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Karten:';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Aktualisierungseinstellungen';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Ihre Bestellung vom';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = ' ist abgeschlossen.';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Ihre Bestellung wird so schnell wie möglich zugeschickt.';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Bei Fragen oder für weitere Informationen, kontaktieren Sie bitte unseren';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'Kunden-Support';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Bei Ihrer Bestellung ist ein Fehler aufgetreten. Bitte wenden Sie sich an unseren';
|
||||
|
||||
?>
|
4
modules/authorizeaim/en.php
Executable file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
41
modules/authorizeaim/es.php
Executable file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Recibir pagos con Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'La extención cURL debe estar habilitada en su servidor para habilitar este modulo. ';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuración actualizada';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Ayuda';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'En su panel de PrestaShop admin';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Rellene el ID de campo con el proporcionado por Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Rellene el campo clave con la clave de operación facilitada por Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Atención: Su sitio web debe poseer un certificado SSL para utilizar el módulo Authorize.net AIM. Usted es responsable de la seguridad de los datos bancarios de sus clientes. PrestaShop no podrá ser responsable en caso de problemas de seguridad en su sitio web.';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Parámetros';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'Nombre de usuario';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Clave';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Modo:';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Producción';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Prueba';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Tarjetas:';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Actualizar la configuración';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Error, por favor compruebe sus datos bancarios';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Pagar con authorizeaim';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'visa logo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'logotipo de MasterCard';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'descubrir logotipo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'Logo American Express ';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Pago seguro con Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Nombre y apellidos';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Tipo de tarjeta';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Número de tarjeta';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Fecha de caducidad';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'CVV';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'los 3 últimos dígitos de la parte posterior de su tarjeta de crédito';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Por favor verifique le información de su tarjeta de crédito (tipo de tarjeta, fecha de expiración)';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Por favor ponga su nombre completo';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Su pedido de';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = 'se ha completado.';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Su pedido será enviado tan pronto como sea posible.';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Para cualquier duda o para más información, póngase en contacto con nuestro servicio de';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'atención al cliente';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Hemos constatado un problema con su pedido. Si usted piensa que esto es un error, puede contactar con nuestro';
|
42
modules/authorizeaim/fr.php
Executable file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Recevoir des paiements avec Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'L\'extension cURL doit être activée sur votre serveur pour utiliser ce module.';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuration mise à jour';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Aide';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'Dans votre panneau d\'aministration PrestaShop';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Indiquez le login fourni par Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Indiquez la clé de transaction fournie par Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Attention: votre site doit posséder un certificat SSL pour utiliser le module Authorize.net AIM. Vous êtes responsable de la sécurité des informations bancaires de vos clients. PrestaShop ne peut être tenu responsable en cas de problème de sécurité sur votre site.';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'Login';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Clé';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Mode';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Production';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Test';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Cartes';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Mettre à jour la configuration';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Erreur, veuillez verifier vos informations bancaires';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Payer avec AuthorizeAIM';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'Logo Visa';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'Logo Mastercard';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'Logo Discover';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'Logo American Express';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Paiement sécurisé avec Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Nom complet';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Type de carte';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Numéro de carte';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Date d\'expiration';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'Code CVV';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'les 3 derniers chiffres au dos de votre carte';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_3cfd82f426314baac679a85da388c8b7'] = 'Valider le paiement';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Veuillez vérifier vos informations bancaires (type de carte de crédit, numéro et date d\'expiration)';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Merci de spécifier votre nom complet';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Votre commande sur';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = 'est reussie';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Votre commande vous sera expediée le plus rapidement possible';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Pour toute question, contactez notre';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'Service client';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Nous avons remarqué une erreur avec votre commande. Si vous pensez que c\'est une erreur, vous pouvez contacter notre';
|
BIN
modules/authorizeaim/help.png
Executable file
After Width: | Height: | Size: 911 B |
11
modules/authorizeaim/hookorderconfirmation.tpl
Executable file
@ -0,0 +1,11 @@
|
||||
{if $status == 'ok'}
|
||||
<p>{l s='Your order on' mod='authorizeaim'} <span class="bold">{$shop_name}</span> {l s='is complete.' mod='authorizeaim'}
|
||||
<br /><br /><span class="bold">{l s='Your order will be sent as soon as possible.' mod='authorizeaim'}</span>
|
||||
<br /><br />{l s='For any questions or for further information, please contact our' mod='authorizeaim'} <a href="{$base_dir_ssl}contact-form.php">{l s='customer support' mod='authorizeaim'}</a>.
|
||||
</p>
|
||||
{else}
|
||||
<p class="warning">
|
||||
{l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='authorizeaim'}
|
||||
<a href="{$base_dir_ssl}contact-form.php">{l s='customer support' mod='authorizeaim'}</a>.
|
||||
</p>
|
||||
{/if}
|
36
modules/authorizeaim/index.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7233 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
44
modules/authorizeaim/it.php
Executable file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Errore, vi preghiamo di verificare le informazioni della carta';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Paga con authorizeaim';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'logo visa';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'logo mastercard';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'logo discover';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'logo american express';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Pagamento sicuro con carta di credito con Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Nome completo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Tipo di carta';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Numero di carta';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Data di scadenza';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'CVV';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'le ultime 3 cifre sul retro della vostra carta di credito';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_40566b26dcc126bce704f2c1d622a6a3'] = 'Convalida ordine';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Per favore verifica le informazione della tua carta (Tipo di carta, numero e data)';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Inserisci il tuo nome completo';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Ricevi il pagamento con Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'estensione cURL deve essere abilitato sul server per utilizzare questo modulo.';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configurazione aggiornata';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Aiuto';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'Nel tuo pannello admin PrestaShop';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Riempi il campo ID Login con quello fornito da Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Riempire il campo chiave con la chiave di transazione fornita da Authorize.net';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Attenzione: Il tuo sito web deve possedere un certificato SSL per utilizzare il sistema AIM Authorize.net pagamento. L\'utente è responsabile per la sicurezza dei dati bancari dei vostri clienti \'. PrestaShop non possono essere incolpati per qualsiasi problema di sicurezza nel tuo sito web.';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'ID Login ';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Chiave';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Modalità:';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Produzione';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Test';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Carte di credito:';
|
||||
$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Aggiorna le impostazioni';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Il tuo ordine';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = 'è completo.';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Il tuo ordine verrà inviato al più presto.';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Per eventuali domande o per ulteriori informazioni, contatta la nostra';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'assistenza clienti';
|
||||
$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Abbiamo notato un problema con il tuo ordine. Se pensi che questo sia un errore, contatta la nostra';
|
||||
|
||||
?>
|
BIN
modules/authorizeaim/logo.gif
Executable file
After Width: | Height: | Size: 79 B |
BIN
modules/authorizeaim/logo_authorize.png
Executable file
After Width: | Height: | Size: 6.4 KiB |
BIN
modules/authorizeaim/logoa.gif
Executable file
After Width: | Height: | Size: 2.0 KiB |
BIN
modules/authorizeaim/secure.png
Executable file
After Width: | Height: | Size: 611 B |
102
modules/authorizeaim/validation.php
Executable file
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 10540 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
include(dirname(__FILE__). '/../../config/config.inc.php');
|
||||
include(dirname(__FILE__). '/../../init.php');
|
||||
include(dirname(__FILE__). '/authorizeaim.php');
|
||||
|
||||
/* Transform the POST from the template to a GET for the CURL */
|
||||
if (isset($_POST['x_exp_date_m']) && isset($_POST['x_exp_date_y']))
|
||||
{
|
||||
$_POST['x_exp_date'] = $_POST['x_exp_date_m'].$_POST['x_exp_date_y'];
|
||||
unset($_POST['x_exp_date_m']);
|
||||
unset($_POST['x_exp_date_y']);
|
||||
}
|
||||
$postString = '';
|
||||
foreach ($_POST as $key => $value)
|
||||
$postString .= $key.'='.urlencode($value).'&';
|
||||
|
||||
$postString = trim($postString, '&');
|
||||
|
||||
$url = 'https://secure.authorize.net/gateway/transact.dll';
|
||||
if (Configuration::get('AUTHORIZE_AIM_DEMO'))
|
||||
{
|
||||
$postString .= '&x_test_request=TRUE';
|
||||
$url = 'https://test.authorize.net/gateway/transact.dll';
|
||||
}
|
||||
|
||||
/* Do the CURL request ro Authorize.net */
|
||||
$request = curl_init($url);
|
||||
curl_setopt($request, CURLOPT_HEADER, 0);
|
||||
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($request, CURLOPT_POSTFIELDS, $postString);
|
||||
curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||
$postResponse = curl_exec($request);
|
||||
curl_close($request);
|
||||
|
||||
$response = explode('|', $postResponse);
|
||||
if (!isset($response[7]) OR !isset($response[3]) OR !isset($response[9]))
|
||||
{
|
||||
Logger::addLog('Authorize.net returned a malformed response for cart '.$response[7], 4);
|
||||
die('Authorize.net returned a malformed response, aborted.');
|
||||
}
|
||||
|
||||
if ($response[0] != 1)
|
||||
{
|
||||
if (!isset($_SERVER['HTTP_REFERER']) || strstr($_SERVER['HTTP_REFERER'], 'order.php'))
|
||||
Tools::redirect('order.php?step=3&cgv=1&aimerror=1');
|
||||
elseif (strstr($_SERVER['HTTP_REFERER'], '?'))
|
||||
Tools::redirect($_SERVER['HTTP_REFERER'].'&aimerror=1', '');
|
||||
else
|
||||
Tools::redirect($_SERVER['HTTP_REFERER'].'?aimerror=1', '');
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Does the cart exist and is valid? */
|
||||
$cart = new Cart((int)$response[7]);
|
||||
if (!Validate::isLoadedObject($cart))
|
||||
{
|
||||
Logger::addLog('Cart loading failed for cart '.$response[7], 4);
|
||||
exit;
|
||||
}
|
||||
|
||||
$customer = new Customer((int)$cart->id_customer);
|
||||
|
||||
/* Loading the object */
|
||||
$authorizeaim = new authorizeaim();
|
||||
$message = $response[3];
|
||||
if ($response[0] == 1)
|
||||
{
|
||||
$authorizeaim->setTransactionDetail($response);
|
||||
$authorizeaim->validateOrder((int)$cart->id, Configuration::get('PS_OS_PAYMENT'), (float)$response[9], $authorizeaim->displayName, $message, NULL, NULL, false, $customer->secure_key);
|
||||
}
|
||||
else
|
||||
$authorizeaim->validateOrder((int)$cart->id, Configuration::get('PS_OS_ERROR'), (float)$response[9], $authorizeaim->displayName, $message, NULL, NULL, false, $customer->secure_key);
|
||||
|
||||
Tools::redirect('order-confirmation.php?id_module='.(int)$authorizeaim->id.'&id_cart='.(int)$cart->id.'&key='.$customer->secure_key);
|
||||
}
|
||||
|