Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Oh no, what have I done... Help wanted please

Oh no, what have I done... Help wanted please

Locked

Views: 3,128

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
25 May 2006, 12:36 PM
#1
kc24 avatar

kc24

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Oh no, what have I done... Help wanted please

http://www.bejewelledbyjo.com

Ive done something wrong in the header.php file, and I dont know how to fix it :(

And I cant work out how to get rid of the "Home" and "HEADER_TITLE" from this site: http://www.kathskreations.net

I have searched through the forums, but so far nothing has helped :(

Also while Im here, I need to get an Australian Bank Transfer put into both websites payment sections.. I looked at a link provided in here, but it has alot of different things, and IM not sure which one im supposed to use, or how to upload it so that it shows in the payment section.

Any help would be much appreciated. I am also not very good with technical stuff, so please use as much layman terminology as possible.

And thanking anyone in advance :blush: :mellow:

25 May 2006, 1:13 PM
#2
cherylkemp avatar

cherylkemp

Zen Follower

Join Date:
Mar 2006
Posts:
179
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

Looks like you might have fixed the kathscreations already?

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


Did you maybe leave out a ' or something when you customized the file?
25 May 2006, 1:23 PM
#3
kc24 avatar

kc24

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

Hi thank you for replying :)

No, I havent fixed the kathskreations one yet. On the front page above the welcome message, there is a grey tag that reads HEADING_TITLE and a black text that says Home. Also, when I load the site, the cpanel login pops up :(

I dont know if I have left anything out or bejewelled, I will it for you below...

<?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', 'Powered by Zen Cart :: The Art of E-Commerce [home link]'); define('HEADER_SALES_TEXT', '<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'); ?>
25 May 2006, 4:04 PM
#4
cherylkemp avatar

cherylkemp

Zen Follower

Join Date:
Mar 2006
Posts:
179
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

This might be what you need for the bank stuff: http://www.zen-cart.com/archived_contributions/payment/ausbank_1.zip Not sure if it works with 1.3 though.

Not sure if you know this nice tip yet, but if you login to admin and go to tools/developers tool kit...if you scroll to the bottom there is a search all files option...that can be really useful to see where mentions of "HEADER_TITLE" "Home" and other stuff when you get errors. Sometimes it just takes some fooling around.

Did you try reloading the headers.php file?

25 May 2006, 4:27 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

You're getting the HEADING_TITLE error because you've either removed or commented it out in includes/languages/english/index.php. To have no text there but to leave a break at the top of the page use this:
define('HEADING_TITLE', '<br />');

Vger

25 May 2006, 4:51 PM
#6
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Oh no, what have I done... Help wanted please

To have no text there but to leave a break at the top of the page use this:
define('HEADING_TITLE', '<br />');

That is, indeed, a good plan. However, to avoid white spacing on your template, (fortunitely, on that specific place), it should rather be changed

to:

To have no text there but to leave a break at the top of the page use this:
define('HEADING_TITLE', ' ');

:thumbsup:

26 May 2006, 1:10 AM
#7
kc24 avatar

kc24

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

Thanks everyone for your fast replies!

Re: KathsKreations.net: Home & HEADING_TITLE, I have changed it twice, using both methods advised... and it is still happening. I have included the line below in bold. Is this the right place to put it?

I just feel so stupid! :down:

<?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 3027 2006-02-13 17:15:51Z 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', '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.'); } 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', ' ');** 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!'*/ } 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!'*/ } ?>
26 May 2006, 1:21 AM
#8
kc24 avatar

kc24

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

Ive uploaded ausbank.php thanks for that :smile:

Now, does it automatically come into payment options (if it works with my version) or do I have to add some code somewhere for it to show?

Cheers again.

26 May 2006, 3:31 PM
#9
cherylkemp avatar

cherylkemp

Zen Follower

Join Date:
Mar 2006
Posts:
179
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

should be under payment options

26 May 2006, 3:40 PM
#10
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Oh no, what have I done... Help wanted please

If it isn't, simply follow the README documentation file from the contribution module you might of had downloaded in the past on this site. This should give you some hints on how to display they ausbank under the payment methods in the most efficient and quickest way. :thumbsup:

26 May 2006, 4:00 PM
#11
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Oh no, what have I done... Help wanted please

Hi, Try deleting your browser cache, because the HEADING_TITLE has now gone.

Vger