Silverstripe Version: 4.3.3
SilvershopVersion: 3.0.0
silvershop/stock: dev-master
I have trouble to get silvershop/stock to work.
I was able to install the module. I was able te create a ware house. I did add quantity for products. The problem that I am facing is that the stock won´t get decremented. I found out that ProductSockExtension
has a methode decrementStock()
that should handle that. If i set a breackpoint to there everything looks good to me. This is what warehouse looks before it gets reduced:
This is how it looks afterwards:
The only difference i can spot is that quantity is a string before it gets decremented. Afterwards it is an int. Quantity is defined as Varchar. But i think it schould be possible to store an Int into a DBVarchar field.
So to me it looks as if it just wouldn´t write to the database. I even looked at the write methode if i can find out if I have an error there that won´t be showen.
Does this module work for others? Is there a config that has to be set to make that work? As I understand the docks i´d say no. Any ideas why this won’t write to the db?