Fix timing issue with addtocart: Implement configurable timeout and retry 5 times until stock is available