Starter Kit - cartStep01.xslt - bespoke products not displayed properly
I have an 'Event' document type that inherits from the standard starter kit 'Product' document type.
I am witnessing something strange when adding my 'Event' product to the
cart and then viewing the Cart Content page, cartStep01.xslt. The Cart Content page is showing the price of the 'Event' product
product but does not show the name or product number.
This happens for as many 'Event' products that I add.
It only starts to show the product name and product number if I add one
of the original products from the starter kit.
The "productName" and "productNumber" properties are being inherited and used as you'd expect. This is very strange behaviour and I can't see why it is doing it
We found the problem - its a new thing we introduced in the multi language version of Tea Commerce so it can handle multilanguage shops. The product is in the content tree of a node that has the 5starfootballtickets hostname attached and has the English culture. This will add the properties productName and productNumber to the product BUT with the language id 3 in your example. Your order is still running invariant language 0 so it wont show the properties. You can use the order.UmbracoLanguageId to change it to 3 in the .NET API or use the TeaCommerce.SetOrderUmbracoLanguage( id ) in the JavaScript API.
I have changed Tea Commerce so it automaticly change the order language when you add a new orderline to the order. This will be in a new beta release tomorrow. Will post a link when its released.
Starter Kit - cartStep01.xslt - bespoke products not displayed properly
I have an 'Event' document type that inherits from the standard starter kit 'Product' document type.
I am witnessing something strange when adding my 'Event' product to the cart and then viewing the Cart Content page, cartStep01.xslt.
The Cart Content page is showing the price of the 'Event' product product but does not show the name or product number.
This happens for as many 'Event' products that I add.
It only starts to show the product name and product number if I add one of the original products from the starter kit.
The "productName" and "productNumber" properties are being inherited and used as you'd expect.
This is very strange behaviour and I can't see why it is doing it
Regards, Matt
Hi Matt
We found the problem - its a new thing we introduced in the multi language version of Tea Commerce so it can handle multilanguage shops. The product is in the content tree of a node that has the 5starfootballtickets hostname attached and has the English culture. This will add the properties productName and productNumber to the product BUT with the language id 3 in your example. Your order is still running invariant language 0 so it wont show the properties. You can use the order.UmbracoLanguageId to change it to 3 in the .NET API or use the TeaCommerce.SetOrderUmbracoLanguage( id ) in the JavaScript API.
I have changed Tea Commerce so it automaticly change the order language when you add a new orderline to the order. This will be in a new beta release tomorrow. Will post a link when its released.
Thanks Anders,
Pleased you found the cause the problem and I'm pleased it wasn't me being too silly.
I'll try out the new beta when it's released. :)
Regards,
Matt
Hi Matt,
I uploaded the new package this morning. So check it out
/Rune
The new version appears to have fixed the issue.
Thanks!
is working on a reply...