Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Get current cart value transformation View modes: 
User avatar
Member
Member
16vMonkey - 8/8/2012 8:32:55 AM
   
Get current cart value transformation
should be a quickie for someone but I cant find out how to retrieve and display the cart total value correctly formatted with the current currency symbol, i.e £56.65 or $115.99

I need to display this value in a transformation and i've trawled through the macro's to no avail :(

User avatar
Member
Member
egarrison-wte - 8/8/2012 4:17:04 PM
   
RE:Get current cart value transformation
Try
{%Format(currentdocument.FIELD, "C")%}

It should format your symbol based on localization also. FIELD will have to be replace with your proper field. If you type into the macro editor, autocorrect will give the options.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/9/2012 2:38:49 AM
   
RE:Get current cart value transformation
Hello,

I would suggest you to check our sample e-commerce site for such examples. The transformations in the examples use the following method:

<%# GetSKUFormattedPrice(true, false) %>

Best regards,
Boris Pocatko