News:

Looking for documentation? Take a look on our wiki

Main Menu

Product image in category - PopUp on mouseover

Started by Tommi, November 08, 2012, 20:48:51 PM

Previous topic - Next topic

Tommi

It's also processed, but it does not work.

I need to process here:com_virtuemart/views/category/default.php - line 240.

<?php /** @todo make image popup */
                    echo $product->images[0]->displayMediaThumb ('class="browseProductImage" border="0" title="' . $product->product_name . '" ', TRUE, 'class="modal"');
?>

But I do not know. Once you enter the same code I get an error.

Can you help me?

Tommi

Hi bytelord,
I Have a problem: When

<?php /** @todo make image popup */
                    echo $product->images[0]->displayMediaThumb ('class="browseProductImage" border="0" title="' . $product->product_name . '" ', TRUE, 'class="modal"');
?>

When you edit the code and add an image display, throws me an error.

echo '<span>' . $image->displayMediaFull('class="product-image"', false, 'class="modal"', true, true) . '</span>

Can you help me?

Thanks.

Tommi

I added the code:

<?php /** @todo make image popup */
                    echo $product->images[0]->displayMediaThumb ('class="browseProductImage" border="0" title="' . $product->product_name . '" ', TRUE, 'class="modal"');
            
               echo '<a class="thumbnail" href="#thumb">' . $image->displayMediaThumb('class="product-image-medium"', false, 'class="modal" href="#thumb"', true, true) . ''; //'class="modal"'
      echo '<span>' . $image->displayMediaFull('class="product-image"', false, 'class="modal"', true, true) . '</span></a>';
     ?>

And errors is here: http://goraslovakia.tommi.sk/index.php?option=com_virtuemart&view=category&virtuemart_category_id=87&Itemid=490

bytelord

Hello,

Because you broke some PHP brackets. Place it at the right spot, but as i see you fixed it already.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Tommi

Yes, I did. Thanks for your help.

I have one problem, but I do not know whether it is solvable. Can you look at it?

http://forum.virtuemart.net/index.php?topic=110032.0