WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Sumit1988
    Member
    Posted 9 months 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?

    http://wordpress.org/plugins/wp-e-commerce/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags