You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Product Tokens are used in templates to display calculations from the business logic of Customer Self Service.

Token

Description

Type 1 Usage

Razor Usage

AccessoriesAvailable

WARNING: Uses LivePriceCache to get data not ProductAlternatives
Gets whether there are accessories available for this product for the
current user. Deals with non-contract/contract differences and uses the LivePriceCache
to determine the availability.

[Product.AccessoriesAvailable]

productAccessoriesAvailable

AccessoriesCount

WARNING: Reduced ProductAlternatives query and applies contract item rules
Gets whether there are Accessories available for this product

[Product.AccessoriesCount]

productAccessoriesCount

AddProductToComparisonListToken

Token that renders out rcAddProductToComparisonList resource and can be used in
CSSREPEATS for example. This token essentially sets up html for the
productCompareButton widget. It replaces

Unknown macro: {0}

with the products product code and

Unknown macro: {1}


with the product description (quotes escaped to prevent breaking html)

[Product.AddProductToComparisonListToken]

productAddProductToComparisonListToken

AddReviewButton

[Product.AddReviewButton]

productAddReviewButton

AddToFavouritesButton

[Product.AddToFavouritesButton]

productAddToFavouritesButton

AddToOrCreateOwnRegistryListButton

Used to render a html button for the purpose of adding a Product to one of the user's own
Registry List or to Create and add to a new one.

[Product.AddToOrCreateOwnRegistryListButton]

productAddToOrCreateOwnRegistryListButton

AddToOrderButton

[Product.AddToOrderButton]

productAddToOrderButton

AllowOrderEntryForProduct

Gets whether the user should be permitted to order this product based on various
business rulesPrice LimitOrder Entry RestrictionsObsolete ProductsView Only CatalogueProducts not in warehouse

[Product.AllowOrderEntryForProduct]

productAllowOrderEntryForProduct

AlternatesAccessoriesText

Gets Html about accessories or products relating
to the product in question

[Product.AlternatesAccessoriesText]

productAlternatesAccessoriesText

AlternatesAvailable

WARNING: Uses LivePriceCache to get data not ProductAlternatives
Gets whether there are alternates available for this product for the
current user. Deals with non-contract/contract differences and uses the LivePriceCache
to determine the availability.

[Product.AlternatesAvailable]

productAlternatesAvailable

AlternatesCount

WARNING: Reduced ProductAlternatives query and applies contract item rules
Gets whether there are Alternates available for this product

[Product.AlternatesCount]

productAlternatesCount

AttributedProductDropDownList

[Product.AttributedProductDropDownList]

productAttributedProductDropDownList

AttributeList

Returns all productattributeproducts stored in the database

[Product.AttributeList]

productAttributeList

AttributePriceBreakContainer

[Product.AttributePriceBreakContainer]

productAttributePriceBreakContainer

AvailableForBot

[Product.AvailableForBot]

productAvailableForBot

AvailableForOne

[Product.AvailableForOne]

productAvailableForOne

AvailableQty

[Product.AvailableQty]

productAvailableQty

AvailableQtyNotIncCurrentLinesString

[Product.AvailableQtyNotIncCurrentLinesString]

productAvailableQtyNotIncCurrentLinesString

AverageRating

[Product.AverageRating]

productAverageRating

AverageRatingDescription

[Product.AverageRatingDescription]

productAverageRatingDescription

AverageRatingText

[Product.AverageRatingText]

productAverageRatingText

BonusStockForProductText

[Product.BonusStockForProductText]

productBonusStockForProductText

CompanionCount

CACHED: Cached at record level
Does a count of the companion products for this product

[Product.CompanionCount]

productCompanionCount

ConfigureKitButton

Token for use in templates that renders a resource based input button that allows user to configure kit options providing
this product is a kit master product and has either configurable or optional kit components and the functionality is in use.

[Product.ConfigureKitButton]

productConfigureKitButton

CostCentreCode

Returns the cost centre code control HTML if the product is allowed to be ordered, otherwise returns an empty string

[Product.CostCentreCode]

productCostCentreCode

CustomerFavouritesProductDisplayIcon

Checks if the current product is in the list of customer favourites. If so, returns a resource.

[Product.CustomerFavouritesProductDisplayIcon]

productCustomerFavouritesProductDisplayIcon

CustomerProductCode

Gets a the customer specific product code for this system product. The ProductCode
of this product is mapped to a customer specific one, so we try and show that.

[Product.CustomerProductCode]

productCustomerProductCode

DeleteFromUserStocktakeButton

TOKEN: Renders out a button that can be used to remove a product from the user's
current User Stocktake if it is on the stocktake...

[Product.DeleteFromUserStocktakeButton]

productDeleteFromUserStocktakeButton

DiscountForOne

[Product.DiscountForOne]

productDiscountForOne

DiscountForOneString

[Product.DiscountForOneString]

productDiscountForOneString

GPAmountEx

[Product.GPAmountEx]

productGPAmountEx

GPAmountExForQty(Decimal)

[Product.GPAmountExForQty(Decimal)]

productGPAmountExForQty(Decimal)

GPPercentageEx

[Product.GPPercentageEx]

productGPPercentageEx

GPPercentageExForQty(Decimal)

[Product.GPPercentageExForQty(Decimal)]

productGPPercentageExForQty(Decimal)

HasLiveQuantityBreaks

Gets whether the product has quantity breaks allowing for use in Xslt templates.
You could for example configure the display of template content if the current
product has live quantity breaks available, but otherwise not show the content.

[Product.HasLiveQuantityBreaks]

productHasLiveQuantityBreaks

ImagePrefix

[Product.ImagePrefix]

productImagePrefix

ImageSuffix

[Product.ImageSuffix]

productImageSuffix

IncTaxPrice

[Product.IncTaxPrice]

productIncTaxPrice

ItemCostEx

[Product.ItemCostEx]

productItemCostEx

ItemCostExForQty(Decimal)

[Product.ItemCostExForQty(Decimal)]

productItemCostExForQty(Decimal)

ItemsOnOrder

[Product.ItemsOnOrder]

productItemsOnOrder

KitCode

TOKEN: Get the Kit Code if configurable kits are enabled and this is a kit!

[Product.KitCode]

productKitCode

LiveQuantityBreakMessage

Gets a resource value for use in description to indicate quantity break pricing
applies to the particular product. Nothing will be returned if there are no
price break entries (i.e. HasLiveQuantityBreaks is false).

[Product.LiveQuantityBreakMessage]

productLiveQuantityBreakMessage

MetaDataSummary

Returns a summary of all product metadata as defined in MetaDataSummaryFieldGroup and
rendered using MetaDataSummaryTemplate from ProductCategory,Role or SystemControl

[Product.MetaDataSummary]

productMetaDataSummary

MetaDataSummaryCustom(String, String)

Returns a summary of all product metadata as defined in the supplied template and fieldgroup

[Product.MetaDataSummaryCustom(String, String)]

productMetaDataSummaryCustom(String, String)

NettPriceBreak0

Gets the Nett Quantity Price Break at level 0

[Product.NettPriceBreak0]

productNettPriceBreak0

NettPriceBreak0ExGST

[Product.NettPriceBreak0ExGST]

productNettPriceBreak0ExGST

NettPriceBreak0IncGST

[Product.NettPriceBreak0IncGST]

productNettPriceBreak0IncGST

NettPriceBreak1

Gets the Nett Quantity Price Break at level 1

[Product.NettPriceBreak1]

productNettPriceBreak1

NettPriceBreak1ExGST

[Product.NettPriceBreak1ExGST]

productNettPriceBreak1ExGST

NettPriceBreak1IncGST

[Product.NettPriceBreak1IncGST]

productNettPriceBreak1IncGST

NettPriceBreak2

Gets the Nett Quantity Price Break at level 2

[Product.NettPriceBreak2]

productNettPriceBreak2

NettPriceBreak2ExGST

[Product.NettPriceBreak2ExGST]

productNettPriceBreak2ExGST

NettPriceBreak2IncGST

[Product.NettPriceBreak2IncGST]

productNettPriceBreak2IncGST

NettPriceBreak3

Gets the Nett Quantity Price Break at level 3

[Product.NettPriceBreak3]

productNettPriceBreak3

NettPriceBreak3ExGST

[Product.NettPriceBreak3ExGST]

productNettPriceBreak3ExGST

NettPriceBreak3IncGST

[Product.NettPriceBreak3IncGST]

productNettPriceBreak3IncGST

NettPriceBreak4

Gets the Nett Quantity Price Break at level 4

[Product.NettPriceBreak4]

productNettPriceBreak4

NettPriceBreak4ExGST

[Product.NettPriceBreak4ExGST]

productNettPriceBreak4ExGST

NettPriceBreak4IncGST

[Product.NettPriceBreak4IncGST]

productNettPriceBreak4IncGST

NettPriceBreakPrice0

Gets the Nett Price Break Price at level 0

[Product.NettPriceBreakPrice0]

productNettPriceBreakPrice0

NettPriceBreakPrice0ExGST

Gets the Nett Price Break Price Ex Tax at level 0

[Product.NettPriceBreakPrice0ExGST]

productNettPriceBreakPrice0ExGST

NettPriceBreakPrice0IncGST

Gets the Nett Price Break Price Inc Tax at level 0

[Product.NettPriceBreakPrice0IncGST]

productNettPriceBreakPrice0IncGST

NettPriceBreakPrice1

Gets the Nett Price Break Price at level 1

[Product.NettPriceBreakPrice1]

productNettPriceBreakPrice1

NettPriceBreakPrice1ExGST

Gets the Nett Price Break Price Ex Tax at level 1

[Product.NettPriceBreakPrice1ExGST]

productNettPriceBreakPrice1ExGST

NettPriceBreakPrice1IncGST

Gets the Nett Price Break Price Inc Tax at level 1

[Product.NettPriceBreakPrice1IncGST]

productNettPriceBreakPrice1IncGST

NettPriceBreakPrice2

Gets the Nett Price Break Price at level 2

[Product.NettPriceBreakPrice2]

productNettPriceBreakPrice2

NettPriceBreakPrice2ExGST

Gets the Nett Price Break Price Ex Tax at level 2

[Product.NettPriceBreakPrice2ExGST]

productNettPriceBreakPrice2ExGST

NettPriceBreakPrice2IncGST

Gets the Nett Price Break Price Inc Tax at level 2

[Product.NettPriceBreakPrice2IncGST]

productNettPriceBreakPrice2IncGST

NettPriceBreakPrice3

Gets the Nett Price Break Price at level 3

[Product.NettPriceBreakPrice3]

productNettPriceBreakPrice3

NettPriceBreakPrice3ExGST

Gets the Nett Price Break Price Ex Tax at level 3

[Product.NettPriceBreakPrice3ExGST]

productNettPriceBreakPrice3ExGST

NettPriceBreakPrice3IncGST

Gets the Nett Price Break Price Inc Tax at level 3

[Product.NettPriceBreakPrice3IncGST]

productNettPriceBreakPrice3IncGST

NettPriceBreakPrice4

Gets the Nett Price Break Price at level 4

[Product.NettPriceBreakPrice4]

productNettPriceBreakPrice4

NettPriceBreakPrice4ExGST

Gets the Nett Price Break Price Ex Tax at level 4

[Product.NettPriceBreakPrice4ExGST]

productNettPriceBreakPrice4ExGST

NettPriceBreakPrice4IncGST

Gets the Nett Price Break Price Inc Tax at level 4

[Product.NettPriceBreakPrice4IncGST]

productNettPriceBreakPrice4IncGST

NettPriceForOne

Gets price of 1 of this product

[Product.NettPriceForOne]

productNettPriceForOne

NettPriceForOneEx

Gets price of product ex-tax for quantity of 1 of the product

[Product.NettPriceForOneEx]

productNettPriceForOneEx

NettPriceForOneExOrMessage

Gets price (with discount) of product ex-tax for quantity of 1 of the product

[Product.NettPriceForOneExOrMessage]

productNettPriceForOneExOrMessage

NettPriceForOneInc

Gets price of product inc-tax for quantity of 1 of the product

[Product.NettPriceForOneInc]

productNettPriceForOneInc

NettPriceForOneIncOrMessage

Gets price (with discount) of product inc-tax for quantity of 1 of the product

[Product.NettPriceForOneIncOrMessage]

productNettPriceForOneIncOrMessage

NettPriceForOneOrMessage

Gets price (with discount) of 1 of this product

[Product.NettPriceForOneOrMessage]

productNettPriceForOneOrMessage

NettPriceForOneString

[Product.NettPriceForOneString]

productNettPriceForOneString

NettTaxForOne

Gets tax portion for price of product for quantity of 1

[Product.NettTaxForOne]

productNettTaxForOne

NumberOfReviews

[Product.NumberOfReviews]

productNumberOfReviews

OnContract

[Product.OnContract]

productOnContract

OrderLineNote

[Product.OrderLineNote]

productOrderLineNote

Picture1

[Product.Picture1]

productPicture1

Picture1Image

[Product.Picture1Image]

productPicture1Image

PriceBreak0

[Product.PriceBreak0]

productPriceBreak0

PriceBreak0ExGST

[Product.PriceBreak0ExGST]

productPriceBreak0ExGST

PriceBreak0IncGST

[Product.PriceBreak0IncGST]

productPriceBreak0IncGST

PriceBreak1

[Product.PriceBreak1]

productPriceBreak1

PriceBreak1ExGST

[Product.PriceBreak1ExGST]

productPriceBreak1ExGST

PriceBreak1IncGST

[Product.PriceBreak1IncGST]

productPriceBreak1IncGST

PriceBreak2

[Product.PriceBreak2]

productPriceBreak2

PriceBreak2ExGST

[Product.PriceBreak2ExGST]

productPriceBreak2ExGST

PriceBreak2IncGST

[Product.PriceBreak2IncGST]

productPriceBreak2IncGST

PriceBreak3

[Product.PriceBreak3]

productPriceBreak3

PriceBreak3ExGST

[Product.PriceBreak3ExGST]

productPriceBreak3ExGST

PriceBreak3IncGST

[Product.PriceBreak3IncGST]

productPriceBreak3IncGST

PriceBreak4

[Product.PriceBreak4]

productPriceBreak4

PriceBreak4ExGST

[Product.PriceBreak4ExGST]

productPriceBreak4ExGST

PriceBreak4IncGST

[Product.PriceBreak4IncGST]

productPriceBreak4IncGST

PriceBreakPrice0

Gets the Price Break Price at level 0

[Product.PriceBreakPrice0]

productPriceBreakPrice0

PriceBreakPrice1

Gets the Price Break Price at level 1

[Product.PriceBreakPrice1]

productPriceBreakPrice1

PriceBreakPrice2

Gets the Price Break Price at level 2

[Product.PriceBreakPrice2]

productPriceBreakPrice2

PriceBreakPrice3

Gets the Price Break Price at level 3

[Product.PriceBreakPrice3]

productPriceBreakPrice3

PriceBreakPrice4

Gets the Price Break Price at level 4

[Product.PriceBreakPrice4]

productPriceBreakPrice4

PriceBreakQty0

Gets the Price Break Qty at level 0

[Product.PriceBreakQty0]

productPriceBreakQty0

PriceBreakQty1

Gets the Price Break Qty at level 1

[Product.PriceBreakQty1]

productPriceBreakQty1

PriceBreakQty2

Gets the Price Break Qty at level 2

[Product.PriceBreakQty2]

productPriceBreakQty2

PriceBreakQty3

Gets the Price Break Qty at level 3

[Product.PriceBreakQty3]

productPriceBreakQty3

PriceBreakQty4

Gets the Price Break Qty at level 4

[Product.PriceBreakQty4]

productPriceBreakQty4

PriceContract

[Product.PriceContract]

productPriceContract

PriceContractExGST

[Product.PriceContractExGST]

productPriceContractExGST

PriceContractIncGST

[Product.PriceContractIncGST]

productPriceContractIncGST

PriceCurrencySuffix

Shows the generic currency suffix or inc/ex GST depending on flags

[Product.PriceCurrencySuffix]

