Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Change Shipping Method TEXT Wording

    how do i change the text of a shipping method that shows up to the site visitor.

    for example, if i allow a shipping method of USPS Express Mail Int in the admin section but want a different text to show to the site visitor - e.g. 'USPS Express' - where do i go to change ONLY the wording that the end user sees.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Change Shipping Method TEXT Wording

    Every shipping module has TWO files:

    1. a MODULE file.
    2. a LANGUAGE file.

    You need to go into your file system and edit the LANGUAGE files associated with the shipping modules you are using.

    BOTH files will have the SAME NAME - but one is a MODULE file and the other is a LANGUAGE file.

    If you want to edit the language file, then it should be done as an OVER-RIDE, where the core file is COPIED, and the copy is edited and saved in your CUSTOM folder for your template - in the languages area of your files.

    There are tutorials describing how this is done.
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Change Shipping Method TEXT Wording

    Quote Originally Posted by schoolboy View Post
    Every shipping module has TWO files:

    1. a MODULE file.
    2. a LANGUAGE file.

    You need to go into your file system and edit the LANGUAGE files associated with the shipping modules you are using.

    BOTH files will have the SAME NAME - but one is a MODULE file and the other is a LANGUAGE file.

    If you want to edit the language file, then it should be done as an OVER-RIDE, where the core file is COPIED, and the copy is edited and saved in your CUSTOM folder for your template - in the languages area of your files.

    There are tutorials describing how this is done.
    are you sure about that?? i'm assuming you mean the includes/languages/english/TEMPLATE_NAME/ folder?? i've already looked there and can't find where to change the text of a shipping method.. i DID see an entry in the configuration table with the different shipping methods but after trying to change it, it did nothing to the text that the user sees.. the only other place i found the shipping methods spelled out is in includes/modules/shipping/usps.php but i don't understand what that module is doing or if i can change anything there.. here is a bit of code there:

    $this->intl_types = array(
    'Global Express' => 'Global Express Guaranteed (GXG)**', // ID="4"
    'Global Express Non-Doc Rect' => 'Global Express Guaranteed Non-Document Rectangular', // ID="6"
    'Global Express Non-Doc Non-Rect' => 'Global Express Guaranteed Non-Document Non-Rectangular', // ID="7"
    'USPS GXG Envelopes' => 'USPS GXG Envelopes**', // ID="12"

  4. #4
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Change Shipping Method TEXT Wording

    maybe if you pointed me to the path of the folders?? or the file name?? i have researched this for hours and can't find an answer.. i'm not 'totally zenned' but have been doing programming for 30 years so i can find my way around usually..

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Change Shipping Method TEXT Wording

    try:

    /includes/languages/english/modules/shipping/usps.php

    Inside that folder: (/includes/languages/english/modules/shipping/) you may see a classic folder too. (/includes/languages/english/modules/shipping/classic/).

    That means it has OVER-RIDE capacity, so you would create a folder in there at the same level as classic, named after YOUR-TEMPLATE.

    /includes/languages/english/modules/shipping/YOUR-TEMPLATE/

    And after you edit the language file, it goes into that folder...

    /includes/languages/english/modules/shipping/YOUR-TEMPLATE/usps.php
    20 years a Zencart User

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Change Shipping Method TEXT Wording

    Quote Originally Posted by lidlchris View Post
    i have researched this for hours and can't find an answer..
    This can be reduced to minutes if you use the DEVELOPER TOOL KIT file finder...

    ADMIN CONSOLE>>> TOOLS >>> DEVELOPER TOOL KIT.

    Here you have several options to search for strings of "text" in php files. Where the search string is found, the results will show the file name and location (path) and the lines involved.

    Be careful when editing... as you know, php is very unforgiving...
    Last edited by schoolboy; 7 Mar 2013 at 11:20 PM.
    20 years a Zencart User

  7. #7
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Change Shipping Method TEXT Wording

    Quote Originally Posted by schoolboy View Post
    This can be reduced to minutes if you use the DEVELOPER TOOL KIT file finder...

    ADMIN >>> TOOLS >>> DEVELOPER TOOL KIT.

    Here you have several options to search for strings of "text" in php files. Where the search string is found, the results will show the file name and location (path) and the lines involved.

    Be careful when editing... as you know, php is very unforgiving...

    hmmmmm.. of course i tried this first but nothing comes up.. maybe you're not understanding me?? try it yourself for any USPS shipping method - e.g. Global Express Non-Doc Rect - it is NOT defined in any file except includes/modules/shipping/usps.php (i posted some of the code above) - and i don't think you change the text there as i've already tried it and the shipping method stops working.. and YES i know about how to over-ride but the text just doesn't exist..

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Change Shipping Method TEXT Wording

    20 years a Zencart User

  9. #9
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Change Shipping Method TEXT Wording

    Quote Originally Posted by schoolboy View Post
    guess i'll just have to assume you aren't understanding me.. you sent me links to install the USPS module and how to set it up.. since i have had it set up for a long time and it's working correctly, not sure why you sent me those links.. and no, there is NO language file except for includes/languages/english/modules/shipping/usps.php - and there is no where in that file so change text for the USPS international shipping options.

  10. #10
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Change Shipping Method TEXT Wording

    Here's an idea...

    Download that module and unzip it.

    Send only the LANGUAGE file to the LANGUAGE ROOT location, and a copy to your LANGUAGE OVERRIDE location (I described these paths above).

    See if that makes a difference...
    20 years a Zencart User

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Changing shipping method wording in checkout
    By jolewin in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jan 2011, 10:12 AM
  2. Change shipping method text
    By maxy007 in forum General Questions
    Replies: 2
    Last Post: 5 Jan 2011, 01:31 PM
  3. How do I change sidebox text / wording
    By LadyMorgana in forum General Questions
    Replies: 7
    Last Post: 3 Nov 2008, 01:19 PM
  4. Change wording of Shipping Weight
    By ajhb in forum Basic Configuration
    Replies: 1
    Last Post: 28 Oct 2008, 08:58 AM
  5. Change shipping method text
    By Jon Penny in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 21 Mar 2008, 01:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg