Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: brotherhood of lan & mack

PayPal Cart

Add to Cart button does not work!

   
3:09 pm on Mar 10, 2011 (gmt 0)



I'm trying to install PayPal to my site which is Frame based with "upper" and "lower". Initial code from PayPal:
<form target="paypal" action="https://www.paypal.com/cgi- bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="DLQBYHWHB2CKC">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif"
border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif"
width="1" height="1">
</form>
First attempt seemed OK, cart page opened. Then click "continue purchasing" and a pop up appeared "do you wish to close this window" - YES - but then a full screen copy of the product page appeared ontop of the original. PayPal Tech. said this was because I am using IE8. and changed firt line to
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
and insert additional line:
<input type="hidden" name="shopping_url" value="http://www.MySite/ProductPage.html">
Now click on "Add to Cart" goes straight to PayPal Error Page!
PayPal Tech. now say " my tests of the site through IE8, IE7, and FireFox 3.5 redirect back to the correct page as is without any changes to the code suggesting that the error you are seeing is specific to your browser settings or browser version or possibly add-on associated to the browser you are testing through."
I have tested on 3 machines all on IE8 and the result is the same!
I am a novice, have built and developed my site following info. from a very good book over past 6 years (since I retired). Now I am STUCK!
Any help, ideas or suggestions would be most welcome
DPJ
7:41 pm on Apr 5, 2011 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



In the first action string you posted you have an extra space in there:

https://www.paypal.com/cgi- bin/webscr


should be:

https://www.paypal.com/cgi-bin/webscr


But are you saying that a PayPal support tech. went to your website and had no problem with the button that you added there, but you do?
9:51 am on Apr 6, 2011 (gmt 0)



In short the PayPal standard feature by itself is a simplistic one so the more complexity you need out of it or that may exist in your current site the more complex the code put into the button needs to be. For example the buttons are based on basic html form code so you can design you buttons to function the way you want as long as the variables/values are valid and are posted to PayPal normally and posted to a top page outside of a frame. There are many ways of doing this but the most universal way is opening the page in its window or tab. The way browsers react to this is specific to browser settings, version, type, and the encoding used on the website it is being directed back to.
Many thank for your response "eelixduppy"
I have corrected the "gap" - (I thought all spaces were ignored).
The following is a direct copy of the PayPal Tech. Reply:-

One example of the is that through my tests of the site through IE8, IE7, and FireFox 3.5 redirect back to the correct page as is without any changes to the code suggesting that the error you are seeing is specific to your browser settings or browser version or possibly add-on associated to the browser you are testing through.

As explained previouse, have now tried on 3 seperate machines, all on IE8, with the same result.
I am sure there must be something I have missed. I cannot conceive that PayPal have never updated their system from IE6 and thereby miss out on the thousands world wide who have IE7 and above!
David
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month