News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart Stock showing Low and High instead of product quantity

Started by dummyjoomla, September 11, 2020, 16:56:14 PM

Previous topic - Next topic

dummyjoomla

Hi, I am using virtuemart 3.8.4 and joomla 3.9.20.


<div class="instock">
  <p><label style="color: #434343;text-transform: uppercase;font-weight: 700;">In Stock:</label> <?php echo $this->product->product_in_stock ?></p>
<>


I am currently having this in my product details page. I am trying to make it show "LOW" when the quantity is below 50 and show HIGH when the quantity is > 50 instead of showing the quantity number. Is this possible? I tried to search everywhere and I couldn't seem to find any solution online. Appreciate your help.

Jörgen

This is kind of standard in default template. Check template files.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

dummyjoomla

Hi Jörgen,

I cannot seem to find anything related to what I want. I wanted the show the word "LOW" and "HIGH" instead of the quantity number.


Jörgen

It is there. Virtuemart demo:
http://demo.virtuemart.net/headpiece

What template are You using ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.