homepage Welcome to WebmasterWorld Guest from 54.227.40.166
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
PayPal Cart
Add to Cart button does not work!
David Pitt Jones




msg:4279639
 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

 

eelixduppy




msg:4292651
 7:41 pm on Apr 5, 2011 (gmt 0)

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?

David Pitt Jones




msg:4293012
 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved