Hi guys, trying to add a new field in to the step 2 of the cart a kind of gift message textbox, maybe it my lack of XSLT knowledge but cant find a way of connecting up to the Orders Report in Tea Commerce.
First check and make sure the new order property have been added. You can do this in the firebug console by calling "TeaCommerce.getOrder()" and then inspecting the order.
If it's not in there:
1. Make sure it have been added to the JavaScript in the teaCommerce_Simple.js 2. Remember to update the forms hidden field "UpdateOrderProperties" in the step 2 xslt
If it's there you will easily be able to get the value in the teaCommerceAdminOrder.xslt and the teaCommerceEmailTemplate.xslt by getting: "$order/properties/nameOfProperty"
That should do the trick for you. Otherwise feel free to ask again
Adding a new field in Cart step 2
Hi guys, trying to add a new field in to the step 2 of the cart a kind of gift message textbox, maybe it my lack of XSLT knowledge but cant find a way of connecting up to the Orders Report in Tea Commerce.
Any ideas?
Cheers
Hi Jason,
First check and make sure the new order property have been added. You can do this in the firebug console by calling "TeaCommerce.getOrder()" and then inspecting the order.
If it's not in there:
1. Make sure it have been added to the JavaScript in the teaCommerce_Simple.js
2. Remember to update the forms hidden field "UpdateOrderProperties" in the step 2 xslt
If it's there you will easily be able to get the value in the teaCommerceAdminOrder.xslt and the teaCommerceEmailTemplate.xslt by getting: "$order/properties/nameOfProperty"
That should do the trick for you. Otherwise feel free to ask again
/Rune
That brilliant, got it now. Thanks very much for your detailed and quick reply.
Jason
is working on a reply...