Joined: 26 May 2008
|Posted: Mon May 26, 2008 11:24 am Post subject: Paypal Add to Cart with AJAX / JS
|Hello all. I'm looking for someone who may be able to help me out in a critical area of my Market wordpress theme. I've searched high and low for a way to do this, and all I've been able to find is that I would need to use a 3rd party cart to accomplish this. I find that very hard to believe. Basically, the situation is this...
In my market theme I currently have both a buy now and add to cart form, which are both dynamically populated for the item on that page (with the use of Wordpress custom fields). The buy now button is a standard paypal form, which once you click buy now will take you directly to paypal. That works perfectly, and I have no problems with it.
What I'd ideally want to do is use a standard Paypal Add to Cart button / form and submit the contents using AJAX to the paypal server and simply return a message in a div "Item added to cart". The only time they should see the cart is when they click view cart and are then taken directly to paypal.
I've tried using paypal in a popup window as well, but that does not work very nicely either. The window popups and stretches (usually off the screen) regardless of what size you set the popup window to be. Plus, the css does not style well so half of your paypal cart would be missing in a popup window form.
So basically, all I'm looking for is a way to post the submission to paypal using ajax. I've tried form submissions but I have not been able to get anything to work. I find it very hard to believe that the only way to do this is with a 3rd party cart.
If anyone thinks they could get this done for me, it will be a paying job.
Please drop me a line at email@example.com if you are interested (and only if you know you can do this!)
Thanks in advance.