ok i'd like to change the name of a shipping module lets say the flat rate module to Local Shipping or something. how do i go about doing that, what files do i have to play with so i don't get an error.
ok i'd like to change the name of a shipping module lets say the flat rate module to Local Shipping or something. how do i go about doing that, what files do i have to play with so i don't get an error.
ok i tried this didn't work for me
http://www.zen-cart.com/forum/showth...hipping+module
this is the error i'm getting when i to to install it in the module section of the zencart admin
Warning: main(/home/www/gorillagear.ca/store/includes/languages/english/modules/shipping/delivery.php): failed to open stream: No such file or directory in /home/www/gorillagear.ca/store/admin/modules.php on line 188
Warning: main(/home/www/gorillagear.ca/store/includes/languages/english/modules/shipping/delivery.php): failed to open stream: No such file or directory in /home/www/gorillagear.ca/store/admin/modules.php on line 188
Warning: main(): Failed opening '/home/www/gorillagear.ca/store/includes/languages/english/modules/shipping/delivery.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/gorillagear.ca/store/admin/modules.php on line 188
Parse error: parse error, unexpected $, expecting ')' in /home/www/gorillagear.ca/store/includes/modules/shipping/delivery.php on line 95
Wish I knew - I'm in the same boat!I tried to change "Flat Rate" to "Pre-paid Satchel" and got this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/nochiosn/public_html/store/includes/languages/english/modules/shipping/flat.php:53) in /home/nochiosn/public_html/store/includes/functions/functions_general.php on line 41
So then I changed it back, but.... I'm still getting the same error. Can anyone help us please? TIA![]()
That error quite often means that your editor has put an extra return or two at the end of the file you edited. Look to the very bottum and ensure that there is nothing (and I mean no spaces, no new lines, etc) after the final ?>Originally Posted by nochio
after i changed the capitol to a lower case letter on the (D)delivery.php file now all i get is this error
Shipping Modules
Parse error: parse error, unexpected $, expecting ')' in /home/www/gorillagear.ca/store/includes/modules/shipping/delivery.php on line 95
Modules Sort Order
MB1,
Are you trying to clone the shipping module or just change the title (name)?? Text is changed in language define files and cloning (based on the link you posted earlier) is making an identical second module for 2 different shipping options.
When editing files, DO NOT use the built in editors of cPanel or word processor software. Those insert extra spaces and characters that will corrupt your files. Instead use a good text editor (TextPad, Notepad++, etc..) and FTP client to upload your edited files.
If you only want to change the title, open includes/languages/english/modules/shipping/flat.php and change:
Make your changes and save the changed file to:PHP Code:define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'Flat Rate');
define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'Flat Rate');
define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Best Way');
includes/languages/english/modules/shipping/YOUR_TEMPLATE/flat.php
OK i realized what i did wrong the delivery.php file was cut off at at 97lines when it should of had around 150lines of code i was missing alot of stuff. now i ran into this problem when i try to install the module.
1062 Duplicate entry 'MODULE_SHIPPING_STOREPICKUP_STATUS' for key 2
in:
[insert into storeconfiguration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Delivery Shipping', 'MODULE_SHIPPING_STOREPICKUP_STATUS', 'True', 'Do you want to offer Delivery rate shipping?', '6', '0', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now())]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Man what would of been so much easier, i even did that for my in store pick up module but i wasn't just wasn't thinking about that for my local delivery module, i could of just changed the flat rate module and everything would of been fine.
i got the module working but this is my problem when it displays
as you can see the box text is the same on both, how do you change the box text from store pick up to say Local delivery?Store Pickup
5.99CAD
Local Winnipeg Delivery
Store Pickup
0.00CAD
Stop in for pick up
thanks i'll be looking into right now
i figured it out chage the delivery.php file in in the languages section as mentioned above.
thanks for all your help it was much apprecieated