Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey everyone,
Is there any ways to add custom fields to customer information on an order in uCommerce.
My customer has a requirement of several specific fields to be added on an order. SE/CVR number for instance.
Is that possible via XSLT extension method: EditBillingInformation()?
Hi Mads.
You can add custom order properties using something like this:
myOrder["myCustomProperty"] = "Blah blah";
/Michael
Hi Michael,
That would be in Razor right? I'm really using XSLT, but might have to convert :-(
You can do it in XSLT as well:
<xsl:variable name="resultOfAddingProperty" select="CommerceLibrary:SetOrderProperty($lineItemIndex, 'PropertyName', 'Your Value To Set')" />
Thanx Tim,
Seems to solve everything :-)
Well, or does it??? I'm actually trying to add it to the customer buying the stuff, not to the order-line, is that possible?
Sorry yep, just don't pass in the order line:
<xsl:variable name="resultOfAddingProperty" select="CommerceLibrary:SetOrderProperty('PropertyName', 'Your Value To Set')" />
Your, da man!
CommerceLibrary:SetOrderProperty would add the property to the order, not the customer (as you requested). Not sure if it still works for you Mads?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom billing information in xslt
Hey everyone,
Is there any ways to add custom fields to customer information on an order in uCommerce.
My customer has a requirement of several specific fields to be added on an order. SE/CVR number for instance.
Is that possible via XSLT extension method: EditBillingInformation()?
Hi Mads.
You can add custom order properties using something like this:
/Michael
Hi Michael,
That would be in Razor right? I'm really using XSLT, but might have to convert :-(
You can do it in XSLT as well:
<xsl:variable name="resultOfAddingProperty" select="CommerceLibrary:SetOrderProperty($lineItemIndex, 'PropertyName', 'Your Value To Set')" />
Thanx Tim,
Seems to solve everything :-)
Well, or does it??? I'm actually trying to add it to the customer buying the stuff, not to the order-line, is that possible?
Sorry yep, just don't pass in the order line:
<xsl:variable name="resultOfAddingProperty" select="CommerceLibrary:SetOrderProperty('PropertyName', 'Your Value To Set')" />
Your, da man!
CommerceLibrary:SetOrderProperty would add the property to the order, not the customer (as you requested). Not sure if it still works for you Mads?
is working on a reply...