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/.
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
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
Thanks Rune,
Is there a .Net equivilent that perhaps takes the ID of the child node rather than the XPathNodeIterator?
Regards,
Matt
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
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
is working on a reply...