WebSite X5Help Center

 
Randall L.
Randall L.
User

Paypal HTML Codes  en

Autore: Randall L.
Visite 2440, Followers 1, Condiviso 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

Postato il
5 RISPOSTE
Paul M.
Paul M.
Moderator

Hello Randall,

Can you post the code you are using here?

Many thanks,

Paul

Leggi di più
Postato il da Paul M.
Randall L.
Randall L.
User
Autore

<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>

Leggi di più
Postato il da 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.

Leggi di più
Postato il da Paul M.
Randall L.
Randall L.
User
Autore

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

Leggi di più
Postato il da 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.

Leggi di più
Postato il da Paul M.