Previous Docs Version
The documentation you are viewing is for a previous version of Tea Commerce. Click here to jump to the current stable version.
Previous Docs Version
The documentation you are viewing is for a previous version of Tea Commerce. Click here to jump to the current stable version.
Gets a vat group from a specfic store.
Name | Type | Description |
---|---|---|
storeId | long | Id of the store. |
vatGroupId | long | The vat group id. |
Type | Description |
---|---|
VatGroup | A vat group object. |
@using TeaCommerce.Umbraco.Web
@using TeaCommerce.Api.Models
@{
VatGroup vatGroup = TC.GetVatGroup(1, 2);
}
Gets all vat groups for a specific store.
Name | Type | Description |
---|---|---|
storeId | long | Id of the store. |
Type | Description |
---|---|
IEnumerable<VatGroup> | A collection of vat group objects. |
@using TeaCommerce.Umbraco.Web
@using TeaCommerce.Api.Models
@{
IEnumerable<VatGroup> vatGroup = TC.GetVatGroups(1);
}
Gets the current vat group of the customer's session. If the customer has a current order the vat group of that order is returned.
Name | Type | Description |
---|---|---|
storeId | long | Id of the store. |
Type | Description |
---|---|
VatGroup | The current vat group. |
@using TeaCommerce.Umbraco.Web
@using TeaCommerce.Api.Models
@{
VatGroup vatGroup = TC.GetCurrentVatGroup(1);
}
Changes the current vat group of the customer's session. The vat group is also changed for the customer's current order if present.
Name | Type | Description |
---|---|---|
storeId | long | Id of the store. |
vatGroupId | long | Id of the vat group to change to. |
Type | Description |
---|---|
VatGroup | The new current vat group object. |
@using TeaCommerce.Umbraco.Web
@using TeaCommerce.Api.Models
@{
VatGroup vatGroup = TC.GetVatGroup(1, 2);
}