Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Sales message goes here

Sales message goes here

Locked

Views: 2,422

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
9 Dec 2008, 8:09 PM
#1
ironside avatar

ironside

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Sales message goes here

This is the first time I have used this software. I've had some experience with oscommerce so hopefully I shouldn't have too much of a problem configuring things.

However, I've run into a bit of a problem from the word go. I cannot seem to remove the sentence "sale message goes here" which appears on the home page. I'm sure I'm in the correct file, header.php.

I don't want any writing at the top so I have changed the code to the following:
define('HEADER_ALT_TEXT',");
define('HEADER_SALES_TEXT',");

this doesn't seem to make any difference, the text remains as you can see. This is only a test site by the way.

http://www.commerce5.pennwooding.com/

9 Dec 2008, 8:24 PM
#3
ironside avatar

ironside

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Sales message goes here

I having created anything. I just installed the basic version. Then I went in to include/English/header.php and make the adjustments but nothing seems to work.

9 Dec 2008, 8:32 PM
#4
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here

Read the tutorials I listed.

If you edit the files that came with Zen Cart and don't create your own template, all your changes will be lost with the next update/upgrade.

9 Dec 2008, 8:41 PM
#5
ironside avatar

ironside

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Sales message goes here

Thanks, will do

9 Dec 2008, 8:50 PM
#6
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here

Hint: if you read the first tutorial I listed, you'll see that the text is coming from a different file than the one you edited. :wink:

11 Dec 2008, 5:01 AM
#7
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Sales message goes here

OMG - why couldn't this be easier to fix? I have spent 3 hours now trying to fix/get rid of this dam message!

I'm good with hand coding html but this whole php / server stuff is completely new and for the life of me I can find

includes/languages/english/classic/header.php

it also took me 3 hours to find out where you hid the header log.

I have the book but it's not clear on any of this.

I installed it onto my local like this:

c:>server>xampp>xampp>all the files listed here

I see the htdocs folder click

I see the store folder click

I see the includes folder click

I see languages folder - containing classic and english folder -

I click the classic - it's empty except an empty empty text doc so...

I go back one level and click the english folder and see the header.php file I click it and see 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', 'j edward cook - on line store'); define('HEADER_SALES_TEXT', 'TagLine Here'); define('HEADER_LOGO_WIDTH', '192px'); define('HEADER_LOGO_HEIGHT', '64px'); 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'); ?>

note: I changed define('HEADER_ALT_TEXT', 'j edward cook - on line store'); to this to see if it would do anything - no changes seen.

What am I doing wrong?
Note I also tried the "Sales Message Goes Here" in the search field in the forums but nothing came up. Don't know if I did that wrong too.

11 Dec 2008, 5:21 AM
#8
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Sales message goes here

Never mind I found it - maybe I'm sleepy - been exhauisted all week.

Inside the english folder you will find another "classic" folder not like the other classic folder mentioned above - I think this is what was throwing me and perhaps others off.

If you click on the classics inside you will find the header PHP file there.

sorry for the rant - but is been a while - LOL

11 Dec 2008, 5:30 AM
#9
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Sales message goes here

Ok deleted the line for sales message goes here and now get this at top of webpage

<?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('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'); ?>

Warning: Cannot modify header information - headers already sent by (output started at C:\server\xampp\xampp\htdocs\store\includes\languages\english\classic\header.php:12) in C:\server\xampp\xampp\htdocs\store\includes\init_includes\init_templates.php on line 78

11 Dec 2008, 6:13 AM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Sales message goes here

You do not need to delete
i.e.

define('HEADER_SALES_TEXT', 'TagLine Here');
becomes
define('HEADER_SALES_TEXT', '');
11 Dec 2008, 2:39 PM
#11
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here

The /classic folders are to give you a road map to creating your own custom template. If you change the files in the /classic folders, all your changes will be lost with the next upgrade/update. Check the tutorials/FAQ for information on creating your own custom template.

11 Dec 2008, 6:41 PM
#12
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Sales message goes here

ok just to be sure all I do is take out the words between the single quotes and it will work right?

I tried that first and now have the error message seen above - any idea what the casue of the error mesage is and how I fix it?:blink:

As for the custom templates - I'm not making any or is changing this coding considered making custom pages? I want to upgrade to the lastest version but am doing a lot of stuff here to become more aquainted with the program - Look like I need it too :yes:

11 Dec 2008, 7:12 PM
#13
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here

The error appears to indicate there's an error in the php such as a missing ; at the end of a statement or extra spaces (aka white space) after the closing ?>.

Yes, aking out the text and leaving the single quotes is the correct way to do it.

Yes, if you make changes such as changing the sales message text, you are customizing the files, and if you do that in files from the /classic or /template_default folders, all your changes will be overwritten with the next upgrade/update. You should follow the instructions for creating a custom template and save your changes to the folders you create for your custom template. That way, your changes are protected from being overwritten and you'll be able to update your custom files to match the latest version (not as complicated as it sounds).

12 Dec 2008, 3:11 AM
#14
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Sales message goes here

THANKS!!:clap: