Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Exactly what file do I edit for the Sales Message?

Exactly what file do I edit for the Sales Message?

Locked

Views: 2,371

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
9 Sep 2008, 4:26 AM
#1
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Exactly what file do I edit for the Sales Message?

Ok, I'm missing something really obvious, but after buying the ebook, reading and searching here and reading everything again I just can't find it.

I want to edit the SALES MESSAGE and other txt on the front page. I do not want a custom theme, the default works great for me, but I've made a 'custom' subdirectory, and edited the header.php and index.php but it isn't changing my text.

I'm finding files under the ENGLISH place to change, and I see 2 places for includes, so now I'm just confused.

Please, what directory exactly do I go to and which file do I open to change the stuff in CAPS.
Thank you.

http://divinepurposeunleashed.com/purposeshop/

9 Sep 2008, 4:29 AM
#2
afo avatar

afo

Totally Zenned

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

Re: Exactly what file do I edit for the Sales Message?

If you don't create a custom template, all your changes will be overwritten with the next upgrade/update.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

9 Sep 2008, 4:33 AM
#3
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Exactly what file do I edit for the Sales Message?

MichelleVan:

Ok, I'm missing something really obvious, but after buying the ebook, reading and searching here and reading everything again I just can't find it.

I want to edit the SALES MESSAGE and other txt on the front page. I do not want a custom theme, the default works great for me, but I've made a 'custom' subdirectory, and edited the header.php and index.php but it isn't changing my text.

I'm finding files under the ENGLISH place to change, and I see 2 places for includes, so now I'm just confused.

Please, what directory exactly do I go to and which file do I open to change the stuff in CAPS.
Thank you.

http://divinepurposeunleashed.com/purposeshop/

