uWebshop / -INACTIVE-uWebshop-Core

[INACTIVE] The source of the uWebshop E-Commerce module for Umbraco
MIT License
12 stars 14 forks source link

Unable to save nonzero stock on product #90

Open DejanMilicic opened 8 years ago

DejanMilicic commented 8 years ago

I am using build created from DEV branch, installed via local nuget package I created after building DEV branch. In Umbraco backend, I open product for editing, then go to Price tab and set Stock to some nonzero value (e.g. 5, 77, ...) and save. Umbraco reports that product is successfully saved. However, stock seems to be zero after saving. This occurs for all products in the store.

Is there any store-wide setting that needs to be set in order to correct this behavior?

DejanMilicic commented 8 years ago

Update on this. I checked uWebshopStock table, and I basically can see each of my attempts to set stock as one row in this table. However, "nodeid" column conains ZERO for all rows. After I manually populated product node ID (it was 1151 for this concrete produt) in one of the rows, and opened product for editing, I can now see correct stock value which conforms to the value I populated manually.

DejanMilicic commented 8 years ago

Update # 2 : After manually setting nodeid in uWebshopStock and achieving stock greater than zero, each subsequential save via Umbraco resets this value to zero by setting stock column to zero.