Author Topic: Virtuemart Stock showing Low and High instead of product quantity  (Read 181 times)

dummyjoomla

  • Beginner
  • *
  • Posts: 2
  • A beginner
Virtuemart Stock showing Low and High instead of product quantity
« on: September 11, 2020, 16:56:14 pm »
Hi, I am using virtuemart 3.8.4 and joomla 3.9.20.

Code: [Select]
<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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2996
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Virtuemart Stock showing Low and High instead of product quantity
« Reply #1 on: September 11, 2020, 17:55:19 pm »
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

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Virtuemart Stock showing Low and High instead of product quantity
« Reply #2 on: September 12, 2020, 06:25:53 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2996
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Virtuemart Stock showing Low and High instead of product quantity
« Reply #3 on: September 12, 2020, 09:11:59 am »
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.