Jump to content

Shopping cart - Getting carriers by zone Presta 1.5.2


Recommended Posts

Hi, I have a problem with getting carriers by zone. I mean I am getting the value of select field with zones e.g. Zone 1 with id 1. How can I get carriers only for zone with id1? By default I have

{foreach $carriers as $carrier}
			<tr>
				<td class="td-1"><div class="wrapper_radio"><input style="" class="delivery_option_radio" type="radio" name="id_carrier" onchange="updateCarrierID({$carrier.id_carrier})" id="delivery_option_{$carrier.id_carrier}" value="{$carrier.id_carrier}" {if $checked == $carrier.id_carrier}checked="checked"{/if} /></div> <label for="delivery_option_{$carrier.id_carrier}">{$carrier.delay}</label></td>
				<td class="td-2 carrier_price_netto_{$carrier.id_carrier}">{displayPrice price=$carrier.price_tax_exc}</td>
				<td class="td-3 carrier_price_{$carrier.id_carrier}">{displayPrice price=$carrier.price}</td>
			<tr>
		{/foreach}

which gets me my all carriers. The thing is that I want to display prices basing on zones. E.g zone 1 = 5 euro, zone 2 = 6 euro etc.

Edited by satania (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...