Catalogrule form variables for json data encode and decode are now normalized
This commit is contained in:
parent
b4872b5c21
commit
c3b54c389a
|
|
@ -223,23 +223,18 @@
|
|||
starts_from: null,
|
||||
per_customer: 0,
|
||||
status: 1,
|
||||
use_coupon: null,
|
||||
auto_generation: false,
|
||||
usage_limit: 0,
|
||||
|
||||
action_type: null,
|
||||
apply: null,
|
||||
apply_amt: false,
|
||||
apply_prct: false,
|
||||
apply_to_shipping: 0,
|
||||
disc_amount: null,
|
||||
end_other_rules: 0,
|
||||
|
||||
all_conditions: [],
|
||||
|
||||
all_attributes: {
|
||||
'categories' : null,
|
||||
'attributes' : null
|
||||
'categories' : [],
|
||||
'attributes' : []
|
||||
},
|
||||
|
||||
criteria: 'cart',
|
||||
|
|
|
|||
|
|
@ -375,12 +375,10 @@
|
|||
}
|
||||
|
||||
this.all_attributes.attributes = this.attribute_values;
|
||||
|
||||
this.all_conditions = JSON.stringify(this.all_attributes);
|
||||
} else {
|
||||
this.all_conditions = null;
|
||||
}
|
||||
|
||||
this.all_conditions = JSON.stringify(this.all_attributes);
|
||||
|
||||
// this.all_conditions = JSON.stringify(this.conditions_list);
|
||||
|
||||
// if (this.conditions_list.length != 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue