Zen Cart Logo
Forums / All Other Contributions/Addons / Wordpress On ZC [Support Thread]

Wordpress On ZC [Support Thread]

Views: 620,573

Results 1,241 to 1,260 of 1,861
13 Feb 2010, 1:05 AM
#1241
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Wordpress On ZC [Support Thread]

DivaVocals:

Sounds like this is a WordPress plugin issue, and might be better served/addressed on the WP forums.. Have you posted this question there???

Yes and I spoke to host - bluehost. They made sure my php.ini was working.

Directive Local Value Master Value
session.auto_start Off Off

All came out good. Host said has something to do with zencart and wp working together.

13 Feb 2010, 1:49 AM
#1242
stampsville avatar

stampsville

Zen Follower

Join Date:
Jul 2004
Posts:
123
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi All,

Finally got it installed. Wow what a ride, hit more potholes with this than in Youngstown, OH (Famous for those maneaters). Anyhow, When I log in to the site it directs me the wordpress page rather than the home page. Anyone have this issue? Took a quick glance but didn't see it anywhere.

Thanks
stampcommune . com
GJW

13 Feb 2010, 2:18 AM
#1243
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

kburner:

Yes and I spoke to host - bluehost. They made sure my php.ini was working.

Directive Local Value Master Value
session.auto_start Off Off

All came out good. Host said has something to do with zencart and wp working together.
Again if this is a WordPress Plugin you are trying to get to work on your WordPress blog, you should pose the question in the WordPress forums.. Seems the community there would be in the best position to answer your questions..

13 Feb 2010, 5:59 AM
#1244
awesome avatar

awesome

New Zenner

Join Date:
Oct 2009
Location:
USA
Posts:
13
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Why would you activate e-commerce when you have a zen cart site? seems like you would have to load all of your products into both tools.

13 Feb 2010, 6:55 AM
#1245
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

awesome:

Why would you activate e-commerce when you have a zen cart site? seems like you would have to load all of your products into both tools.:no: Not if this is a WORDPRESS plugin that embeds an existing e-commerce site (like Zen Cart) into a WordPress blog.. (much in the same way that this thread is dedicated to a module which embeds your blog into a Zen Cart site -- Which does NOT require you to load your blog posts in two locations)

14 Feb 2010, 7:21 AM
#1246
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I've got this mod working great with my site in the same directory, but I had a few small issues that I was hoping someone had some experience with:

  1. "leave a response link" at the end of single post pages goes back to home page instead of positioning you lower on page.

  2. Breadcrumb shows title tag of website -- I'd rather it say "Blog" because that's where I am. Any easy way to change this?

  3. Automatic updates in admin don't work -- in fact they completely bork the installation. I had to restore my whole site after doing this! Is there any documented way to update WP? It makes me awfully nervous knowing that WP is not up to date on my site.

Thanks!

14 Feb 2010, 2:57 PM
#1247
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

So FINALLY have time to install and test the Numinix blog embedding solution... I wanted to try and get the WOZ sideboxes to work with this embedding solution.. I have posted a comment on the Numinix blog (not on his forum) but my comment(s) are marked "Your comment is awaiting moderation" so I'm not sure he's seen it yet.. So in the meantime, I decided to post here hoping someone here has run into this and can help..

I am getting a 404 error when you access the blog, and after rechecking EVERYTHING I am plum out of ideas what went wrong.. Has anyone else had 404 errors with this solution?? I saw posts about blank pages, but not 404 errors.. Hoping I can get a hand/hint about what I might have done wrong from anyone who had the same issue..

Zen Cart address (URL) http://clients.overthehillweb.com/testsite/
Wordpress address (URL) to http://clients.overthehillweb.com/testsite/wordpress
Blog address (URL) http://clients.overthehillweb.com/testsite/blog

====================================
Opened includes/wordpress_page.php and changed

