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

Sales message goes here help request

Views: 3,099

Results 1 to 20 of 35
19 Jan 2012, 11:06 AM
#1
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Sales message goes here help request

Hello fellow Zenner's,

I am a complete newbie to this system. I fell in love with it the first time I saw it. I am excited to set this system up and allow my site members to purchase products and services from the system.

I have tried to change, and or move the sales message goes here to get it off of the catalog ribbon. I tried to upload and image in .doc format but the limit of file-size is tooo small. File size set to: 19kb, file actual size is: 273kb.

I want to move this message down under the ribbon. You can view the site at:

store

Please help and be patient as I am new to this system and it is a little overwhelming after 4 years of basic php copy and paste to run out regular site.

19 Jan 2012, 11:23 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Sales message goes here help request

First, the word 'ribbon' has no meaning in Zencart, so it's hard to see where you want the Sales Message to end up. If you want it below the header, it might be better to remove it completely and include your custom message by editing define_main_page.php in Admin - Tools - Define Pages Editor.

The Sales Message (also known as the tagline) is text and can be changed following this tutorial:

https://www.zen-cart.com/tutorials/index.php?article=127

19 Jan 2012, 1:18 PM
#3
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

stevesh:

First, the word 'ribbon' has no meaning in Zencart, so it's hard to see where you want the Sales Message to end up. If you want it below the header, it might be better to remove it completely and include your custom message by editing define_main_page.php in Admin - Tools - Define Pages Editor.

The Sales Message (also known as the tagline) is text and can be changed following this tutorial:

https://www.zen-cart.com/tutorials/index.php?article=127

I apologize for the mis use of the word ribbon. In SMF the ribbon is the row of buttons, ie; forum, home, search, etc.

On zencart, if you follow the link I posted, you can see the site as it currently is. The message as you can see is showing on top of the categories just below the banner image.

I would like to move this down and place a message here. I tried adding spaces between the lines, and to no avail it stays in the same place.

19 Jan 2012, 2:02 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Sales message goes here help request

Well, you would have to rearrange things in the tpl_header.php file if you want to move the Sales Message below the category tabs in the header.

I don't think you could use a Word file in that place, anyway.

Give us an idea of what exactly this message will say, and exactly where (relative to the category tabs in the header and the breadcrumbs) you want it. My sense is that it would probably be easier and just as effective if you didn't use the tagline, but put your message in the main page body, below the Welcome message.

Also, pasting stuff into Zencart from Word or any WYSIWYG editor isn't the hot setup. Better to add an HTML editor to Zencart and use the editor in define_main_page.php or write the HTML yourself.

19 Jan 2012, 8:29 PM
#5
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

stevesh:

Well, you would have to rearrange things in the tpl_header.php file if you want to move the Sales Message below the category tabs in the header.

I don't think you could use a Word file in that place, anyway.

Give us an idea of what exactly this message will say, and exactly where (relative to the category tabs in the header and the breadcrumbs) you want it. My sense is that it would probably be easier and just as effective if you didn't use the tagline, but put your message in the main page body, below the Welcome message.

Also, pasting stuff into Zencart from Word or any WYSIWYG editor isn't the hot setup. Better to add an HTML editor to Zencart and use the editor in define_main_page.php or write the HTML yourself.

Well, when I delete the Sales Message it then replaces that message with the replacement text I believe it is called.
If I wanted it to be blank, which was my original thought, how do I make that go away. The Sales message is not located in the define_main_page file. that waqs the first place I looked. I found it in the includes\languages\english\classic\header.php file.

The file reads:

<?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_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'); ?>
19 Jan 2012, 8:52 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 help request

To make it "go away' change

define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

to

define('HEADER_SALES_TEXT', '');

(Color added to make it clearer).

You should save the changed file to includes\languages\english\YOUR_TEMPLATE\header.php where YOUR_TEMPLATE is the name of your custom template. If you haven't done so, please check the Tutorials/FAQ for information on the overrides system.

19 Jan 2012, 8:56 PM
#7
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

afo:

To make it "go away' change

define('HEADER_SALES_TEXT', '<h1>Sales Message Goes Here</h1>');

