Shopping Cart Macro.
Syntax
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
SchemaLocation | Locator | - | Sets the schema location for the ShoppingCart Xml. |
Source | String |
Trim
|
If specified, the shopping cart is loaded from the given source XML string. |
StoreId | String |
IsRequired
Trim |
Sets the store id to use. |
TaxGroups | Collection | - | Sets the tax groups. |
TaxIncluded | Boolean | - | Sets a value indicating whether the shopping cart works with prices including tax. |
Xml | String |
RawData
|
Sets the SXML to execute. Optional. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.Add | ✓ | Adds the specified article to the shopping cart. |
This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
This.Price | ✓ | Gets the price of a given product. |
This.Products | ✓ | Gets the products in the cart. |
This.Remove | ✓ | Removes one instance of the specified article from the shopping cart. |
This.RemoveAll | ✓ | Removes all instances of the specified article from the shopping cart. |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.SetProductCount | ✓ | Sets the number of times the given product is present in the shopping cart. |
This.TaxGroups | ✓ | Gets the tax groups as a DataTable. |
This.TaxTotals | ✓ | Gets the total in the specified category and tax group. |
This.ToDisplay | ✓ | Gets the cart xml for display. |
This.ToString | ✓ | Gets the shopping cart Xml as string. |
This.Totals | ✓ | Gets the total. |
This.ToXml | ✓ | Gets the shopping cart Xml. |