If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / version 2 to 2.10 code issue?

version 2 to 2.10 code issue?

Started by delia on 19 Feb 2026, 7:16 PM · Views: 938

Results 1 to 4 of 4
19 Feb 2026, 7:16 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #1 by delia

In zen cart 2.00, I have an addition to the tpl_product_info_default.php to include the additional images in different places according to the database config switch.

 if (ADDITIONAL == 'false') {
	require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php');
}

Works fine in 2.00 on php 8.3.
Does not work in 2.10 on php 8.3.

I've checked every parameter/element I can think and cannot figure out why there would be a difference.

Anybody got a clue?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

19 Feb 2026, 7:50 PM
#2
swguy avatar

swguy

Administrator

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

Post #2 by swguy

"ADDITIONAL" is not a constant defined by Zen Cart - are you sure you have defined it yourself?

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.

20 Feb 2026, 3:09 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #3 by delia

swguy:

"ADDITIONAL" is not a constant defined by Zen Cart - are you sure you have defined it yourself?

of course - as I said it works in 2.00.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

20 Feb 2026, 3:24 PM
#4
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #4 by delia

that said I figured it out. true and false are supposed to be capitalized. My created sql statement after creating the 2.00 was not correct. Thanks for responding!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo