If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [fixed] Template selection problem - 1.5.0BETA

[fixed] Template selection problem - 1.5.0BETA

Locked

Started by clydejones on 26 Jul 2011, 9:35 PM · Views: 2,365

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
26 Jul 2011, 9:35 PM
#1
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #1 by clydejones

I just installed 1.5.0 beta on my testing site.

Is there any information on installing additional templates?

The template shows up as expected in admin -> tools -> template selection

However, it can't be selected it keeps reverting to the classic green template.

Any help appreciated.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Jul 2011, 10:38 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,762
Plugin Contributions:
56

Post #2 by swguy

Clyde, do you have includes/templates/YOUR_TEMPLATE/template_info.php ?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Jul 2011, 10:42 PM
#3
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #3 by clydejones

swguy:

Clyde, do you have includes/templates/YOUR_TEMPLATE/template_info.php ?

Yep, its one of my own templates so I know everything is there.

The template shows up in admin -> tools -> template select

The problem is that when I select the template and click the update button, nothing happens it just reverts to the classic green template.

I can also click on the preview button and template image will display.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Jul 2011, 11:01 PM
#4
kuroi avatar

kuroi

Totally Zenned

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

Post #4 by kuroi

Clyde,

It's a small bug. A quick solution is to change line 49 of YOUR_ADMIN/template_select.php to```php
$sql = $db->bindVars($sql, ':id:', $_GET['tID'], 'integer');

Kuroi Web Design and Development | Twitter

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

26 Jul 2011, 11:18 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #5 by clydejones

kuroi:

Clyde,

It's a small bug. A quick solution is to change line 49 of YOUR_ADMIN/template_select.php to```php
$sql = $db->bindVars($sql, ':id:', $_GET['tID'], 'integer');



Works just fine, thanks.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 Jul 2011, 8:23 PM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

Fix included in newly posted zip.

.
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.