Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Table Rate Best Way

Locked

Started by beth99 on 11 Apr 2007, 2:38 PM · Views: 7,102

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
11 Apr 2007, 2:38 PM
#1
beth99 avatar

beth99

Zen Follower

Join Date:
Mar 2005
Location:
North Texas
Posts:
402
Plugin Contributions:
0

Post #1 by beth99

I need to remove the text Table Rate (BestWay):

I have gone to includes/languages/english/shipping/table_rate.php and removed the text between the quotes but it still appears on my checkout screens. Is there another place that I need to do this as well? I looked in Developers Toolkit and didn't find anything else.

define('MODULE_SHIPPING_TABLE_TEXT_WAY', 'Best Way');

Smurf
Sterling Estate Sales
Over 6,000 new and gently used items

12 Apr 2007, 3:39 PM
#2
beth99 avatar

beth99

Zen Follower

Join Date:
Mar 2005
Location:
North Texas
Posts:
402
Plugin Contributions:
0

Post #2 by beth99

I was finally able to remove the words but now I have ( ): that I cannot seem to find where to edit to remove it.

Smurf
Sterling Estate Sales
Over 6,000 new and gently used items

12 Apr 2007, 3:41 PM
#3
ajeh avatar

ajeh

Oba-san

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

Post #3 by ajeh

That is in the class shipping.php ... it was expecting "something" to be there ...

You can edit the class but there are no overrides for classes ...

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!]
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!

12 Apr 2007, 4:22 PM
#4
beth99 avatar

beth99

Zen Follower

Join Date:
Mar 2005
Location:
North Texas
Posts:
402
Plugin Contributions:
0

Post #4 by beth99

There is so much code there and I don't have a clue what to edit. Also on the checkout page right after the product title is the word array.

Thanks

Smurf
Sterling Estate Sales
Over 6,000 new and gently used items

12 Apr 2007, 6:55 PM
#5
ajeh avatar

ajeh

Oba-san

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

Post #5 by ajeh

You have files that are not current if you see Array in the checkout ...

You need to make sure that your templates and overrides are current ...

As to the shipping class look in:
/includes/classes/shipping.php

You will see something around line 136:

              'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')',

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!]
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!

12 Apr 2007, 8:47 PM
#6
beth99 avatar

beth99

Zen Follower

Join Date:
Mar 2005
Location:
North Texas
Posts:
402
Plugin Contributions:
0

Post #6 by beth99

I have the most current version 1.3.7. I tried to edit the code but the ( ) are still there. What exactly am I supposed to remove or edit?

Smurf
Sterling Estate Sales
Over 6,000 new and gently used items

16 Apr 2007, 5:25 PM
#7
ajeh avatar

ajeh

Oba-san

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

Post #7 by ajeh

I goobered ... :blink:

The parens are in the:
/includes/modules/pages/checkout_shipping/header_php.php

About line 152 you will see:

                                'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),

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!]
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!

17 Apr 2007, 12:28 PM
#8
beth99 avatar

beth99

Zen Follower

Join Date:
Mar 2005
Location:
North Texas
Posts:
402
Plugin Contributions:
0

Post #8 by beth99

I've tried to edit the code but no luck. Could you please tell me what to remove?

Thank you.

Smurf
Sterling Estate Sales
Over 6,000 new and gently used items

17 Apr 2007, 9:46 PM
#9
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Post #9 by fakedecoy

I tried editing that line too, changing it to:

'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module']),

So it shouldn't say "Best Way" if that were the right place to edit it, but it still says Best Way, both on the shopping cart and shipping information pages.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

18 Apr 2007, 4:28 AM
#10
ajeh avatar

ajeh

Oba-san

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

Post #10 by ajeh

1 change the language file to not read: Best Way

2 change the line in:
/includes/modules/pages/checkout_shipping/header_php.php

from:

'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . [B]' ('[/B] . $quote[0]['methods'][0]['title'] . [B]')'[/B]),  

to read:

'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . [B]' '[/B] . $quote[0]['methods'][0]['title'] . [B]''[/B]),  

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!]
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!

13 Oct 2008, 6:00 PM
#11
doug949 avatar

doug949

New Zenner

Join Date:
Sep 2008
Posts:
15
Plugin Contributions:
0

Post #11 by doug949

Ajeh:

I goobered ... :blink:

The parens are in the:
/includes/modules/pages/checkout_shipping/header_php.php

About line 152 you will see:

                            'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),

The above worked for me -- Thanks Ajeh!

However, now I have a problem with my language overrides.

Instead of using the custom text I specified in:

/languages/english/my_template/modules/shipping/table.php

The text is coming from

/languages/english/modules/shipping/table.php

Why is my language override not working?  What am I missing here?

Thanks Zen Team!

Doug
13 Oct 2008, 6:18 PM
#12
doug949 avatar

doug949

New Zenner

Join Date:
Sep 2008
Posts:
15
Plugin Contributions:
0

Post #12 by doug949

doug949:

The above worked for me -- Thanks Ajeh!

However, now I have a problem with my language overrides.

Instead of using the custom text I specified in:

/languages/english/my_template/modules/shipping/table.php

The text is coming from

/languages/english/modules/shipping/table.php

Why is my language override not working? What am I missing here?

Thanks Zen Team!

Doug

Never mind, I reviewed the tutorial on overrides and finally figured out what I needed to do was put the override files here:

/languages/english/modules/shipping/my_template/table.php

Thanks again Zen Team!

13 Oct 2008, 7:15 PM
#13
ajeh avatar

ajeh

Oba-san

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

Post #13 by ajeh

Thanks for the update and for posting the solution to the problem ... :smile:

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!]
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!

21 Oct 2010, 9:33 AM
#14
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Post #14 by finlander

Linda,

Do you know which file controls the parens that appear in the pop-up Shipping Estimator? I tried both of the files in the this thread for editing parens out, but neither file impacted the parens in the pop-up Shipping Estimator..

21 Oct 2010, 3:16 PM
#15
ajeh avatar

ajeh

Oba-san

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

Post #15 by ajeh

You really need to give more details ...

What shipping module(s) are you using?

What are you trying to remove in the display?

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!]
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!

21 Oct 2010, 5:43 PM
#16
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Post #16 by finlander

Thanks, Linda, attached is screen shot. The shipping module here is just a clone of stock Flat Rate. I don't need the parens on the USPS Priority option, though I wonder, if you tell me which file to edit, will doing so remove ALL parens in this display?