I have started to work with a SS 3.1 / Swipestripe install and I am wondering whether there is a pre-existing inventory management module for swipestripe? I'm not after anything fancy, simply a stock level which decrements with each purchase of a product is made - and perhaps the ability to set a product to sold out/out of stock when a product's stock level hits zero.
Surprised there was no ideas for such a common issue. However...
To resolve this I created my own field in the product dataobject called stock. Then, to decrement the product stock levels upon successful purchase of said product, I simply extended Payment_Extension and added the function "onAfterWrite" to my dataextension. Within onAfterWrite, I applied straight forward logic to decrement each products stock level:
Really pleased that you could achieve this without too much trouble! That is the intention with SwipeStripe - a module that is easy to extend and customise for your needs. If you ever make this work into a module please let me know.
There was a stock management feature of the previous version however it was stripped out and hasn't been pulled into it's own module yet, it worked on the basis that stock reduced once an item was in a cart but I think a lot of people would like the approach you have used.
Any chance to get Stock Level available again ? I feel like one of the main function of a shop is to control the stock level, i been totally disappointed setting up all the shop to realize i got to tweak the code to have a simple function like stock level. I see no documentation about it neither so i'm stuck with a piece of software i can't use on my production site.