fix shopping-cart ajax functions