Shopify Importer – Import Shopify Products into WordPress

Download the plugin from WordPress.org

Shopify is a great hosted eCommerce provider. WordPress is the best blogging platform.

I first learned about Shopify in 2007, and was very interested in their service: they take care of every aspect of an eCommerce shop, and you pay them monthly plus a little cut of your sales.

  • Themes: Shopify has a great theme generator package that uses Ruby on Rails and it also has a theme store with tons of beautiful, standards-compliant themes.
  • Apps: The Shopify App Store features free and paid applications that integrate using the Shopify API.
  • Hosting: Shopify uses Rackspace and Akamai for hosting and as a CDN, respectively. Security, hosting, etc.
  • …and tons of other features

Shopify Blog FunctionalityI am still impressed with Shopify, but when I logged in recently to my Shopify account, I saw that Shopify’s “blogging” functionality is weak. Very weak. When I saw that there was an app to import a WordPress blog into Shopify, I laughed, and went ahead creating a Shopify importer for WordPress. Continue reading “Shopify Importer – Import Shopify Products into WordPress”

Add 'Customers Also Purchased' to the Cart Page on Interspire Shopping Cart

“Customers Also Purchased” should be on the cart page, right?

The Interspire Shopping Cart has a “Customers Also Bought” feature, but for some reason, they didn’t think to make it functional on the cart page — one of the most useful (and obvious) places to have the feature. This modification will allow you to place the SideProductAlsoBought panel into your theme’s cart.html template, using the %%Panel.SideProductAlsoBought%% placeholder in the template.

Goals of this mod

  1. Keep the existing “Also Bought/Purchased” functionality working on product pages
  2. Add “Also Bought/Purchased” functionality to the cart page
  3. Give an option where it will only display “Also Bought” for the most recently added product

With those goals in mind, I went about implementing a solution, which is below: Continue reading “Add 'Customers Also Purchased' to the Cart Page on Interspire Shopping Cart”

Add Canonical Tags to Shopp Plugin for SEO

I am building a store using the Shopp plugin, and I noticed that there are possibilities for duplicate content issues:

  • A product can be accessed both by /shop/{productID} and /shop/{product-slug}
  • A tag can be accessed using /shop/?shopp_tag={tag-uri} and /shop/tag/{tag-slug}
  • A tag can be accessed using /shop/?shopp_category={category-id} and /shop/{category-uri}

Should Google somehow find it’s way into indexing these pages, the value of the identical indexed pages may drop.  Canonical tags aim to remedy this situation, and are implemented by the hugely popular and awesome All in One SEO Pack plugin (see my other SEO tips regarding AIOSEO Pack plugin).

The Shopp plugin does not feature canonical tag support, so here’s a modification you can make that will add support for it without changing any core files in All in One SEO Pack, or in Shopp. Continue reading “Add Canonical Tags to Shopp Plugin for SEO”

Add a Store Catalog XML Sitemap to the Shopp Plugin

The Shopp default RSS/XML/Google Base solution was not enough.

RSS Feed, BABY!

I needed to have a Google Base feed that featured all the store products. For some reason, the recommended process wasn’t working for me. It was either showing only recent products, or it wasn’t working at all.  Here’s how I fixed it: Continue reading “Add a Store Catalog XML Sitemap to the Shopp Plugin”

Edit Product Link for Shopp Plugin

Shopp PluginIf you use the Shopp plugin for WordPress, you’ve likely found something frustrating: you click on the “Edit Post” link, and you get to edit the Store page, not the product in Shopp.

Here’s a quick fix: add the following to your theme’s functions.php file: Continue reading “Edit Product Link for Shopp Plugin”

Interspire Shopping Cart — Add a Brands Drop-Down Menu

Don’t use the Interspire Shopping Cart? Check it out; it rocks.

The Interspire Shopping Cart is a great tool, but it’s missing some stuff out of the box.

This is how the Panel looks in the 'Adventure' theme.
This is how the Panel looks in the 'Adventure' theme.

I am working on a shopping cart for a client, and wanted to incorporate a drop down menu of brand names using a standard <select> form. Sounds easy, right? Well, it’s not included in the Interspire cart.

