Reply to topic
momtrck
momtrck Member
Member
Posts: 2
Kudos: 0

Trouble with View Cart button code

My View Cart buttons don't work on my site anymore.  This is the error message customers get when they try to  view their cart----We were unable to decrypt the certificate id.

 

I went to Paypal and re-created the button.  No luck.  So I contacted Help and they said the code they gave me when I hit Select Code is NOT the code that is showing up in my site.  Somewhere between copy and paste something is going wrong.  Here is the site; www.marykenyon.com

 

Any ideas would help, I've tried all the tricks I know.  thanks

0 Kudos
skier
skier Volunteer Advisor
Volunteer Advisor
Posts: 5444
Kudos: 549

Re: Trouble with View Cart button code

First, THANKS for posting your web site address.  Most folks come here and say my buttons don't work and there's no way to help them.

 

I looked at your first link, Patterns, and noticed that you have your item button code and view cart code mixed together.   The item button code is an HTML Form and the View Cart code are separtate HTML Forms.   This means that each one has an opening Form Tag and a closing Form Tag.   The code starts with the item button opening Form Tag but then there is no closing Form Tag, the code just continues with View Cart code however, there's no opening Form Tag, just a closing Form Tag.

 

To give you an idea of what I'm rambling about, check out this basic Add to Cart item button and View Cart example:

<!-- Start of Form -->
<!-- Note: target="paypal" was replaced with the variable target="_self" -->
<!-- Note: shopping_url also added to code -->
<!-- These two changes allow better functionality with IE, Firefox and Chrome --> 

Gold Widget - $10.00 plus S&#38;H
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="business" value="youremail @ youremail.com">
<input type="hidden" name="item_name" value="Gold Widget">
<input type="hidden" name="item_number" value="GW-1001">
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/your_page.html">
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/cancel.html">
<input type="hidden" name="return" value="http://www.yourwebsite.com/successful.html">
<!--   -->
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="country" value="US">
<!--   -->
<input type="hidden" name="handling_cart" value="5.00">
<input type="hidden" name="shipping" value="3.00">
<input type="hidden" name="shipping2" value="1.00">
<!--   -->
<input type="hidden" name="tax_rate" value="8.275">
<!--   -->
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
<br><br>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- End of Form -->


<!-- Start of View Cart Form -->
<!-- Note: target="paypal" was replaced with the variable target="_self". -->
<!-- Note: shopping_url also added to code. -->
<!-- These two changes allow better functionality with IE and Firefox. --> 
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<!-- Business variable can be either an email address or your Business ID, example: WRDDZE4N3E3M2 -->
<input type="hidden" name="business" value="youremail @ youremail.com">
<input type="hidden" name="display" value="1">
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/your_page.html">
<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>
<!-- End of View Cart Form -->

 

 

 

Note, how both forms have opening and closing Form Tags.

 

 

 

Regards,

 

 

skier

0 Kudos
momtrck
momtrck Member
Member
Posts: 2
Kudos: 0

Re: Trouble with View Cart button code

Thanks so much!  I used Word to copy/paste and compare the code.  Sure enough, there was goofy stuff going on there! I also found some information on this glitch at this site: http://community.contractwebdevelopment.com/we-were-unable-decrypt-certificate-id

 

Thanks again,  I am fixing the problem this morning and should have happy customers again! 

Mary

 

 

0 Kudos