News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove the product details link from a category listing

Started by bakefrank, March 06, 2013, 14:33:09 PM

Previous topic - Next topic

bakefrank

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?







PRO

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

bakefrank

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.