ModelDiscounts module
CartCondition
Cart condition describes the conditions that need to be met for the discount to be applied; base on current cart quantity or price.
The value that is set is included, e.g. the "less/more or equal" condition is used.
A model in the Discounts module, with 18 members for templates, 15 API properties and 19 members for admin templates.
Templates view
Properties 18
Take no arguments.
-
#
getQuantityFrom() -
?int - Gets a minimum number of items that need to be in the cart to apply the discount.
-
#
getQuantityTo() -
?int - Gets a maximum number of items that can be in the cart to apply the discount.
-
#
getAmountFrom() -
?string - Gets a minimum price amount that needs to be in the cart to apply the discount.
-
#
getSnakeType() -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
getSlugType() -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
getId() -
?int -
#
getName() -
?string -
#
getData() -
?array -
#
isActive() -
bool -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 15
Read-only values on the record.
-
#
quantityFrom -
?int - Gets a minimum number of items that need to be in the cart to apply the discount.
-
#
amountFrom -
?string - Gets a minimum price amount that needs to be in the cart to apply the discount.
-
#
snakeType -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
slugType -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
id -
?int -
#
name -
?string -
#
data -
?array -
#
active -
bool
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 19
Take no arguments.
-
#
getQuantityFrom() -
?int - Gets a minimum number of items that need to be in the cart to apply the discount.
-
#
getQuantityTo() -
?int - Gets a maximum number of items that can be in the cart to apply the discount.
-
#
getAmountFrom() -
?string - Gets a minimum price amount that needs to be in the cart to apply the discount.
-
#
getSnakeType() -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
getSlugType() -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
getId() -
?int -
#
getName() -
?string -
#
getData() -
?array -
#
isActive() -
bool -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.