WordPress Twentyten Ecommerce Theme With Google Checkout

At one point, I was using Wp ecommerce to turn WordPress into a shopping cart. Unfortunately, I found that it lacked in three major areas.

  • SEO – the themes for the most part are not search engine friendly (you could not manually edit title tags etc)
  • It continually conflicted with other major plugins
  • It only worked inside of one page therefore limiting the use of WordPress post and page options

It has been a while since I used Wp ecommerce (which I do think is a good plugin for certain applications), but I decided to build a theme that would work inside of WordPress posts and not require developers to learn a whole new template system.

Twentyten ecommerce features overview

I used the twentyten ecommerce theme that comes prepackaged with WordPress 3.0+. It already has some cool features built in such as the ability to change the header from inside of the admin menu. I also used features that are already built inside of WordPress such as post meta and featured images in order to keep from slowing WordPress down.

ecommerce theme

The product page displays a larger image, the price and Google checkout button. All of these values are pulled from the post meta data.

twentyten product page

You can also add products with multiple options and prices. The Google Checkout button is built on the fly with up to five options.

Future development ideas

  • Automatic excerpts for home page
  • Admin panel to control site options
  • This version forces the entire site to become an ecommerce store. In future releases, I plan to give site owners the ability to make the store a specific category
  • Any suggestions?

Requirements

Installation

  1. Download and unzip the theme
  2. Open footer.php in your favorite editor
  3. On line 97, change mid=xxxxxxxxxxxxxxx to your Google checkout id number. The id number can be found at the top right of your Google checkout account. You will notice that the account number is a part of the URL in the src attribute below.
    [php]<script id="googlecart-script" src="https://checkout.google.com/seller/gsc/v2_2/cart.js?mid=xxxxxxxxxxxxxxx" type="text/javascript"></script>[/php]
  4. Upload and activate the theme

How to add a product

  • Add a new post
  • Write your product description and title
  • On the right hand side, click “set featured image”Featured Image
  • Add your product attributes in the post meta. The first time you will have to add the actual attributes. However, WordPress will save them for the next time you want to use them.
  • Publish and you are done.

Product attributes in post meta

  • price
  • option1
  • option2
  • option3
  • option4
  • option5
  • option1price
  • option2price
  • option3price
  • option4price
  • option5price

The only attribute you have to include is the price. Without it, the theme will break. Check out this screenshot to see where to add the attributes:

Post Meta

Download

Version 1.0


Twentyten Ecommerce Theme Download

You should sign up for my RSS feed here

15 comments

    • Jason

      @MJ,

      Paypal’s shopping cart works differently because it encrypts its forms, making them hard to generate on the fly. I am going to investigate this soon and see if I can find a way to incorporate paypal without using their API or SSL.

  1. MJ

    Hi,

    Just to respond to the following:

    These are great…
    * Automatic excerpts for home page
    * Admin panel to control site options

    About this….
    * This version forces the entire site to become an ecommerce store. In future releases, I plan to give site owners the ability to make the store a specific category
    * Any suggestions?

    I think your theme should also have a feature as a it is right now…(entire site become ecommerce store) for people who wants to install this as another folder in their domain host and manage it separately from their blog (the use of categories is then not useful here).

    Example: http://www.yourwebsite.com/store (this is a separate wordpress installation and your theme is then used here).

    • Jason

      @MJ, I see what you are saying. WordPress MU would come in handy for that type of install. For now, I am going to leave it the way you describe.

  2. Pingback: WordPress Twentyten Ecommerce Theme With Google Checkout « Reddy2007′s Weblog
  3. Sonja@local locksmith

    Hey thanks for the wonderful insight on the new twentyten theme. I love blogging. So i hope this is going to be great use for bloggers like me.This new theme anytime looks better than the wordpress previous theme based on kubrick. Its user friendly and white, which is my favorite color.

    • Jason

      I actually have not looked for any other sites that are using the theme so I don’t know of any. I have only tested it on multilinephones.org. This is the alpha version, so if you use it I would appreciate any feedback you have.

  4. Vera

    Hi,
    I installed the theme and it is not working too well. When I set a Featured Image, that image replaces the header on the post/product page. I cannot make the price appear either.

    I checked and re-checked all the steps and I followed the directions properly.

    Any solutions?

    • Jason

      @Vera,

      There is a problem with the featured image. I am going to fix that in a future release. For now, don’t add an image that is the width of the site and it will not happen.

      Do you have a site link I can check out?

      Make sure that “price” is lowercase and not “Price”.

  5. Vera

    Hi, Jason,

    I was able to resolve the header issue and actually work with the price a bit by deactivating the theme then reactivating it. That made the price and checkout features appear. However, there is a $ with no actual price amount which seems to be added to the product title.

    More detailed information was sent to you by email as I would prefer to keep the url private until the site looks a bit better. Thanks – it is a great idea!

Post a comment

You may use the following HTML:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>