fix pack L4
This commit is contained in:
parent
ef76c7962d
commit
554ed81b48
@ -1,6 +1,14 @@
|
||||
<?php
|
||||
require_once(dirname(dirname(__FILE__)).'/config/config.inc.php');
|
||||
|
||||
$id_lang = 1;
|
||||
$id_products_to_replace = array();
|
||||
|
||||
if (Module::isInstalled('antadis_productpack')) {
|
||||
include_once(_PS_MODULE_DIR_.'antadis_productpack/models/ProductPack.php');
|
||||
$id_products_to_replace = ProductPack::getIdProductsToReplace();
|
||||
}
|
||||
|
||||
if (isset($_GET['secure_key']) &&
|
||||
( $_SERVER['REMOTE_ADDR'] == 'localhost'
|
||||
|| $_SERVER['REMOTE_ADDR'] == '127.0.0.1'
|
||||
@ -15,7 +23,7 @@
|
||||
{
|
||||
l4_anta_log('Commandes a traiter');
|
||||
|
||||
$ret = l4_generateXML($l4_orders);
|
||||
$ret = l4_generateXML($l4_orders, $id_products_to_replace, $id_lang);
|
||||
|
||||
l4_sendXML($ret['xml']);
|
||||
l4_changeOrderState($ret['good_orders']);
|
||||
@ -70,14 +78,7 @@
|
||||
return $orders;
|
||||
}
|
||||
|
||||
$id_lang = 1;
|
||||
$id_products_to_replace = array();
|
||||
if (Module::isInstalled('antadis_productpack')) {
|
||||
include_once(_PS_MODULE_DIR_.'antadis_productpack/models/ProductPack.php');
|
||||
$id_products_to_replace = ProductPack::getIdProductsToReplace();
|
||||
}
|
||||
|
||||
function l4_generateXML($orders)
|
||||
function l4_generateXML($orders, $id_products_to_replace, $id_lang)
|
||||
{
|
||||
$txt = '';
|
||||
$good_orders='';
|
||||
|
@ -1,6 +1,14 @@
|
||||
<?php
|
||||
require_once(dirname(dirname(__FILE__)).'/config/config.inc.php');
|
||||
|
||||
$id_lang = 1;
|
||||
$id_products_to_replace = array();
|
||||
|
||||
if (Module::isInstalled('antadis_productpack')) {
|
||||
include_once(_PS_MODULE_DIR_.'antadis_productpack/models/ProductPack.php');
|
||||
$id_products_to_replace = ProductPack::getIdProductsToReplace();
|
||||
}
|
||||
|
||||
if (isset($_GET['secure_key']) &&
|
||||
( $_SERVER['REMOTE_ADDR'] == 'localhost'
|
||||
|| $_SERVER['REMOTE_ADDR'] == '127.0.0.1'
|
||||
@ -13,7 +21,7 @@
|
||||
$l4_orders = l4_getOrders();
|
||||
if(count($l4_orders) > 0)
|
||||
{
|
||||
$l4_ret = l4_generateXML($l4_orders);
|
||||
$l4_ret = l4_generateXML($l4_orders, $id_products_to_replace, $id_lang);
|
||||
l4_sendXML($l4_ret['xml']);
|
||||
l4_changeOrderState($l4_ret['good_orders']);
|
||||
|
||||
@ -71,17 +79,8 @@
|
||||
return $orders;
|
||||
}
|
||||
|
||||
$id_lang = 1;
|
||||
$id_products_to_replace = array();
|
||||
if (Module::isInstalled('antadis_productpack')) {
|
||||
include_once(_PS_MODULE_DIR_.'antadis_productpack/models/ProductPack.php');
|
||||
$id_products_to_replace = ProductPack::getIdProductsToReplace();
|
||||
}
|
||||
|
||||
function l4_generateXML($orders)
|
||||
function l4_generateXML($orders, $id_products_to_replace, $id_lang)
|
||||
{
|
||||
$id_products_to_replace = getProductPacks();
|
||||
|
||||
$ret = array();
|
||||
$txt = '';
|
||||
$good_orders = '';
|
||||
|
Loading…
Reference in New Issue
Block a user