Forums / General Questions / Change name of flat shipping module

Change name of flat shipping module

Started by mcpisik on 12 Mar 2013, 6:26 PM · Views: 749

Results 1 to 7 of 7
12 Mar 2013, 6:26 PM
#1
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Change name of flat shipping module

Hi,
Years ago I installed additional flat shipping modules, named flat2 flat3 etc.
I'm now trying to change the name that appears in admin/customers/orders, so that instead of saying flat2, it says something like standarddelivery.
There is no option in the language define that names that section of text...

Thanks

12 Mar 2013, 6:38 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change name of flat shipping module

have you looked at the file that should have been created at includes/languages/english/modules/shipping/your_new_flatrate.php

Zen-Venom Get Bitten

12 Mar 2013, 7:20 PM
#3
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Change name of flat shipping module

Yes, I have added text for the following
define('MODULE_SHIPPING_FLAT2_TEXT_TITLE', 'Standard Courier');
define('MODULE_SHIPPING_FLAT2_TEXT_DESCRIPTION', 'Courier charge');
define('MODULE_SHIPPING_FLAT2_TEXT_WAY', '2-3 Day delivery');

12 Mar 2013, 9:23 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change name of flat shipping module

On a test install I am looking at the invoice and it represents the values entered in the flat.php language module

Is this where you are talking about
admin > customers > orders > edit > invoice

Zen-Venom Get Bitten

12 Mar 2013, 9:43 PM
#5
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Change name of flat shipping module

It's just in the Customers/Orders section...Attachment 12136

13 Mar 2013, 12:04 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change name of flat shipping module

For that you would need to edit the two files replacing all "flat" with "courier"
And all "FLAT" with "COURIER"

Renaming the files from flat.php to courier.php

I would keep the code names simple like courier instead of standard courier as spaces are not acceptable

Zen-Venom Get Bitten

13 Mar 2013, 12:12 AM
#7
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Change name of flat shipping module

Thanks for the input kobra :)