Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Mads Jørgensen 74 posts 226 karma points
    Jun 25, 2013 @ 12:39
    Mads Jørgensen
    0

    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()?

     

  • Michael Hyldsgaard 64 posts 124 karma points
    Jun 25, 2013 @ 13:05
    Michael Hyldsgaard
    0

    Hi Mads.

    You can add custom order properties using something like this:

    myOrder["myCustomProperty"] = "Blah blah";

    /Michael

  • Mads Jørgensen 74 posts 226 karma points
    Jun 25, 2013 @ 13:09
    Mads Jørgensen
    0

    Hi Michael,

    That would be in Razor right? I'm really using XSLT, but might have to convert :-(

  • Tim 168 posts 372 karma points
    Jun 25, 2013 @ 13:17
    Tim
    100

    You can do it in XSLT as well:

    <xsl:variable name="resultOfAddingProperty" select="CommerceLibrary:SetOrderProperty($lineItemIndex, 'PropertyName', 'Your Value To Set')" />

  • Mads Jørgensen 74 posts 226 karma points
    Jun 25, 2013 @ 13:18
    Mads Jørgensen
    0

    Thanx Tim,

    Seems to solve everything :-)

  • Mads Jørgensen 74 posts 226 karma points
    Jun 25, 2013 @ 13:20
    Mads Jørgensen
    0

    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?

  • Tim 168 posts 372 karma points
    Jun 25, 2013 @ 13:22
    Tim
    1

    Sorry yep, just don't pass in the order line:

     

    <xsl:variable name="resultOfAddingProperty" select="CommerceLibrary:SetOrderProperty('PropertyName', 'Your Value To Set')" />

  • Mads Jørgensen 74 posts 226 karma points
    Jun 25, 2013 @ 13:27
    Mads Jørgensen
    0

    Your, da man!

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jun 26, 2013 @ 15:18
    Nickolaj Lundgreen
    0

    CommerceLibrary:SetOrderProperty would add the property to the order, not the customer (as you requested). Not sure if it still works for you Mads?

     

Please Sign in or register to post replies

Write your reply to:

Draft