Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Default How do I Change the "Best Way" in Shipping Method?

    I am trying to customize my shipping module. Currently I have two options enabled: Per Item and Table Rate.

    When test customer enters checkout, he sees:



    You can see that there are a few problems with this...

    1. I would like to change the wording "Best Way" - how can I change it to something else?
    2. I would like the customer to not see both "Per Item" and "Table Rate" - is there a way to present the customer only the lowest cost one at checkout time?
    3. Also, is there a way to turn off the labels "Per Item" and "Table Rate" (even if both are displayed)?


    Thanks,
    Daniel

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I Change the "Best Way" in Shipping Method?

    You can change most wordings by simply looking them up and editing the appropriate file, and saving them in the appropriate override folder.
    https://www.zen-cart.com/tutorials/index.php?article=38
    https://www.zen-cart.com/tutorials/index.php?article=39
    and there are other FAQ articles talking about override folders and templates
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Default Re: How do I Change the "Best Way" in Shipping Method?

    Quote Originally Posted by DrByte View Post
    You can change most wordings by simply looking them up and editing the appropriate file, and saving them in the appropriate override folder.
    https://www.zen-cart.com/tutorials/index.php?article=38
    https://www.zen-cart.com/tutorials/index.php?article=39
    and there are other FAQ articles talking about override folders and templates
    DrByte, thank you for your reply. Yes, I know about the Tools > Developers Tool Kit (and Override System). However, I also discovered that many of the things that can be changed by telneting to my host and editing text files are customizable directly via menus in Zen Cart's Store Admin interface.

    To me that suggests that there is "the right way" of changing something and there is "the ugly way": I always prefer the Store Admin interface over editing a raw PHP file.

    The problem is that it is not trivial for me to know up front whether a certain feature is customizable through the Store Admin interface.

    It would be nice to have a database of some sort that lists all the customizable "things" in Zen Cart that are customizable only through the override system.

    Thanks,
    Daniel

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I Change the "Best Way" in Shipping Method?

    Most visual-display text/wording is handled in language files so that translations can be made and supplied plug-and-play style.
    Product/Category data is entered via the admin interface. Most everything else is via language files.

    In the case of shipping modules, you'll have to edit the language files.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5

    Idea or Suggestion Re: How do I Change the "Best Way" in Shipping Method?

    Although creating and saving your edits to an overide file is the best way (no pun intended); if you are not really worried about the consequences you will face later while upgrading, (or somehow you already have that covered), then this is a quick and easy way of changing the "Best Way" text:

    You will need to edit the following files:

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

    AND

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

    of course, this is assuming you are using English for the language (you get the idea though)

    Open these files in your text editor and you will see something like this:

    (for the Per Item)
    define('MODULE_SHIPPING_ITEM_TEXT_WAY', 'Best Way');

    (for Per Unit)
    define('MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY', 'Best Way');

    These should be the last lines in the (really small) .php files.

    Now just change the text 'Best Way' to whatever your heart desires. Ensure that you leave the ' ' around your new text. So it could be changed to something like:

    define('MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY', 'We define carrier');

    Again, this is not the recommended way of changing this, but here is the info anyways. Hope this helps!

 

 

Similar Threads

  1. v154 How can I change the text in shipping estimator from "Best Way" to something else?
    By Zappa Aviaries in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Feb 2015, 05:10 AM
  2. How do I change "Table Rate (Best Way)" to "Ground Shipping"?
    By John Vieth in forum General Questions
    Replies: 4
    Last Post: 1 Jul 2010, 10:37 PM
  3. Shipping method "Best Way?" how do I change this?
    By abcdabcd in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 26 Feb 2010, 03:34 PM
  4. How to change freight display from "The best way"?
    By KiwiBrian in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Aug 2009, 10:09 PM
  5. how to change the "best way" to something else?
    By lina0962 in forum Addon Shipping Modules
    Replies: 2
    Last Post: 25 Jan 2007, 11:11 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