Updating product quantity in cart without reloading it?

Updating product quantity in cart without reloading it?

StoreHelpNeeded
Explorer
54 1 10

Hello guys!

Is it possible to update the number of products in the cart and see the change appear without the page reloading automatically? The page reload jerks the page and it appears weird.

 

URL: shopcutify.com

Thank you!

Replies 11 (11)

Shadab_dev
Shopify Partner
1093 58 112

@StoreHelpNeeded it is possible and there's no other easy way to it but code it out making an ajax request to the cart to add items and display a small message of added to cart.  

Buy me Coffee, if you feel i was helpful. Email Me or WhatsApp me for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
StoreHelpNeeded
Explorer
54 1 10

Can you please help me with this?

Shadab_dev
Shopify Partner
1093 58 112

@StoreHelpNeeded definitely. I believe you are using the Brooklyn theme which is kind of a paid one I guess so it won't be available for me since I am on a development store, I mean it won't let me edit code. 

 

So I would actually need access to your store. If it was just a bit of css or something I wouldn't have needed it but this requires JavaScript and a bit of html css so there's few lines to write here. Hope you understand. 

 

Thanks

Buy me Coffee, if you feel i was helpful. Email Me or WhatsApp me for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Briom3
New Member
4 0 0

Hello, I have the same issue could you help me with it? www.boostme.lt

Shadab_dev
Shopify Partner
1093 58 112

There is probably a typo or something on the link,it's not opening. Please check.

Buy me Coffee, if you feel i was helpful. Email Me or WhatsApp me for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Briom3
New Member
4 0 0

it should be good now www.boostme.lt

Shadab_dev
Shopify Partner
1093 58 112

I can see the cart updating when i added few products. Where is the problem actually?

Buy me Coffee, if you feel i was helpful. Email Me or WhatsApp me for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Briom3
New Member
4 0 0

It is updating, everything good with that, but it is reloading the page everytime I add +1 product quantity, it is possible to make so only the product table reloads and not the whole page?

Shadab_dev
Shopify Partner
1093 58 112

Ohh okay, so the problem is in the cart page actually on increasing or decreasing the product quantity.

 

I can try debugging this but will need collaborator access to your store to see the code and modify it accordingly.

Buy me Coffee, if you feel i was helpful. Email Me or WhatsApp me for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.

prakashVt
Shopify Partner
260 23 36

Hello @StoreHelpNeeded 

 

I reviewed your store and noticed you are using a third-party app for discounts on your checkout page. I understand how frustrating it can be in 2024 to have to reload the page for updating a small detail.

The best solution is custom code, and I can help you with that. Please feel free to contact me.


Best regards,

Prakash P

- Enhanced your Cart Drawer for free, Shipping Protection included -VTN Cart Drawer Pro
- Feel free to Contact for more help (Free Support): prakash.prabhakar@vtnetzwelt.com
Briom3
New Member
4 0 0

Hello, I have the same issue could you help me with it? www.boostme.lt