Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Disable image link to Product Details

Disable image link to Product Details 10 years 9 months ago #5549

Hi,

I want to disable the link form the product thumb on the category page. I do not want any links to the flypage. Is there a way I can achieve this?

Thanks,
KooTjoo
The administrator has disabled public write access.

Disable image link to Product Details 10 years 9 months ago #5551

Hi,

firstly there are quite a few code changes needed in templates/YOUR_TEMPLATE/html/com_virtuemart/category/default.php so I will give you some general pointers as to how .

But this is a complex file so I hope you have some technical knowledge - if not this is well outside our template support so you will need to contact us for paid help to do this.

first in the Plug-in Manager: Flexible VM2 Template plugin switch off the quick look etc

to remove the link from the image for each of the image displays you will need to remove the html link to the fly page and the quicklink a ref

example

on the list view of the default template

the code would look like this
<div class="FWBrowseListContainerOut productdetails-view">
	 		<div class="FlexibleListBrowseV1Picture width25 floatleft">
                <?php #echo JHTML::link($product->link, $product->images[0]->displayMediaThumb('class="browseProductImage"  border="0" title="'.$product->product_name.'" ',false,'')); ?>
				<?php echo $product->images[0]->displayMediaThumb('class="browseProductImage"  border="0" title="'.$product->product_name.'" ',false,''); ?>
                <!-- START quickLook Code -->
            <!--<div class="FlexibleProductHoverShadow" on-click="document.location.href = '<?PHP echo JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id );?>'">-->
 
 
             <?php if ($params->get('category_quicklook',1)) { ?>
             	<div class="FlexibleProductHoverShadowButtons">
             	<a class="FlexibleProductHoverShadowQUICK" title="<?php echo $product->product_name; ?>" rel="facebox" rev="iframe|550|900" href="<?PHP echo JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&tmpl=component&flexiblelayout=quicklook&virtuemart_category_id=' . $product->virtuemart_category_id);?>"></a>
             	</div>
            <?php } ?>
 
           <!-- </div> -->
            <!-- FINISH quickLook Code -->	
 
 


then remove the product details link

but as I say - this is outside our support - but this will work if you do it on all views and what ever template variation your using

cheers
Last Edit: 10 years 9 months ago by John.
The administrator has disabled public write access.
Time to create page: 0.089 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo