Shopify {{cart.total_price}} object not updating on AJAX Cart

Solved
idwithin
New Member
12 0 0

Thank you.

0 Likes
HymnZ
Shopify Partner
382 4 45

HymnZ_0-1607499501226.png

@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?

My speciality lies in making Shopify work for your requirements, not the other way round. HMU on email: hymnz@outlook.com or on skype: hymnzzy

If you like my work, consider supporting me :) https://www.buymeacoffee.com/hymnz
idwithin
New Member
12 0 0
Doesn’t matter if the theme is modified. I am looking to update cart price with AJAX. Which is what they are wanting and asked for. I literally have the same problem. It’s not anything I’ve done as all I tried was exactly the OP post about using the cart.total liquid code. It’s to do with AJAX and liquid code. No idea why this persons heavily edited theme matters to that. Mines is also heavy edited. I just added in the cart.total thinking it would work. But still please don’t share your answer that could be possible insight into mine or any one elses problem on the matter. Im sure someone could take from it. But you are withholding it. Therefore being difficult
0 Likes
HymnZ
Shopify Partner
382 4 45
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.

My speciality lies in making Shopify work for your requirements, not the other way round. HMU on email: hymnz@outlook.com or on skype: hymnzzy

If you like my work, consider supporting me :) https://www.buymeacoffee.com/hymnz
0 Likes
PaulNewton
Shopify Partner
2581 136 467

@idwithin wrote:
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:

  1. delegate the problem properly to someone that can fix it so you can move forward
  2. engage them for consulting on how to approach software development for your business and how to better leverage development resources( free or paid )

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 

 

 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com