Copied to clipboard

Flag this post as spam?

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


  • Paul Marden 235 posts 338 karma points MVP c-trib
    Sep 16, 2012 @ 20:06
    Paul Marden
    0

    Viewing OrderLineProperties in the backend

    I've managed to add some orderline properties to a webshop i'm creating.  The property is call isPersonalised and is true or false.  I've tested in Firebug and know that it is being attached to the order ....

    [Object { Id=
    30
    , Alias=
    "nodeName"
    , Value=
    "Jacket"
    }
    , Object { Id=
    31
    , Alias=
    "productName"
    , Value=
    "Shower and Windproof jacket"
    }
    , Object { Id=
    32
    , Alias=
    "isPersonalised"
    , Value=
    "true"
    }
    ]

    So now my question is how does the site editor know that an order contains an orderline with isPersonalised=true.  There doesn't seem to be any way of seeing the orderlineproperties in the back end.  Or am I missing something?

     

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Sep 17, 2012 @ 08:26
    Rasmus Fjord
    0

    Hey Paul

    You can customize your backend in the xslt named teaCommerceAdminOrder.xslt.

    In the XSLT there is a line where we are looping all orderlines :

    <xsl:for-each select="$order/orderLine">

    In here you could do :

    <xsl:if test="./properties/isPersonalised= 'true'">YOUR VALUE HERE</xsl:if> 
  • Rune Grønkjær 1371 posts 3102 karma points
    Sep 17, 2012 @ 08:31
    Rune Grønkjær
    0

    Hi Paul,

    The order view in the Tea Commerce section shows only the most basic order information. BUT it is 100% customizable. In your xslt's you will find the teaCommerceAdminOrder.xslt, which creates the html for the orders view. You can change that in any way you want, adding or removing information.

    The teaCommerceEmailTemplate.xslt file is in the same way the default email template for the confirmation e-mail. That too can be customized for your clients specific needs.

    Don't worry if you later decide to upgrade Tea Commerce. The two files will not be overwritten, so your customizations will be safe!

    /Rune

  • Rune Grønkjær 1371 posts 3102 karma points
    Sep 17, 2012 @ 08:40
    Rune Grønkjær
    0

    Cool, thanks Rasmus for answering. You sniped me on that one ;)

    /Rune

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Sep 17, 2012 @ 09:06
    Rasmus Fjord
    0

    hehe :D 

    Snipers ready. 

    Was just in the "neigborhood"

Please Sign in or register to post replies

Write your reply to:

Draft