Posted on 08/05/2017 19:06:43
Hi Mikkel
I think that is what is available. EcomLastAddedProduct contains only the last added product - so if you use add multi, they all get added but only the last one as last added product.
In our own more recent implementations we add to cart with ajax and can respond to that in the UI since it all happens without reloading - in your ajax return of the cart, you can see what is in the cart so if products are out of stock, and you still show an add to cart button, you can verify the check when they get back. But if you have configured your solution to not support adding products out of stock to the cart, you should also remove the buy option.
An alternative to this, is to add your own server side logic using notification subscribers.
BR Nicolai