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, 16 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.
Related posts:
Katz Web Services is a
{ 11 comments… read them below or add one }
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!!
I have a working Interspire Shop Cart I wonder what the advantage and if you have a model working with this technique your
Thanks
I installed WordPress; I added your code; now what? How do I apply WordPress to my Interspire Shopping Cart?
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!
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.
Any updates on how to pull this off with the new version of Interspire’s Cart?
//sid
Any update for the latest ISC Zack ? And more information on how to use it ?
Thanks
Hi Joe,
I found out that the page turned blank because of a PHP function conflict. Check out the updated post above.
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.
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.
Yes, that’s exactly what I would have tried to say