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)'
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)'
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.
However, my question was how to find the USPS language file. It is not in the normal spot where UPS was.
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 doneHomesteadGenStore 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)'
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.
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.
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 (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 (1 to 5 Days)';
Find:
$_['text_us_origin_12'] = 'UPS 3 Day Select';
Change:
$_['text_us_origin_12'] = 'UPS Select (1 to 3 Days)';
/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 (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 (1 to 5 Days)';
Find:
$_['text_us_origin_12'] = 'UPS 3 Day Select';
Change:
$_['text_us_origin_12'] = 'UPS Select (1 to 3 Days)';
Who is online
Users browsing this forum: No registered users and 1 guest