Zen Cart Logo
Forums / General Questions / Changing Checkouts Shipping Infomation... am i right or wrong

Changing Checkouts Shipping Infomation... am i right or wrong

Locked

Views: 838

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Aug 2009, 1:59 PM
#1
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Changing Checkouts Shipping Infomation... am i right or wrong

Hi,

Durring checkout i have 3 forms of shipping.

*Table Rate: Best way
*Store Pickup: Walk In
*Flat Rate: Best Way

But i want to change the infomation provided on screen at the checkout section. For example, instead of the above i want

*Business Post Rates: Shipping costs based on overall order weight
*Customer Collection: Walk In
*Local Flat Rate: Within 20 Miles of Warehouse

Using the Developers Tool Kit i fould the files with the orginal text. For the instance of 'Table Rate' do i change

define('MODULE_SHIPPING_TABLE_TEXT_TITLE', 'Table Rate');
define('MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION', 'Table Rate');
define('MODULE_SHIPPING_TABLE_TEXT_WAY', 'Best Way');
define('MODULE_SHIPPING_TABLE_TEXT_WEIGHT', 'Weight');
define('MODULE_SHIPPING_TABLE_TEXT_AMOUNT', 'Amount');

TO

<?php

define('MODULE_SHIPPING_TABLE_TEXT_TITLE', 'Business Post Rates');
define('MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION', 'Table Rate');
define('MODULE_SHIPPING_TABLE_TEXT_WAY', 'Shipping costs based on overall order weight');
define('MODULE_SHIPPING_TABLE_TEXT_WEIGHT', 'Weight');
define('MODULE_SHIPPING_TABLE_TEXT_AMOUNT', 'Amount');
?>

found in /includes/languages/english/modules/shipping/table.php

I have done this on a test site and it works and i have (as yet) not come across any problems. But im posting this to get advice from the ZC Gods to see if

A) Is what i have done is the right way of doing it?
B) Will this cause any problems in the future when i come to add payment modules like paypal (the site's only using Schoolboys ACCOUNT HOLDERS mod).
C) Any other problems i should know about?

All comments & advice welcome
Cheers
M

17 Aug 2009, 3:01 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing Checkouts Shipping Infomation... am i right or wrong

That's exactly how you do it.

Any future payment modules will have their own defines, so there won't be any problem.

17 Aug 2009, 4:05 PM
#3
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Changing Checkouts Shipping Infomation... am i right or wrong

Hmmmmm.. just thought...

would it not be better to clone these files in question rather than edit the original files?

17 Aug 2009, 4:14 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing Checkouts Shipping Infomation... am i right or wrong

I thought that was what you had done.

Yes, create your custom template and move the file you edited into that template's folder, then upload a new unedited copy of that file to the default folder.

17 Aug 2009, 4:16 PM
#5
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Changing Checkouts Shipping Infomation... am i right or wrong

lol... im still learning ;-)

i'll get there one, probs just in time for ZC3.1