Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Jul 2008
    Posts
    92
    Plugin Contributions
    0

    Default new template -- questions

    After a hack on my site i am designing a new template etc.

    Im stuck on a couple of general modifications.

    Take a look :- http://occasion-creative.com/ocstore/

    Where do i remove the following bits

    in the banner :- HEADER_SALES_TEXT
    in the banner :- the blue ...........
    middle section :- TEXT_GREETING_GUEST

    Hope someone could shed some light or point me to some threads as i have searched through many of my files and posts here and no further forward


    Also is there a way of bringing all my products from one database and put them on another

    Cheers
    [FONT="System"]http://www.occasion-creative.com[/FONT]

    Leaders in Occasion & wedding designe

  2. #2
    Join Date
    Feb 2009
    Location
    Mogadore, Ohio
    Posts
    32
    Plugin Contributions
    0

    Default Re: new temp

    Search for those strings in admin>Developers Tool Kit

    Good Luck

  3. #3
    Join Date
    Jul 2008
    Posts
    92
    Plugin Contributions
    0

    Default Re: new temp

    i have searched for them this is what i get

    Searching 73 files ... for: HEADER_SALES_TEXT

    Match Lines found: 0
    Warning Error: No matching Configuration Keys were found ... HEADER_SALES_TEXT
    [FONT="System"]http://www.occasion-creative.com[/FONT]

    Leaders in Occasion & wedding designe

  4. #4
    Join Date
    Jul 2008
    Posts
    92
    Plugin Contributions
    0

    Default Re: new temp

    i searched TEXT_GREETING_GUEST and got the following

    // Showcase vs Store
    if (STORE_STATUS == '0') {
    define('', '</a>');
    } else {
    define ('TEXT_GREETING_GUEST', 'please enjoy our online showcase.');


    If i edit that area in the code the site stops working and just shows a white page
    [FONT="System"]http://www.occasion-creative.com[/FONT]

    Leaders in Occasion & wedding designe

  5. #5
    Join Date
    Jul 2008
    Posts
    92
    Plugin Contributions
    0

    Default Re: new temp

    anyone got a clue
    [FONT="System"]http://www.occasion-creative.com[/FONT]

    Leaders in Occasion & wedding designe

  6. #6
    Join Date
    Feb 2009
    Location
    Mogadore, Ohio
    Posts
    32
    Plugin Contributions
    0

    Default Re: new temp

    Check out this tutorial

    https://www.zen-cart.com/tutorials/i...hp?article=128

    Good Luck

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: new temp

    The blue ..... is apparently the alt text to a missing image. I'm seeing a red X before it.

    The correct way to remove the literal is to remove what's between the single quotes, but leave the quotes in place.

    Code:
    // Showcase vs Store
    if (STORE_STATUS == '0') {
    define('', '</a>');
    } else {
    define ('TEXT_GREETING_GUEST', 'please enjoy our online showcase.');
    to

    Code:
    // Showcase vs Store
    if (STORE_STATUS == '0') {
    define('', '</a>');
    } else {
    define ('TEXT_GREETING_GUEST', '');
    I colored the single quotes to make it clearer.

    HEADER_SALES_TEXT is being picked up as the tagline. It should be defined in includes/languages/english/sunflower_orange/header.php

    It should look something like

    Code:
    define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');
    If it's not in there, that's the problem. Zen Cart is looking for it and not finding it.
    Last edited by afo; 4 Aug 2009 at 08:57 PM.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8
    Join Date
    Jul 2008
    Posts
    92
    Plugin Contributions
    0

    Default Re: new temp

    i have found this it it helps

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: header.php 2848 2006-01-14 09:47:08Z wilt $
    */

    // header text in includes/header.php
    define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
    define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
    define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
    define('HEADER_TITLE_CHECKOUT', 'Checkout');
    define('HEADER_TITLE_TOP', 'Top');
    define('HEADER_TITLE_CATALOG', 'Home');
    define('HEADER_TITLE_LOGOFF', 'Log Out');
    define('HEADER_TITLE_LOGIN', 'Log In');

    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce [home link]');
    define('', '<h1>Sales Message Goes Here</h1>');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '70px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

    // header Search Button/Box Search Button
    define('HEADER_SEARCH_BUTTON','Search');
    define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here');
    ?>

    Can anyone give me a set of instructions to remove the points i made as i am ready to release the site but need them fixed first.

    Thanks so much
    [FONT="System"]http://www.occasion-creative.com[/FONT]

    Leaders in Occasion & wedding designe

  9. #9
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: new temp

    Hi,

    Start by changing this:

    PHP Code:
    define('''<h1>Sales Message Goes Here</h1>'); 
    to:

    PHP Code:
    define('HEADER_SALES_TEXT'''); 

  10. #10
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: new temp

    You know, I looked right at this and didn't see it.

    Code:
    // Showcase vs Store
    if (STORE_STATUS == '0') {
    define('', '</a>');
    } else {
    define ('TEXT_GREETING_GUEST', 'please enjoy our online showcase.');
    Your problem is the line in red. You've edited that incorrectly. The original reads:

    Code:
    // Showcase vs Store
    if (STORE_STATUS == '0') {
      define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
    } else {
      define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
    }
    If you want to remove the "Welcome Guest" part, it should look like this (color added for clarity).
    Code:
    // Showcase vs Store
    if (STORE_STATUS == '0') {
      define('TEXT_GREETING_GUEST', '');
    } else {
    define ('TEXT_GREETING_GUEST', 'please enjoy our online showcase.');
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Template Questions
    By Serious in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Feb 2011, 10:13 PM
  2. 4 questions for my new template
    By Yiannis in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jan 2010, 02:40 PM
  3. Replies: 2
    Last Post: 17 Aug 2009, 03:22 PM
  4. Template Questions
    By janissaire in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Jul 2009, 03:00 AM
  5. template questions
    By meknownowt in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Dec 2007, 07:22 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