michael ciccarelli is a web designer & developer out of buffalo, ny.
I am currently available for freelance and other opportunities.

e-Commerce Solutions for WordPress

| 18 comments

article

WordPress is one of the most popular Content Management Systems (CMS) on the web. It’s a great application supported by a great community. I use WordPress for many of my own websites, I also recommend it to others looking to start a website that need to manage their content with little programming knowledge. I always thought the lack of e-Commerce plugins for WordPress was odd, but never really needed to implement any shopping carts on a WordPress site. If someone required more of an actual shop than a standard website, I would steer them towards an actual e-Commerce application (ZenCart, Magento, OS Commerce etc.).

I decided to try out WP e-Commerce, one of the only free shopping cart plugins for WordPress. My client’s website was already up and running the latest version of WordPress. So instead of selling her the idea of switching applications or using a simple shopping cart solution like e-junkie, I decided to familiarize myself with some e-Commerce solutions for WordPress.

Unfortunately WP e-Commerce is not very stable out-of-box, even though I purchased the Gold Cart which was suppose to be more feature rich then the standard free version. It required some work to get it working properly with Paypal, which is the default payment gateway. Authorize.net was the preferred payment gateway of my client, mainly because she already had an established merchant account with them. Although it didn’t work right away, once I got it working properly I think it is the best gateway to use with WP e-Commerce.

A big turn off from using Paypal as the gateway is the fact you get redirected off the website you are on to make the payment. This isn’t all that bad, especially if you do not wish to purchase an SSL certificate for your website and will be handling your customers financial information, being redirected to a secure paypal site will cover that for you. The biggest issue I noticed with Paypal is users making payments are now required to have a paypal account, which leads to a dead-end for those customers without an account. During the checkout process Paypal requires you to create an account even if you select the options “I do not have a paypal account and would like to make my purchase using a credit card”. I proceeded to signup during my testing, my account was opened simply using the email address I provided, all appeared to be well, then before my card was charged, I was required to verify my new Paypal account by waiting for a specific paypal charge to hit my credit card. This would be fine if the sole purpose for creating my account wasn’t to make a purchase right at that moment. Who is going to wait 3-4 days to verify their Paypal account in order to make a simple purchase I should be able to make instantly.

So although I moved on to Authorize.net which was giving me this error whenever I proceeded to checkout:

refId:
resultCode: Error
code: E00003
text: The ‘AnetApi/xml/v1/schema/AnetApiSchema.xsd:length’ element is invalid – The value ” is invalid according to its datatype ‘Short’ – The string ” is not a valid Int16 value.
subscriptionId:

I decided to get this working and share with anyone else wishing to use authorize.net as their payment gateway. The problems were located in wp-shopping-cart/gold_cart_files/merchants/authorize.php. Instinct, who wrote the script, left references to their own credentials which were hard coded in the script. They probably forgot to swap out their hard coded logins and names with the proper variables of the input boxes you have set in your Payment Options. So in the end no matter what you have set on the options page, Instinct’s API access and login credentials are being passed at checkout.

Fixing the Authorize.net Payment Gateway

    1. download the updated authorize.php file
    2. extract the .zip archive to: wp-shopping-cart/gold_cart_files/merchants/ overwriting the old authorize.php file
    3. upload the new authorize.php file to your server
    4. make sure your Authorize.net credentials are set in the Payment Options
    5. You should be all set, reset your browser cache and make a test purchase

If your still having problems with the Authorize.net checkout, remove both your Authorize.net account and the WP e-Commerce plugin from “Test Mode” and try again with $1.00 item.

I’d like to give a a big thanks to Shayne Sanderson, who I found on the WP e-Commerce Support Forums. Shayne went out of his way to help me with this, he was able to contact the lead developers at instinct for me and was very persistent on finding the problem. Shayne will soon be launching his own website to support the WP e-Commerce plugin.

So if you interested in adding a shopping cart to your WordPress site here are a few options that I know of:

  • e-junkie – a simple shopping cart solution for selling basic products on any website. Adds an “Add to cart” button on your products page, then you are redirected to your cart on e-junkie when your ready to checkout.
  • WP e-Commerce – A free WordPress plugin for e-Commerce, very convenient and much potential but is very young and needs some work. Only works with Paypal for payment processing.
  • Gold Cart – An additional module to be used with the WP e-Commerce plugin that opens more features and give you the ability to use more payment gateways. Only $15 an absolute most buy if you intend to use WP e-Commerce.
Tags: , ,

