Merge branch 'fix/order_mobile'
This commit is contained in:
commit
2582a426de
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
class Order extends OrderCore
|
||||
{
|
||||
/** @var boolean True if the order comes from app */
|
||||
/** @var int True if the order comes from app */
|
||||
public $appli = 0;
|
||||
|
||||
protected $fieldsValidate = array(
|
||||
@ -27,7 +27,7 @@ class Order extends OrderCore
|
||||
'total_wrapping' => 'isPrice',
|
||||
'shipping_number' => 'isUrl',
|
||||
'conversion_rate' => 'isFloat',
|
||||
'appli' => 'isBool',
|
||||
'appli' => 'isUnsignedInt',
|
||||
);
|
||||
|
||||
public function getFields()
|
||||
|
@ -25,9 +25,9 @@ class PaymentModule extends PaymentModuleCore
|
||||
$order->appli = 0;
|
||||
if (Tools::isApi()) {
|
||||
$order->appli = 1;
|
||||
}/* elseif (Tools::isMobile()) {
|
||||
} elseif (Tools::isMobile()) {
|
||||
$order->appli = 2;
|
||||
}*/
|
||||
}
|
||||
$order->id_carrier = (int)($cart->id_carrier);
|
||||
$order->id_customer = (int)($cart->id_customer);
|
||||
$order->id_address_invoice = (int)($cart->id_address_invoice);
|
||||
|
Loading…
Reference in New Issue
Block a user