Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

eStore Add to Cart Form submission using jquery ajax

(2 posts) (2 voices)
  • Started 6 months ago by coolvibe
  • Latest reply from admin
  • Possible Solutions (Related Topics):
    1. Problem using back button when items in eStore cart
    2. Shopp Integration with WP eStore causing a Cart conflict with Add to Cart.
    3. Question about Ajax/JQuery Powered Squeeze type form
    4. eStore - Using Categories to Display Products with Different Button Types
    5. eStore Cart Fancy1 displays table strange vs original cart is fine

Tags:

  • estore cart
  1. coolvibe
    Member

    I am planing to edit eStore plugin, basically the add to cart button submits the form (with some hidden input fields) and the shopping cart shows up on detecting that product has been added to the cart.

    Now, I am planning to edit this functionality instead of full page being submitted, the form (add to cart button) gets submitted and the shopping cart shows up (via ajax calls) to do so which files I should be editing.

    Posted 6 months ago #
  2. admin
    Key Master

    I am not really sure myself as this is not a minor change but I will try my best to give you some idea. The concept is that when the "Add to Cart" button is clicked it will have to send the data to a particular script using JQuery (this is the server side script for the ajax call). You will have to add JQuery code that listens for the button click and does that. Look for the following function in the "eStore_misc_functions.php" file for the "Add to Cart" button's code:

    get_button_code_for_element

    When the response comes back from the server you will need to draw the cart. The current shopping cart's function is in the "eStore_cart.php" file. You can also add your own function in that file to draw the ajax based cart. If you can keep the changes modular (for example add different functions and files for the functionality) then I will be able to incorporate the changes in the plugin down the path.

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin