VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: eddyport on June 29, 2015, 14:02:10 PM

Title: How to hide "Items in stock" box
Post by: eddyport on June 29, 2015, 14:02:10 PM
Hi
Can i hide or disable the items in stock box on all product pages?
http://www.caymiaskin.com/index.php/component/virtuemart/cay-mia-range/dab-detail?Itemid=0
Thanks
Earl
Title: Re: How to hide "Items in stock" box
Post by: jenkinhill on June 29, 2015, 14:58:29 PM
As it is a commercial template you could edit the template overrides being used, but easiest solution is to use css. If you used Firebug you could work this out in about 20 seconds!  http://forum.virtuemart.net/index.php?topic=116620.0

CSS override:    .product-in-stock { display: none; }
Title: Re: How to hide "Items in stock" box
Post by: Meton on July 06, 2015, 23:01:09 PM
As Jenkinhill stated you can change your stylesheet row 513 in present-style-1.css.

.product-in-stock {
    background-color: #e6e6e1;
    color: #859c0e;
    display: none;
}

Please be aware hiding a element does not remove it. Google will still index the page without the css. If you want to firmly remove it via your templates.

Kind regards,

Meton
Title: Re: How to hide "Items in stock" box
Post by: jenkinhill on July 06, 2015, 23:44:23 PM
Quote from: Meton on July 06, 2015, 23:01:09 PM
As Jenkinhill stated you can change your stylesheet row 513 in present-style-1.css.

NO. That code should be used in a css override so it does not get overwritten duing an update. Updates are issued for templates as well as other extensions.