public function __construct($client = NULL) { parent::__construct($client); self::$shipping_by_product = Gateway::getConfig('SHIPPING_BY_PRODUCT'); self::$shipping_by_product_fieldname = Gateway::getConfig('SHIPPING_BY_PRODUCT_FIELDNAME'); if (Gateway::getConfig('CUSTOMIZABLE_FIELDS')) { $customizable_fields = explode('¤', Gateway::getConfig('CUSTOMIZABLE_FIELDS')); foreach ($customizable_fields as $customizable_field) { $customizable_value = explode('|', $customizable_field); self::$customizable_field[$customizable_value[0]] = $customizable_value[1]; } } }
* 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 <*****@*****.**> * @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 */ include dirname(__FILE__) . '/../../../config/config.inc.php'; include dirname(__FILE__) . '/../../../init.php'; include_once dirname(__FILE__) . '/../classes/Gateway.php'; include_once dirname(__FILE__) . '/../nqgatewayneteven.php'; if (Tools::getValue('token') != Tools::encrypt(Configuration::get('PS_SHOP_NAME'))) { die(Tools::displayError()); } $nqgatewayneteven = new NqGatewayNeteven(); if (Tools::getValue('active')) { echo $nqgatewayneteven->getL('Treatment mode') . '<br /><br />'; GatewayProduct::getInstance()->updateProduct(false); } else { echo $nqgatewayneteven->getL('Display mode') . '<br /><br />'; GatewayProduct::getInstance()->updateProduct(true); }
* 2007-2014 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 <*****@*****.**> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include dirname(__FILE__) . '/../../../config/config.inc.php'; include dirname(__FILE__) . '/../../../init.php'; include_once dirname(__FILE__) . '/../classes/Gateway.php'; if (Tools::getValue('token') != Tools::encrypt(Configuration::get('PS_SHOP_NAME'))) { die(Tools::displayError()); } GatewayProduct::getInstance()->viewProductInNetEven();
public function hookNewOrder($params) { // If SOAP is not installed if (!$this->getSOAP()) { return; } // If synchronization product is not active if (!Gateway::getConfig('SYNCHRONISATION_PRODUCT')) { return; } foreach ($params['cart']->getProducts() as $product) { $id_product = (int) $product['id_product']; $id_product_attribute = isset($product['id_product_attribute']) ? (int) $product['id_product_attribute'] : 0; GatewayProduct::getInstance()->updateOneProduct((int) $id_product, (int) $id_product_attribute); } }