Have tried different combination of a new variables, but they seam to return FAIL or SUCCESSES, thinking this is if the variable is created to the order. What am i doing wrong ?
Second when the value is added to the order, how to i read the value doing the basket flow, in a different step ?
Like in my summery page
<xsl:param name="currentPage"/>
<xsl:variable name="basket" select="CommerceLibrary:GetBasket()"></xsl:variable>
<xsl:variable name="billingAddress" select="$basket/billingAddress/address" />
<xsl:variable name="shipmentAddress" select="$basket/shipments/shipment/address" />
<xsl:value-of select="$basket/@EAN"/> // NOT WORKING
Is there a way to output all varibles in eg. $basket or $billingAddress and so on ? just for testing and knowing what elements are available in context.
You'll want to set the value of the dynamic order property immediately when you call CommerceLibrary:SetOrderProperty. The return value of SetOrderProperty is not the value, but rather the result of the adding it, i.e. OK or not OK.
Order properties are added to the orderProperties element on the order:
Custom orderfields values read/write
Hi,
I am rookie, when it comes to xslt, so need a little help here.
I want to add extra fields to the order object. And found this article,http://www.publicvoid.dk/default,date,2011-08-10.aspx. now the question is.
The field EAN is added to the order, when completed, but has no value ?
If i put in
the value TEST is shown.
Have tried different combination of a new variables, but they seam to return FAIL or SUCCESSES, thinking this is if the variable is created to the order.
What am i doing wrong ?
Second when the value is added to the order, how to i read the value doing the basket flow, in a different step ?
Like in my summery page
Is there a way to output all varibles in eg. $basket or $billingAddress and so on ? just for testing and knowing what elements are available in context.
Best regards
Lasse Kofoed
Anyone on this? I have the same challange.
You'll want to set the value of the dynamic order property immediately when you call CommerceLibrary:SetOrderProperty. The return value of SetOrderProperty is not the value, but rather the result of the adding it, i.e. OK or not OK.
Order properties are added to the orderProperties element on the order:
You can grab the value of a specific dynamic order property using:
To make it easier you can output the entire order XML structure and take a look at it using
is working on a reply...