Redirect to cart page on after I click add to cart button - Sense Theme

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!

1 Like

problem solved, thanks !

1 Like

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 ?