> 
> to
> 
> ```
define('HEADER_SALES_TEXT', '');

(Color added to make it clearer).

You should save the changed file to includes\languages\english\YOUR_TEMPLATE\header.php where YOUR_TEMPLATE is the name of your custom template. If you haven't done so, please check the Tutorials/FAQ for information on the overrides system.

I have not made any customized templates. Actually, all files I have changed were the original files in their original locations.

Is that a problem?

19 Jan 2012, 9:01 PM
#8
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

Okay that worked this time. Last time I tried that I must have either left the header <h1> there or changed the position of something because the Alt Text showed up.

Thank you

19 Jan 2012, 9:05 PM
#9
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here help request

TheMortician4:

I have not made any customized templates. Actually, all files I have changed were the original files in their original locations.

Is that a problem?

Yes, because all your changes will be overwritten by the next upgrade/update.

19 Jan 2012, 10:21 PM
#10
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

afo:

Yes, because all your changes will be overwritten by the next upgrade/update.

So then how do I do this. I read the section of the book that describes the overrides system, and ended up more confused.

So tell me if I understood this correctly, if not correct me so that I can fix this before it becomes a major problem later.

any of my files that originally existed in the store\includes\languages\english\classic\ folder, the custom folder would be store\includes\languages\english\modified...?

how does the system know to look at modified folder instead of the classic folder?

19 Jan 2012, 11:38 PM
#11
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Sales message goes here help request

how does the system know to look at modified folder instead of the classic folder?

It's programmed to automatically check for files in overrides folders first. If it finds the file it's looking for, it loads it. If it doesn't find the file, it loads the default. It's very smart software.

20 Jan 2012, 12:54 PM
#12
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here help request

You have to identify your custom template with a includes/templates/YOUR_TEMPLATE/template_info.php file and select it from the pulldown in the admin. As RescoCCC said, Zen Cart will then check the folders for your custom template for the file it needs. If it doesn't find it, it will look in the folders that come with it.

This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo and header text)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

Note: if you've changed the height of the logo in header.php, you may need to change it in your stylesheet as well:

#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px; <-adjust this line if necessary
}

20 Jan 2012, 3:02 PM
#13
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

So just create these folders as described and substitute the your_template with a folder named, ie; "modified".

then modify the includes/templates/YOUR_TEMPLATE/template_info.php

I am running the 1.3.9h version. After changing these I can then upgrade to the newest version with no problems, correct?

20 Jan 2012, 4:55 PM
#14
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here help request

Yes, you've got it. Once you change includes/templates/YOUR_TEMPLATE/template_info.php you can select your template in admin>tools>template selection.

To be honest, when I started with Zen Cart, the override system was the hardest part for me to get my head around. Once I did, I couldn't figure out why I thought it was so hard.

In case you're unaware of it, there are free templates available for Zen Cart which can help you get a jump start on changing your website. You can see most of them "in action" at http://(sorry, site offline)/index.php.

I don't know about no problems, but at least fewer problems.

20 Jan 2012, 5:28 PM
#15
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

awesome, at least now I have half an idea of what I am doing. Honestly, I thought the book would help, but it is very vanilla and should really be structured like a dummy series type book for individuals new to the system.

I run a large forum and well, copy and paste alot of code to prevent syntax errors with the php. HTML I am absolutely completely in the dark lost, and though that for the price the book would have been cake of a walk through. Hopefully a newer print that is more descriptive and concise will be released to help the newbie zenners like myself avoid these same stupid questions that I assume most everyone has asked at one point in time.

I am going to to work on this and hope that I can accomplish this task smoothly.

I want to thank everyone for their support and time assisting me, that alone tells me that I took the right step choosing ZenCart as my cart of choice.

20 Jan 2012, 5:36 PM
#16
afo avatar

afo

Totally Zenned

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

Re: Sales message goes here help request

You don't really need much in the way of HTML skills for Zen Cart. It's mostly a matter of CSS and php (in that order).

20 Jan 2012, 9:02 PM
#17
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Sales message goes here help request

To be honest, when I started with Zen Cart, the override system was the hardest part for me to get my head around.

Ditto for me. Now it seems very logical.

21 Jan 2012, 10:40 AM
#18
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

RescoCCC:

Ditto for me. Now it seems very logical.

Still learning. Have no prior experience with CSS and PHP, so everything I work on is a test of my ability to grasp the concept of the system and the code.

What happened to the good old days of batch file programming???:blink:

21 Jan 2012, 12:22 PM
#19
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

afo:

You have to identify your custom template with a includes/templates/YOUR_TEMPLATE/template_info.php file and select it from the pulldown in the admin. As RescoCCC said, Zen Cart will then check the folders for your custom template for the file it needs. If it doesn't find it, it will look in the folders that come with it.

This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo and header text)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

Note: if you've changed the height of the logo in header.php, you may need to change it in your stylesheet as well:

#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px; <-adjust this line if necessary
}

okay have a question. on the includes/templates/YOUR_TEMPLATE/template_info.php, there is no file called template_info.php.

There are 2 of them but each is in a different folder, these folders are:

/store/includes/templates/template_default, and
/store/includes/templates/classic

Which one of these do I use. Neither file has the same size of date/time stamp? my logo is in the classic folder, I would assume that classic would be the answer. But, we know what they say when we assume.....

21 Jan 2012, 12:44 PM
#20
themortician4 avatar

themortician4

New Zenner

Join Date:
Jan 2012
Location:
New Jersey
Posts:
75
Plugin Contributions:
0

Re: Sales message goes here help request

TheMortician4:

okay have a question. on the includes/templates/YOUR_TEMPLATE/template_info.php, there is no file called template_info.php.

There are 2 of them but each is in a different folder, these folders are:

/store/includes/templates/template_default, and
/store/includes/templates/classic

Which one of these do I use. Neither file has the same size of date/time stamp? my logo is in the classic folder, I would assume that classic would be the answer. But, we know what they say when we assume.....

okay hold on, I just realized the answer to my own question. But, the common folder is in a different folder than the classic folder, so I can take it from the /store/includes/templates/template_default and move it to the folder that holds the copies of the folders I copied from the classic folder?