require(‘../wordpress/wp-blog-header.php’);
``` **to**
```php
require(‘wordpress/wp-blog-header.php’);
``` ====================================


**.htaccess file used is as follows: **(I tried BOTH versions of the last line.. NEITHER seems to make a difference)

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
#RewriteRule ^blog(.
)$ /index.php?main_page=blog$1 [L]


Here's the specific error I get:
> **Not Found**
> 
> The requested URL /index.php was not found on this server.
> 
> Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.I can get the main blog page to display when the URL is: <http://clients.overthehillweb.com/testsite/index.php?main_page=blog>. However, the blog links from here all get the 404 error. For example: <http://clients.overthehillweb.com/testsite/blog/?page_id=2>
 
I’ve double and triple, and quadruple checked EVERYTHING.. Dunno what could I be missing..:frusty::censored:
14 Feb 2010, 7:39 PM
#1248
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

Posted via Mobile Device

14 Feb 2010, 7:45 PM
#1249
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

deleted

14 Feb 2010, 7:58 PM
#1250
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

doh!! Disregard my last post.. Sitting at the ESPN Sports Zone watchin' the Daytona 500 and suddenly the stupidity of my error came to me.. Gonna try makin' a small change to my .htaccess file when I get home.. Shoulda been obvious.. unfortunately late night work usually means the obvious will get overlooked.. sigh
Posted via Mobile Device> DivaVocals:

So FINALLY have time to install and test the Numinix blog embedding solution... I wanted to try and get the WOZ sideboxes to work with this embedding solution.. I have posted a comment on the Numinix blog (not on his forum) but my comment(s) are marked "Your comment is awaiting moderation" so I'm not sure he's seen it yet.. So in the meantime, I decided to post here hoping someone here has run into this and can help..

I am getting a 404 error when you access the blog, and after rechecking EVERYTHING I am plum out of ideas what went wrong.. Has anyone else had 404 errors with this solution?? I saw posts about blank pages, but not 404 errors.. Hoping I can get a hand/hint about what I might have done wrong from anyone who had the same issue..

Zen Cart address (URL) http://clients.overthehillweb.com/testsite/
Wordpress address (URL) to http://clients.overthehillweb.com/testsite/wordpress
Blog address (URL) http://clients.overthehillweb.com/testsite/blog

====================================
Opened includes/wordpress_page.php and changed

require(../wordpress/wp-blog-header.php);

>  ```php
require(`wordpress/wp-blog-header.php`);
``` ====================================
> 
> 
>  **.htaccess file used is as follows: **(I tried BOTH versions of the last line.. NEITHER seems to make a difference)
> ```
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
#RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]
```This does NOT work when the URL is: <http://clients.overthehillweb.com/testsite/blog> (I get a 404 error)
> 
> Here's the specific error I get:
> I can get the main blog page to display when the URL is: <http://clients.overthehillweb.com/testsite/index.php?main_page=blog>. However, the blog links from here all get the 404 error. For example: <http://clients.overthehillweb.com/testsite/blog/?page_id=2>
>  
> I`ve double and triple, and quadruple checked EVERYTHING.. Dunno what could I be missing..:frusty::censored:
*Posted via Mobile Device*
14 Feb 2010, 9:31 PM
#1251
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I seem to have answered all my three previous questions, so in case anyone else has the same problems:

  1. "leave a response link" at the end of single post pages goes back to home page instead of positioning you lower on page.
    Just make it not a link. The comment form is right below it, so its pretty obvious how to leave a response. You find it in wp-content/themes/default/single.php.
  1. Breadcrumb shows title tag of website -- I'd rather it say "Blog" because that's where I am. Any easy way to change this?
    Turns out the breadcrumb is just the title of the blog. Change the title of the blog to whatever you desire here in WP.
  1. Automatic updates in admin don't work -- in fact they completely bork the installation. I had to restore my whole site after doing this! Is there any documented way to update WP? It makes me awfully nervous knowing that WP is not up to date on my site.
    This was obviously the most important of my concerns, and luckily, there was an easy fix. Just backup /index.php and everything in the folder wp-content/themes/default and then restore these files after the automatic update. Pretty simple to do!

There may be a few little hiccups in WOZ, but overall, it works pretty darn well! The only thing I couldn't get to work were widgets -- you have to stick with the standard sidebar. However, WP is well documented so its pretty easy to figure out how to customize the sidebar manually. I am pleased! :)

