Author Topic: Hide available stock  (Read 106 times)

micropalla

  • Jr. Member
  • **
  • Posts: 102
Hide available stock
« on: July 20, 2022, 15:35:58 pm »
I ask to template creator if he can fix it.

Next question. Is there a way to hide the number of items a customer can buy?
Do I need to edit the code or maybe there is a switch for situations like this?
As you can image the canva that can be sold is is just one.

Thank you

micropalla

  • Jr. Member
  • **
  • Posts: 102
hide available stock
« Reply #1 on: July 20, 2022, 16:33:47 pm »
I've found this but  still are visible + and -

.quantity-box .quantity-input, .quantity-box .quantity-controls {
  display: none;
}

micropalla

  • Jr. Member
  • **
  • Posts: 102
Hide available stock
« Reply #2 on: July 20, 2022, 16:51:21 pm »
It could also be enough not to allowed to buy two items if there is only 1 i stock but i don't know why even if only 1 is in stock VM allows you to buy 2 or more...
Maybe some configuration i am missing?

micropalla

  • Jr. Member
  • **
  • Posts: 102
Hide available stock
« Reply #3 on: July 20, 2022, 16:54:48 pm »
OK just used the "maximum quantity that can be bought" field. Don't know if it is the right solution but it works.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3881
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Hide available stock
« Reply #4 on: July 20, 2022, 21:26:24 pm »
No that is not right.
In vm configuration you will find options on how to deal with ordered items and stock.
This does not hide stock, but decides how vm deals with out of stock ordering.

Hiding the available stock could be done with css, check your template for the right css.

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