Forums / Templates, Stylesheets, Page Layout / Override not working for sidebox titles

Override not working for sidebox titles

Views: 1,021

Results 1 to 15 of 15
6 Feb 2011, 4:59 PM
#1
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Override not working for sidebox titles

I am a Zen Cart newbie.

I have followed the instructions at:

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

creating a new folder in the correct directory, copying the english.php file into the new folder and then amending the english.php file in the new folder in order to change the Titles on certain side boxes.

The changes are not relected on my website. However following further tests I can see that the software will apply the title changes if I edit the original english.php file which remains in its original location.

This is fine so far as producing results on the site now but I am concerned that if I do not get this right now I will pay at a later date when upgrading the software.

Is it me; Have I missed something obvious? Is there some sort of override setting in Admin that I need to select?

Using Zen Cart 1.3.9 on a GoDaddy hosting service.

With thanks

6 Feb 2011, 5:33 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Override not working for sidebox titles

The changes pretty much have to work if you're putting the english.php file in the proper folder (includes/languages/YOUR_TEMPLATE) and you have selected your custom template in Admin - Tools - Template Selection.

6 Feb 2011, 6:32 PM
#3
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Re: Override not working for sidebox titles

Hi stevesh,

Thanks for replying.

I think this has to be me. I must have missed something!

In my Admin/Tools/Template selection I see one Default Template Language for Classic Contemporary Green in the Classic Template Directory.

Should I have created an additional template language?

P

6 Feb 2011, 6:49 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: Override not working for sidebox titles

No. Creating a new template requires that you create a includes/templates/CUSTOM folder (where CUSTOM is the name of your template) and place a copy of template_info.php in that folder which has been edited to include your template name. You can copy the template_info.php file from includes/templates/classic to your custom folder and edit this line to the name of your template: $template_name = 'Classic Contemporary Green';

Zencart looks in all the folders under includes/templates for that file to populate the dropdown in Admin - Tools - Template Selection.

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

6 Feb 2011, 6:54 PM
#5
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Re: Override not working for sidebox titles

Appreciate the speedy response Steve.

Will review tutorials and let u know how I get On.

Many thanks; have a nice day

P:smile:

6 Feb 2011, 8:25 PM
#6
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Re: Override not working for sidebox titles

Hi Steve,

That's done the trick. Now I can edit the custom/english.php file and see the chnages come thro on the website.

Had to Reset the layout boxes controller and unfortunately don't have the Classic Contemporary Green look any more! Bit more effort required to tidy it all up again.

Have I produced the results you would have expected.

Thanks in advance,
P

6 Feb 2011, 8:45 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Override not working for sidebox titles

If you want to start your custom template from the Classic look, you need to copy all files in /classic/ folders to your new template folders. Then you can edit from there.

6 Feb 2011, 9:16 PM
#8
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Re: Override not working for sidebox titles

OK thanks gjh42,

I'll give it a go and let u know how I get on.

P

6 Feb 2011, 9:25 PM
#9
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Re: Override not working for sidebox titles

Terrific Guys!

Here I am sitting in good old Whaley Bridge just outside Manchester, UK thinking I'd got myself into a right mess and wondering why I'd bothered.

Thanks a million all for your assistance. Makes learning a fun experience.

Regards, P :clap:

7 Feb 2011, 11:23 AM
#10
kobra avatar

kobra

Black Belt

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

Re: Override not working for sidebox titles

vgjh42:

If you want to start your custom template from the Classic look, you need to copy all files in /classic/ folders to your new template folders. Then you can edit from there.

I do not believe that gjh42 meant that literally, it sould read more along the lines of

If you want to start your custom template from the Classic look, you need to copy any file you need to edit into the /classic/ folders to your new template folders. Then you can edit from there.

Reason is that when you have to upgrade, only those files you actually eidited will need to be checked

Zen-Venom Get Bitten

7 Feb 2011, 12:05 PM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: Override not working for sidebox titles

Yes I did mean it. If you want a custom template based on Classic, you need to copy all /classic/ files to your custom template folders. Any files you leave out will not be made up with /classic/ versions, but with /template_default/ versions, which will not give the Classic starting point.

You should not copy any other files to custom template folders unless you are editing them.

7 Feb 2011, 1:06 PM
#12
kobra avatar

kobra

Black Belt

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

Re: Override not working for sidebox titles

gjh42

ALL CLASSIC FILES!!!!

I mis reaqd as ALL files - - thinking all template_default files

Zen-Venom Get Bitten

7 Feb 2011, 5:17 PM
#13
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Re: Override not working for sidebox titles

Thanks for the discussion on this.

I have copied all files from /classic/

which includes css and images folders and their contents.

Am I on the right lines there?

7 Feb 2011, 6:29 PM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: Override not working for sidebox titles

Yep, now edit them to your liking.
There are some /classic/ folders in /includes/languages/ and /includes/modules/ as well, and you may want to copy those - you will be needing to make custom copies of most if not all of them anyway.

7 Feb 2011, 6:58 PM
#15
philipb avatar

philipb

New Zenner

Join Date:
Feb 2011
Location:
Manchester, UK
Posts:
55
Plugin Contributions:
0

Re: Override not working for sidebox titles

OK dun that. Thanks gjh42