Re: Dawn 2.0 change add to cart button action

Solved

Dawn 2.0 change add to cart button action

ss_dev
Visitor
2 0 0

My add to cart button opens pop up cart. I want to set it to go to cart page. I am using dawn 2.0 @Guleria 

Accepted Solution (1)

zahid
Shopify Partner
26 4 5

This is an accepted solution.

Hey,

 

It's relatively straightforward.

 

Just go to Online store -> themes -> actions -> edit code

Then go to Assets -> product-form.js

 

There you will see 

this.form.addEventListener('submit', this.onSubmitHandler.bind(this));

You will need to comment this out like 

//this.form.addEventListener('submit', this.onSubmitHandler.bind(this));

 

Cheers!

Creator of StoreView, an app that lets you view your customers' journey as they interact with your store.

View solution in original post

Replies 2 (2)

zahid
Shopify Partner
26 4 5

This is an accepted solution.

Hey,

 

It's relatively straightforward.

 

Just go to Online store -> themes -> actions -> edit code

Then go to Assets -> product-form.js

 

There you will see 

this.form.addEventListener('submit', this.onSubmitHandler.bind(this));

You will need to comment this out like 

//this.form.addEventListener('submit', this.onSubmitHandler.bind(this));

 

Cheers!

Creator of StoreView, an app that lets you view your customers' journey as they interact with your store.
ss_dev
Visitor
2 0 0

Thank you so much!!