Post by HomesteadGenStore » Tue Oct 25, 2011 12:34 pm

Where can I find the file for the USPS shipping option that controls the various texts for shipping?
It is not in the normal language file at /catalog/language/english/shipping usps.php
I want to change 'Parcel Post' to 'USPS Parcel (1 to 8 Days)'
shipping.jpg

shipping.jpg (36.14 KiB) Viewed 1550 times


Image
www.HomesteadGeneralStore.com


User avatar
New member

Posts

Joined
Sat Jun 18, 2011 9:44 pm
Location - Waco, Texas

Post by Qphoria » Wed Oct 26, 2011 12:29 am

You can change the name but not the delivery time as that comes straight from the server.

Unless you disable delivery time and use it as part of the name.
catalog/language/english/shipping/ups.php

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by HomesteadGenStore » Wed Oct 26, 2011 9:12 pm

Thank you Q, I already found the UPS language file as shown above. I edited the name to show delivery times because the show delivery time in admin does not work.

However, my question was how to find the USPS language file. It is not in the normal spot where UPS was.

Image
www.HomesteadGeneralStore.com


User avatar
New member

Posts

Joined
Sat Jun 18, 2011 9:44 pm
Location - Waco, Texas

Post by Qphoria » Wed Oct 26, 2011 10:12 pm

HomesteadGenStore wrote:I edited the name to show delivery times because the show delivery time in admin does not work.
It works for me. But delivery times are limited to certain shipping options.. priority, express, and some others.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by HomesteadGenStore » Wed Oct 26, 2011 10:35 pm

HomesteadGenStore wrote:Where can I find the file for the USPS shipping option that controls the various texts for shipping?
It is not in the normal language file at /catalog/language/english/shipping/usps.php
I want to change 'Parcel Post' to 'USPS Parcel (1 to 8 Days)'

Image
www.HomesteadGeneralStore.com


User avatar
New member

Posts

Joined
Sat Jun 18, 2011 9:44 pm
Location - Waco, Texas

Post by Qphoria » Wed Oct 26, 2011 11:24 pm

HomesteadGenStore wrote:
HomesteadGenStore wrote:Where can I find the file for the USPS shipping option that controls the various texts for shipping?
It is not in the normal language file at /catalog/language/english/shipping/usps.php
I want to change 'Parcel Post' to 'USPS Parcel (1 to 8 Days)'
USPS returns the actual names from the API as they come. No translation is done

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by HomesteadGenStore » Wed Oct 26, 2011 11:46 pm

Can this be implemented? It seems this is contrary to the norms as used elsewhere in OpenCart.
There is normally a language file. I need to change 'Parcel Post' to 'USPS Parcel (1 to 8 Days)'.
The "show delivery times" does not seem to work for me. I enabled all the UPS and USPS types and none show times.
I checked to make sure I enabled this option in both modules.

Image
www.HomesteadGeneralStore.com


User avatar
New member

Posts

Joined
Sat Jun 18, 2011 9:44 pm
Location - Waco, Texas

Post by HomesteadGenStore » Fri Nov 04, 2011 9:10 pm

So here was my solution to this problem in case anyone else wants to know:


/catalog/view/theme/default/template/checkout/shipping.tpl
/catalog/view/theme/default/template/checkout/guest_step_2.tpl
(**Same changes in both files**)

Remove:
<tr>
<td colspan="3"><b><?php echo $shipping_method['title']; ?></b></td>
</tr>

Find:
<td width="534"><label for="<?php echo $quote['id']; ?>" style="cursor: pointer;"><?php echo $quote['title']; ?></label></td>
Change:
<?php if ($quote['title'] == 'Parcel Post') { ?>
<td width="534"><label for="<?php echo $quote['id']; ?>" style="cursor: pointer;"><?php echo 'USPS Parcel &nbsp;&nbsp;(1 to 8 Days)'; ?></label></td>
<?php } else { ?>
<td width="534"><label for="<?php echo $quote['id']; ?>" style="cursor: pointer;"><?php echo $quote['title']; ?></label></td>
<?php } ?>

/catalog/language/english/shipping/ups.php

Find:
$_['text_us_origin_03'] = 'UPS Ground';
Change
$_['text_us_origin_03'] = 'UPS Ground &nbsp;&nbsp;&nbsp;(1 to 5 Days)';

Find:
$_['text_us_origin_12'] = 'UPS 3 Day Select';
Change:
$_['text_us_origin_12'] = 'UPS Select &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1 to 3 Days)';

Image
www.HomesteadGeneralStore.com


User avatar
New member

Posts

Joined
Sat Jun 18, 2011 9:44 pm
Location - Waco, Texas
Who is online

Users browsing this forum: No registered users and 1 guest