Jump to content

Stock Question


yggdrasil

Recommended Posts

In the docs it says the following:

 

Stock Control - Can be used if you have a specific quantity of an item available (for example servers) or a limited special offer product - tick to enable and enter a quantity remaining and WHMCS will stop orders when it reaches zero. When a stock controlled item is cancelled (either by cancellation request or clicking "Cancel Order" on an order) the stock level will automatically increase. However if a member of staff manually changes the product to cancelled or terminated status it will not re-add stock to the product.

 

So can someone explain how you reduce stock or change stock when you terminate an account manually? This seems like the numbers would be wrong, as I do terminate accounts manually as well. Example, a fraud order which was activated. The customer would not send a cancellation form, and someone in the staff would terminate the account manually.

 

Also, in v5 last time I tried to use the stock option for a product it showed the quantity available in the order forms. I can see this as useful for some products but not for others. Example, in some services I would like to use the stock options, for internal reasons and so it can't be ordered anymore when the stock is depleted, but I don't want customers to see the total number available.

 

I guess I have to edit the order forms for this?

Link to comment
Share on other sites

Use Hooks:AfterModuleTerminate to run a query that updates the stock quantity to +1.

 

This does not make any sense. Should not the automation system do this by its own because its logic to do so?

 

Hooks, API, etc, are there to customize things or do tasks which usually the software does not do. Not to fix bugs.

 

If you enable the stock option, it makes sense to decrease or increase the number when accounts are activated manually as well.

Link to comment
Share on other sites

Yep, I understand your point but sadly stock control is supposed to work in this way. The quantity doesn't change when you perform actions through the admin area. At least, like I said, you can quickly and easily solve this issue with a very simple action hook.

Edited by Kian
Link to comment
Share on other sites

as the feature description says

Stock Control - ......

However if a member of staff manually changes the product to cancelled or terminated status it will not re-add stock to the product.

 

If you apply manual action you need to use Action Hooks as Kian suggestion to increase the stock level

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated