Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    May 2005
    Posts
    20
    Plugin Contributions
    0

    Idea or Suggestion Rename Checkout!

    Hello,

    I am working on modifying zencart to be able to book a coach or bus online for a friend who has a small transport business.

    He has decided that he would like the shopping cart and checkout to be named something else for this purpose

    For example the shopping cart would be called "Bookings Cart" and the checkout to be "Bookings Checkout".

    I have got some idea of what there is to do (I think) but could I just get a second opinion of what I have to do, and what files need changeing/renaming.

    Thanks in advance, Hope someone can help...

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Rename Checkout!

    You'll have to find all DEFINES for this description - use the Developers Tool Kit in ADMIN->TOOLS to search for files with these defines. Use the input field right at the bottom-left and type in any text you'd like to find appearing in the php files. Select "All Files - Catalogue" in the dropdown that appears to the right of this input field. (You probably won't need to change defines in ADMIN as your shoppers don't see this side of the shop).

    The system will search through all 950+ php files, then LIST all those where your text string appears.

    PRINT OUT THIS LIST.

    Be aware that making these changes MIGHT upset other functionality. Don't change items that relate to database tables or other functions.

    The text you are looking for is likely to appear in lines that look something like this:-

    define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');

    BE CAREFUL to alter the text ONLY between the second pair of single quote marks:

    define('HEADER_TITLE_CART_CONTENTS', 'Booking Cart');

    DO NOT remove the single quote marks... And if you put text in here that contains a single quote - such as the apostrophe in a word like "don't", then you must backslash (comment out) the single quote as well - eg: "don\'t" so that the PHP ignores it.

    (Single quote marks are use by PHP for various programming purposes)


    It's likely that most (if not all) of the php files that need editing will be in the LANGUAGES directories.

    After making a backup of any php file FIRST (so that you can put the original back in place if you foul things up) CAUTIOUSLY make the edit to a couple of php files that appear to govern the description you want to change.

    FTP the NEW file to your OVER-RIDES folder. DON'T overwrite the original one in the core directory. Make sure that if that file already appears in your over-rides folder, you could lose previous formatting by overwriting that file - in which case, just EDIT that file, don't overwrite it.

    If you're not sure about over-rides and how they work, read up about this procedure first. (It's quite straight-forward).

    USE A GOOD TEXT EDITOR - eg: CRIMSON EDITOR (free to download off the web). Don't use notepad, or the edit function that some c-panel interfaces provide.

    And on the point of ftp - use a professional ftp program to send your files back to the server...
    Last edited by schoolboy; 7 Mar 2007 at 12:22 PM. Reason: corrections
    20 years a Zencart User

 

 

Similar Threads

  1. Log in after rename Rename "admin" folder does not work
    By flashmxfreak in forum General Questions
    Replies: 3
    Last Post: 3 Sep 2011, 12:38 PM
  2. Rename Link
    By clee0718 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Nov 2010, 06:55 PM
  3. How can I rename the "add to cart" to "checkout now"?
    By InterSign in forum General Questions
    Replies: 5
    Last Post: 6 May 2008, 08:45 PM
  4. how do I rename the word "state" - asin the state dropdown on the checkout page?
    By SoftDux in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Mar 2008, 07:19 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