News:

Looking for documentation? Take a look on our wiki

Main Menu

direct link to image

Started by kobiavr, January 09, 2012, 11:56:50 AM

Previous topic - Next topic

kobiavr

in vm1 i add this code to get img url
<img src="<?php echo $product_full_image ?>">
and this:
<img src="/components/com_virtuemart/shop_image/product/<?php echo $product_thumb_image ?>">

how can i do it in vm2 ?

JtouchMobile.com

open: /components/com_virtuemart/views/productdetails/tmpl/default.php

<?php // List all Images
         foreach ($this->product->images as $image) {
            echo $image->displayMediaThumb('class="product-image"',true,'class="modal"',true,true); //'class="modal"'
         } ?>

or

<?php echo $this->product->images[0]->displayMediaFull('class="product-image"',false,"class='modal'",true); ?>

;)
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

kobiavr