15 Feb 2010, 3:16 AM
#1252
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

srturner47:

This was obviously the most important of my concerns, and luckily, there was an easy fix. Just backup /index.php and everything in the folder wp-content/themes/default and then restore these files after the automatic update. Pretty simple to do!

There may be a few little hiccups in WOZ, but overall, it works pretty darn well! The only thing I couldn't get to work were widgets -- you have to stick with the standard sidebar. However, WP is well documented so its pretty easy to figure out how to customize the sidebar manually. I am pleased! :)Interesting.. Never had any issues with updating WP using WOZ once Kiddo posted her fix.. I also have not had any issues the widgets working with WOZ.. The "SideBar" sidebox displays them all correctly.. The sideboxes have ALWAYS worked (with the exception of that "sidebox positioning" issue I've posted about previously..)

I'm curious... Which version of WOZ are you using?? 1.3 or 1.4??

15 Feb 2010, 5:06 AM
#1253
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

So small change made, and it all works now:clap:.. Yeah the "fix" shoulda been OBVIOUS but when you start a project at 1am after a long day with kids.. (especially a long day with kids who are NOT yours..) well 'nuff said.. :cool:

Anyway I got the Numinix solution installed.. I can see now that I've installed it why it would not work with the WOZ Sideboxes Only solution before I even TRY pairing these two together.. (shoulda seen this too I guess before I opened my big mouth and suggested pairing these two up..:blush:)

IMO if I can get blog content sideboxes to work with the Numinix solution, then WOZ will be a done deal for me.. Except for my dumb a$$ed mistake earlier, the Numinix solution was MUCH easier to setup than WOZ, and it WORKS without any strange quirks.. It just needs the addition of Zen Cart sideboxes IMO.

Why?? Now this IS one thing Hira took into account when creating WOZ, and why he included sideboxes in the WOZ solution.. Because IMO the WordPress blog being embedded along with the blog posts is esthetically not very useful nor is it a good user experience if the only way to get to the blog widget content is through an embedded blog.

I believe that I may be able to use the Admin Editable sideboxes contribution to create sideboxes to go with the Numinix solution using the WordPress loop to bring in the blog content I want to appear in each sidebox... However.. That will be an experiment for another long weekend when I have time to test and play..

If anyone else wants to play on their own, here's some links regarding the WordPress Loop:

http://codex.wordpress.org/The_Loop
http://codex.wordpress.org/Template_Tags
http://codex.wordpress.org/The_Loop_in_Action
http://perishablepress.com/press/2007/11/14/easily-adaptable-wordpress-loop-templates/
http://perishablepress.com/press/2007/08/06/super-loop-exclude-specific-categories-and-display-any-number-of-posts/
http://weblogtoolscollection.com/archives/2007/06/06/global-variables-and-the-wordpress-loop/

DivaVocals:

doh!! Disregard my last post.. Sitting at the ESPN Sports Zone watchin' the Daytona 500 and suddenly the stupidity of my error came to me.. Gonna try makin' a small change to my .htaccess file when I get home.. Shoulda been obvious.. unfortunately late night work usually means the obvious will get overlooked.. sigh
Posted via Mobile Device
> DivaVocals:

So FINALLY have time to install and test the Numinix blog embedding solution... I wanted to try and get the WOZ sideboxes to work with this embedding solution.. I have posted a comment on the Numinix blog (not on his forum) but my comment(s) are marked "Your comment is awaiting moderation" so I'm not sure he's seen it yet.. So in the meantime, I decided to post here hoping someone here has run into this and can help..

I am getting a 404 error when you access the blog, and after rechecking EVERYTHING I am plum out of ideas what went wrong.. Has anyone else had 404 errors with this solution?? I saw posts about blank pages, but not 404 errors.. Hoping I can get a hand/hint about what I might have done wrong from anyone who had the same issue..

Zen Cart address (URL) http://clients.overthehillweb.com/testsite/
Wordpress address (URL) to http://clients.overthehillweb.com/testsite/wordpress
Blog address (URL) http://clients.overthehillweb.com/testsite/blog

====================================
Opened includes/wordpress_page.php and changed

require(‘../wordpress/wp-blog-header.php’);

> >  ```php
require(‘wordpress/wp-blog-header.php’);
``` ====================================
> > 
> > 
> >  **.htaccess file used is as follows: **(I tried BOTH versions of the last line.. NEITHER seems to make a difference)
> > ```
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
#RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]
```This does NOT work when the URL is: <http://clients.overthehillweb.com/testsite/blog> (I get a 404 error)
> > 
> > Here's the specific error I get:
> > I can get the main blog page to display when the URL is: <http://clients.overthehillweb.com/testsite/index.php?main_page=blog>. However, the blog links from here all get the 404 error. For example: <http://clients.overthehillweb.com/testsite/blog/?page_id=2>
> >  
> > I’ve double and triple, and quadruple checked EVERYTHING.. Dunno what could I be missing..:frusty::censored:
> *Posted via Mobile Device*
> 
15 Feb 2010, 5:42 AM
#1254
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

So as promised I wanted to post detailed instructions on how to place WordPress blog posts on the front page of your store. No offense to the member who shared the quoted information originally, but I felt that the instructions posted to execute this were a little unclear.. So I tested this myself today, and wanted to share my results (and a down and dirty how-to) with the community.

This solution is a good example of how to make use of the WordPress Loop (see my post above).. The WordPress Loop allows you to call WordPress content on non WordPress pages..

Here is the code previously posted (with a few MINOR mods):

<?php
// Include Wordpress
define('WP_USE_THEMES', false);
require('[B]/home/website/public_html/blog/[/B]wp-load.php');
query_posts('showposts=3');
?>

