@idwithin Please understand that if an out-of-the-box feature isn't working, it's you who have screwed up somewhere in your theme. No one can guess what and where you have messed up. Got it? And I also don't get why you don't understand that the OP had a heavily modified Debut theme to begin with and it's beyond AJAX Cart if you look at the code.
Before calling out someone as being difficult, please introspect multiple times.
Mods, can we close this post, please?
I am looking to update cart price with AJAX. Which is what they are wanting and asked for. I literally have the same problem ........ I just added in the cart.total thinking it would work .....
These three lines themselves tell that you don't know what you've done. All the information you are looking for and which you think I'm withholding from you is in the Shopify documentation. Go search for your self.
I again repeat: this is a dev jobs section of Shopify. You're not going to free codes and free help here, even if it a missing ";". For some people, forums like these are the source for their daily bread & butter. I hope you understand this and be respectful.
And for your FYI, the code OP posted here has nothing to do with the actual problem. It's something replicated from another fully functional website and for an obvious reason, it didn't work - the source website implemented AJAX differently.
Doesn’t matter if the theme is modified. I am looking to update cart price with AJAX.
It can matter almost exclusively , context matters in software whether someone wants it to or not from a false hope for a quick fix.
Those with experience know better than to fall for the trap of assuming prior theme modifications have zero bearing on existing problems especially when no actual working description of the issue has been given.
There is such a fundamental lack of understanding in that opening statement that you should hire someone for two things:
To go it alone:
The cart ajax api docs are here https://shopify.dev/docs/themes/ajax-api/reference/cart
The design forum for gambling for volunteer help is here https://community.shopify.com/c/Shopify-Design/bd-p/ecommerce-design
How to Help Us Help You is here https://community.shopify.com/c/Shopify-Design/Help-Us-Help-You/m-p/668159#M166563