Support » Plugin: WP eCommerce » callback / hook for add-to-cart AJAX success/failure

  • Is there some kind of API to execute my own functions after an ajax-call is successfull / not successfull? Especially when adding an item to the cart.
    Currently I wrote my JS inside wp-e-commerce.js which almost does the job, at least for successfull request.
    But there doesn’t seem to be a function for unsuccessfull ajax calls, e.g. if i add an item to the cart that’s not in stock. I get the correct message inside the cart, but i can’t find a “failure-function” for the add-to-cart-button.
    Any suggestions?

  • The topic ‘callback / hook for add-to-cart AJAX success/failure’ is closed to new replies.