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:
'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
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
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
Cool, pleased with that.
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
is working on a reply...