The Sense theme doesn’t have a Theme.js file in the asset folder,
Currently when I add an item to cart, it updates the cart but stays on the same page. Would anyone know how I can redirect directly to the cart page once I click add to cart ?
The Sense theme doesn’t have a Theme.js file in the asset folder,
Currently when I add an item to cart, it updates the cart but stays on the same page. Would anyone know how I can redirect directly to the cart page once I click add to cart ?
Hi @pablo16 ,
Please go to assets > product-form.js file, find ‘this.cartNotification.renderContents’ and change code here:
Code:
window.location.href = '/cart';
Hope it helps!
problem solved, thanks !
Also it seems that the upload properties associated with the product form don’t get included in the redirect upon inspection. As a result we are redirected to the cart, but the cart itself only shows the base image and not the properties added to the image before sending to cart ?