Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Override the tpl_modules_upcoming

Override the tpl_modules_upcoming

Locked

Views: 3,202

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
15 May 2007, 7:00 AM
#1
mrrcomp avatar

mrrcomp

New Zenner

Join Date:
Apr 2007
Posts:
68
Plugin Contributions:
0

Override the tpl_modules_upcoming

HI

I am attempting to override the above mentioned file. I followed to the best of my abilities the Tutorial"How do I set up the template overrides"

I created a folder called /includes/templates/hebrew/templates and place the updated tpl_module

I also added the hebrew template via the admin panel (however the classic shows as default).

The changes in the tpl file are not showing on the website...

Any suggestions?

:frusty:

Regards

15 May 2007, 7:43 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Override the tpl_modules_upcoming

I also added the hebrew template via the admin panel (however the classic shows as default).
In admin, did you go to tools, template selection,
change classic template to hebrew(nameofyourtemplate)?

15 May 2007, 8:01 AM
#3
mrrcomp avatar

mrrcomp

New Zenner

Join Date:
Apr 2007
Posts:
68
Plugin Contributions:
0

Re: Override the tpl_modules_upcoming

Hi Misty..

The only choice I have is a dropdown with only "Classic Contemporary Green" available.

15 May 2007, 8:18 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Override the tpl_modules_upcoming

mrrcomp:

Hi Misty..

The only choice I have is a dropdown with only "Classic Contemporary Green" available.
If you have created your own custom template, which includes copies of all the files in Classic folder..
then upload your new template folder, named hebrew,containing copies of Classic template files, to .. i.e.
/includes/templates/hebrew/
If you have correctly done this exercise..
then you should see your hebrew template appear via admin/tools/template selection option, drop down box...
YOU WILL NEED to adjust the template_info.php file to reflect
name of your new template i.e hebrew
BACKUP Classic template folder BEFORE you start copying/altering
anything...

15 May 2007, 7:01 PM
#5
afo avatar

afo

Totally Zenned

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

Re: Override the tpl_modules_upcoming

You don't actually have to copy all the files in all the /classic/ folders.

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

16 May 2007, 11:23 AM
#6
mrrcomp avatar

mrrcomp

New Zenner

Join Date:
Apr 2007
Posts:
68
Plugin Contributions:
0

Re: Override the tpl_modules_upcoming

Hi Afo

Wellll... I copied the files as you mentioned and created the hebrew folder under templates..

I put the tpl_modules_upcoming.php in the common directory

I picked the hebrew template from the admin but still its not showing on the site..

urggggggg....

Regards

but still its not showing the corrected version.

16 May 2007, 6:37 PM
#7
afo avatar

afo

Totally Zenned

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

Re: Override the tpl_modules_upcoming

I think I see your problem.

mrrcomp:

I created a folder called /includes/templates/hebrew/templates and place the updated tpl_module

The folder should be /includes/templates/hebrew. Try moving anything you have in /includes/templates/hebrew/templates/ to /includes/templates/hebrew/ and see if that helps.

27 May 2007, 5:26 AM
#8
mrrcomp avatar

mrrcomp

New Zenner

Join Date:
Apr 2007
Posts:
68
Plugin Contributions:
0

Re: Override the tpl_modules_upcoming

Hi Mary..

I moved everything as you suggested still the "upcoming" module is the default english one! urgggg!!!!

Regards

Meir

29 May 2007, 3:31 AM
#9
afo avatar

afo

Totally Zenned

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

Re: Override the tpl_modules_upcoming

Meir, did you create includes/templates/hebrew/template_info.php and edit it to give your template a name? You can copy the template_info.php from either the /classic/ or /template_default/ folders. This is what allows your template to be selected in the admin. If you can't select the template from the admin, the files won't be overridden.

10 Jun 2007, 4:32 AM
#10
mrrcomp avatar

mrrcomp

New Zenner

Join Date:
Apr 2007
Posts:
68
Plugin Contributions:
0

Re: Override the tpl_modules_upcoming

Hi Afo,
I have no problem picking the new template in the Admin...But still that template is stubborn and won't be overwritten....

Suggestions??

13 Jun 2007, 4:06 AM
#11
afo avatar

afo

Totally Zenned

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

Re: Override the tpl_modules_upcoming

I'm still a bit jetlagged :blink:, but it sounds like something's misplaced in the folder/file structure.

13 Jun 2007, 5:16 AM
#12
mrrcomp avatar

mrrcomp

New Zenner

Join Date:
Apr 2007
Posts:
68
Plugin Contributions:
0

Re: Override the tpl_modules_upcoming

Hi Mary..

Welcome home from where ever uyou got the jet lag! Hope you enjoyed yourself.

I certainly agree that something must be not in the right place but can't figure out for the life of me what where and why! :frusty:

Have tried several senarios but still nothing seems to effect the tpl file!

Thanks for everything

Meir

13 Jun 2007, 6:21 AM
#13
drbyte avatar

drbyte

Sensei

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

Re: Override the tpl_modules_upcoming

What exactly have you done?
Where can this be seen ?