Adds the specified article to the shopping cart.
This viper method also supports the extension viper syntax.
Syntax
Smartsite SXML | Copy Code |
---|---|
this.add(string articleCode, float price, string taxGroup) this.add(string articleCode, float price, string taxGroup, integer count) this.add(string articleCode, float price, string taxGroup, integer count, string name, string content, string description, string category) |
Extension Viper Syntax
Smartsite SXML | Copy Code |
---|---|
page.<id>.add(string articleCode, float price, string taxGroup) page.<id>.add(string articleCode, float price, string taxGroup, integer count) page.<id>.add(string articleCode, float price, string taxGroup, integer count, string name, string content, string description, string category) |
Parameters
Name | Data Type | Description |
---|---|---|
articleCode | String | The article code. |
price | Float | The price. |
taxGroup | String | The tax group. |
count | Integer | The number of articles. |
name | String | The name of the article. |
content | String | The content of the article. |
description | String | The description of the article. |
category | String | The category of the article. |
Return Value
None.
Used in
Macro | Description |
---|---|
ShoppingCart | Shopping Cart Macro. |