Display Total Stock Number

  • Posts: 143
  • Thank you received: 9
6 years 3 weeks ago #304258

-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.3
-- PHP version -- : 7.x.x

Hi,

How I can display the total Stock number, not the remaining stock, in the product details page?

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 83486
  • Thank you received: 13507
  • MODERATOR
6 years 3 weeks ago #304262

Hi,

There is no place where that information is stored. Only the current stock of the product is stored.
So if you really would like to display that, it would require editing a view file of the product page and add custom PHP code to:
- load the confirmed/shipped orders for that product
- add the quantity of the products in these orders to the current stock of the product which is already loaded on the page
- display that value
You'll need to have a developer work on that for you if you really want to do it. It's not just two or three lines of code.

The following user(s) said Thank You: ButterflyPixel

Please Log in or Create an account to join the conversation.

  • Posts: 143
  • Thank you received: 9
6 years 3 weeks ago #304301

OK thank you

Please Log in or Create an account to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum