Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Jul 18, 2011 @ 11:40
    Matt Taylor
    0

    'Order notes' property

    When a customer adds a 'stay in a hotel' product to their basket I add a new property to the order line which records their selected arrival date.

    I need to show this date in the back-end orders section so that the person processing the order has this information.

    I see that there are a couple of order fields that could contain this information, 'Customer comments' and 'Order notes'.

    I think 'Order notes' is the most suitable.

    How can I write to this field during the checkout process?

    Cheers,

    Matt

     

     

     

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 18, 2011 @ 11:47
    Rune Grønkjær
    0

    Hi Matt,

    You can just edit the teaCommerceAdminOrder.xslt to fit your exact needs. Just add the arrival date with an alias of your choice (e.g. "arrivalDate") and then print it somewhere in the teaCommerceAdminOrder.xslt.

    If it's an order line property you will be best of writing it in the orderline loop. In the loop you can get the property like this:

    <xsl:value-of select="properties/arrivalDate" />

    /Rune

  • Matt Taylor 873 posts 2086 karma points
    Jul 18, 2011 @ 12:06
    Matt Taylor
    0

    Ah, yes, that is probably a better place to display the information.
    I'll try it out now. :)

    I suppose I have to be careful modifying a file like that when it comes to performing an upgrade later?

    Regards,

    Matt

  • Matt Taylor 873 posts 2086 karma points
    Jul 18, 2011 @ 12:17
    Matt Taylor
    1

    Cool, pleased with that.

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 18, 2011 @ 12:31
    Rune Grønkjær
    0

    Updating Tea Commerce will not overwrite ANY of the xslt's. It only creates them if they do not exist, so you are free to edit them all you want.

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft