Forums / Templates, Stylesheets, Page Layout / Trouble with the overide system

Trouble with the overide system

Locked

Views: 2,019

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
21 Nov 2006, 1:36 AM
#1
momo06 avatar

momo06

New Zenner

Join Date:
Nov 2006
Location:
Monteal
Posts:
10
Plugin Contributions:
0

Trouble with the overide system

I'm using the latest version of Zencart (v. 1.3.6)
I created the following overide directories:

includes/languages/english/CUSTOM
includes/templates/CUSTOM/buttons/english/

I coppied the file "button_names.php"

from: includes/languages/english (original dir)

to: includes/languages/english/CUSTOM (my custom dir)

I changed the following parts of the file,
( includes/languages/CUSTOM/buttons/english/button_names.php)

1)The alt tags and
2)I changed some of the link locations directing them to the images i placed inside includes/templates/CUSTOM/buttons/english/

For some reason my images are not showing up on my site rather its using the same original ones from
template_default/buttons/english
also the alt tags did'nt change
any help as to why the overide system isnt working?
Thanx.

21 Nov 2006, 1:50 AM
#2
Kim avatar

Kim

Obaa-san

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

Re: Trouble with the overide system

Because you do not have to change the paths- The program is smart and knows it is supposed to look in the override directory. You only need to touch button_names.php if you change the name of a button.

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.

21 Nov 2006, 2:14 AM
#3
momo06 avatar

momo06

New Zenner

Join Date:
Nov 2006
Location:
Monteal
Posts:
10
Plugin Contributions:
0

Re: Trouble with the overide system

I did change a button and i changed the path but it doesnt seem to work
thats what i am having trouble with!

21 Nov 2006, 3:34 AM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Trouble with the overide system

you dont change the path
put the path back to what it was

zen cart knows to look in your Over rides folder first if it dosnt find what its looking for it then goes to the stock folder,

Zen cart PCI compliant Hosting

21 Nov 2006, 5:57 PM
#5
momo06 avatar

momo06

New Zenner

Join Date:
Nov 2006
Location:
Monteal
Posts:
10
Plugin Contributions:
0

Re: Trouble with the overide system

Thanx Merlinpa1969 that worked!

so essentially i don't need to create a custom folder

includes/languages/english/CUSTOM

and copy the button_names.php file into that folder!
all i have to do is create a custom template and have the images
in buttons/english/ and name the files exactly how they were originally
in template_default the only dif. is the actual images,

That is odd however since the tutorial sais to copy "button_names" to a CUSOM folder? why would that necessary?

by the way any clue as to where

"button_update_cart.gif" and "small_delete.gif"
(the delete and refresh icons in the cart)
are hiding out in the php? i cant seem to find them in button_names.php?

Thanx alot.

21 Nov 2006, 6:40 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Trouble with the overide system

The buttons belong to your template in the:

/includes/templates/your_template_dir/buttons/english/

The language file for the button definitions belong in the > /includes/languages/english/your_template_dir/button_names.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Nov 2006, 5:27 PM
#7
momo06 avatar

momo06

New Zenner

Join Date:
Nov 2006
Location:
Monteal
Posts:
10
Plugin Contributions:
0

Re: Trouble with the overide system

I realized what one of my main problems was.

This will probably help for anyone having the same problem or just having trouble with the template override system:

In the "Override System really simplified" article found here:

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

"CUSTOM" is used in place of your own custom name
the thing is, in order for it to work as a whole you MUST name all custom folders with the same name, for example:
if you create a custom template and name it "my_template"
then if you want to change the language files
(and you want it to work in sync with "my_template")
then you have to name that CUSTOM (language) folder the same name as your custom template i.e. "my_template"
and so to for any other CUSTOM folders,

I made this mistake and was wondering why it hadn't been working properly,
I named my custom template "my_template" and my custom language files "my_language" etc. etc.

Hope that helps somebody
Momo.

7 Dec 2006, 3:22 PM
#8
fizfaz avatar

fizfaz

New Zenner

Join Date:
Dec 2006
Posts:
14
Plugin Contributions:
0

Re: Trouble with the overide system

momo06:

I realized what one of my main problems was.

This will probably help for anyone having the same problem or just having trouble with the template override system:

In the "Override System really simplified" article found here:

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

"CUSTOM" is used in place of your own custom name
the thing is, in order for it to work as a whole you MUST name all custom folders with the same name, for example:
if you create a custom template and name it "my_template"
then if you want to change the language files
(and you want it to work in sync with "my_template")
then you have to name that CUSTOM (language) folder the same name as your custom template i.e. "my_template"
and so to for any other CUSTOM folders,

I made this mistake and was wondering why it hadn't been working properly,
I named my custom template "my_template" and my custom language files "my_language" etc. etc.

Hope that helps somebody
Momo.

Thanks Momo. Thats totally help and solve my problem.
This should be reminder for all ZC newbie.