Skip to main content
3 votes

How to make AJAX request to controller inside module?

The documentation on controllers has everything you need. An action path consists of the module ID, the name of the controller and the name of the action. In your case, the action path will be ...
MoritzLost's user avatar
  • 11.5k
2 votes
Accepted

Saving custom fields of user with Ajax request

I wager this is the problem: var fields = []; fields['nickname'] = 'Nickname'; JavaScript doesn't have associative arrays like PHP. The fact that this works at all is only a quirk in JavaScript – ...
MoritzLost's user avatar
  • 11.5k
2 votes

Update Craft Commerce cart with ajax

The behaviour with ajax responses changed significantly with Craft 4 / Commerce 4 - I have updated my answer to that original question: Update Commerce Cart using Ajax ...to cover both scenarios.
Jeremy Daalder's user avatar
2 votes

Update Craft Commerce cart with ajax

Forgive me for perhaps answering a substitute question but it seems to me as though what you really need to know is how to do basic debugging in JavaScript, since it only requires a quick bit of ...
James Smith's user avatar
  • 5,344

Only top scored, non community-wiki answers of a minimum length are eligible