Other Shopping Cart Tags

Tag Description Type Retuned Example
<*CARTAMOUNT*> Gives total amount of the cart Number See below…
<*USERAMOUNT*> Gives max approval amount for the currently logged in user Number [GT](<*CARTAMOUNT*>, <*USERAMOUNT*>) – returns whether the total amount of the cart is greater than the approval amount set for the current user
<*USERID*> Gives the currently logged in user’s ID. Functions the same as <*CU_INFO(ID)*> Number See below…
<*CARTOWNER*> Gives the user ID for cart’s owner. Functions the same as <*CO_INFO(ID)*>) Number [EQ](<*USERID*>, <*CARTOWNER*>) – returns true if the currently logged in user’s id and the cart owner’s id are equal. This can be used behind an action for a cart or visibility rules.
<*SAMETERRITORY*> Gives whether the currently logged in user and the cart owner are in the same territory. Checks against the territory id. Functions the same as [EQ]( <*CU_INFO(TERRITORY_ID)*>, <*CO_INFO(TERRITORY_ID)*>) True/False <*SAMETERRITORY*> - can be used for visibility rules or behind an action for a cart.
<*TERRITORY*> Gives the cart owner’s territory name. Functions the same as <*CO_INFO( TERRITORY_NAME)*> String [EQ](<*TERRITORY*>, <*CU_INFO(TERRITORY_NAME)*>) – returns true if currently logged in user belongs to the same territory as the cart owner’s
<*SAMEGROUP*> Gives whether the currently logged in user and the cart owner are in the same group. Functions the same as [EQ](<*CU_INFO(USER_TYPE_NAME)*>,<*CO_INFO(USER_TYPE_NAME)*>) True/False <*SAMEGROUP*> - can be used for visibility rules or behind an action for a cart.
<*GROUP*> Gives the cart’s owner group name. Functions the same as <*CO_INFO(USER_TYPE_NAME)*> String [EQ](<*GROUP*>, <*CU_INFO(USER_TYPE_NAME)*>) – returns true if currently logged in user belongs to the same group as the cart owner’s
<*ISRESPAPPROV*> True/False
<*CHILDREN*> is currently logged in user ordering parent for cart’s owner? True/False
<*CHILD*> is currently logged in user direct ordering parent for cart’s owner? True/False
<*FIRSTAPPROVEC*> is currently logged in user approve parent for cart’s owner? True/False
<*ALLAPPROVEC*> is currently logged in user direct approve parent for cart’s owner? True/False
<*SAMEZIPCODE*> Is the zip codes of currently logged in user and cart’s owner the same? (Cart Visibility)and Is the zip codes of currently logged in user and customer the same? (Customer Visibility) True/False
<*ZIPCODE*> returns User zip code Number
<*SAMESHIPZIPCODE*> Is zip code of currently logged in user the same as zip code of the city where quote is delivered? True/False
<*SHIPZIPCODE*> returns Zip code of “Ship to:” address Number
<*SAMECUSTOMERZIPCODE*> Is zip code of currently logged in user the same as customer’s zip code? True/False
<*CUSTOMERZIPCODE*> returns Customer zip code Number
<*CUSTOMERCOUNTRY*> returns Customer’s Country String
<*CUSTOMERCOMPANY*> returns Customer’s Company String
<*APPROVALREQUIRED*> This tag is often used as Condition for showing up “Submit for approval” button. Condition is true (1) if there is needed to execute Approval process for the loaded Cart. For example, if Administrator doesn’t want to execute “Generate Quote” Action if is necessary to execute Approval Process before then the condition for “Generate Quote” Action will be [NOT]<*APPROVALREQUIRED*> True/False
<*ISAPPROVED*> This tag is used for checking if Quote is Approved (Quote passed through Approval Process and now is Approved) or not. True/False
<*ISREJECTED*> This tag is used for checking if Quote is Rejected (Quote passed through Approval Process and now is Rejected) or not. True/False
<*ISWAITING*> This tag is used for checking if Quote is into Approval Process but is neither Approve nor Rejected True/False
<*CUSTOMERTERRITORY*> Customer’s Territory String
<*GETATTNUMVAL*> returns numeric value of attribute Number
<*SAMEUSERCOMPANY*> If the current user works for the same company as the user who created a cart (quote) this expression will evaluate to 1, otherwise it is 0. True/False
<*USERCOMPANY*> Returns name of user company String
<*AUX(AUXTABLE, …)*> See below, after description of XWS tags
<*CSIGN*> returns current currency sign as defined in database
<*MFACTOR*> returns market factor
<*MCODE*> returns market code - if needed to access additional price books via AUX tags
<*CRATE*> returns current currency rate (related to default currency as administered)
<*USER_CO_CRM_ACCOUNT_ID*> returns CRM ID for a company that a user belongs to. This tag is used in a field for default discount, in side of a AUX tag to find a default discount for a company that user belongs to. CRM Account Number Example of a formula in discounting rules for default discount: AUX(some table, discount column, crm id column,<*USER_CO_CRM_ACCOUNT_ID*>) – used in a discounting rule for a default discount.
<*TotalItemsAmount*> Returns Total Items Amount before shipping or commission costs
<*TotalItemsCost*> Returns Total Items Cost before shipping or commission costs
<*TotalGrossMargin*> Returns Total Gross Margin before shipping or commission costs
<*FREIGHTAMOUNT*> Returns freight amount. Example: [if]([GT](<*FREIGHTAMOUNT*>,0)){1}{0}[endif]
You are here: CallidusCloud SAP CPQ Online HelpCPQ TagsShopping Cart Object TagsOther Shopping Cart Tags