Welcome, Guest
Username: Password: Remember me

TOPIC: Remove Virtuemart "View Details"

Remove Virtuemart "View Details" 2 years 8 months ago #7378

Is there a way to remove the Virtuemart "View Details" in the site?
Ideally I don't want a user to click thru to another page - I just want them to stay on the product page (because it is just going to be used as a catalogue - not as a shopping cart).

See here for example: creativedev2.co.za/SilverSpoon/index.php...ory_id=27&Itemid=679
The administrator has disabled public write access.

Re: Remove Virtuemart "View Details" 2 years 8 months ago #7382

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Dear Samantha,

You can remove this code below:
echo JHTML::link($product->link, JText::_('TPL_OT_VIEW_DETAIL'), array('title' => $product->product_name,'class' => 'product-details'));

around line 270 in default.php (templates/ot_xxx/html/com_virtuemart/category)

Regards
The administrator has disabled public write access.

Re: Remove Virtuemart "View Details" 2 years 8 months ago #7387

Brilliant! that worked! Thank you!
Last question.. On the etail page, it shows "Price per Unit (KG):" How do I get rid of that?
The administrator has disabled public write access.

Re: Remove Virtuemart "View Details" 2 years 8 months ago #7391

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

You should remove this code from file templates/ot_kitchen/html/com_virtuemart/productdetails/default_showprices.php
echo "<strong>" . JText::_('COM_VIRTUEMART_CART_PRICE_PER_UNIT') . ' (' . $this->product->product_unit . "):</strong>";

Regards
Last Edit: 2 years 8 months ago by trungdt.
The administrator has disabled public write access.
Time to create page: 0.163 seconds