If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / How can I tell if override is fully working.?

How can I tell if override is fully working.?

Locked

Started by stlnyc on 23 Oct 2008, 9:15 PM · Views: 1,356

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Oct 2008, 9:15 PM
#1
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

How can I tell if override is fully working.?

Site: jpfinewines.com

I recently implemented the override on my site. While I know the new template is running, when I try to edit stylesheets.css in my CUSTOM folder nothing happens, but when I edit the same file in the default folder the changes work. I've tried copying the file to the CUSTOM folder and it just saves without changing things on the site. Thanks in advance.

https://www.grapediscounts.com
Zen Version 1.3.9f, Mods: Click-Show-Hide Menu, IH3, Editable SB, Recently Viewed SB, Froogle, EZ-Pop

23 Oct 2008, 9:28 PM
#2
kobra avatar

kobra

Black Belt

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

Re: How can I tell if override is fully working.?

You can view the source for any page and see that the css is pointed to

<link rel="stylesheet" type="text/css" href="includes/templates/CUSTOM/css/stylesheet.css" />

If you are not seeing changes - insure that your FTP is actually uploading the file and clear your browser cache

Zen-Venom Get Bitten

23 Oct 2008, 9:31 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I tell if override is fully working.?

You can tell by looking at the stylesheets downloaded to your browser when you view the site.

For your site, this is the stylesheets in the CUSTOM/css folder.

Can you give a more specific example of what isn't working for you?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

24 Oct 2008, 1:33 PM
#4
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

Re: How can I tell if override is fully working.?

So after viewing the source it does seem like the override is working. But, I just installed a "editable sidebox" and while it shows up on the site, the file in the html includes folder only shows up when its installed in the default folder and not when it is in the html includes folder under my custom template. The page will ultimately be edited indefine pages editor and will only show up there when in the default folder. Thanks

I'm wondering if some of my root folders are setup wrong for my custom template. I also made the mistake early on to copy files over to my custom template that I hadn't edited.

https://www.grapediscounts.com
Zen Version 1.3.9f, Mods: Click-Show-Hide Menu, IH3, Editable SB, Recently Viewed SB, Froogle, EZ-Pop

24 Oct 2008, 1:55 PM
#5
stevesh avatar

stevesh

Black Belt

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

Re: How can I tell if override is fully working.?

First, copying files to your custom folders which haven't been edited won't hurt anything - they'll just take up disk space.

The proper placement for the define pages is includes/languages/english/html_includes/CUSTOM - the way you described it, it sounded like you might have the html_includes folder under your custom folder.

24 Oct 2008, 2:31 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,747
Plugin Contributions:
0

Re: How can I tell if override is fully working.?

In most cases, you need to add NEW functionality to the default directories before you can override it :)

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

24 Oct 2008, 3:32 PM
#7
afo avatar

afo

Totally Zenned

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

Re: How can I tell if override is fully working.?

Kim:

In most cases, you need to add NEW functionality to the default directories before you can override it :)

What Kim is saying is that you need it in BOTH places. You can put the one that came with the download in includes/languages/english/html_includes and the one you modified in includes/languages/english/html_includes/CUSTOM.

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

24 Oct 2008, 4:00 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How can I tell if override is fully working.?

As Kim says the override system sometimes requires a file to be in place for the override to be recognized. This is the case for most language files (though the main file for each language is an exception), and I believe the init files, though not for template files including stylesheets or module files.

Because of the restriction for language files, my assumption that most users would want to use the same editable content for all templates, and the absence of any identically named files in the standard Zen Cart release that might overwrite them at a later date, the files in the editable sidebox mod are designed to be installed straight into the default folders.

Credit to you for being diligent and attempting to use the override system, but in this case it causes problems and confusion and isn't necessary.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

24 Oct 2008, 4:19 PM
#9
afo avatar

afo

Totally Zenned

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

Re: How can I tell if override is fully working.?

Thanks for the clarification, kuroi. I'm sure it'll help someone else trying to use the same download.

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