document.write("
| CustomerPoints_Load |
| CustomerPoints_Load( cust_id, customerpoints var ) |
| |
| Example |
| <mvt:item name="points" param="CustomerPoints_Load( g.Basket:cust_id, g.Basket:customerpoints )" /> |
| |
| :customerpoints:cust_id = Number |
| :customerpoints:points = Number |
| BasketGroup_Points |
| BasketGroup_Points( group var, points_information var ) |
| |
| Example |
| <mvt:item name="points" param="BasketGroup_Points( l.settings:group, l.settings:item:points_information )" /> |
| |
| :points_information:base_points = Number |
| :points_information:base_points_total = Number |
| :points_information:points = Number |
| :points_information:points_total = Number |
| :points_information:promotions[ x ]:descrip = String |
| :points_information:promotions[ x ]:display = Boolean |
| :points_information:promotions[ x ]:points = Number |
| |
| |
| BasketItem_Points |
| BasketItem_Points( item var, points_information var ) |
| |
| Example |
| <mvt:item name="points" param="BasketItem_Points( l.settings:item, l.settings:item:points_information )" /> |
| |
| :points_information:base_points = Number |
| :points_information:base_points_total = Number |
| :points_information:points = Number |
| :points_information:points_total = Number |
| :points_information:promotions[ x ]:descrip = String |
| :points_information:promotions[ x ]:display = Boolean |
| :points_information:promotions[ x ]:points = Number |
| Product_Points |
| Product_Points( basket var, product var, subterm_id, variant_id, quantity, points_information var) |
| |
| :points_information:base_points = Number |
| :points_information:base_points_total = Number |
| :points_information:points = Number |
| :points_information:points_total = Number |
| :points_information:promotions[ x ]:descrip = String |
| :points_information:promotions[ x ]:display = Boolean |
| :points_information:promotions[ x ]:points = Number |
| |
| Example |
| <mvt:item name="points" param="Product_Points( l.settings:basket, l.settings:product, 0, 0, 1, l.settings:product:points_information )" /> |
| CustomerPointTransaction_Insert |
| |
| CustomerPointTransaction_Insert( customerpointtransaction var) |
| |
| customerpointtransaction var |
| :cust_id (required) = Customer ID |
| :user_id = User ID. If left blank, will be 0. |
| :pending = 1 or 0 (boolean) |
| :order_id = Order ID. If left blank, will be 0. |
| :line_id = Order Line ID. If left blank, will be 0. |
| :descrip (required) = Description for the transaction |
| :points (required) = Number of points. Can not be 0. |
| :dtstamp = timestamp. If left empty, it will default to the current timestamp. |
| |
| <mvt:item name="points" param="CustomerPointTransaction_Insert( l.settings:transaction )" /> |
| |
| l.settings:transaction:id will return the ID once run. |
");