check this in the tutorials/FAQ section
[
www.zen-cart.com/tutorials/index.php?article=127](https://www.zen-cart.com/tutorials/index.php?article=127)

in particular pay attention to this Note:

NB: By default the text “Sales Message Goes Here” is located in includes/languages/english/classic/header.php define('HEADER_SALES_TEXT', 'Sales Message Goes Here');

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 Sep 2008, 4:35 AM
#4
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

afo:

If you don't create a custom template, all your changes will be overwritten with the next upgrade/update.
Mary Ellen,

Ok, Thanks, so I have to create a custom template, I still don't understand how I do that. Do I copy all the files from the standard template over to custom? And then what do I change?

The help files tell me to put index in a custom english folder, and header somewhere else. I'm getting very confused. Is there a simple help file that explains this? Thanks

9 Sep 2008, 4:49 AM
#5
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

Clyde,

Thank you. I got one piece fixed at least!

9 Sep 2008, 4:54 AM
#6
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

Ok here is where I'm confused:

I created a directory called custom, and the only thing that is in the directory is the header.php

Should there be other things in the directory? Do I need to copy files over?

I see this from the help files:

Save the edited file to includes/languages/english/custom/header.php and upload it to your server.

9 Sep 2008, 12:15 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: Exactly what file do I edit for the Sales Message?

You only need to place the files you change in your custom folder(s). You do need to select the custom template in Admin - Tools - Template Selection, though, and then Admin - Tools - Layout Boxes Controller - Reset

What I usually do with a new Zencart installation is go through and add a CUSTOM (or whatever name I've chosen) folder everywhere there is a 'classic' folder. That way, if I need to override a file, the folder for it is there.

9 Sep 2008, 1:02 PM
#8
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

Stevesh,

That makes sense to create a folder where there is a classic. Now I understand... I wasn't 'getting it' from the instructions.

I did choose my new template but it still wasn't working. I wasn't seeing my changes.

I'll see how far I get today.

9 Sep 2008, 1:04 PM
#9
afo avatar

afo

Totally Zenned

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

Re: Exactly what file do I edit for the Sales Message?

You don't have to copy every file. It will only confuse matters when you upgrade/update. Only copy the files you need to change. Stevesh's suggestion isn't a bad one, although I've never done it quite that way.

In addition to the header.php file you created, you'll need to create includes/templates/YOUR_TEMPLATE/template_info.php. You can copy any template_info.php file that came with Zen Cart into your custom folder and edit it there. It's a small file. Give your template a name you'll recognize when you go into your admin. Under admin->tools->template selection, you can select your template and after doing that, you should see the changes you made on your site.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

9 Sep 2008, 3:09 PM
#10
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

afo:

You can copy any template_info.php file that came with Zen Cart into your custom folder and edit it there. .
MaryEllen,
Thanks for the clarification.
I copied the template_info.php that was in
includes/template/classic
and put that file into my custom directory. As far as I could tell there wasn't any special information in the template_info.php. I changed the name of my template inside the file and saved to my custom directory.
.. is that it? or is there other info that should be in there?

Thanks

9 Sep 2008, 3:41 PM
#11
afo avatar

afo

Totally Zenned

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

Re: Exactly what file do I edit for the Sales Message?

MichelleVan:

MaryEllen,
Thanks for the clarification.
I copied the template_info.php that was in
includes/template/classic
and put that file into my custom directory. As far as I could tell there wasn't any special information in the template_info.php. I changed the name of my template inside the file and saved to my custom directory.
.. is that it? or is there other info that should be in there?

Thanks

No, that should be it.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

9 Sep 2008, 3:42 PM
#12
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

Ok I edited my header.php file and put it in here:
/purposeshop/includes/languages/english/dpu/header.php

now I lost the default , classic template with the colors, and and my logo etc, its showing a totally new template.

How do I get back the classic template, and just make changes that will reflect on that one?

This is so confusing! I do have the book, but it doesn't seem to give a step by step for just uploading the logo, it seems I have to make a whole new template?

Aurgh! Help?

9 Sep 2008, 3:45 PM
#13
afo avatar

afo

Totally Zenned

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

Re: Exactly what file do I edit for the Sales Message?

Do you have includes/templates/dpu/template_info.php?

To get back the classic template, select it under admin>tools>template selection.

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)
  • 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.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

9 Sep 2008, 3:55 PM
#14
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

MaryEllen

I appreciate your help.
I don't want to create a custom template! AURGH. All I want to do is to use the classic template and upload my logo, change the tagline and go!

Why isn't this easy. I am so frustrated I've spent $30.00 and 12 hours just trying to get my logo and the tagline changed.

I'm being told to upload such and such a file to here and there and use admin/includes and then just /includes and create directories and I'm just ready to sell something.

I'm ready to dump zencart.

Can anyone just get my logo and tagline up for me on the classic template?

I can trade or pay.

9 Sep 2008, 4:22 PM
#15
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Exactly what file do I edit for the Sales Message?

Hang in there, MichelleVan.

Copy the css folder and the images folder from Classic to your new custom template in includes/templates, if that is where
you have been editing files. It would be a good idea to restore
the original files in Classic, as Classic is sometimes used to troubleshoot a template issue.

Do follow the overrides system to prevent overwriting your
custom files when you upgrade. It's always a good idea to
keep your shop current as Zen Cart releases come out.

And there will be other files in the languages folder you'll want to
customize..index.php, english.php, your terms and conditions, etc.

There's a chart in the FAQS/Tutorials showing the override structure. Search Overrides Simplified. Or there's a downloadable
chart in Free AddOns, Other Modules, Override Chart.

15 Sep 2008, 4:35 PM
#16
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

TShooters:

Hang in there, MichelleVan.

.
I appreciate the support. I think I need to hire someone to help me. I know a little css and php, but this is over my head. As soon as I did what you described above, I lost the pretty template, even though I choose the new one.

Ack.. blah. frustrated.

Now I'm trying to get my downloadable products working. Why don't programmers use ENGLISH when writing help files?

:P

I do appreciate the help though. Really really.

16 Sep 2008, 3:31 PM
#17
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Exactly what file do I edit for the Sales Message?

Hope you're making progress, MichelleVan.

Did you read any of the articles on the overrides system in
the FAQS/Tutorials?

Here's three that may help you understand it. I think the override
system is one of the hardest things for newbies to wrap their head around. I know it was for me.

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

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

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

Keep hangin' in there. The lightbulb will go off soon!

17 Sep 2008, 4:12 PM
#18
michellevan avatar

michellevan

New Zenner

Join Date:
Sep 2008
Posts:
16
Plugin Contributions:
0

Re: Exactly what file do I edit for the Sales Message?

TShooters:

Hope you're making progress, MichelleVan.

Did you read any of the articles on the overrides system in
the FAQS/Tutorials?

Here's three that may help you understand it. I think the override
system is one of the hardest things for newbies to wrap their head around. I know it was for me.
...........................!

Augh!
Yes I read the tutorials over and over again. and bought the book. It just isn't English, or intuitive. My main complaint is it should be intuitive, Saying

"CAPITALIZED words refer to a folder or language that you choose. We use CUSTOM for your template and ENGLISH for your language by default. Change these if needed. "

makes no sense to me. What does this mean? It isn't explained anywhere. Change WHAT? How do I know if it is needed?

And if this is part every newbie has trouble with, then obviously it doesn't make sense to lots of people.

And then when I DID change them, and choose my template, I lost all my settings. so even following the directions didn't work as expected.

Now I can't get my 'add to shopping cart' on an individual webpage, .. There is probably a way but I can't find it.
I want to be able to have my user click on the add button, have it take them directly to the shopping cart with the item added.

I'm putting in another day on this, and then I'll have to abandon it if I can't figure this out and try something else.

I'm ready to hire someone to help me!

17 Sep 2008, 4:37 PM
#19
afo avatar

afo

Totally Zenned

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

Re: Exactly what file do I edit for the Sales Message?

If you are trying to put an "add to cart" button on a page outside of Zen Cart and have it add an item to the Zen Cart shopping cart, stop. Zen Cart doesn't work that way.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Sep 2008, 4:48 AM
#20
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Exactly what file do I edit for the Sales Message?

"CAPITALIZED words refer to a folder or language that you choose. We use CUSTOM for your template and ENGLISH for your language by default. Change these if needed. "

This is just a notation for the tutorial..meaning CUSTOM is capitalized so you can see better the file structure of where
your custom template would go. You can name your custom
template anything you like as long as you use an underscore
instead of a space when you name it more than one word. Ex: my_custom_template. Except! in your template's template_info.php file, where the template name would say:```
$template_name = 'my custom template';

And everywhere you add a my_custom_template, it should be
named exactly the same.  If you choose my_custom_template as your template, Zen Cart won't recognize a folder named MY_CUSTOM_TEMPLATE as part of your template. 

ENGLISH refers to the default language of Zen Cart. Other languages can be added for a multi-language cart, or a different language cart. 

Hope that helps!