VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: conejo on November 22, 2013, 12:02:16 PM

Title: product->images[1]->displayMediaFull crash
Post by: conejo on November 22, 2013, 12:02:16 PM
Hello together,

Versions:
Joomla! 2.5.11
VM  2.0.24a

I´m working in override file my-template/html/com_virtuemart/category/mydefault.php
The code "product->images[0]->displayMediaFull(..." work fine.
If y try to access the second image "product->images[1]->displayMediaFull" crash the site.
I´m sure there are 2 images and the count is > 1.
interesting is that in the product details view works without any problem file (my template/html/com_virtuemart/productdetails/default_images.php)

I think there are a problem to access the images in the category view.

Many thanks,

Alejandro
Title: Re: product->images[1]->displayMediaFull crash
Post by: Maxim Pishnyak on November 22, 2013, 12:58:50 PM
You should allow using >1 images in category view html php file. Search forum for additional details.
Title: Re: product->images[1]->displayMediaFull crash
Post by: conejo on November 29, 2013, 12:08:45 PM
Hello Maxim,
sorry about the delay!
This works! Thanks a lot.

My problem is now that after a vm2 update this change will lost.
I would like to do this change in my overiveded file "my-template/html/com_virtuemart/category/mydefault.php".

Many thanks,
Alejandro