Created
July 2, 2013 18:16
-
-
Save JumboLove/5911704 to your computer and use it in GitHub Desktop.
Update mini cart with data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Show updated mini-cart using data returned from the add to cart submission | |
| function updateMiniCart(data){ | |
| jQuery.ajax({ | |
| type: 'POST', | |
| url: serverData.showMiniCartUrl, | |
| data: {lineItemId: data.result.lineItemId}, | |
| cache: false, | |
| success: function(html){ | |
| app.minicart.show(html); | |
| }, | |
| failure: function(data) { | |
| showErrorMessages(errors); | |
| } | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment