VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: eddyport on July 31, 2015, 10:43:47 AM

Title: How do I hide the "items in stock" box
Post by: eddyport on July 31, 2015, 10:43:47 AM
Hi all
I want to hide the box that shows items in stock on the product description pages
I am using Joomla 2.5 and VM 2.6.6
http://www.caymiaskin.com/index.php/component/virtuemart/cay-mia-range/ultra-40-detail?Itemid=0
Please help
thanks
Ed
Title: Re: How do I hide the "items in stock" box
Post by: hellorain on July 31, 2015, 14:34:12 PM
Hello,


In the current category template, comment this



                  <?php if (!VmConfig::get('use_as_catalog')){?>
                  <div class="paddingtop8">
                     <span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
                     <span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP') ?></span>
                  </div>
                  <?php }?>

Best Regards,
hellorain.
Title: Re: How do I hide the "items in stock" box
Post by: Spiros Petrakis on July 31, 2015, 22:13:08 PM
The simplest way is to add the following css
.product-in-stock {
  display: none;
}


check in your template parameters for a custom css field and put the code there.
Title: Re: How do I hide the "items in stock" box
Post by: Meton on August 01, 2015, 00:00:10 AM
In shopfront under configuration you can find the following option:

Product Listing
Show the product navigation    
Display stock level    
Show product customfields in browse views    
Show uncategorised parent products in search results and modules    
Show uncategorised child products in search results and modules    
Show products which are only in unpublished categories.    
Latest Products - Number of days to display    
Latest Products - Sort order of display

Kind regards,

Meton