Improvement Ideas for the WordPress Shopping Cart
I recently set up an ecommerce website using WordPress and Instinct Software’s ecommerce plugin. I have already written briefly about customizing WP Shopping Cart for WordPress. I explained how I had to hack the system to get the look that I wanted.
I a simple suggestion for improving how WP Shopping Cart outputs its HTML so that the process of customizing the look becomes much easier.
Each element in the shopping cart and the product pages should be logically labeled with classes and ids.
To maintain consistency among all links related to the buying process, all WP Shopping Card links should have a logical hierarchy of classes.
Each unique element should have an ID. That way, specific links can be made to look quite different. For example, I want the Pay and Download button (I changed the name, I forget what it was originally called) to be much more prominent than the Empty your cart button.
It may be desirable to differentiate add to cart buttons for each product. This could be done by using an id that includes the product number.
Better Integration with the Blog
I would love to have Add to Cart buttons in a blog post. If only there were more tags to refer to specific elements in the shopping cart! Having a tag like [wpshoppingcart:addtocart:##] where ## is a product ID would be awesome!
Extending that idea, it would be easy to make my own shopping cart if there were tags for all the other buttons. I actually switched the order of the empty button and the pay button by hacking the code. It would be much better to build a shopping cart from a few tags: one to display what is in the shopping cart, another to display the various buttons etc.