Incorporate WordPress with Interspire Shopping Cart

March 30, 2009

in Interspire, WordPress

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');.

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:

  formatting.php (91.7 KiB, 15 hits)

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.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • Twitter

Related posts:

  1. Recover your password from Interspire Shopping Cart
  2. Interspire Shopping Cart — Add a Brands Drop-Down Menu
  3. Standards-Compliant Shopping Cart with XHTML & CSS!
  4. Get Adjacent Images – More WordPress Functions
  5. Nofollow SEO for your WordPress Functions

{ 11 comments… read them below or add one }

Mitch May 21, 2009 at 10:07 pm

I have a real estate website using Interspire Shopping Cart, and was just reading your Wordpress real estate site article with the view to ditch interspire. I never thought of combining them – great idea. Thanks for the post!!

Reply

Bruno Goyanna June 5, 2009 at 2:05 pm

I have a working Interspire Shop Cart I wonder what the advantage and if you have a model working with this technique your

Thanks

Reply

TheFresh June 12, 2009 at 8:21 pm

I installed WordPress; I added your code; now what? How do I apply WordPress to my Interspire Shopping Cart?

Reply

Joe January 15, 2010 at 10:30 pm

Could you explain this a little more clearly?  I have a couple of questions.  1. There isn’t a ?> in the init.php file.   2.  When I added this at the end of the page, it made my homepage turn blank. 

I guess… what is the expected outcome when doing this?  And where exactly should this go?  I’m not sure I completely understand what this would accomplish, but I’m very interested in finding out. 

Thanks! 

Reply

Zack Katz January 19, 2010 at 3:52 pm

I wrote this tutorial for a previous version of Interspire Shopping Cart. I am working on a newer version of Interspire right now, and I’ll post a revised update on how to incorporate the two.

The goal is simply to have the WordPress database and functions available in the Interspire framework, so that if I wanted to, I could find related posts to a specific product, for example.

Reply

Sid January 26, 2010 at 2:56 am

Any updates on how to pull this off with the new version of Interspire’s Cart?
 
//sid

Reply

Tommy January 29, 2010 at 7:04 am

Any update for the latest ISC Zack  ? And more information on how to use it ?

Thanks

Reply

Zack Katz February 19, 2010 at 6:02 am

Hi Joe,
I found out that the page turned blank because of a PHP function conflict. Check out the updated post above.

Reply

Mike February 5, 2010 at 1:18 pm

Would be interested in this too…haven’t bought interspire cart yet, but probably would if there was an easy way to incorporate it into WP.

Reply

Danno March 10, 2010 at 2:55 am

Cool info Zack. I am currently using both I have http://shop.dura-mounts.com running wordpress and http://www.dura-mounts.com running interspire. I am going to use your technique. Thanks. By the way people. What Zack is saying is that you will be able to call and use funtions and the database from wordpress to use in Interspire, but you still need some programming knowledge to implement it.

Reply

Zack Katz March 10, 2010 at 4:06 am

Yes, that’s exactly what I would have tried to say :-)

Reply

Leave a Comment

Previous post:

Next post: