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
    Jan 04, 2012 @ 19:15
    Matt Taylor
    0

    Adding more Master product fields

    If you use the Master product feature you can set things like prices and VAT groups in a single place which is quite handy.

    Is there some way that I can define my own field that will also work in the same way?

    I need to store an extra bit of information for certain products and I'd like to enter it in the Master product only.

    Thanks,

    Matt

  • Rune Grønkjær 1372 posts 3103 karma points
    Jan 05, 2012 @ 08:04
    Rune Grønkjær
    0

    Hi Matt,

    You can easily create your own properties to use with the master product feature. Just make sure that the alias is the same on both the product and master product and then use the teacommerce:GetProperty($variant, 'yourPropertyAlias')and you will get the first entry in that property as described in this blogpost http://rune.gronkjaer.dk/en-US/2011/09/08/tea-commerce-master-product/.

    /Rune

  • Matt Taylor 873 posts 2086 karma points
    Jan 05, 2012 @ 11:30
    Matt Taylor
    0

    Thanks Rune,

    Is there a .Net equivilent that perhaps takes the ID of the child node rather than the XPathNodeIterator?

    Regards,

    Matt

  • Rune Grønkjær 1372 posts 3103 karma points
    Jan 05, 2012 @ 11:47
    Rune Grønkjær
    0

    No, we have not implemented one like that. We haven't found a good and fast way to do it in .net with the Umbraco API.

    /Rune

  • Matt Taylor 873 posts 2086 karma points
    Jan 05, 2012 @ 12:11
    Matt Taylor
    0

    OK, no problem.

    I've just written my own code to look at the product's Master product and then read that value.

    Cheers,

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft