Tag Archives: WordPress Integration

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?

Posted in Interspire, WordPress | Tagged , , , | 19 Comments