Websites and Databases for Small Business
Overview Business Services Design Portfolio About DCS

Desktop Consulting Service (DCS) Weblog

Anniversary ?

Posted in DCS Business News by mike.potter on the August 20th, 2009

anniversary I forgot my anniversary.  No - not that one.  If I’d forgotten that one, I’d wouldn’t be writing this.

Monday the 17th was my 11th year of business.  I’m bound and determined to celebrate every year because it’s just so darn fun to be in business for yourself, even in April.    And just like July of last year, I started thinking about ways to celebrate.  Logos, cards, e-mails, promotions, etc.

But again, just like last year, I’ve been so busy, I just haven’t had time to do anything like that.   And then it struck me this afternoon; I’m so busy, I forgot my anniversary.  No better way to continue celebrating 11 years of business by being busy.

And I get to celebrate because of you, my clients. Thanks to all of you and best wishes for your future success.   Gotta go now…busy.

PayPal Blues

Posted in Coding Tips by mike.potter on the August 19th, 2009

paypal_logoI was recently contacted by a client who was having problems with their PayPal shopping cart functionality. The shopping cart has been in place since 2002 and never had any previous problems.

So, I visited their website and tried adding an item to the cart and immediately received an error message :

Sorry - your last action could not be completed

If you were making a purchase or sending money, we recommend that you check both your PayPal account and your email for a transaction confirmation after 30 minutes.

If you came to this page from another website, please return to that site (don’t use your browser’s Back button) and restart your activity.

If you came from PayPal’s website, click the PayPal logo in the upper left corner

I googled the error message and popped quite a few results.  After wading through 3 or 4 pages,  only two possible issues were discussed: Outdated account information and a problem with PayPal cart buttons in frames.

The cart coding is not in an HTML frame so I dismissed the latter.  And after checking with my client, the account was verified as being up-to-date.

So, using my old telecomm maintenance skills (go where someone has gone before),  I reviewed the coding in the product HTML page.  It all seemed correct and was coded according to PayPal’s published HTML Guidelines. PayPal did add a new way of creating buttons in 2007, but the prior method was still valid.

Just to be sure,  I creating the new style button code and inserted it into a test page.   The new button failed as soon as I appended the override variables needed for product amount and custom shipping cost.   Backtracking to the original code, I tried commenting out each advanced variable and testing the result.

Woo-hoo!

The problem was solved when commenting out this line :

<input type=”hidden” name=”upload” value=”1″>

Apparently, PayPal deprecated the use of that tag for it’s own internal cart.  Looking in more detail at the HTML guidelines for advanced variables,  you’ll notice that line is no longer included.   The code line is only used for 3rd party shopping carts.  Unfortunately, I ran into it by trial and error and thankfully, my client’s customer reported it instead of just moving on down the road.

Anyway, if you encounter this problem in your website, check these items:

  • Verify your seller account is completely up to date.
  • If using a PayPal “Add To Cart” button (and underlying HTML variables) in a frame,  change it to a top level page.
  • If using advanced variables, ensure you are not using the upload variable for posting to the PayPal internal shopping cart.
  • If you don’t need to override any variables and you have a static product line, use the Create Button functionality for Website Payments Standard.

If all else fails, contact PayPal support or post to the PayPal Developer Boards.

©Copyright 1998 - Desktop Consulting Service San Antonio, Texas