VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: kobiavr on January 09, 2012, 11:56:50 AM

Title: direct link to image
Post by: kobiavr on January 09, 2012, 11:56:50 AM
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 ?
Title: Re: direct link to image
Post by: JtouchMobile.com on January 10, 2012, 05:25:14 AM
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); ?>

;)
Title: Re: direct link to image
Post by: kobiavr on January 17, 2012, 08:12:14 AM
thank you !!!