If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading from 1.2 to 1.3.x / Overides in 3.0.1 not working

Overides in 3.0.1 not working

Locked

Started by robwuk on 20 May 2006, 1:14 AM · Views: 4,249

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
20 May 2006, 1:14 AM
#1
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Post #1 by robwuk

The previous version of Zen worked fine with my overides, however now i have upgraded these pages are not getting viewing properly.

Ive even done a clean install and with a new database, set the page status to 0 for the selected page, and uploaded a page in the correct folder, it displays the navbar title and title ok but does not display the content of the page

Anyone else having problems

Rob

20 May 2006, 1:25 AM
#2
kuroi avatar

kuroi

Totally Zenned

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

Post #2 by kuroi

RobWUK:

The previous version of Zen worked fine with my overides, however now i have upgraded these pages are not getting viewing properly.

Ive even done a clean install and with a new database, set the page status to 0 for the selected page, and uploaded a page in the correct folder, it displays the navbar title and title ok but does not display the content of the page

Anyone else having problems

Rob
I've seen a number of these over the past few days Rob, but in every case its ended with an acknowledgement by the original poster that they'd put the overrides in the wrong place, or mistyped a folder or file name.

As you are carrying files over from a previous version, your situation may be different. It could be that the overrides themselves need updating to be compatible with the ZC 1.3+

To move this forward, would you care to post a link to the problem and provide details of the paths that you are using for your overrides?

Kuroi Web Design and Development | Twitter

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

20 May 2006, 5:50 PM
#3
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Post #3 by robwuk

Thankyou for your reply, just to make sure i had files in the correct location, i did a fresh install with a new database.

After the install, i left it on the classic template and in the folder /includes/languages/english/classic i alter page 2 link and replaced some text so i would know if the page changes.

I then went into the admin and set the page status to 0 for that page, so it wouldnt use the html_includes file and to use the overide folder

i then reloaded the site and clicked on the page 2 on more information links on the side and the page showed up with my new title but there was no text that i had set in that file

I hope ive explained clearly here, as its hard trying to describe problems without missing bits out

Thankyou

Rob

20 May 2006, 6:25 PM
#4
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Post #4 by sermonzone

In Admin Tools >template Selection > Edit - choose your template.

Have you done this? I am not sure what you mean by > I then went into the admin and set the page status to 0 for that page, so it wouldnt use the html_includes file and to use the overide folder and that may be the same thing.

20 May 2006, 6:36 PM
#5
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Post #5 by robwuk

Sorry what i meant was in the folder /includes/languages/english/classic
i had replaced the text with somethinh i know would be different

Then i went into the admin and under Configuration / Define Page Status
selected the page 2 and set the status to '0' to indicate it should use the file in my classic folder, the fikes that comes part of the installation which i had changes slightly

I then exited the admin. reviewed the page, clicked on page 2 and it only showed the new header name and title and not the content

Rob

20 May 2006, 9:53 PM
#6
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Post #6 by sermonzone

Are you using the Classic template in ver 1.3.0.1?

20 May 2006, 10:07 PM
#7
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Post #7 by robwuk

I was, ive just downloaded the fullset for version 3.0 and its still doing the same

Sermonzone:

Are you using the Classic template in ver 1.3.0.1?

you can see what i mean by visiting https://www.carptalk-shop.co.uk/tempshop

click on page 2, you will see its displaying the titles i have put in but not the content.

BTW the file i used was 'page_2.php' i simply copied this from
\includes\languages\english

and then copied it to
\includes\languages\english\classic
which the folder was already there
like i mentioned about its loading the title etc but not the content

Im wondering whether zen have made a mistake in the define label
define('TEXT_INFORMATION', 'Page 2 information goes here.');

Rob

20 May 2006, 10:22 PM
#8
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Post #8 by sermonzone

You need to back up a little and start using the template override system See this tutorial - http://www.zen-cart.com/forum/faq.php?s=&do=search&q=template+overrides+network&match=all&titlesonly=0

Also, the classic template is not the best place to start in 1.3.x It is better to use a copy of the template_default or get the template Kuroi is offering - the link is in his signature above.

Then, try using the extra pages feature in 1.3.x and you should get the results you are looking for.

20 May 2006, 10:41 PM
#9
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Post #9 by robwuk

The overide is working to a degree, ie the title of the pages, its the content that is not showing, could be do with with what i mentioned about the define label

im not new to zen-cart and have 3 other websites all running zen-cart with template overides, these are all currently running version 1.2.7d

Over the three i have running the above version they all have their own overide directory
ie includes/english/xstream and on another website includes/english/redspinner

these are running a dream, even this carptalk site has its own directory for its files

(the one im showing you is just a fresh install, im only using classic for my files as the installation has all the directories for the overide already in place, thats the sole reason i installed it and am temporarily using these directories so i am elimiating any mistakes, i dont want to use the extra pages feature just yes as this is a problem that needs fixing first

Thankyou

Rob

20 May 2006, 10:56 PM
#10
Kim avatar

Kim

Obaa-san

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

Post #10 by Kim

If you open the includes/templates/template_default/tpl_page_2_default.php you will see that the system has changed and the language file defines (except the Page Title) are no longer being used, only the Admin Define Pages.

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.

20 May 2006, 11:16 PM
#11
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Post #11 by robwuk

Kim:

If you open the includes/templates/template_default/tpl_page_2_default.php you will see that the system has changed and the language file defines (except the Page Title) are no longer being used, only the Admin Define Pages.

Are you saying that files no longer go in the includes/language/english/mytemplate folder anymore?

In the admin, under configuration i had set my define page status to 0 like the old system it would load my page from the above location.

If this is no longer the case where do i put my files?

or point me to instruction on the new version

Cheers

Rob

20 May 2006, 11:38 PM
#12
Kim avatar

Kim

Obaa-san

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

Post #12 by Kim

I am saying the language defines that you used before are obsolete for the page_Xs.

Open your Admin> Tools> Define Pages Editor and put your copy in and quit beating your head againast the wall.

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.