satania Posted May 22, 2014 Share Posted May 22, 2014 (edited) 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 May 22, 2014 by satania (see edit history) Link to comment Share on other sites More sharing options...
satania Posted May 22, 2014 Author Share Posted May 22, 2014 Any ideas? I can get value of my "select" field with zones, but how can I get proper prices for my cart according to zone? How can I pass it to my class from tpl file Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now