Working raw version (need to fix the deletion of a sold out stock, it is
removed, shouldn't be)