Page 2 of 9 FirstFirst 1234 ... LastLast
Results 11 to 20 of 85
  1. #11
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    Any idea why when I deleted some of the menu tabs out it added in those 3 HEADER_TITLE tabs? I can't seem to get them to disappear?

    Per the instructions I edited the includes/languages/english/extra_definitions/yorkshire_clean/headermenu.php file and just deleted the entire block of tab I didn't want and was left with this:



    Code:
    /*bof categories definitions*/
    define('HEADER_TITLE_CATEGORIES','Shop');
    
    /*bof information definitions*/
    define('HEADER_TITLE_INFORMATION','Info');
    define('TITLE_GENERAL','General Info');
    define('TITLE_CUSTOMERS','Customers');
    define('TITLE_NEWSLETTERS','Newsletters');
    
    /*bof connect with us*/
    define('TITLE_CONNECT','Connect');
    
    /*bof contact us form definitions*/
    define('HEADER_TITLE_CONTACT_US','Contact Us');
    define('TITLE_CONTACT_US','Have a Question?');
    define('TEXT_CONTACT_US','Your short message goes here.');
    
    /*bof customer service*/
    define('HEADER_TITLE_CUSTOMER_SERVICE','Service');
    define('TITLE_SHIPPING','Shipping');
    define('TEXT_SHIPPING_INFO','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam interdum feugiat ipsum vehicula sollicitudin. Integer sed lacus eget risus consectetur ullamcorper. Pellentesque rutrum ullamcorper faucibus. Nam porttitor iaculis enim, mattis tristique velit tristique bibendum. ');
    define('TITLE_CONFIDENCE','Shop with Confidence');
    define('TEXT_CONFIDENCE','Here you can write a few short sentencs about why your customers can buy with conficence from your store.  You might also want to outline your payment options here.');
    define(PAYMENT_ICON,'payments.png');
    This is what I took out:

    Code:
    /*bof quick links definitions*/
    define('HEADER_TITLE_NEW_PRODUCTS','New Products');
    define('HEADER_TITLE_ALL_PRODUCTS','All Products');
    define('HEADER_TITLE_SPECIALS','Specials');
    define('HEADER_TITLE_SEARCH','Search');
    define('HEADER_TITLE_QUICK_LINKS','Quick Links');
    
    
    
    
    
    /*bof manufacturers definitions*/
    define('HEADER_TITLE_MANUFACTURERS','Brands');
    
    
    
    
    
    /*bof information definitions*/
    define('HEADER_TITLE_INFORMATION','Info');
    define('TITLE_EZ_PAGES','Useful Links');
    define('TITLE_GENERAL','General Info');
    define('TITLE_CUSTOMERS','Customers');
    define('TITLE_NEWSLETTERS','Newsletters');

  2. #12
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Help with some PHP editing a new template (Picaflor)

    includes/languages/english/extra_definitions/yorkshire_clean/headermenu.php

    This is just the language file with defines for what text is to be displayed

    Look in your templates/yorkshire_clean area for a tpl file that builds to menu
    or maybe
    modules/yorkshire_clean
    Zen-Venom Get Bitten

  3. #13
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    Hmm, I'm not sure where you mean exactly as I can't seem to find anything with a tpl extension?

    Should I just be able to edit the navigation tabs through the admin section instead of having to edit code?

  4. #14
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    It's the tpl_mega_menu.php I have to edit, but not sure what exactly what to edit yet

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Help with some PHP editing a new template (Picaflor)

    It is tpl_mega_menu.php in the templates /common folder
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Help with some PHP editing a new template (Picaflor)

    Quote Originally Posted by JohnnyScience View Post
    Any idea why when I deleted some of the menu tabs out it added in those 3 HEADER_TITLE tabs? I can't seem to get them to disappear?

    Per the instructions I edited the includes/languages/english/extra_definitions/yorkshire_clean/headermenu.php file and just deleted the entire block of tab I didn't want and was left with this:



    Code:
    /*bof categories definitions*/
    define('HEADER_TITLE_CATEGORIES','Shop');
    
    /*bof information definitions*/
    define('HEADER_TITLE_INFORMATION','Info');
    define('TITLE_GENERAL','General Info');
    define('TITLE_CUSTOMERS','Customers');
    define('TITLE_NEWSLETTERS','Newsletters');
    
    /*bof connect with us*/
    define('TITLE_CONNECT','Connect');
    
    /*bof contact us form definitions*/
    define('HEADER_TITLE_CONTACT_US','Contact Us');
    define('TITLE_CONTACT_US','Have a Question?');
    define('TEXT_CONTACT_US','Your short message goes here.');
    
    /*bof customer service*/
    define('HEADER_TITLE_CUSTOMER_SERVICE','Service');
    define('TITLE_SHIPPING','Shipping');
    define('TEXT_SHIPPING_INFO','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam interdum feugiat ipsum vehicula sollicitudin. Integer sed lacus eget risus consectetur ullamcorper. Pellentesque rutrum ullamcorper faucibus. Nam porttitor iaculis enim, mattis tristique velit tristique bibendum. ');
    define('TITLE_CONFIDENCE','Shop with Confidence');
    define('TEXT_CONFIDENCE','Here you can write a few short sentencs about why your customers can buy with conficence from your store.  You might also want to outline your payment options here.');
    define(PAYMENT_ICON,'payments.png');
    This is what I took out:

    Code:
    /*bof quick links definitions*/
    define('HEADER_TITLE_NEW_PRODUCTS','New Products');
    define('HEADER_TITLE_ALL_PRODUCTS','All Products');
    define('HEADER_TITLE_SPECIALS','Specials');
    define('HEADER_TITLE_SEARCH','Search');
    define('HEADER_TITLE_QUICK_LINKS','Quick Links');
    
    
    
    
    
    /*bof manufacturers definitions*/
    define('HEADER_TITLE_MANUFACTURERS','Brands');
    
    
    
    
    
    /*bof information definitions*/
    define('HEADER_TITLE_INFORMATION','Info');
    define('TITLE_EZ_PAGES','Useful Links');
    define('TITLE_GENERAL','General Info');
    define('TITLE_CUSTOMERS','Customers');
    define('TITLE_NEWSLETTERS','Newsletters');
    Never remove the DEFINE and its CONSTANTS. If you DELETED the above, you need to put them back.

    DEFINE statements are edited (not deleted), by simply removing/altering the VARIABLE TEXT in the second set of single quotes.

    EG:
    CORE VERSION : define('HEADER_TITLE_INFORMATION','Info');
    EDIT VERSION : define('HEADER_TITLE_INFORMATION',''); (removes the text from the site)
    ALTER TEXT: define('HEADER_TITLE_INFORMATION','More Information'); (CHANGES the text in the site)
    20 years a Zencart User

  7. #17
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    Ok does it matter what order I put them back in?

    I edited & deleted out a bunch of code pertaining to the tabs I wanted gone in the tpl.mega.menu.php file... that's still ok right?

  8. #18
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Help with some PHP editing a new template (Picaflor)

    Ok does it matter what order I put them back in?
    Replace it with a fresh unedited copy
    Zen-Venom Get Bitten

  9. #19
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    Ok what about editing the tpl.mega_menu.php that was ok right?

  10. #20
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Help with some PHP editing a new template (Picaflor)

    Quote Originally Posted by JohnnyScience View Post
    Ok does it matter what order I put them back in?

    I edited & deleted out a bunch of code pertaining to the tabs I wanted gone in the tpl.mega.menu.php file... that's still ok right?
    That's a different matter...

    Generally, you should not DELETE any code. It is far better to COMMENT OUT code that you do not want to be used.

    This requires a lot of CARE, because PHP in particular can fall over even if just one quote mark is wrong (or removed).

    As you know, in HTML, the COMMENTING OUT takes the form of: <! -- (html code here) -->

    In PHP, commenting out can take several forms, depending on WHAT you are commenting out.

    Single line:
    PHP Code:
      if (!isset($_GET['main_page']) || !zen_not_null($_GET['main_page'])) $_GET['main_page'] = 'index'
    preceed the line with //
    PHP Code:
     // if (!isset($_GET['main_page']) || !zen_not_null($_GET['main_page'])) $_GET['main_page'] = 'index'; 
    Several lines:
    /* code or
    words here */
    PHP Code:
    /*
    I dont want these words to affect
    the php in any way
    so I enclose them in comments
     */
      
    require('includes/application_top.php'); 
    20 years a Zencart User

 

 
Page 2 of 9 FirstFirst 1234 ... LastLast

Similar Threads

  1. Replies: 3
    Last Post: 2 Mar 2012, 02:10 PM
  2. Help with editing php files
    By goldnuggetsales.com in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Dec 2009, 11:46 AM
  3. Help with editing NEW PRODUCTS page
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Oct 2006, 10:56 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR