Forums / Templates, Stylesheets, Page Layout / HELP!!! Strange things happening

HELP!!! Strange things happening

Locked

Views: 2,251

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
20 Oct 2007, 12:20 PM
#1
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

HELP!!! Strange things happening

I have just started to set up my first shop with Zen cart and have been using the default classic contemporary green template.

For reasons best known to people much more intelligent than myself, my 'Classic Green' template is no longer classic green????

Here's the url: www.arkwrightandgladys.com

Would appreciate some advice please...

Arkie....

20 Oct 2007, 12:53 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: HELP!!! Strange things happening

Did you edit the style sheet?
What stylesheet(where from path) did you edit?

It appears that you copied the includes/templates/template_default/css/stylesheet.css and replaced the one at includes/templates/classic/css/stylesheet.css

Zen-Venom Get Bitten

20 Oct 2007, 1:22 PM
#3
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

I could well have done all the things you just said Kobra, I'm not adverse to making a hash of things..

So would it be possible in simple terms to tell me how I resolve the issue?

Thanks
Arkie...

20 Oct 2007, 3:04 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: HELP!!! Strange things happening

Look at /includes/templates/classic/css/stylesheet.css and compare it with /includes/templates/template_default/css/stylesheet.css. If they are the same, that is your problem. Get a fresh copy of /includes/templates/classic/css/stylesheet.css from a downloaded set of Zen Cart files. The same fix applies if your copy of /includes/templates/classic/css/stylesheet.css is missing.

A side note - it looks like you have been using an HTML editor to make up text. They can generate horrendous code if not managed properly. Your tagline shows this:```html

<div id="taglineWrapper">
  <div id="tagline"><FONT color=#009300 size=7><STRONG><FONT face="Times New Roman">
<P align=center><FONT size=1><FONT color=#3cb371 size=3><FONT size=7>Arkwright & Gladys <FONT size=3><FONT size=1><FONT color=#3cb371 size=3><FONT size=3>Pet</FONT></FONT></FONT><FONT size=1><FONT color=#3cb371><FONT size=3> Supplies - Fishing Tackle & Baits - Floral Sundries - DIY Products</FONT></FONT></FONT></FONT></FONT></FONT></FONT><FONT size=1><FONT color=#3cb371></P></FONT></FONT><FONT size=3></FONT></FONT></STRONG></FONT></div> </div> ```when what you actually need inside the <div id="tagline"> is two <font> tags and possibly a <strong> and <p>. There is a lot of garbage in there now.
20 Oct 2007, 3:29 PM
#5
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

Hi Glen

thanks for your reply. I will try and find the file sets you referred to.

With regard the HTML code, yes I have been using an editor of sorts. I wouldn't have a clue how to make things look how I want without one I'm afraid...

Arkie...

20 Oct 2007, 5:46 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: HELP!!! Strange things happening

With regard the HTML code, yes I have been using an editor of sorts. I wouldn't have a clue how to make things look how I want without one I'm afraid...
Gotta remember that this is not a html application and that indescriminate addition of code (the editor does not know that this is php) will eventually break something.

Keep good backups/copies and track your changes "one at a time" so any issues can be backed out.

Zen-Venom Get Bitten

21 Oct 2007, 6:40 AM
#7
asmodai avatar

asmodai

New Zenner

Join Date:
Oct 2007
Posts:
3
Plugin Contributions:
0

Re: HELP!!! Strange things happening

Arkwright:

I have just started to set up my first shop with Zen cart and have been using the default classic contemporary green template.

For reasons best known to people much more intelligent than myself, my 'Classic Green' template is no longer classic green????

Here's the url: www.arkwrightandgladys.com

Would appreciate some advice please...

Arkie....

The other thing you need to do is shrink your header logo down - it crosses under the nav bar which is why your text describing what you carry is cut off

Asmodai

21 Oct 2007, 6:44 AM
#8
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

Asmodai:

The other thing you need to do is shrink your header logo down - it crosses under the nav bar which is why your text describing what you carry is cut off

Asmodai

By 'header logo' do you mean the picture of the 2 dogs or the text to the right of the picture?

Also, why isn't the text cut off in my browser? It looks perfectly fine on my computer.

Many thanks in advance

Arkie...

21 Oct 2007, 2:47 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: HELP!!! Strange things happening

Unless this is something that has already been fixed, I don't see a problem in Firefox.
There is an extra space above the logo/tagline, probably due to the <p> tag inserted there. Your HTML editor is doing weird things to your PHP files, adding stuff that shouldn't be there. If you post your /includes/templates/classic/tpl_header.php file, between code tags like

[php] 
your code 
[/php]
```,
 I will straighten out the extras to give you just what you need for that look.
21 Oct 2007, 3:14 PM
#10
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

I would love to post the file you refer to gjh....

Could someone tell me how please? :smile:

21 Oct 2007, 3:35 PM
#11
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

Further to my last post...

I don't seem to have /includes/templates/classic/tpl_header.php file..

Or at least not where you say it should be. When I get to /includes/templates/classic, my only options then are /includes/templates/classic/css or /includes/templates/classic/images.

I knew I should have stuck e bay.... I almost understand how that works, just sick of giving the greedy self serving pigs all my money in fees.

Please feel free at any point to tell me I'm too dumb to have an online shop, I won't be offended.

Arkie...

21 Oct 2007, 4:08 PM
#12
tshooters avatar

tshooters

Totally Zenned

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

Re: HELP!!! Strange things happening

You can do it! It just takes a little time to go thru the learning curve of how
Zen Cart works, and for the light bulb to go on over your head. :yes:

Zen Cart pulls what it needs from the template_default, if it's missing in
your template. So you'll find that file in template_default/common.

You really should be setting up your template overrides as you go along,
instead of altering the files in the classic template folder. When you have
to upgrade, you'll have a nightmare on your hands. Been there...done that.

Read up on setting up your custom template/overrides here:
https://www.zen-cart.com/tutorials/index.php?article=142

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

Print out the chart, it'll help to visualize where you can place a custom template folder.

21 Oct 2007, 6:00 PM
#13
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

Ok....seem to be taking one step forward and two steps back at the moment.

I have created a custom template as describe in the tutorial and I think I understand the purpose of this.

However, I'm now at a loss as to what php files to edit to change things like 'tagline' and 'logo' etc. Also as and when I discover what files to edit, where do I save them too? I assume they don't go in the new cutom template folder I have just created?

Help!!!

Thanks
Arkie...

21 Oct 2007, 6:46 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: HELP!!! Strange things happening

They absolutely do go in your new custom template folder (e.g. "your_template"). The file path to your custom copy should be identical to the filepath under /template_default/ except with /your_template/ instead of /template_default/.

There will be language files to copy and edit for text changes. They work a little differently - you add /your_template/ just before the filename in the path. So /includes/languages/english.php becomes /includes/languages/your_template/english.php and /includes/languages/english/header.php becomes /includes/languages/english/your_template/header.php (these are both files you will want to edit.)

Use the /classic/ folders as guides - anywhere you see a /classic/ folder, you can have a /your_template/ folder next to it.

21 Oct 2007, 7:00 PM
#15
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

Thanks Glen

I may need to digest that info for a couple of days and see if it makes sense.

Whilst waiting for you wonderful people to reply, I started having a play again and everything was going wonderfully well until I tried to edit an english.php file so I could change the titles in the information box.

Could you please look at my website and tell me exactly what huge error I just made...

www.arkwrightandgladys.com

21 Oct 2007, 8:24 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: HELP!!! Strange things happening

You are hopefully using the override system and if so delete the english.php file there and grab a new copy and try this again

Insue that you only edit what is between the single quotes retaining them intact.

Zen-Venom Get Bitten

21 Oct 2007, 8:38 PM
#17
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

Oh if only I had discovered the override system before jumping in with both feet and causing chaos...

And YES I know I need a good slap for being so stupid, if you don't mind I'll get my wife to hit me, at least that way I know how hard I'm going to get hit.

So in the absence of using the override system, is there anything else I could do?

21 Oct 2007, 8:46 PM
#18
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: HELP!!! Strange things happening

At this stage in the proceedings I would happily take very simple instructions on how to delete everything and start all over again.

I had someone install zen cart for me, so I didn't even get to find out how to do that bit either.

Arkie....

21 Oct 2007, 8:58 PM
#19
tshooters avatar

tshooters

Totally Zenned

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

Re: HELP!!! Strange things happening

Do you have an unzipped copy of the ZC version you're using on your computer?
(Hope it's 1.3.7.1!) If so, upload a clean copy from there of the english.php file to your server at includes/languages.

And while you're there, make a custom folder (your_template_name), and
upload a copy of english.php into it. Then go to includes/templates and make
a custom folder (your_template_name), and copy all file folders/files (css,
images, common, template_info.php that you've been working on) to it. Open template_info.php and change the name to your template name:

$template_name = 'Classic Contemporary Green';

Go to Admin/Tools/Template Selection and select your new template. Then
go to Admin/Tools/Layout Boxes Controller and reset the sideboxes.

Now...BINGO! You've got your overrides well on the way. :yes: