Forums / Templates, Stylesheets, Page Layout / override is not working why?

override is not working why?

Locked

Views: 2,027

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 Oct 2006, 7:16 PM
#1
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

override is not working why?

Hello.
using toturial, created a directory called custom in /include/template/
copied both images and css folder there , i can chose the new tempate from admin panle .
also i created a folder in /includes/languages/ and called the same as my template folder . and copied the english.php there .
now i need to remove the congradulation, you have ..... from index .. so as per tutorial , i created a folder in /include/language/english/ and named it same as my template " custom " copied index.php there , modified this file , but changes is not taking effect. still is showing the same stuff on my main page..

in toturial was mentioned that i have to only move files that i modify to folder that is in /languages/english/custom .. so this way zen cart will over ride the core file and uses the modifed one in custom template.. so why mine is not showing..

Thanks for any help

8 Oct 2006, 8:23 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: override is not working why?

Yes, changes to the default index.php language file would go in:

/includes/languages/english/custom/index.php

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Oct 2006, 10:59 PM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: override is not working why?

problem is .. that after doing all that .. changes to my index is not show up .. i can only change things if i modify core file . so any idea as to why ?

8 Oct 2006, 11:00 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: override is not working why?

What version of Zen Cart are you using? Is it an upgrade?
Which contributions have you installed?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Oct 2006, 11:16 PM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: override is not working why?

Im using the latest version of zen cart. with added fix .. no contributions have been added..
no modifications has been done to any of the fiels .. just need to go live by end of next week , so need to get override up and running .. this way in near future i can have better looking template applied to my shopp :blush:

9 Oct 2006, 12:01 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: override is not working why?

are "any" of the files you put in your /includes/languages/english/custom folder being loaded properly?

Files that are typically edited and put in the override folder include index.php, meta_tags.php, header.php etc

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Oct 2006, 2:00 AM
#7
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: override is not working why?

OK problem has been solved.. permission problme.. i was testing on windowsxp but moved the testing server to linux and set permissions correctly .. now it works.
I have ONE more question .
on header.php, i need to set " tagline here " to a store slogen ..
Slogen starts with the work WE'VE .. because of (') in the sentence i get parser error .. i know i have to use (") somewhere , but php is not the langue i know anything . so please tell me how to set this correctly

thanks

9 Oct 2006, 2:04 AM
#8
Kim avatar

Kim

Obaa-san

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

Re: override is not working why?

Single quotes must be escaped.

Red's hat

becomes

Red's hat

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.

9 Oct 2006, 2:36 AM
#9
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: override is not working why?

Thanks.. that did the job :)