PayPal View Cart Text Link


On a recent website maintenance project, I was in the need for coding of a PayPal “View Cart” text link instead of a button. PayPal support didn’t give me much help so I searched and found my own answer.  I thought I’d share it here for anyone looking for the same information.

The standard View Cart button code is as follows:

<form target=”paypal” action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_cart”>
<input type=”hidden” name=”business” value=”emailORid”>
<input type=”hidden” name=”display” value=”1″>
<input type=”image” src=”https://www.paypal.com/en_US/i/btn/btn_viewcart_LG.gif” border=”0″ name=”submit” alt=”">
<img alt=”" border=”0″ src=”https://www.paypal.com/en_US/i/scr/pixel.gif” width=”1″ height=”1″>
</form>

 

To change the button into a text link, substitute the business value from the button code into this text link code:

<a href=”https://www.paypal.com/cart/display=1&business=emailORid” target=”_blank”>View Cart</a>
Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Reddit
  • Facebook
  • TwitThis
  • Google Bookmarks

3 Responses to “PayPal View Cart Text Link”

  1. groovysoul Says:

    It’s actually a lot easier than that. Just create a button on PayPal now. (It seems like they’ve updated the process fairly recently.) At the end there is an option to create the view cart button. Next to the code created for the button, there is a tab for email. Click on that, and there’s your link.

    Code:

    view cart

    I searched for quite awhile before I found out how easy it was!

  2. funkychicken Says:

    Wow, I just spent 4 hours trying to figure this out. How easy is that! thank you

  3. Abhishek Says:

    @ groovysoul

    Thank you so much,buddy. I also spend so much time on searching the button code. and now I just found out. really Thanks.
    Abhishek´s last blog ..Get Your Personalized Janam Kundali – Janam PatrikaMy ComLuv Profile

Leave a Reply

CommentLuv Enabled