productPriceCurrencySuffix

PriceForOne

[Product.PriceForOne]

productPriceForOne

PriceForOneEx

[Product.PriceForOneEx]

productPriceForOneEx

PriceForOneExOrMessage

Show price (ex GST) or message based on attribute config on page

[Product.PriceForOneExOrMessage]

productPriceForOneExOrMessage

PriceForOneInc

[Product.PriceForOneInc]

productPriceForOneInc

PriceForOneIncOrMessage

Show price (inc GST) or message based on attribute config on page

[Product.PriceForOneIncOrMessage]

productPriceForOneIncOrMessage

PriceForOneOrMessage

Show price or message based on attribute config on page

[Product.PriceForOneOrMessage]

productPriceForOneOrMessage

PriceForOneString

[Product.PriceForOneString]

productPriceForOneString

PriceFromDefault

[Product.PriceFromDefault]

productPriceFromDefault

PriceFromFirst

[Product.PriceFromFirst]

productPriceFromFirst

PricePromotion

Formats the ProntoPriceRecord["PromPrice"] so this is essentially ex GST.

[Product.PricePromotion]

productPricePromotion

PricePromotionExGST

[Product.PricePromotionExGST]

productPricePromotionExGST

PricePromotionIncGST

[Product.PricePromotionIncGST]

productPricePromotionIncGST

ProductParsedListTemplate(String)

Property that returns a parsed template for this Product
Designed to replace WebServiceAjax.ProductSearchWithListTemplate and be able to use DynamicServices and call Product.GetProductWithFilter and part of the return list this method (ProductParsedListTemplate) is used

[Product.ProductParsedListTemplate(String)]

productProductParsedListTemplate(String)

ProductParsedListTemplateBatched(String, Boolean)

Property that returns a parsed template for THE WHOLE Product RECORDSET - will only return parsed data for first record
Assumes that the template has a CSSRepeat in it
Designed to replace WebServiceAjax.ProductSearchWithListTemplate and be able to use DynamicServices and call Product.GetProductWithFilter and part of the return list this method (ProductParsedListTemplate) is used

[Product.ProductParsedListTemplateBatched(String, Boolean)]

productProductParsedListTemplateBatched(String, Boolean)

QtyBox

[Product.QtyBox]

productQtyBox

QuantityInCart

[Product.QuantityInCart]

productQuantityInCart

RegistryListIDHiddenHtmlField

Used to render a html input hidden field for adding products for the RegistryListID contained in the querystring. The resource can take 2 params, the first
passed is a product code (only needed for the Product use of this token), is appendended after the hdnRegistryListID_ in the name tag, the second which gets
set to the value tag is for the RegistryListID.

[Product.RegistryListIDHiddenHtmlField]

productRegistryListIDHiddenHtmlField

RequestedDeliveryDateBox

[Product.RequestedDeliveryDateBox]

productRequestedDeliveryDateBox

ReviewSummary

[Product.ReviewSummary]

productReviewSummary

RRPEx

[Product.RRPEx]

productRRPEx

RRPExOrMessage

[Product.RRPExOrMessage]

productRRPExOrMessage

RRPInc

[Product.RRPInc]

productRRPInc

RRPIncOrMessage

[Product.RRPIncOrMessage]

productRRPIncOrMessage

RRPOrMessage

[Product.RRPOrMessage]

productRRPOrMessage

StocktakeQty

TOKEN: Renders out the the quantity of the current product counted in the user's
current User Stocktake for their current customer. Returns an empty string if
the feature is disabled.

[Product.StocktakeQty]

productStocktakeQty

UniqueBomLineTypeConfigurableKitComponents

Returns a ProntoBillOfMaterials set of unique BomLineTypes of configurable kit components for this product.

[Product.UniqueBomLineTypeConfigurableKitComponents]

productUniqueBomLineTypeConfigurableKitComponents

UserFavouritesProductDisplayIcon

Checks if the current product is in the list of user favourites. If so, returns a resource.

[Product.UserFavouritesProductDisplayIcon]

productUserFavouritesProductDisplayIcon

Error rendering macro 'contentbylabel'

parameters should not be empty

  • No labels