Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Oct 2008
    Location
    Sydney, Oz-land
    Posts
    45
    Plugin Contributions
    0

    Default Get rid of the words "best way" on invoice, etc

    Hi Zen gurus!
    Just wondering how I get rid of the words "best way" in reference to shipping on various pages including the invoice.
    I am using the price per item shipping method.

    Thanks!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Get rid of the words "best way" on invoice, etc

    Check your language files and use your templates and overrides for:
    /includes/languages/english/modules/shipping/item.php

    and copy to:
    /includes/languages/english/modules/shipping/your_template_dir/item.php

    for your customizations ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2008
    Location
    Sydney, Oz-land
    Posts
    45
    Plugin Contributions
    0

    Default Re: Get rid of the words "best way" on invoice, etc

    sorry should have expanded on that somewhat...

    (and added "speak slowly and use little words as I'm new to this" ;) )

    As I am only using one type of shipping I don't want to offer the choice of one option "per item (best way)", and I don't want it to say "best way" on the invoice, or on the shopping cart process, or anywhere.

    I just want it to say: "shipping" - meaning "here it is, deal with it. thats the shipping cost for these items."

    It comes up with a radio button, almost like an attribute, on the shipping details page (amongst others), even when you change the define code in "item.php" to '' rather than 'best way'

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Get rid of the words "best way" on invoice, etc

    How good are you at editing code?

    In the shipping class, there is a section where the parens are hard coded:
    PHP Code:
                if (isset($quotes['methods'][$i]['cost'])){
                  
    $rates[] = array('id' => $quotes['id'] . '_' $quotes['methods'][$i]['id'],
                                   
    'title' => $quotes['module'] . ' (' $quotes['methods'][$i]['title'] . ')',
                                   
    'cost' => $quotes['methods'][$i]['cost'],
                                   
    'module' => $quotes['id']
                  ); 
    You can set the Text in the language file to be blank and then remove the parens in the code so that they do not show ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Oct 2008
    Location
    Sydney, Oz-land
    Posts
    45
    Plugin Contributions
    0

    Default Re: Get rid of the words "best way" on invoice, etc

    Hmmm... have done my fair share of editing whilst setting this up, but had done none before. A lot of trial and error... ;)
    So are you suggesting I can remove everything you've shown in red in that particular section, and my cart won't get confused and freak out? :)
    I have set the text in the language file (item.php) to be blank but it doesn't seem to have made any difference...?

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Get rid of the words "best way" on invoice, etc

    No, what shows in red is just forum PHP syntax highlighting.
    PHP Code:
                                   'title' => $quotes['module'] . ' (' $quotes['methods'][$i]['title'] . ')'
    Remove
    ' (' .
    and
    . ')'
    PHP Code:
                                   'title' => $quotes['module'] . $quotes['methods'][$i]['title'], 

  7. #7
    Join Date
    Oct 2008
    Location
    Sydney, Oz-land
    Posts
    45
    Plugin Contributions
    0

    Default Re: Get rid of the words "best way" on invoice, etc

    Hmmm thanks for the help, but... well... that seems to make no difference. The checkout process and shipping estimator, etc. still says per unit best way everywhere :)
    Am I missing something?
    Sorry to be a pain...

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Get rid of the words "best way" on invoice, etc

    Now change the language file for the shipping module and change:
    'Best Way'

    to just be:
    ''

    the two single quotes will produce nothing where you were seeing the Best Way ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Oct 2008
    Location
    Sydney, Oz-land
    Posts
    45
    Plugin Contributions
    0

    Default Re: Get rid of the words "best way" on invoice, etc

    Quote Originally Posted by Ajeh View Post
    Now change the language file for the shipping module and change:
    'Best Way'

    to just be:
    ''

    the two single quotes will produce nothing where you were seeing the Best Way ...
    That was the first thing I did. It's still blank (ie: '') and still there's a "best way" on everything from shipping estimator to invoice!
    Hmmm... gremlins?
    Is the "best way" part defined somewhere else as well??

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Get rid of the words "best way" on invoice, etc

    You should just need to change it in the language file for:
    PHP Code:
    define('MODULE_SHIPPING_ITEM_TEXT_WAY''Best Way'); 
    The original file is in:
    /includes/languages/english/modules/shipping/item.php

    Your template and override file should be in:
    /includes/languages/english/modules/shipping/your_template_dir/item.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 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
  2. Changing the term "best way" in shipping
    By genxnomad in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 18 May 2010, 07:15 PM
  3. I want to change to words "Per unit (Best way)"
    By cdnbride in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 4 Mar 2010, 11:23 PM
  4. How do I Change the "Best Way" in Shipping Method?
    By zcnb in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Aug 2008, 10:21 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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR