If you set the customX fields for a product and you change the JSP file to display them, when you add a product in the cart you lose the customX fileds information.
You must change updateBasketWithStockInfo method.
You must change updateBasketWithStockInfo method.