News:

Support the VirtueMart project and become a member

Main Menu

How do I hide the "items in stock" box

Started by eddyport, July 31, 2015, 10:43:47 AM

Previous topic - Next topic

eddyport

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

hellorain

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.
Raincreatives - Virtuemart & Mobile Commerce Experts

Spiros Petrakis

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.
Joomla templates and extensions development
https://www.yourgeek.gr

Meton

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
Joomla!         3.6.5
VirtueMart     3.0.18