brennan
7/11/2016 - 10:12 PM

PriceGroup_Add.xml

<PriceGroup_Add>
			<Name>Warrior</Name>
			<Eligbility>Coupon,All,Customer,LoggedIn</Eligibility>
			<NotValidBefore>
				<Day>01</Day>									(required)
				<Month>01</Month>								(required)
				<Year>1970</Year>								(required)
				<Minute>30</Minute>								(optional)
				<Hour>12</Hour>									(optional)
			</NotValidBefore>
			<NotValidAfter>
				<Day>01</Day>									(required)
				<Month>01</Month>								(required)
				<Year>1970</Year>								(required)
				<Minute>30</Minute>								(optional)
				<Hour>12</Hour>									(optional)
			</NotValidAfter>
			<Priority>100</Priority>

			<!-- One of the following -->

			<Pricing>Retail,Cost,Discount,Markup</Pricing>
			<Amount>10.00</Amount>

			<!-- or -->

			<Module>discount_addon</Module>
			<Description>Textual Description</Description>
			<DisplayInBasket>No</DisplayInBasket>
			<QualifyingMinimumSubtotal>0.00</QualifyingMinimumSubtotal>
			<QualifyingMaximumSubtotal>0.00</QualifyingMaximumSubtotal>
			<QualifyingMinimumQuantity>0</QualifyingMinimumQuantity>
			<QualifyingMaximumQuantity>0</QualifyingMaximumQuantity>
			<QualifyingMinimumWeight>0.00</QualifyingMinimumWeight>
			<QualifyingMaximumWeight>0.00</QualifyingMaximumWeight>
			<BasketMinimumSubtotal>0.00</BasketMinimumSubtotal>
			<BasketMaximumSubtotal>0.00</BasketMaximumSubtotal>
			<BasketMinimumQuantity>0</BasketMinimumQuantity>
			<BasketMaximumQuantity>0</BasketMaximumQuantity>
			<BasketMinimumWeight>0.00</BasketMinimumWeight>
			<BasketMaximumWeight>0.00</BasketMaximumWeight>

			<Settings>
				<!-- Module-specific settings (One of the following) -->
				<!-- discount_addon -->
				<Product>product_code</Product>
				<Quantity>1</Quantity>
				<Price>10</Price>

				<!-- basket -->
				<Discount>5.00</Discount>
				<Type>Fixed</Type> <!-- Fixed,Percent -->
				<MaxDiscount>10.00</MaxDiscount>

				<!-- buyxgety -->
				<ApplyTo>All</ApplyTo> <!-- All,SameProduct,SameVariant -->
				<X>1</X>
				<Y>2</Y>
				<Type>Fixed</Type> <!-- Fixed,Percent -->
				<Amount>10.20</Amount>
				<Selection>Lowest</Selection> <!-- Lowest,Highest -->
				<MaxQuantity>5</MaxQuantity>

				<!-- product -->
				<Discount>10.1</Discount>
				<Type>Fixed</Type> <!-- Fixed,Percent -->
				<Selection>Lowest</Selection> <!-- Lowest,Highest -->
				<MaxQuantity>1</MaxQuantity>
				<MaxDiscount>11</MaxDiscount>

				<!-- Sale Price (NONE) -->

				<!-- shipping_basket -->
				<ShowDiscountInMethodList>true</ShowDiscountInMethodList>
				<DisplayInBasket method="modify" modification="replace"> Basket Replaced Value </DisplayInBasket>
				<MethodListName modification="replace"> List Replaced Value </MethodListName>

				<!-- shipping_product -->
				<ShowDiscountInMethodList>false</ShowDiscountInMethodList>
				<MethodListName modification="none" />
				<DisplayInBasket method="modify" modification="none" />
				<MethodDiscounts>
					<MethodDiscount module_code="flatrate" method_code="Shipping Discount (Discounted Products Only) Provisioning 01" type="fixed" discount="10.00" />
					<MethodDiscount module_code="flatrate" method_code="Shipping Discount (Discounted Products Only) Provisioning 02" type="percent" discount="35" />
				</MethodDiscounts>

				<!-- volume -->
				<Grouping>All</Grouping> <!-- All,SameProduct,SameVariant -->
				<Method>Cumulative</Method> <!-- Cumulative,Progressive -->
				<ProgressiveMode>HighestFirst</ProgressiveMode> <!-- HighestFirst,LowestFirst -->
				<DefaultPricingTable>
					<Entry quantity="25" type="percent" amount="10.21" />
					<Entry quantity="3" type="fixed" amount="0.03" />
				</DefaultPricingTable>
			</Settings>

			<Exclusions>
				<Exclusion group_name="xxx" type="basket|group|item" />
			</Exclusions>
		</PriceGroup_Add>
		<PriceGroupCustomer_Assign group_name="Warrior" customer_login="barbarian" />
		<PriceGroupCustomer_Assign group_name="Warrior" customer_login="fighter" />
		<PriceGroupCustomer_Assign group_name="Warrior" customer_login="paladin" />
		<PriceGroupCustomer_Assign group_name="Warrior" customer_login="ranger" />
		<PriceGroupProduct_Assign group_name="Warrior" product_code="mail-fullplate" />
		<PriceGroupProduct_Assign group_name="Warrior" product_code="mail-plate" />
		<PriceGroupProduct_Assign group_name="Warrior" product_code="mail-splint" />
		<PriceGroup_Add>
			<Name>Healer</Name>
			<Pricing>Discount</Pricing>
			<Amount>10.00</Amount>
		</PriceGroup_Add>