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

Wordpress On ZC [Support Thread]

Views: 620,637

Results 601 to 620 of 1,861
2 Feb 2009, 11:23 PM
#601
northpolewholesale avatar

northpolewholesale

New Zenner

Join Date:
Feb 2009
Location:
Florida
Posts:
18
Plugin Contributions:
0

Wordpress On ZC [Support Thread]

DivaVocals:

It's all the free beer going to your head!!:laugh::laugh: Cool blog..

Well, going to my gut yes, no hope for my head though... I can exercise to help my gut. :flex: THNX! :D

Before I continue though, I am gonna re-install it all in the same directory. The advantages outweigh the extra work to keep them seperate... I am sure I will run into index.php issues but, I noticed lots of info previously in this thread that will prob answer my issues.

Thanks again all..

2 Feb 2009, 11:26 PM
#602
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]

NorthPoleWholesale:

Well, going to my gut yes, no hope for my head though... I can exercise to help my gut. :flex: THNX! :D

Before I continue though, I am gonna re-install it all in the same directory. The advantages outweigh the extra work to keep them seperate... I am sure I will run into index.php issues but, I noticed lots of info previously in this thread that will prob answer my issues.

Thanks again all..You can avoid the index.php issues by not copying over thw WordPress index.php..

2 Feb 2009, 11:34 PM
#603
misty avatar

misty

Inactive

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

Re: Wordpress On ZC [Support Thread]

DivaVocals:

You can avoid the index.php issues by not copying over thw WordPress index.php..Safest way is to rename zencart index.php to index_ZENCART.php before moving or installing WordPress
:wink:

2 Feb 2009, 11:51 PM
#604
northpolewholesale avatar

northpolewholesale

New Zenner

Join Date:
Feb 2009
Location:
Florida
Posts:
18
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

DivaVocals:

You can avoid the index.php issues by not copying over thw WordPress index.php..

That's cool! I am currently able to hit each index file individually. The wordpress is stripped of title, head and sidebars via this plugins wp template needless to say.

I was under the incorrect assumption that the zencart index/script/woz plugin was including the wp components.
:oops: I am confused again...

I am very ignorant to this plugins functions. I have not read the script yet, just tried it. I will dive into it. I'll load up the noggin afore I go abloggin.. :shocking:

Thanks again! :clap:

2 Feb 2009, 11:56 PM
#605
northpolewholesale avatar

northpolewholesale

New Zenner

Join Date:
Feb 2009
Location:
Florida
Posts:
18
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

misty:

Safest way is to rename zencart index.php to index_ZENCART.php before moving or installing WordPress
:wink:

Thanks Misty,

I read that earlier from you too. You posted a bunch of good info I will refer to.

I am outta here for now. A cold YBOR GOLD Amber Lager is calling my name. (Along with the kids wanting fed...) :hug:

GREAT SUPPORT FORUM AND MEMBERS! :bigups:

3 Feb 2009, 12:32 AM
#606
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:

Safest way is to rename zencart index.php to index_ZENCART.php before moving or installing WordPress
:wink:Thanks for the tip.. But honestly I've installed and re-installed this mod so many times in the last week, and from my personal experience I found that if I install WordPress into the same directory as Zen Cart that not FTPing over the WordPress index.php works just fine for me.. If I need to, I rename the WordPress index.php and upload for testing purposes.. I've pretty much been leaving the Zen Cart index.php alone..

3 Feb 2009, 1:04 AM
#607
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

misty:

Show wordpress posts on main page of zencart..
Post following code into define_main_page.php

<?php require('./wp-blog-header.php'); ?><?php

$posts = get_posts('numberposts=[B]2[/B]'); // change to whatever number of posts to show
foreach($posts as $post) :
setup_postdata($post);
?>

<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_date(); ?> <?php the_content(); ?><hr /> <?php endforeach; ?> ```Alter 2, marked red, to number of posts to show.. > :smile:

sorry please, so if I have
https://www.mysite.com/shop
https://www.mysite.com/blog

and a post https://www.mysite.com/blog/my-category/my-post

What I have to write?
I have to substitute permanent link in that code?
I have to substitute the path of ./wp-blog-header.php?

sorry and thank you in advance, it is urgent

@northpole I disabled this site that I am testing by robots.txt so search engines wouldn't see it

I have the real site in https://www.mysite.com and so I am restyling and create a new clean installation of all mods and mods added.
:smile:

3 Feb 2009, 2:16 AM
#608
cpixi avatar

cpixi

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I am also trying this... it was killing me that I could see the WP work when i had domain.com/? or ?main_page=wordpress worked, however, the "index.php" before the ? mark caused great problems. I'll let you know, I have a pretty modified zen cart... hope it works. thank you for working so hard on this

3 Feb 2009, 3:12 AM
#609
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]

cpixi:

I am also trying this... it was killing me that I could see the WP work when i had domain.com/? or ?main_page=wordpress worked, however, the "index.php" before the ? mark caused great problems. I'll let you know, I have a pretty modified zen cart... hope it works. thank you for working so hard on thisShould work just fine on a modded cart.. I just uploaded to my client's modded dev site, and all is very right in the world..:smile:

3 Feb 2009, 5:13 AM
#610
misty avatar

misty

Inactive

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

Re: Wordpress On ZC [Support Thread]

DivaVocals:

Thanks for the tip.. But honestly I've installed and re-installed this mod so many times in the last week, and from my personal experience I found that if I install WordPress into the same directory as Zen Cart that not FTPing over the WordPress index.php works just fine for me.. If I need to, I rename the WordPress index.php and upload for testing purposes.. I've pretty much been leaving the Zen Cart index.php alone..
As you have installed wordpress mod many times, am sure that method works for you..However, for newbies to this mod,
renaming zencart index.php is much safer method..
:wink:

3 Feb 2009, 3:30 PM
#611
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I am trying to uninstall but

Please delete the file which I uploaded from a server. In phpmyadmin, please delete table (wp_xxx) of WordPress afterwards.

I don't find this table on database wordpress :blink::blink:
maybe it was for this that it didn't go.

What table is?
Please

4 Feb 2009, 6:48 AM
#612
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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?

4 Feb 2009, 8:14 AM
#613
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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?

4 Feb 2009, 8:21 AM
#614
misty avatar

misty

Inactive

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

Re: Wordpress On ZC [Support Thread]

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..

4 Feb 2009, 2:07 PM
#615
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]

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..

5 Feb 2009, 12:58 AM
#616
thedonutlounge avatar

thedonutlounge

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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

6 Feb 2009, 3:59 AM
#617
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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; ?>
6 Feb 2009, 7:18 AM
#618
misty avatar

misty

Inactive

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

Re: Wordpress On ZC [Support Thread]

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

9 Feb 2009, 1:19 PM
#619
jenzi avatar

jenzi

Zen Follower

Join Date:
Jan 2007
Posts:
145
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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?

9 Feb 2009, 1:39 PM
#620
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]

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)