Adding the "Add to Cart" button to collection page problem [DEBUT THEME]

Solved
Highlighted
Excursionist
14 0 1
Went. how do I make only a Pop-up appear when it adds the customer to the cart and only puts it directly in the cart?
0 Likes
Highlighted
Shopify Expert
3553 543 844

For that you have to change in Js code and you need Js code knowledge. you can find your add to cart Js code in Asset->theme.js file and find popup code where but ts difficult to adjust on collection page grid then you have to make add to cart with ajax on collection page also.

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
1 Like
Highlighted
Excursionist
14 0 1
I understand. I have no knowledge in the code. :(
0 Likes
Highlighted
Shopify Expert
3553 543 844

If you cant then you have to hire developer and if you want then PM or main  me.

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
1 Like
Highlighted
Excursionist
14 0 1

@Jasoliya  You have reached the limit for number of private messages that you can send for now. Please try again later. 

 

$  . post(params) . done( function(item) { this._hideErrorMessage(); this. _ setupCartPopup(item); location.href="/cart"; } .bind(this) )

0 Likes
Highlighted
Shopify Expert
3553 543 844

So what you want to do? you can mail or skype me too

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
Excursionist
14 0 1

When my client adds a product to the cart, I want a pop-up to appear and not redirect it directly to the cart. I want you to answer me here, so that other colleagues can see to help him answer.

0 Likes
Highlighted
New Member
1 0 0

Did I do this correctly? It doesn't seem to be working for me. Same problem. When I click on the Qty button in the collection page it immediately redirects to the product page. Thanks for the help. 


@Jasoliya wrote:

Add this css in Asset->theme.scss file at bottom:

.full-width-link{    position: relative;}

 


Screen Shot 2020-05-29 at 9.49.37 AM.pngD

0 Likes
Highlighted
Shopify Expert
3553 543 844

If you not added ajax cart code then it must redirect on cart page, if you want this implement this

https://community.shopify.com/c/Shopify-Design/Narrative-Theme-Add-to-Cart-on-collection-template/td...

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
1 0 0

Hello, 

I did everything and the button works fine, but it doesn't show in the cart icon, you have to refresh the page to see that you added the product. 

I'm gonna attach a picture so it's more understandable. 

Captura shopify.PNG

0 Likes