If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading to 2.x.x / Substract Stock Option Not Working

Substract Stock Option Not Working

Started by chuckrey on 20 Feb 2025, 2:25 AM · Views: 1,974

Results 1 to 5 of 5
20 Feb 2025, 2:25 AM
#1
chuckrey avatar

chuckrey

Zen Follower

Join Date:
Aug 2020
Location:
Richarson
Posts:
160
Plugin Contributions:
0

Substract Stock Option Not Working

This is a fresh install of 2.1.0. Using Classic Responsive, Installed EP PHP 8.2

I do not need to use the Options Stock manager, however I appreciate that it is there as it will likely come in handy. I had it switched to disabled then found that the shopping cart would not allow me to add products as it gave me a 500 error. As soon as I enabled it all was good. However, I want to remove the "back-ordered" display on the shopping cart page and the only way I was able to accomplish this was to add stock to all products, which is fine although I am hoping there is a switch. The other issue is I am trying to toggle the "Subtrack Stock Option" under the Confgure > Stock menu and when I click to edit and change from true to false, nothing happens. It stays true. I then checked the error log and received: products_options_stock_observer: STOCK_CHECK: false, STOCK_ALLOW_CHECKOUT: true, STOCK_LIMITED: true. I am not sure what this is telling me. Any help would be appreciated. Thank you!

20 Feb 2025, 10:09 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Substract Stock Option Not Working

I want to remove the "back-ordered" display on the shopping cart page ...

Go to Admin > Configuration > Options Stock Manager > Stock Status Display: Show Messages?

You can turn these on or off.

I am trying to toggle the "Subtrack Stock Option" under the Confgure > Stock menu and when I click to edit and change from true to false, nothing happens. It stays true.

This is how POSM works.

https://docs.zen-cart.com/user/running/stock/#what-about-variant-stock

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

20 Feb 2025, 12:48 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Substract Stock Option Not Working

If you don't need a stock-manager for your store, I'll suggest you remove POSM completely, i.e. navigate to the admin's Modules / Plugin Manager, select the line for POSM and click the Uninstall button.

20 Feb 2025, 2:29 PM
#4
chuckrey avatar

chuckrey

Zen Follower

Join Date:
Aug 2020
Location:
Richarson
Posts:
160
Plugin Contributions:
0

Re: Substract Stock Option Not Working

chuckrey:

This is a fresh install of 2.1.0. Using Classic Responsive, Installed EP PHP 8.2

I do not need to use the Options Stock manager, however I appreciate that it is there as it will likely come in handy. I had it switched to disabled then found that the shopping cart would not allow me to add products as it gave me a 500 error. As soon as I enabled it all was good. However, I want to remove the "back-ordered" display on the shopping cart page and the only way I was able to accomplish this was to add stock to all products, which is fine although I am hoping there is a switch. The other issue is I am trying to toggle the "Subtrack Stock Option" under the Confgure > Stock menu and when I click to edit and change from true to false, nothing happens. It stays true. I then checked the error log and received: products_options_stock_observer: STOCK_CHECK: false, STOCK_ALLOW_CHECKOUT: true, STOCK_LIMITED: true. I am not sure what this is telling me. Any help would be appreciated. Thank you!

Thank you very much for your response. I greatly appreciate your help

20 Feb 2025, 2:32 PM
#5
chuckrey avatar

chuckrey

Zen Follower

Join Date:
Aug 2020
Location:
Richarson
Posts:
160
Plugin Contributions:
0

Re: Substract Stock Option Not Working

lat9:

If you don't need a stock-manager for your store, I'll suggest you remove POSM completely, i.e. navigate to the admin's Modules / Plugin Manager, select the line for POSM and click the Uninstall button.
This is better yet. Just did. Thank you very much for your help