VirtueMart Forum

VirtueMart 2 + 3 => Product creation => Topic started by: Fullmarketing on March 08, 2012, 13:58:13 pm

Title: Small Product Icon as a Product link?
Post by: Fullmarketing on March 08, 2012, 13:58:13 pm
Hey Community!   :)

First, we want that the small 90x90 Product Icons become a product link. Currently a Lightbox opens.  --> http://lws-ladeneinrichtungen.de/friseureinrichtungen-shop

Secondly, we want that the PDF Document (pdf Icon) opens in a new blank page.   --> http://lws-ladeneinrichtungen.de/friseureinrichtungen-shop/hocker-dee-detail

We use VirtueMart 2.0.2 & Joomla 2.5

Thanks for your help!

Andi
Title: Re: Small Product Icon as a Product link?
Post by: TopPretender on March 15, 2012, 16:55:52 pm
Hi,

changing the image link from open the image to open the product, you will need to modify the category php code

Look for a line similar to this with your template:
Code: [Select]
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');

to the following:
Code: [Select]
echo JHTML::link($product->link, '<img src="'.$product->images[0]->file_url.'">', array('border' => '0','title' => $product->product_name,'class' => ''));