Re: Wordpress On Zencart / Released
So it looks like I have this working... Almost. I had 2.5 installed, overwrote all my files in my Wordpress directory, and VIOLA! It just works. I'm almost amazed.
I'm not sure if this problem existed before, but everytime I submit a comment, the comment posts but takes me to the home page.
Anyone know how to fix?
Re: Wordpress On Zencart / Released
Nevermind, I got this sorted out. I reinstalled my DB and it sorted the problem. Now everything works fine.
Can you guys tell me if I should install the wordpress DB inside of Zen cart? Or should it be it's own separate database? What do you recommend?
Re: Wordpress On Zencart / Released
Quote:
Can you guys tell me if I should install the wordpress DB inside of Zen cart? Or should it be it's own separate database? What do you recommend?
Personally, always use seperate database...much easier to
find problems, should any arise..
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
swamyg1
Nevermind, I got this sorted out. I reinstalled my DB and it sorted the problem. Now everything works fine.
Can you guys tell me if I should install the wordpress DB inside of Zen cart? Or should it be it's own separate database? What do you recommend?
I think it's a matter of personal opinion.. I have Zen Cart and WordPress in the same directory, and both share the same database using the table prefixes to distinguish the two apps. I have no issue managing the two apps in this manner..
Re: Wordpress On Zencart / Released
I've been trying to follow the last few posts, but I'm still confused :| I'd like to have just one of my categories show up on my index.. right when people come to the shop (e.g. ?cat=24) but I'm having a hard time figuring out what code to put and where. I was thinking of adding it into tpl_index_default.php. Is that correct? Any help is greatly appreciated.. sorry I'm unable to fully understand the thread. This is my first actual attempt at PHP so everything just flies right over my head. haha.
Here is my test site: http://thedonutlounge.com/zencart2009v2/index.php
Here's the category from my WP I'd like on the index page: http://thedonutlounge.com/zencart2009v2/?cat=18
Re: Wordpress On Zencart / Released
Is there a way to truncate the "content" part of this on my cart's index page so just part 250 characters show up, not the whole post?
<?php
require('./wordpress/wp-blog-header.php');
?><?php
$posts = get_posts('numberposts=1'); // change to whatever number of posts to show
foreach($posts as $post) :
setup_postdata($post);
?>
<h2><strong><font color="red"><?php the_title(); ?></font></strong></h2>
<?php the_date(); ?>
<?php the_content(); ?><hr />
<?php endforeach; ?>
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
swamyg1
Is there a way to truncate the "content" part of this on my cart's index page so just part 250 characters show up, not the whole post?
<?php
require('./wordpress/wp-blog-header.php');
?><?php
$posts = get_posts('numberposts=1'); // change to whatever number of posts to show
foreach($posts as $post) :
setup_postdata($post);
?>
<h2><strong><font color="red"><?php the_title(); ?></font></strong></h2>
<?php the_date(); ?>
<?php the_content(); ?><hr />
<?php endforeach; ?>
If you include the Quicktag button called more, in the body of your post, only the portion above that line will be displayed to viewers. So, if you only want your front page to show the first sentence or two of every post, simply insert more code after the first line into every post you make.
Info at
http://codex.wordpress.org/The_Loop
Re: Wordpress On Zencart / Released
I'm trying to find a link to the patch? I am getting "Warning: Cannot modify header information" etc etc
I am using WordPress 2.7. Does this module work with that version? Will the patch fix this? Can someone tell me where the patch is, I have looked on pages 57 and 58 and can't see it?
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
jenzi
I'm trying to find a link to the patch? I am getting "Warning: Cannot modify header information" etc etc
I am using WordPress 2.7. Does this module work with that version? Will the patch fix this? Can someone tell me where the patch is, I have looked on pages 57 and 58 and can't see it?
Short answer yes.. Suggest you read through the thread a little.. (starting back on page 55 might be a good starting point to get a sense of the issue) I suggest in general that people should read through the support threads for the add-ons to get a temperature of what's going on etc.. The patch for this mod if you are using WordPress v2.7 is indeed posted on page 57.. (No link.. See Kiddo's post)
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
jenzi
I'm trying to find a link to the patch? I am getting "Warning: Cannot modify header information" etc etc
I am using WordPress 2.7. Does this module work with that version? Will the patch fix this? Can someone tell me where the patch is, I have looked on pages 57 and 58 and can't see it?
http://www.zen-cart.com/forum/showpo...&postcount=565