adds registerCallback for addToCart