The Interspire cart has few brand options out of the box:

  • The Brands tag cloud – using the SideBrandTagCloud.html Panel
  • Brands unordered list – using the SideShopByBrand.html or SideShopByBrandFull.html Panels

This tutorial will show you how to add a brands drop down menu in 5 steps.

Continue reading “Interspire Shopping Cart — Add a Brands Drop-Down Menu”

Incorporate WordPress with Interspire Shopping Cart

I’m going to elaborate on this further (and about Interspire in general), but for those of you who want to make WordPress functions available throughout your shopping cart, here’s how:

Before the closing ?> in the init.php file, add the following code:
require(realpath(ISC_BASE_PATH).'/blog-directory/wp-blog-header.php');, where /blog-directory/ is your WP installation. If you installed it in the root directory, then you’d simply need require(realpath(ISC_BASE_PATH).'/wp-blog-header.php');
(see Update below).

Update: There is a bug that happens when the include is placed at the bottom of init.php; instead, add require(realpath(ISC_BASE_PATH).'/wp-blog-header.php'); on the line below require_once(dirname(__FILE__).'/lib/init.php'); (line 3).

Voila! That simple. Any questions?

Interspire + WordPress Update:

I don’t know if it’s because WordPress has been updated, or if it’s because Interspire has been, but there is a function conflict going on between the two softwares. Unfortunately, you need to replace your WordPress installation’s wp-includes/formatting.php file to have if(!function_exists()) for every function.

Here’s the file:
[download id=”6″]

Interspire + WordPress Update 2:

So, after searching Interspire Shopping Cart for each function in formatting.php, I found there are only two conflicting functions:

  • convert_chars()
  • stripslashes_deep()

If you wrap these functions found in /wp-includes/formatting.php in function_exists, everything works just dandy.

A very, vitally important note:

After some frustrating hours trying to figure out why adding products to the cart wasn’t working, I discovered that the WordPress function wp_unregister_GLOBALS() was screwing up the works. I also found another article with the same problem, and the solution: turn off register globals. You need to update your php.ini file with register_globals Off. You can also search Google for more info on how to do that.

Recover your password from Interspire Shopping Cart

Where did my Interspire password go?
I develop my websites locally, so sending Lost Password emails never works. When I forget what my password is, it’s quite the hassle.

I’m developing an Interspire Shopping Cart website, and lo and behold, I lost the password.

Here’s how to recover your password from Interspire Shopping Cart: Continue reading “Recover your password from Interspire Shopping Cart”

Tableless, accessible, nearly validating osCommerce — Rewriting the beast

Rocky Mountain Baggers

osCommerce accessibility stinks

osCommerce default installation is a huge mess for accessibility. Every piece of code that the platform spits out has endless tables and poorly coded HTML — finding your way through the code is like trying to clear brush.

The simple solution to osCommerce accessibility is to install the Simple Template System and put together a XHTML/CSS’ed out template.  That only solves one part of the problem, however, because your wonderful template is going to be wrapping around a whole slew of undesirable code.

Over a year ago, a client of mine wanted an osCommerce website. I wanted to create a masterpiece of accessibility. I tackled osCommerce head-on and re-wrote most of the code that creates the HTML.  It was a nightmare, but I created a nearly validating eCommerce website with osCommerce.

The experience was so scarring that I haven’t yet written about it 🙂 Nearly every file was affected, so upgrading it would be a nightmare, but it’s truly an effort of love.

KWD presents: a nearly validating, tableless osCommerce website

Continue reading “Tableless, accessible, nearly validating osCommerce — Rewriting the beast”

Standards-Compliant Shopping Cart with XHTML & CSS!

I’ve been looking for a shopping cart like this for a long time

One of my clients is looking to move from osCommerce to a more user-friendly solution, and I really want to use a shopping cart that is XHTML and standards-compliant…Something that validates and looks pretty with stylesheets off, has a full feature set, and a great admin panel.

I was quite pleasantly surprised when I discovered Tradingeye. They have a well-coded shopping cart solution as well as a CMS. Very, very interesting.  Looks like a pleasure to develop for; like WordPress for eCommerce. Check out their Shopping cart demo. Continue reading “Standards-Compliant Shopping Cart with XHTML & CSS!”