18 Responses

  1. shayne says:

    thanks Mike, I appreciate the plug!

    Site should be up over the weekend :)

  2. mike says:

    @shayne: Thank you! for the help. I look forward to seeing your support site up and running soon.

  3. Dan Milward says:

    Hi Guys. I’m glad you both got this sorted – Shayne is a great resource for WP e-Commerce users.

    This fix among others will be included in the next version. Good luck with your site Mike!!!

    Ciao,

    Dan

  4. Mike says:

    Thanks Dan.
    You have a great product, looking forward to future releases ;)

  5. alex says:

    Yes. I agree with you ecommerce is the best gateway for online marketing. ecommerce solutionsprovides means of purchase and payments online sitting at home and it saves a lot of time in the busy hours.

  6. Stanley says:

    Interesting point you raised here Mike. I’ve been “unsuccessfully” using WP-E Commerce with Authorize.net for the past 2 months.

    EVERY time somebody tried to do a transaction it would crash my site and I would lose a sale.

    My interesting point is this . . . Since it appears you and Instinct and Shayne fixed this in April 2008, why has the authorize.php file not yet been replaced on their installation files that new users are downloading?

    It sure would have saved me a TON of grief had they swapped out their file with the change file you have.

    Hopefully they’ll get this message.

    Thanks
    Stanley
    http://stanleybronstein.com

  7. Casino 492f490780…

    Casino 492f490780…

  8. riadh says:

    hey, interesting article, btw you really need to get rid of the huge background on this page, takes ages to load in slow connection, or if u like it try to set your body tag bgcolor to black ,this way we can still read while your beautiful wood loading up

  9. Michael says:

    @riadh: I suppose your right, 500KB is kind of a large BG image file. However I do like it, I will do as you suggested and make the BG color black as opposed to transparent, and will also activate the WordPress caching module to help with load times. Thanks for the tip.

  10. ahYoon says:

    Thanks Mike, really help!
    @_@ Thanks a lot

  11. aaron says:

    Thanks for the write up…. I’m having issues and trying to get things to work with Authorize.net… Maybe this will help….I hope.

  12. E-Commerce shopping cart development solutions are widely used and generate more profit with having latest technology functionality and easy to use from your website by online product sales. If you are planning to develop Ecommerce online shopping store than we can fulfill your requirements with our effective ecommerce web development services.Direct to India, has years of experience in development & implementation of custom e-commerce website solutions. We offer ecommerce web development through shopping cart application. Contact us now for more details about our ecommerce web development services.

  13. Chris H says:

    I usually never post. Ever. But I really like the things you covered here as I am in the exact same position. Thank you for your time to write it.

    Chris
    Business Builder Suite

  14. embee says:

    I’ve been scouring the internet for this exact same information all day long. Thank you for putting it extremely well together. Much obliged!

  15. lauron says:

    I followed the directions above but I am still getting an error with my wp Instinct gold cart…
    Fatal error: Call to undefined function: curl_init() in /home/victorykoredry.com/public_html/wordpress/wp-content/plugins/wp-e-commerce/gold_cart_files/merchants/authorize.php on line 186

    Any ideas on what the issue is? Have been working on this for a few weeks and my client is growing very frustrated as I don’t have an answer for him. PLEASE HELP!

    Email me solutions if you can.

  16. Hi,

    Thank you very much Mike, Shayne & Dan. I am also using wp e-commerce and I have found same errors. Please let me know from where I can get authorize.php for authorize.net payment gateway and ccavenue.php for cc avenue payment gateway.

    Please email me if you guys help me out in this regards.

    regards & thanks again,
    SAN

  17. SteveO says:

    Sanjeeb the authorize.net gateway php file is provided only when you upgrade WP-ecommerce plugin by purchasing the “Gold Cart” module for the plugin for US$40. The free version of WPecommerce supports Paypal, Google checkout, Chronopay and “manual” payment by cheque(check) for example. Here’s the list:
    Manual Payment (checks/money orders) (free version)
    PayPal Payments Standard (free version)
    PayPal Payments Pro (free version)
    PayPal Express Checkout (free version)
    Google Checkout (Level 2) (free version)
    Chronopay (free version)
    PayPal Payflow Pro (available with Gold Cart)
    Authorize.net (available with Gold Cart)
    FirstData/LinkPoint (available with Gold Cart)
    eWay Payment (available with Gold Cart)
    iDEAL (available with Gold Cart)
    BluePay (available with Gold Cart)
    DPS (available with Gold Cart)
    Paystation (available with Gold Cart)
    SagePay (available with Gold Cart)
    Virtual Merchant (available with Gold Cart)

  18. Lilly Adams says:

    Since there are many Ecommerce Solutions out there, making the right choice can often be a big problem. At the same time, if you go wrong with a solution, then you might not actually get what you want, or you might end up overspending on setting up the system, which might offset your profits a bit. Hence, you need to take time out and select the right Ecommerce Solution for your business. I have used Pay Vision and I am so happy with their services. Check out their website http://www.payvision.com/E-Commerce.htm

Leave a Reply