WP eCommerce
callback / hook for add-to-cart AJAX success/failure (1 post)

  1. Sumit1988
    Posted 2 years ago #

    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic