TeaCommerce / Tea-Commerce-for-Umbraco

Tea Commerce is an e-commerce package for Umbraco CMS
https://www.teacommerce.net/
MIT License
18 stars 19 forks source link

Add Courier/Umbraco Deploy revolvers for variants #81

Open mattbrailsford opened 5 years ago

mattbrailsford commented 5 years ago

When using the variants property editor, internally it stores node ID's of the variants on the product node. Unfortunately when this comes to deploying to other environments, it means that the IDs it stores are now incorrect.

To resolve this we need to write Courier / Umrbaco Deploy resolvers for the variants property editor.

mattbrailsford commented 5 years ago

Got a roughly fleshed out version here https://gist.github.com/mattbrailsford/777a8c5b6e6a063176d32e84964da14a

This currently assumes though that the variant doc type only consists of simple properties and that they don't need recursively processing. If this is required, it'll need extending with functionality similar to the nested content / inner content resolvers.