Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default how do you change the name of a module?

    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.

  2. #2
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    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

  3. #3
    Join Date
    Jun 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    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

  4. #4
    Join Date
    May 2004
    Location
    Northern Ontario, Canada
    Posts
    440
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    Quote Originally Posted by nochio
    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 ?>

  5. #5
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    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

  6. #6
    Join Date
    Dec 2004
    Location
    New York, USA
    Posts
    1,198
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    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.

  7. #7
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    If you only want to change the title, open includes/languages/english/modules/shipping/flat.php and change:

    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'); 
    Make your changes and save the changed file to:
    includes/languages/english/modules/shipping/YOUR_TEMPLATE/flat.php

  8. #8
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    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.

  9. #9
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    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

    Store Pickup
    5.99CAD
    Local Winnipeg Delivery

    Store Pickup
    0.00CAD
    Stop in for pick up
    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?

    thanks i'll be looking into right now

  10. #10
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: how do you change the name of a module?

    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

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. How do I change the URL sub-page name to the Category name?
    By gwtnow21 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 28 Jan 2011, 05:20 PM
  2. Replies: 3
    Last Post: 29 Jan 2008, 04:43 AM
  3. Can you change the admin folder's name?
    By IllusionGuy in forum General Questions
    Replies: 2
    Last Post: 28 Nov 2007, 03:30 AM
  4. how do you change the name of the "admin" directory
    By kinget in forum General Questions
    Replies: 2
    Last Post: 12 Apr 2007, 03:48 AM
  5. How do you get rid of the Store Name, etc....?
    By bubblegumgoods in forum Basic Configuration
    Replies: 2
    Last Post: 11 May 2006, 11:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg