Just got a quick question about thawing prices.
I have a multivariantproduct page, with complex variants.
If i thaw the prices of the 'master' product, will all the variants' prices also thaw? Or do I need to thaw them individially.
This is my piece of code in the PublishedEvent:
if (node.ContentType.Alias.Equals(DtMultiVariantProductPage.ModelTypeAlias))
{
if (node.WasPropertyDirty("price") || node.WasPropertyDirty("salePrice") || node.WasPropertyDirty("saleActive"))
{
_priceFreezerService.ThawPrices(partialKey: node.Key.ToString());
}
}
Thawing prices question
Hi Matt,
Just got a quick question about thawing prices. I have a multivariantproduct page, with complex variants.
If i thaw the prices of the 'master' product, will all the variants' prices also thaw? Or do I need to thaw them individially. This is my piece of code in the PublishedEvent:
Thanks!
//Puck
Hi Puck,
Good question, and I think it should.
When using product variants with the variants property editor the frozen price key should be in the format
So passing just the
productReference
of the parent product should indeed thaw the prices of product variantsAwesome! Thanks :)
is working on a reply...