DAWN THENE 2.0 Add to cart on collection page with ajax like it works in product single page

Solved
designrepo
New Member
18 0 0

Thank you very much my friend.!!!!!!!!!!!!!!!!!!!

0 Likes
Abhay117
New Member
1 0 0

I added code as per your guide.
but I found this error in the console.

Abhay117_0-1633684335037.png

 

0 Likes
cris88
New Member
2 0 0

Hello, really thanks so helpfull! But in my case doesn't work, i mean the button add to cart is present but once i click the button, it bring me to the product page. No add to cart here, can you help me? I copy your code, thanks

0 Likes
Guleria
Shopify Partner
1781 376 532

Hello @cris88 , @Abhay117 ,

How many other customization you already did in theme ?
If you did then first revert them and then try the code. Alternatively check the conflicts manually and try to fix them.

Thanks

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Buy me a coffee ☕ My PayPal
0 Likes
cris88
New Member
2 0 0

I just installed dawn, this is the first customisation. There is the button "atc" but it doens't work. CIf i click it, the product page will open.

0 Likes
aussievapestore
New Member
4 0 0

I am having the same issue, no previous customisation done on the theme.

0 Likes
aussievapestore
New Member
4 0 0

Is there a solution to this?

0 Likes
Guleria
Shopify Partner
1781 376 532

For those to whom this code is not working.

Once please check the comment day I made and check what version of Dawn was available on that day and what version of Dawn theme is available in these days.
If you find difference then maybe there is chance that theme author made a update in this version and the solution I provided is not compatible with new version. So I suggest just take the idea from my solution and implement it in the version you are using.

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Buy me a coffee ☕ My PayPal
0 Likes
Payal_6268
New Member
4 0 0

Remove "<product-form class="product-form">"  From the code. 

Also, redirect to detail page issue is because of the CSS. 

.card-wrapper .full-unstyled-link::after 
 
They added 100% height. Try to change it.
 
0 Likes