VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: yureka on December 22, 2012, 15:32:56 PM

Title: small help
Post by: yureka on December 22, 2012, 15:32:56 PM
Hello all,
     I am new to virtuemart. From code I observed that this code shows the image. 
echo $product->images[0]->displayMediaThumb()

But I want image url.
echo $product->images[0]->link doesn't work... help me pls.. Thanks
Title: Re: small help
Post by: jenkinhill on December 22, 2012, 16:05:04 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: small help
Post by: bytelord on December 22, 2012, 16:44:41 PM
Assuming this is for category view,

So try

$product->images[0]->file_url
or
$product->images[0]->file_name

for thumb:
$product->images[0]->file_url_thumb

use JURI::root() if you want full url path ...

like $xxx = JURI::root() . $product->images[0]->file_url

You did not specify the exactly link :)

Regards