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
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?
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
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.
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.
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?
I do appreciate the help though. Really really.
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/i...hp?article=142
https://www.zen-cart.com/tutorials/i...hp?article=230
https://www.zen-cart.com/tutorials/i...hp?article=143
Keep hangin' in there. The lightbulb will go off soon!
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!
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
This is just a notation for the tutorial..meaning CUSTOM is capitalized so you can see better the file structure of where"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. "
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:And everywhere you add a my_custom_template, it should beCode:$template_name = 'my custom template';
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!