VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: franconeroddi on June 13, 2017, 07:09:11 AM

Title: Delete button in the shopping cart and button "Product details"
Post by: franconeroddi on June 13, 2017, 07:09:11 AM
Good morning to all boys  :),
I have a problem that I just can not solve: how to delete the "In Cart" and "Product Details" buttons in the product view of a category.
Use VM 3.2.2 and Joomla 3.7.0
Thank you very much
Title: Re: Delete button in the shopping cart and button "Product details"
Post by: jenkinhill on June 13, 2017, 13:35:37 PM
Assuming that you use the default VirtueMart templates, you can edit and override components/com_virtuemart/sublayouts/products.php to remove add to cart and product details links  or use a css override to hide them:

.vm-details-button {
display: none;
}
.addtocart-bar {
display: none;
}

You should not be using Joomla 3.7.0 as it is known to have a critical security issue. https://www.joomla.org/announcements/release-news/5705-joomla-3-7-1-release.html
Current Joomla version to use is 3.7.2