Well, I’m still having issues… I implemented the code in my funtions.php of the Unicon theme I’m using and it doesn’t work. Still deducting 1 of the stock.
I tried implementing it in the functions.php of the plugin and it doesn’t work either.
I’m not very firm with coding, but I have an idea, what could be wrong.
In your code you are using three times = and in most other functions in the plugin they only use two times =
Could that be an issue?
I have the same issue and tried implementing your code, but I’m not sure at which in the .php I should put it.
Could someone advice me, which line would be suitable?