Zen Cart Logo
Forums / Basic Configuration / changing text on homepage

changing text on homepage

Locked

Views: 2,717

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
17 Dec 2006, 11:48 PM
#1
bargainsbykeith avatar

bargainsbykeith

New Zenner

Join Date:
Dec 2006
Posts:
14
Plugin Contributions:
0

changing text on homepage

I was trying to change the text on the home page from "sales text goes here" to " why pay more" and I now I this message when I go to my site? Parse error: syntax error, unexpected T_STRING in /home/bargain/public_html/store/includes/languages/english/classic/header.php on line 22
how do I fix this?

18 Dec 2006, 12:13 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: changing text on homepage

Please post the line that you changed.

18 Dec 2006, 12:18 AM
#3
bargainsbykeith avatar

bargainsbykeith

New Zenner

Join Date:
Dec 2006
Posts:
14
Plugin Contributions:
0

Re: changing text on homepage

define('HEADER_SALES_TEXT', '(<hp1>'why_pay_more?'>)

what I changed is the hp1 etc....

18 Dec 2006, 12:45 AM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: changing text on homepage

The proper format is:

define('SOME_CONSTANT_HERE', 'some text that shows on a page here');

You seem to have some extra parenthesis and are missing an apostrophe.

18 Dec 2006, 12:56 AM
#5
bargainsbykeith avatar

bargainsbykeith

New Zenner

Join Date:
Dec 2006
Posts:
14
Plugin Contributions:
0

Re: changing text on homepage

that did nothing. if you go to bargainsbykeith.com you will see the message...
I copy and pasted what I was working in.. what you sent me as the text you thought is should be, was nothing like it was when I first started changing it. It started with a hp1 and then on.. I highlighted the part that I changed in red..

<?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('SOME_CONSTANT_HERE', 'some text that shows on a page here'); 'Why pay more?'>)' 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');
18 Dec 2006, 2:03 AM
#6
bargainsbykeith avatar

bargainsbykeith

New Zenner

Join Date:
Dec 2006
Posts:
14
Plugin Contributions:
0

Re: changing text on homepage

hello?? did I lose you?

18 Dec 2006, 2:22 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: changing text on homepage

This line is broken ...

'Why pay more?'>)'

It is an incomplete define statement ... or you had something on your clipboard and accidentally stuck it in the middle of the file ...

18 Dec 2006, 2:59 AM
#8
bargainsbykeith avatar

bargainsbykeith

New Zenner

Join Date:
Dec 2006
Posts:
14
Plugin Contributions:
0

Re: changing text on homepage

so how do I fix it back to the way it was so I can make it the way I want it?

18 Dec 2006, 3:05 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: changing text on homepage

Your original contains a number of errors

define('HEADER_SALES_TEXT', '(<hp1>'why_pay_more?'>) 

If you look at the format Kim mentioned, you'll see several components:

define('SOME_CONSTANT_HERE', 'some text that shows on a page here');

Following that format, you'd want something like:

define('HEADER_SALES_TEXT', '<h1>why_pay_more?</h1>'); 

Take careful note of the quotes and other punctuation.

18 Dec 2006, 4:03 AM
#10
bargainsbykeith avatar

bargainsbykeith

New Zenner

Join Date:
Dec 2006
Posts:
14
Plugin Contributions:
0

Re: changing text on homepage

I copy and pasted the new one into the thing... and it still wont let my site come up.

18 Dec 2006, 4:11 AM
#11
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: changing text on homepage

got a url? what is the current error?