<?php while (have_posts()): the_post(); ?>
<font size=3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></font><br>
<?php endwhile; ?>
```Please note the section highlighted in **red**. This needs to be modified to the ABSOLUTE path to your WordPress blog. Please search through this thread for the term "absolute path", there are few posts which explain how to find the absolute path to your WordPress blog.

The code should be added to the **define_main_page.php** using the define pages editor (Admin > Tools > Define Pages Editor). You MUST use either the Plain Text Editor OR using the HTML view of your WYSIWYG editor when adding PHP code to a defined page.. and before anyone asks, NO you CANNOT use this code on an EZ Page. EZ Pages do not support adding PHP code to them..

You could also use the Admin Editable sideboxes (the mod which allows you to edit sidebox content using associated defined pages) and create a sidebox with this same code to create a sidebox which contains blog content.

Now the disclaimer: **I HAVE NOT TESTED THIS WITH WOZ**.. However, I believe that this same code can be used with WOZ as well. In fact there is a previous post from Misty that leads me to believe this will work with WOZ: <http://www.zen-cart.com/forum/showpost.php?p=710426&postcount=717>

Hope this information is of use to others..

> **DivaVocals:**
>
> I understand that, and I did look at your posts.. lol
> 
> However, there are other ways to add content to the main page which is why I was trying to get specific details on what you did.. But thanks anyway for your help.. I'm sure that I'll get it all figured out anyway, and as always I'll share my results with the community.. lol
> 
> 
> 
> > **ourcollegetown:**
> >
> > Look back over my previous posts. I was pretty detailed and gave explanations..... lol
> > 
> > It doesn't matter whether you use a simple text editer or the define page tool. Just put the language in the body of that file.
> > 
> > 
> > > **DivaVocals:**
> > >
> > > I'm not clear how WHERE you did this, and that's what I am trying to get clarification on.. Are you are saying you added this code to the main page using the define pages editor???
> > > 
> > > > **ourcollegetown:**
> > > >
> > > > That's what made this so nice and clean. Right in define main:
> > > > 
> > > > <font size=4><b><a href="http://www.OurCollegeTown.net/blog">Latest Mercer News:</a></b></font><br><?php
> > > > // Include Wordpress
> > > > define('WP_USE_THEMES', false);
> > > > require('/home/website/public_html/blog/wp-load.php');
> > > > query_posts('showposts=3');
> > > > ?>
> > > > <?php while (have_posts()): the_post(); ?>
> > > > <font size=3><a href="<?php the_permalink(); ?>"><?php the_title(); ?> - </font><font size=0> More</font></a><br>
> > > > <?php endwhile; ?>
> > > > <a href="http://www.OurCollegeTown.net/blog">More Mercer News...</a><p>
> > > > 
> > > > 
> > > > > **DivaVocals:**
> > > > >
> > > > > One more question.. Which file specifically did you add the code that calls the WordPress blogs posts on your front page??
15 Feb 2010, 8:24 AM
#1256
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

misty:

Yes you can i.e.
http://www.zen-cart.com/forum/showthread.php?p=219348#post219348Perhaps... So let me be explicitly clear about what I meant by my earlier statement.. WITHOUT a modification to the tpl_page_default.php as outlined in the post previously referenced, you cannot add PHP code to EZ Pages. I presume that only those who are more comfortable modifying core files might attempt making these kinds of changes.. However, I suspect that many DIY store owners will not feel comfortable going down this road, hence the suggestion in my earlier post.

Personally for me these posts by DrByte and others like it I've read elsewhere on this forum is why I would be cautious about doing this: http://www.zen-cart.com/forum/showpost.php?p=275873&postcount=9
http://www.zen-cart.com/forum/showpost.php?p=786045&postcount=57

15 Feb 2010, 9:38 AM
#1257
cslakans avatar

cslakans

New Zenner

Join Date:
Mar 2009
Posts:
64
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Somebody's had a very busy weekend between kid watching, races, and finding a cure to the worldwide blog/sidebox epidemic in Zen Cart! How do you do it DivaVocals? :flex: I think it needs an official name to make a distinction for the embedded blog with the sidebox not embedded compared to others..how bout blogbox? small pox...blog box....:laugh: Or if this epidemic is cured by DivaVocals then VocalBox :bigups:

15 Feb 2010, 9:39 AM
#1258
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Understood; several zencart mods require alterations to core zencart files...depends how badly you wish to use mods/changes...
:smile:

15 Feb 2010, 3:00 PM
#1259
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

misty:

Understood; several zencart mods require alterations to core zencart files...depends how badly you wish to use mods/changes...
:smile:Got it :smile:, but for most DIYers I figured (assumed) that this may be more of a change than they need/want to make just to simply add blog posts to the main defined page (or another defined page)..

15 Feb 2010, 3:18 PM
#1260
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

cslakans:

Somebody's had a very busy weekend between kid watching, races, and finding a cure to the worldwide blog/sidebox epidemic in Zen Cart! How do you do it DivaVocals? :flex: I think it needs an official name to make a distinction for the embedded blog with the sidebox not embedded compared to others..how bout blogbox? small pox...blog box....:laugh: Or if this epidemic is cured by DivaVocals then VocalBox :bigups::laugh::laugh: You are VERY funny!!! I'm happy now.. After a little over two years, I now have a FUNCTIONAL (non quirky) blog embedding solution and a direction for how to add matching sideboxes to the mix. Still tweaking stuff, and I'm gonna post some follow-up thoughts on the CSS and styling aspects of using the Numinix embedding solution..

I am seeking FULL flexibility for WordPress/Zen Cart solutions.. I think it's important. Along the way I've changed my views on embedded blogs. I can see their usefulness on many fronts. I don't think there is a BEST option only one that works best on a site by site basis.. Besides like I posted a day or two back, I don't want to tell a client they can't have something (like an embedded blog) simply because I think it's unimportant or because I don't know how to do it..

  • Separate blog with Zen Cart sideboxes
  • Separate blog with Zen Cart sideboxes and an RSS feed on the home page (or another Zen Cart page)
  • Embedded blog with Zen Cart sideboxes
  • Embedded blog with Zen Cart sideboxes and an RSS feed on the home page (or another Zen Cart page)
    I wanted something that doesn't have any quirkiness that I must "workaround". (Like sideboxes that can only be positioned on the lefthand side or incompatibilities with SEO modules) Like I said.. WOZ is a nice idea, but it has always been problematic from the day I started messing with it.. (and based on this thread, I'm not alone..)