[*] Project : Orders should rely only on ps_order_cart_rule
This commit is contained in:
@@ -46,6 +46,9 @@ class OrderCartRuleCore extends ObjectModel
|
||||
|
||||
/** @var float value (tax excl.) of voucher */
|
||||
public $value_tax_excl;
|
||||
|
||||
/** @var boolean value : voucher gives free shipping or not */
|
||||
public $free_shipping;
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
@@ -59,7 +62,8 @@ class OrderCartRuleCore extends ObjectModel
|
||||
'id_order_invoice' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
|
||||
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'required' => true),
|
||||
'value' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'required' => true),
|
||||
'value_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'required' => true)
|
||||
'value_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'required' => true),
|
||||
'free_shipping' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool')
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user