# PAYPAL\_AddToShoppingCart\_button

**URL:** <https://forum.kirupa.com/t/paypal-addtoshoppingcart-button/182750>\
**Category:** flash\
**Created:** [March 21, 2006, 6:29am UTC](https://forum.kirupa.com/t/paypal-addtoshoppingcart-button/182750 "2006-03-21T06:29:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cris\_r](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@cris\_r](https://forum.kirupa.com/u/cris_r)\
**Post date:** [March 21, 2006, 6:29am UTC](https://forum.kirupa.com/t/paypal-addtoshoppingcart-button/182750/1 "2006-03-21T06:29:24Z")

</div>

HI EVERYONE  
I’M TRYING TO PRODUCE AN “ADD TO SHOPPING CART” BUTTON FOR PAYPAL  
THE HTML CODE BUTTON SEEMINGLY WORKS WELL:

\<form target=“paypal” action=“[https://www.paypal.com/cgi-bin/webscr](https://www.paypal.com/cgi-bin/webscr)” method=“post”\>  
\<input type=“image” src=“addToCart.png” border=“0” name=“submit” alt=“Make payments with PayPal - it’s fast, free and secure!”\>  
\<img alt="" border=“0” src=“[https://www.paypal.com/en\_US/i/scr/pixel.gif](https://www.paypal.com/en_US/i/scr/pixel.gif)” width=“1” height=“1”\>  
\<input type=“hidden” name=“add” value=“1”\>  
\<input type=“hidden” name=“cmd” value="\_cart"\>  
\<input type=“hidden” name=“business” [value="tgiunipero@yahoo.com](mailto:value=%22tgiunipero@yahoo.com)"\>  
\<input type=“hidden” name=“item\_name” value=“Master Theodoricus”\>  
\<input type=“hidden” name=“item\_number” value=“01”\>  
\<input type=“hidden” name=“amount” value=“0.50”\>  
\<input type=“hidden” name=“no\_note” value=“1”\>  
\<input type=“hidden” name=“currency\_code” value=“EUR”\>  
\<input type=“hidden” name=“bn” value=“PP-ShopCartBF”\>  
\</form\>

… BUT MY FLASH BUTTON DOES NOT DO THE THING  
IS THERE ANYTHING WRONG IN HERE? PLEASE GIVE ME A HINT  
OR SOME ACTUALLY WORKING CODE… THANX A LOT!!!

PayPal\_btn.onRelease = function () {  
formData = new LoadVars ();  
formData.bn = “PP-ShopCartBF”;  
formData.currency\_code = “EUR”;  
formData.no\_note = “1”;  
formData.amount = “50000.00”;  
formData.item\_number = “02”;  
formData.item\_name = “Master X”;  
formData.business = "tgiunipero@yahoo.com";  
formData.cmd = “\_cart”;  
formData[“add”] = “1”;  
formData.send (“[https://www.paypal.com/cgi-bin/webscr](https://www.paypal.com/cgi-bin/webscr)”, “\_self”, “POST”);  
trace (formData);  
};

I AM SURPRISED THAT THERE IS NO FLASH SUPPORT ON THE PAYPAL WEBSITE ???

---

<div class="post-metadata">

**Author:** ![kernel\_flash](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kernel\_flash](https://forum.kirupa.com/u/kernel_flash)\
**Post date:** [March 21, 2006, 6:59am UTC](https://forum.kirupa.com/t/paypal-addtoshoppingcart-button/182750/2 "2006-03-21T06:59:54Z")

</div>

Are you able to move to a new page or stuck to the same old “add to cart” page when clicking the button?

---

<div class="post-metadata">

**Author:** ![cris\_r](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@cris\_r](https://forum.kirupa.com/u/cris_r)\
**Post date:** [March 21, 2006, 7:53am UTC](https://forum.kirupa.com/t/paypal-addtoshoppingcart-button/182750/3 "2006-03-21T07:53:09Z")

</div>

> [@kernel\_flash](#):
>
> Are you able to move to a new page or stuck to the same old “add to cart” page when clicking the button?

yea it opens the paypal homepage  
but not the my cart

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [March 21, 2006, 2:09pm UTC](https://forum.kirupa.com/t/paypal-addtoshoppingcart-button/182750/4 "2006-03-21T14:09:05Z")

</div>

Don’t crosspost, I’ve deleted your thread in the AS forum :cop:

scotty(-:
