How to cancel quantity check when adding product to cart?

  • Posts: 223
  • Thank you received: 26
  • Hikaserial Subscription Hikashop Business
5 years 8 months ago #295385

-- HikaShop version -- : 3.5.0
-- Joomla version -- : 3.8.10

Hi,
Regarding my previous [post] , i need to cancel or to disable hikashop to check his own stock, so i can trigger this by myself, as an example:

It is very possible to have this situation, to have a more or less stock in ERP then in Web site.
So if i have 300 stock in erp for product X and in web site i have stock 2, if i add 3 in cart, when this is happening, hikashop will show the message:
Too much quantity selected for product X

How can i get rid of this check?
A cron job to update the stock is not an option for this.

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

  • Posts: 81379
  • Thank you received: 13037
  • MODERATOR
5 years 8 months ago #295403

Hi,

Then I would recommend to not use the "quantity" field to store the stock of the product and leave it "unlimited".
Instead, create a custom field of the table "product" and enter the stock in that custom field.
That would be the simplest.

Another solution that might be worth looking at is this plugin:
www.hikashop.com/marketplace/product/109...rder-by-obsidev.html
It can allow you to allow for sales of out of stock products.

Otherwise, it would require complex modifications in the core and the views to remove completely the checks on the quantity. That will be difficult and hard to maintain so I can't recommend that.

The following user(s) said Thank You: oxido

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

Time to create page: 0.056 seconds
Powered by Kunena Forum