VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: bakefrank on March 06, 2013, 14:33:09 PM

Title: Remove the product details link from a category listing
Post by: bakefrank on March 06, 2013, 14:33:09 PM
I have created a website here

http://gruverscafeandcatering.com/index.php

login
un:tester
pw:test1@1

I've got a virtuemart page setup with category display:

http://gruverscafeandcatering.com/index.php/breakfast

Since I'm creating a menu style layout, I want to remove the link to the product details page.

I saw a post here in my search for answer:
http://forum.virtuemart.net/index.php?topic=108752.0

which says you can modify the css.

a.product-details {
     display: none;
}


I'm not sure what css that file would be?

Can some one elaborate?






Title: Re: Remove the product details link from a category listing
Post by: PRO on March 06, 2013, 21:34:10 PM
display:none ON LINKS?   horrible solution

http://forum.virtuemart.net/index.php?topic=97744.0



Product Details Link with anchor "Product Details"
<?php echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' =>
'product-details'));?>


http://forum.virtuemart.net/index.php?topic=90935.0
Title: Re: Remove the product details link from a category listing
Post by: bakefrank on March 07, 2013, 15:45:35 PM
Thank you i changed:
public_html/components/com_virtuemart/views/category/tmpl/default.php

Line 266
<?php echo JHTML::link ($product->link, $product->product_name); ?>

to

<?php echo ($product->product_name); ?>

and it worked great. I know I will create com_content overides for this in the future instead of changing core filew.
If I dont I will lose this change when updating.