You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@param cascade_create: Sets whether the given user/item should be created if not present in the database.
24
24
25
+
@param amount: Amount (number) added to cart. The default is 1. For example if `user-x` adds two `item-y` during a single order (session...), the `amount` should equal to 2.
26
+
27
+
@param price: Price of the added item. If `amount` is greater than 1, sum of prices of all the items should be given.
@param cascade_create: Sets whether the given user/item should be created if not present in the database.
24
24
25
+
@param amount: Amount (number) of purchased items. The default is 1. For example if `user-x` purchases two `item-y` during a single order (session...), the `amount` should equal to 2.
26
+
27
+
@param price: Price paid by the user for the item. If `amount` is greater than 1, sum of prices of all the items should be given.
28
+
29
+
@param profit: Your profit from the purchased item. The profit is natural in e-commerce domain (for example if `user-x` purchases `item-y` for $100 and the gross margin is 30 %, then the profit is $30), but is applicable also in other domains (for example at a news company it may be income from displayed advertisement on article page). If `amount` is greater than 1, sum of profit of all the items should be given.
0 commit comments