Forums / Templates, Stylesheets, Page Layout / Newb Custom Template Troubles

Newb Custom Template Troubles

Started by bcolby99 on 14 Sep 2012, 3:20 AM · Views: 1,879

Results 1 to 20 of 22
14 Sep 2012, 3:20 AM
#1
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Newb Custom Template Troubles

Hello all - Newb question about custom templates. I moved our site ( https://www.baystatetoolsupply.com ) over to godaddy hosting and received all my website files, zipped up from my friend/designer. After working with Godaddy a little I have what you see there now. The custom template and logo are not showing up. The (correct) custom template file shows up in includes/templates/baystate-tool/images/scr_template_default.jpg and the (incorrect) stock template shows up in the includes/templates/template_default/images/scr_template_default.jpg.
Same thing with the custom logo, correct in the includes/templates/baystate-tool/images/baystate-tool-logo.png) while the incorrect in the include/template/template_default/images/logo.gif
In fact, it appears that most of the custom stuff is where they're supposed to be, but they are not showing up. Except for the blue-stars.png and red-stripes.png which you can see on the site, but are located the includes/templates/baystate-tool/images folder (?).

Should I copy/overwrite everything from the included/templates/baystate-tool/images folder to the included/templates/template_default/images folder? Also looks like the most of the custom .png files have dashes and not underscores. Re-name with underscore?

And the /templates/baystate-tool/images has an icons folder which has 4 files (actual Visa/MC/Amex/Discover card images) do I need to copy/overwrite to the /templates/template_default/image/icons folder?

Kind of long winded for my first post but feel I'm somewhat close to resolving and start adding items, etc

Thanks in advance,
Brad

14 Sep 2012, 4:50 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Newb Custom Template Troubles

Your source code shows that your baystate-tool template is active; therefore, any file which is in or under a /baystate-tool/ folder will override its counterpart in /template_default/. Never edit or replace the files in template_default with custom versions. That is what the custom template folders are for, and if you put the correct files in the correct places, they will get used by Zen Cart.

Dashes or underscores will both work, as long as you are consistent and use one or the other in a given name. A name with a dash is different than a name with an underscore, and they will not match.

14 Sep 2012, 9:45 PM
#3
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

Appreciate the Help! Yes, and like you said they are already in the /baystate-tool side of things and are still not showing. In Admin it is showing 2 templates downloaded in the template selection area under tools (classic contemporary green & Baystate Tool which is default). browser issues?

15 Sep 2012, 4:48 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Newb Custom Template Troubles

Have you copied /includes/language/english/header.php to your override template folder?

Also edited this line to reflect your image name?

define('HEADER_LOGO_IMAGE', 'logo.gif');

Zen-Venom Get Bitten

16 Sep 2012, 11:15 PM
#5
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

kobra:

Have you copied /includes/language/english/header.php to your override template folder?

Also edited this line to reflect your image name?

define('HEADER_LOGO_IMAGE', 'logo.gif');


The 1st reply above says (I think) to never copy files into the template_default folder. Everything looks correct on the /baystate-tool side of things, which goes back to the original question: should I just copy all of the /baystate-tool/includes/templates/baystate-tool/images to its template_default counterpart folder? Should I just start over with another cart software system? Of course, GoDaddy wants me to switch to their "Quick Shopping Cart"....I believe Zencart to be far superior, but I just need to get up and going quickly...
Thanks,
Brad
16 Sep 2012, 11:22 PM
#6
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

Maybe I'm missing something Kobra (apparently a brain), but can you just verify what needs to be copied to where so I'm sure.....I really don't want to mess up this mess anymore than need be. ROOKIE

17 Sep 2012, 12:06 AM
#8
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

Thanks for the info! This may be out of my scope of capabilities (can't be that bad can it?)...but I'm trying. So, basically, I should copy my /CUSTOM/includes/templates/baystate-tool/images into my /templates/template_default/images folder?

17 Sep 2012, 12:58 AM
#9
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

Except the other way around

17 Sep 2012, 1:06 AM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Newb Custom Template Troubles

No, there is no reason at all to copy images from your custom template folder to the template_default folder. If for some reason you are not seeing images which are in the active custom folder, putting them in template_default will at best do nothing and at worst mask whatever your underlying problem is and confuse you and helpers.

17 Sep 2012, 2:01 AM
#11
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

Ok...I need to go back to this. It seems like the easiest way, just want to be sure I'm doing correctly. Here is what you said and the actions I'm thinking you mean:

1.) Have you copied /includes/language/english/header.php to your override template folder?
I'm thinking you mean to copy the file you mentioned from the template_default/includes/language/english folder to my custom/includes/language/english folder?

2.) Also edited this line to reflect your image name?
Code:

define('HEADER_LOGO_IMAGE', 'logo.gif');

I'm thinking I should edit somewhere in my custom folder. Which dir again? Will a png file work there?

Am I on the right path in any of this?
Thanks again,
Brad

17 Sep 2012, 2:56 AM
#12
kobra avatar

kobra

Black Belt

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

Re: Newb Custom Template Troubles

copy the file you mentioned from the template_default/includes/language/english folder
template_default does not exist at that level
to my custom/includes/language/english folder?
That should be /includes/language/english/your_custom template folder
define('HEADER_LOGO_IMAGE', 'logo.gif');

I'm thinking I should edit somewhere in my custom folder. Which dir again? Will a png file work there?
header.php From /includes/language/english/ to /includes/language/english/your custom template folder

Zen-Venom Get Bitten

17 Sep 2012, 3:25 AM
#13
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

seems so freaking simple yet...not

17 Sep 2012, 3:34 AM
#14
kobra avatar

kobra

Black Belt

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

Re: Newb Custom Template Troubles

Did you read the tutorials I posted earlier??

Zen-Venom Get Bitten

17 Sep 2012, 4:22 AM
#15
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

Yes...I'm just having trouble looking through the FTP Manager to match the files and directories we are discussing....

17 Sep 2012, 11:59 PM
#16
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

so...to be clear...I am going to copy /includes/language/english/header.php to /includes/language/english/baystate-tool & overwrite. Then edit: define('HEADER_LOGO_IMAGE', 'logo.gif'); to my baystate-tool-logo.png in which directory? Thanks - Brad

18 Sep 2012, 12:01 AM
#17
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

GoDaddy wants me to supply my password to my database to fix the problem? Hmmmmm

18 Sep 2012, 12:44 AM
#18
gjh42 avatar

gjh42

Black Belt

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

Re: Newb Custom Template Troubles

Once you copy any file to your custom template override folder, you make all edits to that copy. Editing the original would be pointless, as only the custom copy will be used by Zen Cart.

I don't know what Godaddy thinks they can do by looking in your db; any work to be done for this issue will be in PHP files, or possibly ZC admin settings.

18 Sep 2012, 9:41 PM
#19
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

kobra:

Have you copied /includes/language/english/header.php to your override template folder?

Also edited this line to reflect your image name?

define('HEADER_LOGO_IMAGE', 'logo.gif');


Now I am following you.... I am copying header.php to my custom template, but in which file am I editing the define('HEADER_LOGO_IMAGE', 'logo.gif') to my baystate-logo.png file

Thanks again,
Brad
18 Sep 2012, 10:26 PM
#20
bcolby99 avatar

bcolby99

New Zenner

Join Date:
Sep 2012
Posts:
38
Plugin Contributions:
0

Re: Newb Custom Template Troubles

"header.php From /includes/language/english/ to /includes/language/english/your custom template folder"
There is not a folder called /includes/language/english/baystate-tool