Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Removing Weight and "Best Way"

Removing Weight and "Best Way"

Locked

Views: 1,693

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Jul 2006, 5:55 PM
#1
airplanenut avatar

airplanenut

New Zenner

Join Date:
Feb 2006
Posts:
14
Plugin Contributions:
0

Removing Weight and "Best Way"

Hi,

How can I remove the shipping weight and "Best Way" on invoices and the shipping estimator? Also, I used the developper's toolkit to find "Table Rate" and change it to "Standard Shipping," but on the invoices, that text won't change, and remains "Table Rate." Any ideas on how to fix this?

Thanks,

Jeremy

14 Jul 2006, 6:41 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing Weight and "Best Way"

You can change the text of Best Way in the language files:
/includes/languages/english/modules/shipping/whoever.php

And copy it to your template and overrides directory:
/includes/languages/english/modules/shipping/your_template_dir/whoever.php

Turn off the display of weights and/or boxes in the Shipping/Packaging:

Display Number of Boxes and Weight Status
Display Shipping Weight and Number of Boxes?

0= off
1= Boxes Only
2= Weight Only
3= Both Boxes and Weight

14 Jul 2006, 11:49 PM
#3
airplanenut avatar

airplanenut

New Zenner

Join Date:
Feb 2006
Posts:
14
Plugin Contributions:
0

Re: Removing Weight and "Best Way"

Thanks! The only problem is now there is a blank parenthesis with the shipping:

Standard Shipping () $3.00

Any idea how to get rid of the ()?

Thanks,

Jeremy

15 Jul 2006, 12:00 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing Weight and "Best Way"

Unfortunately ... that is in the /includes/classes/shipping.php and you would have to edit that file to remove them ...

There are no overrides for it ...

15 Jul 2006, 1:33 AM
#5
airplanenut avatar

airplanenut

New Zenner

Join Date:
Feb 2006
Posts:
14
Plugin Contributions:
0

Re: Removing Weight and "Best Way"

Do you know what specifically must be changed? Unfortunately, I'm not too good with PHP :(

15 Jul 2006, 3:10 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing Weight and "Best Way"

yep ... :yes:

Oh ... you want me to spell it out for you ... I get it ... :cool:

Peek in the code for:
/includes/classes/shipping.php

Around lines 134-140 you will see the 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 need to alter that to what you want to see for the title

NOTE: backup the original file and your changed file as classes cannot be overridden ...

10 Aug 2008, 11:23 PM
#7
shelia avatar

shelia

New Zenner

Join Date:
Apr 2006
Posts:
79
Plugin Contributions:
0

Re: Removing Weight and "Best Way"

You can change the text of Best Way in the language files:
/includes/languages/english/modules/shipping/whoever.php

I found this thread during a search. Apparently this information is dated because I don't have a whoever.php file - I would like to change this line **"Zones Table Rate (USA):" ** on my Invoice to "Shipping/Handling (USA):"

Thanks!

11 Aug 2008, 12:05 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing Weight and "Best Way"

whoever.php was just a reference to what_ever_module_name_you_are_looking_for.php but a lot faster to type :smile:

Use the Developers Tool Kit to help you find text or code when you are unable to locate it on your own ...

Just enter some of what you see into the bottom input box and and select Catalog or Catalog/Admin from the dropdown and click the SEARCH ...

11 Aug 2008, 1:35 PM
#9
shelia avatar

shelia

New Zenner

Join Date:
Apr 2006
Posts:
79
Plugin Contributions:
0

Re: Removing Weight and "Best Way"

whoever.php was just a reference to what_ever_module_name_you_are_looking_for.php but a lot faster to type

DUH!:blush:

Thanks Ajeh. I used the Developers Tool Kit before doing a search here. The zonetable.php file is the only file that I am using and that the kit displayed. I made changes there but nothing changed. I'm stumped!