Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Created a new product type, Images no longer work

Created a new product type, Images no longer work

Started by dannyvarley on 6 Mar 2015, 4:57 PM · Views: 767

Results 1 to 5 of 5
6 Mar 2015, 4:57 PM
#1
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Post #1 by dannyvarley

Hi There,

I have created a new product type and for some reason now the image links do not seem to work. As you can see on the following page:

http://kitchen-warehouse.com/index.php?main_page=product_doors_info&cPath=13_14&products_id=6

When you click on the main image, it simply links back to /# whereas it should open a lightbox, also the additional images dont display.

Whereas if you look at a link where I use the product general:

http://kitchen-warehouse.com/index.php?main_page=product_info&cPath=1_24_30_33&products_id=89

The image opens fine.

What have I done wrong?!

Thanks,
Daniel

7 Mar 2015, 11:05 AM
#2
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Post #2 by dannyvarley

Okay, So this is driving me nuts now.

It doesn't seem to be the template file as I have swapped it out for the normal template file that is working, the images still dont show and the light-box still doesn't work

No Additional images seem to be loading up.

It seems to be something missing from when I have created the new product type I believe but I cannot be sure what!

7 Mar 2015, 2:58 PM
#3
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Post #3 by dannyvarley

The additional images do seem to work actually, as seen here:
http://kitchen-warehouse.com/index.php?main_page=product_doors_info&cPath=13_19&products_id=123

But they are displaying incorrectly. This must be something to do with the javascript? not loading correctly on that product types page? Again im not sure all im doing is guessing.

Also not sure about posting one after another on the forums.

7 Mar 2015, 3:16 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #4 by mc12345678

The template appears to be heavily built on say JavaScript or Ajax or something more than just HTML display code. Even the additional images of the "working" product had Uris like the new product type. Further there is more in display of additional images than just the tpl_product_info_default or related file. As for the light box, typically there is an additional JavaScript file that is loaded into the applicable includes/modules/pages folder or a sub folder of that. Check out the differences between includes/modules/pages/product and the directory for your new product type. There also may be an observer/notifier action missing from your template related files to know what to do when.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

10 Mar 2015, 11:09 AM
#5
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Post #5 by dannyvarley

The wonderful lat9 fixed my issue, the problem was:

Essentially that template-specific module was loading the ElevateZoom processing on the product-info pages … that it knew about! The fix was changing the file /includes/modules/template/js_header.php in 3 places (each marked with //bof and //eof sections).

Daniel