Re: Dropshipping
but it does...
but it does...
<mvt:if expr="(l.settings:method:code NE 'Wholesale Shipping') AND (l.settings:method:code NE 'Drop Shipping')">
<!-- // see if customer is in PG --> <mvt:item name="toolkit" param="pgroup|pcount" /> <mvt:if expr="g.pcount GT 0"> <mvt:foreach iterator="customer_pgroup" array="customer_pgroups"> <mvt:if expr="l.settings:customer_pgroup:name EQ 'Wholesale'"> <mvt:item name="toolkit" param="sassign|whole|1" /> </mvt:if> <mvt:if expr="l.settings:customer_pgroup:name EQ 'Dropship'"> <mvt:item name="toolkit" param="sassign|drop|1" /> </mvt:if> </mvt:foreach> </mvt:if> <!-- // assign method if in PG --> <!-- // assign method if in PG --> <mvt:if expr="g.whole EQ 1"> <input name="ShippingMethod" value="flatrate:Wholesale Shipping" type="radio"> Wholesale Shipping ($18.00)<br> <mvt:elseif expr="g.drop EQ 1"> <input name="ShippingMethod" value="flatrate:Drop Shipping" type="radio"> Drop Shipping ($10.00)<br> <mvt:elseif expr="(l.settings:customer_pgroup:name NE 'Wholesale' OR l.settings:customer_pgroup:name EQ 'Dropship')"> <!-- // test all the non-PG methods and display them --> <mvt:foreach array="shippingmethods" iterator="method"> <mvt:if expr="(l.settings:method:code NE 'Wholesale Shipping') AND (l.settings:method:code NE 'Drop Shipping')"> <mvt:if expr="ISNULL g.ShippingMethod AND pos1 EQ 1"> <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" /> &mvt:method:name; (&mvt:method:formatted_price;)<br /> <mvt:elseif expr="g.ShippingMethod EQ (l.settings:method:module $ : $ l.settings:method:code)"> <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" /> &mvt:method:name; (&mvt:method:formatted_price;)<br /> <mvt:else> <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" /> &mvt:method:name; (&mvt:method:formatted_price;)<br /> </mvt:if> </mvt:if> </mvt:foreach> </mvt:if>
Comment