Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / new template -- questions

new template -- questions

Locked

Views: 1,870

Results 21 to 24 of 24
This thread is locked. New replies are disabled.
11 Aug 2009, 2:48 AM
#21
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

new template -- questions

Ignore tpl_header.php for now. You're only confusing the issue.

Where is the header.php file you posted located? You should have one in includes/languages/english/sunflower_orange/header.php. If you don't, you should create on in there by copying it from includes/languages/english/header.php.

It appears your site is reading includes/languages/english/template_default/header.php which has been incorrectly edited.

11 Aug 2009, 7:28 PM
#22
speedbird3654 avatar

speedbird3654

New Zenner

Join Date:
Jul 2008
Posts:
92
Plugin Contributions:
0

Re: new template -- questions

the code i published is from this file and route

includes/languages/english/index.php i got mixed up saying header.php

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 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: index.php 6550 2007-07-05 03:54:54Z drbyte $ */ define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>'); // Showcase vs Store if (STORE_STATUS == '0') { define('TEXT_GREETING_GUEST', ''); } else { define ('TEXT_GREETING_GUEST', 'please enjoy our online showcase.'); } define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?'); define('TEXT_INFORMATION', 'Define your main Index page copy here.'); //moved to english //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products'); //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) { // This section deals with product-listing page contents define('HEADING_TITLE', 'Available Products'); define('TABLE_HEADING_IMAGE', 'Product Image'); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Filter Results by:'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { // This section deals with the "home" page at the top level with no options/products selected /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', ''); } elseif ($category_depth == 'nested') { // This section deals with displaying a subcategory /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', ' '); } ?>

I have not got this route

includes/languages/english/sunflower_orange/header.php

I have got

includes/languages/english/header.php and that contains this

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 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 2940 2006-02-02 04:29:05Z drbyte $ */ // 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', ''); // header Search Button/Box Search Button define('HEADER_SEARCH_BUTTON','Search'); define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here'); ?>

WOWWW :- that has got rid of the dots i wanted but box with red cross lol.... but can not see any where in there :- HEADER_SALES_TEXT

I have just created a file in

includes/languages/english/

called sunflower_orange
giving it a route of :- includes/languages/english/sunflower_orange

and copied the header file shown above and put it in giving me a route of

includes/languages/english/sunflower_orange/header.php

Hope this helps and i am so sorry all

11 Aug 2009, 7:42 PM
#23
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: new template -- questions

In includes/languages/english/sunflower_orange/header.php add the lines in red.

// added defines for header alt and text
define('HEADER_ALT_TEXT', '');

define('HEADER_SALES_TEXT', '');
define('HEADER_LOGO_WIDTH', '');
define('HEADER_LOGO_HEIGHT', '');
define('HEADER_LOGO_IMAGE', '');

13 Aug 2009, 8:22 PM
#24
speedbird3654 avatar

speedbird3654

New Zenner

Join Date:
Jul 2008
Posts:
92
Plugin Contributions:
0

Re: new template -- questions

Thanks so much for your help.... it worked... cheers

Is there any good new security updates available to prevent this from happening again lololol.. i have changed admin area and all fixes stated on help page