Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Last active June 7, 2017 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/ac6a9acce65d0cc19e22 to your computer and use it in GitHub Desktop.
Save steveosoule/ac6a9acce65d0cc19e22 to your computer and use it in GitHub Desktop.
Miva - Price Group XML
<!--
~~~~~~~~~~~~~~~~
XML Template:
Change the values in the curly brackets
~~~~~~~~~~~~~~~~
-->
<PriceGroupProduct_Assign group_name="{{ Price Group Name }}" product_code="{{ Product Code }}" />
<PriceGroupQualifyingProduct_Assign group_name="{{ Price Group Name }}" product_code="{{ Product Code }}" />
<Module code="discount_saleprice" feature="discount">
<ProductSalePrice product_code="{{ Product Code }}" group_name="{{ Price Group Name }}">{{ Product Price }}</ProductSalePrice>
</Module>
<!--
~~~~~~~~~~~~~~~~
Example XML:
~~~~~~~~~~~~~~~~
-->
<PriceGroupProduct_Assign group_name="Selling Price" product_code="miva-test" />
<PriceGroupQualifyingProduct_Assign group_name="Selling Price" product_code="miva-test" />
<Module code="discount_saleprice" feature="discount">
<ProductSalePrice product_code="miva-test" group_name="Selling Price">75.00</ProductSalePrice>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment