WebSite X5Help Center

 
Randall L.
Randall L.
User

Paypal HTML Codes  en

Author: Randall L.
Visited 2395, Followers 1, Shared 0  

I can not get my Paypal HTML codes to link to the product on when you click on the Add to cart. It links to the main Paypal sign up page. please help

Posted on the
5 ANSWERS
Paul M.
Paul M.
Moderator

Hello Randall,

Can you post the code you are using here?

Many thanks,

Paul

Read more
Posted on the from Paul M.
Randall L.
Randall L.
User
Author

<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="E5V9VV9ZRG4WQ">
<input type="image" src="https://www.paypalobjects.com/en_US/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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Read more
Posted on the from Randall L.
Paul M.
Paul M.
Moderator

Thanks for the code, Randall.

I tested it in an HTML Code Object and it appeared to work correctly (please see the screenshot attached)

Have I misunderstood your query?  Apologies if that is the case.

Read more
Posted on the from Paul M.
Randall L.
Randall L.
User
Author

No That is how it should appear. I am currently rebuilding my website in Evolution 12.

The code works on my current website which was created with X5 Evolution 8, but when I test it in Evolution 12 the preview does show this attachment, it takes you to PayPals main sign in page.

Do I need to export the project first before it will work in the preview?

Thanks,

Randy

Read more
Posted on the from Randall L.
Paul M.
Paul M.
Moderator
Randall L.
Do I need to export the project first before it will work in the preview?

Yes, that's correct, Randy...  version 8 used a different preview browser to version 12, but rest assured that once exported to your server the code will work as intended.

Read more
Posted on the from Paul M.