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 07, 2011 @ 15:59
    Matt Taylor
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Jul 07, 2011 @ 16:45
    Anders Burla
    0

    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.

  • Matt Taylor 873 posts 2086 karma points
    Jul 07, 2011 @ 20:34
    Matt Taylor
    0

    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

  • Rune Grønkjær 1372 posts 3103 karma points
    Jul 08, 2011 @ 10:17
    Rune Grønkjær
    0

    Hi Matt,

    I uploaded the new package this morning. So check it out

    /Rune

  • Matt Taylor 873 posts 2086 karma points
    Jul 08, 2011 @ 14:31
    Matt Taylor
    0

    The new version appears to have fixed the issue.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft