Bonjour,
Le code:
if(!isset($data->order))
$data->order = new stdClass();
$fs = array('order_number','order_discount_tax','order_shipping_tax','order_full_price','order_shipping_price','order_payment_price','order_discount_price','order_currency_id','order_status');
foreach($fs as $f) {
if(isset($data->$f) && !isset($data->order->$f))
$data->order->$f = $data->$f;
}
$url = $data->order->order_number;
$data->order->order_url = $order_url;
if(!empty($customer->user_cms_id) && (int)$customer->user_cms_id != 0) {
$url = $data->order_number;
}
$data->cart = $orderClass->loadFullOrder($data->order_id,true,false);
devrait être changé en :
if(!isset($data->order))
$data->order = new stdClass();
$fs = array('order_number','order_discount_tax','order_shipping_tax','order_payment_tax','order_full_price','order_shipping_price','order_payment_price','order_discount_price','order_currency_id','order_status');
foreach($fs as $f) {
if(isset($data->$f) && !isset($data->order->$f))
$data->order->$f = $data->$f;
}
$data->order->order_url = $order_url;
$data->cart = $orderClass->loadFullOrder($data->order_id,true,false);
$url = $data->order_number = $data->cart->order_number;
comme c'est le cas dans les versions récentes d'HikaShop.