
Originally Posted by
schoolboy
While Mike Wender is quite a clever chap, and his system of "blending" ZC and Wordpress appears to function, it is not a system I would ever install... After looking at his methodology, I get the impression that quite a bit could "fall over"...
I agree.. While I found a few tidbits in Mike Wender's post that I will make use of, IMHO his overall approach (based on digging into WordPress and ZenCart) seems flawed on several levels.. The first hint for me of why his code is the wrong approach is in the first couple of lines in the Zen Cart html_header.php file:
* Common Template
*
* outputs the html header. i,e, everything that comes before the \</head\> tag <br />
The code posted included this:
PHP Code:
add_action('wp_head','zen_head');
get_header();
I'm no coder, but I've done a fair bit of research on how to wrap the WordPress template around ZenCart and here's what I see is wrong with this code (BTW if I am using the wrong terminology here I hope the experts will chime in here):
- The Zen Cart html_header.php file as the above quote indicates is EVERYTHING that comes between the <head> & </head> tags. Making a call to the WordPress "get_header();" function includes more that that. This WordPress function will bring in the entire WordPress header.php file into the html_header.php which brings in elements to the <head> section that do not belong there.
- The WordPress "get_header();" function includes a call to the "wp_head" function. The code posted calls BOTH functions which means the "wp_head" function is being called twice. (I beleive the "wp_head" function calls all the installed WordPress plugin stylesheets and javascripts)
If you read through Mike Wender's comments even he admits that he hasn't fully tested his solution and that even HE wouldn't use it on a new install. (the most telling line is the very last one (highlighted)):
No, I haven’t tested this extensively; however, I do have it working in two installs for 2+ years.
With regards to integrating WP and ZC, it isn’t something I would do for new builds of WP e-commerce sites. I would definitely use a WP plugin as they have matured greatly since I developed this solution.
So, I’d only use the solution above with the understanding that it will probably require the developer to get his/her hands dirty in the code.
Different WP/ZC configurations with different plugins installed can introduce all manner of variables that my solution doesn’t anticipate.

Originally Posted by
schoolboy
There have been many attempts at getting WP and ZC to site nicely together, but in general, their fundamental structural schemas are too divergent.
I am no guru on the platforms of either system, but they are functionally very far apart.
But also, I look at it differently...
I believe that a blog and an eComm site serve two very different business objectives, and people vist a blog for very different reasons than an eComm site. I think that by mashing everything together can have overall detrimental effects. People get easily distracted, and while they may have come to the site initially to do some shopping, if they get the opportunity to sit and natter (or listen to other people's nattering), then you risk losing their focus. They may abandon the idea of shopping all-together.
Kinda defeats the purpose for getting them to the site in the first place.
We advise our clients to use blogs and social networking as HARVESTING sites, where people may land to have a bit of a chat, or whatever... but there is a clear strategy to get them to the eComm site ASAP, because that's what really counts.
We feel an eComm site MUST have the single-minded objective of generating sales, and to do this without the rist of distractions that could diminish that objective... That is why we suggest to clients that their eComm sites do NOT have any external links to blogs, etc, while the blogs must have lots of links to the eComm site.
Some people argue that this can "weaken" SEO potential, but we disagree. In our experience, people with a handful of well-maintained blogs and Social Pages, who use these to "harvest" visitors, find that their stores are quite busy and profitable.
I agree with all of this, and a lot of this is exactly what I preach to MOST of my clients..
However, I have a few clients who's primary business is service oriented. Their sites primary function is that of an online brochure/business card/newsletter/informational site. They do SOME sales online, but merchandise/gift certificate sales are a secondary function of the site.. They need CMS functionality with some e-comm capabilities.. (EZ Pages are not quite adequate for CMS by themselves)
Therefore, I use WordPress as a CMS because in my experience my non-techy clients have an easier time adding/updating site content & articles on their own using WordPress versus Joomla or Drupal.. I prefer ZenCart for e-comm as I remain un-impressed by ANY of the WordPress e-comm plugins..
However, I wanted to find a way to simplify templating WordPress and the Zen Cart so that they look alike with little fuss. So my current interest in WordPress/Zen Cart "integration" is investigating how to have ZenCart and WordPress share the WordPress theme.. This IMHO solves the real reason I think most folks seek "blog embedding" solutions to begin with -- they want to make the blog and the store look alike without having to do a lot of work to manage templates for two different systems.
If I were the OP, I'd keep digging for a solution and be prepared to get his hands dirty.. One thing I have discovered in my research is that there is no clean way to do a "plug-n-play" kind of template tat I can see. (Google "display WordPress on External site" as a starting point) There are some basics that must be adhered to, but each WordPress template will be slightly different and therefore you will have to tweak things for each ZenCart/WordPress implementation..