Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Does anyone know of any way to set a variant's price programatically?
For a "master product", this could be done through ContentService, but I'm not really sure how to deal with this for variants, as the variants aren't created as nodes, but are created through a property on the master product.
You might wan't to take a look at how we parse the json into the object structure:
It's the ParseVariantJson method that does the parsing. You might just be able to reverse engineer it, to be able to create the json as instead.
Tea Commerce for Umbraco is open source, and you can download the code at check it out.
Thank you for your answer :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted