Ajeh:
You would need to customize the Zone Rates zones shipping module in:
/includes/modules/shipping/zones.php
adding the code in RED:
// class methods
function quote($method = '') {
global $order, $shipping_weight, $shipping_num_boxes, $total_count;
$dest_country = $order->delivery['country']['iso_code_2'];
// bof: get country's name
global $db;
$dest_country_name_raw = $db->Execute("SELECT countries_name FROM " . TABLE_COUNTRIES . " WHERE countries_iso_code_2 = '" . $dest_country . "'");
$dest_country_name = $dest_country_name_raw->fields['countries_name'];
// eof: get country's name
$dest_zone = 0;
$error = false;
>
> Then changing the lines to use the $dest_country_name:
> ```
// bof: use country's name
$shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country_name . $show_box_weight;
// eof: use country's name
// bof: use country's name
$shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country_name;
// eof: use country's name
>
> ```
// bof: use country's name
$shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country_name;
// eof: use country's name
Hi,
I would like to display country name during checkout also. I am now using V1.5.0 but I can find the first and the last part of the scripts needed to be changed, but couldn't find the 2nd and 3rd one you highlighted in red.
Can show me where to insert?
https://www.dropbox.com/s/6oeyfwindnatcub/zones.php