Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with "ship in cart" use zone instead of count


Salvo

Recommended Posts

Hi all,

 

I have just a simple question but I can't solve it..

 

in the contribution ship in cart, Shipping Options: one can select the cost based on the drop down "country"...

 

my question is .. how to select cost based on a drop down ZONE instead?

 

from shipping_estimator:

around line 224:

 

if($cart->get_content_type() != 'virtual'){

$ShipTxt.='<tr><td colspan="3" class="main" nowrap>' .

ENTRY_COUNTRY .' '. tep_get_country_list('country_id', $selected_country,'style="width=200;"');

if(CART_SHIPPING_METHOD_ZIP_REQUIRED == "true"){

$ShipTxt.=' '. ENTRY_POST_CODE .' '. tep_draw_input_field('zip_code', $selected_zip, 'size="10"');

}

$ShipTxt.=' <a href="_" onclick="return shipincart_submit('');">'.CART_SHIPPING_METHOD_RECALCULATE.'</a></td></tr>';

}

}

Link to comment
Share on other sites

This is what I need to change.. retrieve ZONES instead of COUNTRIES

 

 

$ShipTxt.='<tr><td colspan="3" class="main" nowrap>' . ENTRY_COUNTRY .' '. tep_get_country_list('country_id', $selected_country,'style="width=200;"');

 

 

$ShipTxt.=' <a href="_" onclick="return shipincart_submit('');">'.CART_SHIPPING_METHOD_RECALCULATE.'</a></td></tr>';

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...