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

Wordpress On ZC [Support Thread]

Views: 620,648

Results 581 to 600 of 1,861
2 Feb 2009, 4:56 PM
#581
divavocals avatar

divavocals

Totally Zenned

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

Wordpress On ZC [Support Thread]

Just wanted to add this.. I tried Kiddo's update on both a vanilla install of Zen Cart and on a modded Zen Cart install (dev site).. Works fine on both.

Wanted to make sure I included my install details:

  • Installed with WordPress integrated into Zen Cart (i.e. both Word Press and Zen Cart files are in the same root directory)
  • WordPress tables are in the same database as the Zen Cart tables (used "wp_" table prefix for the Word Press tables)Thanks again Kiddo for coming up with the magic fix!:clap:
2 Feb 2009, 7:19 PM
#582
giuly avatar

giuly

Zen Follower

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

Re: Wordpress On ZC [Support Thread]

hello i have zen cart 1.3.8a and word press 2.7

I have
zen cart in
mysite/shop
and word press in
mysite/blog yet installed.

Sincerely I read the instructions but I don't understand what I have to do now.

Please :blush:

2 Feb 2009, 8:00 PM
#583
giuly avatar

giuly

Zen Follower

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

Re: Wordpress On ZC [Support Thread]

I understand, I do all, but if I go on
mysite.com/shop/index.php?main_page=wordpress
I see
file not found /public_html/blog/wp-config.php

:frusty:

2 Feb 2009, 8:12 PM
#584
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

giuly:

I understand, I do all, but if I go on
mysite.com/shop/index.php?main_page=wordpress
I see
file not found /public_html/blog/wp-config.php

:frusty:

What value did you put in your ABSPATH?
This is about line 5 in includes/extra_configures/wordpress-config.php

Also, did you set the proper blog address and location urls in wp settings (done in youe WP admin screen)

2 Feb 2009, 8:17 PM
#585
giuly avatar

giuly

Zen Follower

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

Re: Wordpress On ZC [Support Thread]

yes I solved it was the wrong path
now it compares
Warning: Cannot modify header information - headers already sent by (o

I read the posts before, what is the patch?
thank you

2 Feb 2009, 8:18 PM
#586
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]

giuly:

yes I solved it was the wrong path
now it compares
Warning: Cannot modify header information - headers already sent by (o

I read the posts before, what is the patch?
thank youThe patch is posted on pages 57 & 58..

2 Feb 2009, 8:30 PM
#587
giuly avatar

giuly

Zen Follower

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

Re: Wordpress On ZC [Support Thread]

thanks the patch goes perfect :clap:
do you know what I have to do to insert another template WP that functions?

Thank you very much

but if I reactivate the mod Simple Seo Url of ZC it doesn't go again

2 Feb 2009, 8:33 PM
#588
northpolewholesale avatar

northpolewholesale

New Zenner

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

Re: Wordpress On ZC [Support Thread]

I just installed the Zencart 1.3.8a and WP 2.7 in different directories and db's as per WOZ read me instructions. I also added the kiddos patch for WP 2.7 in the extra_configures/wordpress-config.php.

I had a couple issues with the readme but, crossed my fingers and hit my install. No problems except formatting issues on the WP sidebar. The issue may be resolved with answers to my following questions.

In the setup readme:

Step 3:
Please change [/ZC_ROOT/includes/templates/MY_TEMP/] in template directory name using.

What the heck does that mean??? :blink:

also:
**In addition, in the case of Zen-Cart v1.2,
please use [ZC_ROOT/includes/templates/template_default/templates/tpl_wordpress_default.php.v12]. **

Huh?? :blink:

I am using the default templates on both installs. The above instructions confuse my naturally pre- confused brain.

**Also, in Step 4:
Open [Path of WordPress]/wp-include/template-loader.php, and please alter all "exit;" into "return;".
(It may be unnecessary with the WordPress most recent version.) **

I did not do the above because I used the latest WP.
Is this necessary with WP2.7 ??? :blink:

My zen/wp site maintained the blue wordpress default theme in the wordpress elements and the sidebox formatting is incorrectly spaced from left margin.

The screenshot in the readme shows a properly aligned WP sidebox and green color in WP body elements that match the zencart default.

So, I obviously missed something. Prob in step 3 or 4 right?

Other than that, seems to work well. Will be really nice to administrate pages/blog through Wordress and product data through Zencart.

Thanks for any assistance...

2 Feb 2009, 8:41 PM
#589
giuly avatar

giuly

Zen Follower

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

Re: Wordpress On ZC [Support Thread]

NorthPoleWholesale:

In the setup readme:

Step 3:
Please change [/ZC_ROOT/includes/templates/MY_TEMP/] in template directory name using.

What the heck does that mean??? :blink:

if you have your template the correct path is
/zcroot/includes/templates/yourtemplate/

also:
**In addition, in the case of Zen-Cart v1.2,
please use [ZC_ROOT/includes/templates/template_default/templates/tpl_wordpress_default.php.v12]. **

Huh?? :blink:

if you have zen cart 1.3.8a don't see that

I am using the default templates on both installs. The above instructions confuse my naturally pre- confused brain.

**Also, in Step 4:
Open [Path of WordPress]/wp-include/template-loader.php, and please alter all "exit;" into "return;".
(It may be unnecessary with the WordPress most recent version.) **

I did not do the above because I used the latest WP.
Is this necessary with WP2.7 ??? :blink:

not necessary in WP 2.7

then you have to see with default template on WP

2 Feb 2009, 9:17 PM
#590
giuly avatar

giuly

Zen Follower

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

Re: Wordpress On ZC [Support Thread]

Can I only insert a post on main page?

I have tried this code on main page , but I don't see the post

<fieldset> <legend>Latest Post</legend> <?php $posts = get_posts(‘numberposts=5‘); foreach($posts as $post) : setup_postdata($post); ?> <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a> <?php /*the_content();*/ ?> <br /> <?php endforeach; ?> </fieldset>

please...
in this mode I see only the post and blog remains separated, in way to not conflict with simple seo url?

Thank you in advance
:blush:

2 Feb 2009, 9:38 PM
#591
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

giuly:

Can I only insert a post on main page?

in this mode I see only the post and blog remains separated, in way to not conflict with simple seo url?

Thank you in advance
:blush:

Your understanding of WP is much better than mine so I can't say about the code you show, but in my opinion (and I'm sure I will get flamed for this) is that additional SEO modules that tinker with and re-write URL's are more a pain than they are worth and only (when they work) make things pretty for people and not the machines that index and rank your site.

Personally, I would dump the SEO mod(s) and let the software work as it's designed to do and instead focus on writing compelling content and make your shop full of nice things for your customers to buy.

I've had no trouble getting first page google rankings on many of my keywords just using the out-of-the-box meta tag tools and good content.

If you want to banter about the virtues and pitfalls of SEO there are a number of other interesting threads debating this with compelling arguments on both sides.

2 Feb 2009, 9:40 PM
#592
northpolewholesale avatar

northpolewholesale

New Zenner

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

Re: Wordpress On ZC [Support Thread]

Sorry, I really did not understand your answers. I do not wish to offend anyone, I just need clarification. It's me....

if you have your template the correct path is

There is a folder that is named accordingly but only contains a stylesheet "css/stylesheet_woz.css". I see nowhere in the source code where that stylesheet is referenced.

I am using the default templates. Do you mean if I use a custom template to put it in the MY_TEMP directory? The instructions read "PLEASE CHANGE". That means I need to make a change, correct?

if you have zen cart 1.3.8a don't see that

That seems clear enough. Just use the default template in 1.3.8a... right?

then you have to see with default template on WP

So, are you saying the color and alignment issues, as compared to the screenshots in the readme, are due to the default wordpress template? I will have to edit the default wordpress stylesheet to make my install look green like the screenshot in the readme? No problem, that is easy but, I was under the assumption that after a correct install, my site should look like the screenshot. Am I wrong?

Thanks for your fast help. I have been using Zencart for years. Never tried to implement with Wordpress though. Looking forward to Zencart 2.0! Hope the two will still shake hands or the Wordpress plugin will be revised to work with Zencart 2.0.

Thanks again...

2 Feb 2009, 10:20 PM
#593
giuly avatar

giuly

Zen Follower

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

Re: Wordpress On ZC [Support Thread]

kiddo:

Your understanding of WP is much better than mine so I can't say about the code you show, but in my opinion (and I'm sure I will get flamed for this) is that additional SEO modules that tinker with and re-write URL's are more a pain than they are worth and only (when they work) make things pretty for people and not the machines that index and rank your site.

Personally, I would dump the SEO mod(s) and let the software work as it's designed to do and instead focus on writing compelling content and make your shop full of nice things for your customers to buy.

I've had no trouble getting first page google rankings on many of my keywords just using the out-of-the-box meta tag tools and good content.

If you want to banter about the virtues and pitfalls of SEO there are a number of other interesting threads debating this with compelling arguments on both sides.

sorry but I don't understand very well because I'm italian, so english I know but not perfect.
Waiting this mod will go also with simple seo url, it is possible to insert only a post in main page?
Please if you know how can I do, you do at me a courtesy.

:smile:

2 Feb 2009, 10:30 PM
#594
northpolewholesale avatar

northpolewholesale

New Zenner

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

Re: Wordpress On ZC [Support Thread]

Ok, I figured it out, I think...

It seems I must add the css in the sylesheet_woz.css to the end of the stylesheet in the default stylesheet. After I appended the css, the sidebox contents aligned properly.

The instructions really do not mention that at all. There was a rem in the stylesheet that gave me a "clue".

Seems to be fine now. Now to ammend the default WP stylesheet to match Zencarts styles.

Thanks for the tips.. You got me on the right track..

2 Feb 2009, 10:36 PM
#595
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:

Sorry, I really did not understand your answers. I do not wish to offend anyone, I just need clarification. It's me....

if you have your template the correct path is

There is a folder that is named accordingly but only contains a stylesheet "css/stylesheet_woz.css". I see nowhere in the source code where that stylesheet is referenced.

I am using the default templates. Do you mean if I use a custom template to put it in the MY_TEMP directory? The instructions read "PLEASE CHANGE". That means I need to make a change, correct?
includes/templates/MY_TEMP/
The directory name in bold should match the name of your template's directory

The complete answer is a little off topic for this thread.. If you are new to Zen Cart I suggest you read this thread to get a complete understanding of how the templates work:
https://www.zen-cart.com/tutorials/index.php?article=142

I know people hate it when folks suggest reading something in order to get an answer, but in this case this is a good article to help explain the answer to your question.. Understanding this article will help you understand how/why you need to change the directory name as per the WOZ install instructions.

I'm gonna keep this next part brief because as I previously stated it is a LOT off topic for this thread.. Really briefly, you should not be using the default template AT ALL. In my opinion you should not use the Classic template either.. The classic template is a great baseline template to use when you need to determine if a mod or change you made has created an issue.. Switching to the Classic template can help with that kind of troubleshooting.. You should be working off of either a custom template you create or one of the available Zen templates.

NorthPoleWholesale:

if you have zen cart 1.3.8a don't see that

That seems clear enough. Just use the default template in 1.3.8a... right?
It means if you are using Zen Cart 1.3.8a, that this part of the instructions does not apply to you.. If you had done a find and replace on the template-loader.php, you would have seen that were are no "exit"s to replace.

NorthPoleWholesale:

then you have to see with default template on WP

So, are you saying the color and alignment issues, as compared to the screenshots in the readme, are due to the default wordpress template? I will have to edit the default wordpress stylesheet to make my install look green like the screenshot in the readme? No problem, that is easy but,*** I was under the assumption that after a correct install, my site should look like the screenshot. Am I wrong?***

Thanks for your fast help. I have been using Zencart for years. Never tried to implement with Wordpress though. Looking forward to Zencart 2.0! Hope the two will still shake hands or the Wordpress plugin will be revised to work with Zencart 2.0.

Thanks again...Yes, and if you are seeing ANY of the default WordPress template, it means that you have likely not installed the WordPress files from this mod correctly. The mod's files provide basically a clean WordPress template (minus background images and colors) which is why it will blend in with your Zen template with very little modifying afterwards.. You may make a few style tweaks to WordPress, but for the most part you really don't have to..

2 Feb 2009, 10:51 PM
#596
misty avatar

misty

Inactive

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

Re: Wordpress On ZC [Support Thread]

giuly:

Can I only insert a post on main page?

I have tried this code on main page , but I don't see the post

<fieldset> <legend>Latest Post</legend> <?php $posts = get_posts(‘numberposts=5‘); foreach($posts as $post) : setup_postdata($post); ?> <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a> <?php /*the_content();*/ ?> <br /> <?php endforeach; ?> </fieldset> please... in this mode I see only the post and blog remains separated, in way to not conflict with simple seo url?

Thank you in advance
:blush:

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:

2 Feb 2009, 10:51 PM
#597
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:

Ok, I figured it out, I think...

It seems I must add the css in the sylesheet_woz.css to the end of the stylesheet in the default stylesheet. After I appended the css, the sidebox contents aligned properly.

The instructions really do not mention that at all. There was a rem in the stylesheet that gave me a "clue".

Seems to be fine now. Now to ammend the default WP stylesheet to match Zencarts styles.

Thanks for the tips.. You got me on the right track..You actually could have just uploaded the sylesheet_woz.css to your template's CSS directory too..

2 Feb 2009, 11:05 PM
#598
northpolewholesale avatar

northpolewholesale

New Zenner

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

Re: Wordpress On ZC [Support Thread]

giuly:

sorry but I don't understand very well because I'm italian, so english I know but not perfect.
Waiting this mod will go also with simple seo url, it is possible to insert only a post in main page?
Please if you know how can I do, you do at me a courtesy.

:smile:

I do not know if this is what you are looking for but, I am very familiar with Wordpress.

In wp-admin panel go to Settings/Reading area. There you can select what shows up on your front page and/or how many posts.

As far as SEO plugins, wait until your site is all done. Check out your competitors meta and possibly analyze with some reputable software like Web Position. Check yours out with Web Position too. Many people mess up their sites indexing by trying too hard. A good xml sitemap and robots.txt file is also a plus.

Wait until your site is established and optimized, then work on positioning. The rules seem to change every few months anyhow.

With this WOZ plugin, we may even have to alter the htaccess file a bit. I have not even tried permalinks and cache yet.

As mentioned previously, make a good site with relevant content first, then worry about "advertising". (Make the product before selling it)

Most of all HAVE FUN! :cool:

2 Feb 2009, 11:08 PM
#599
northpolewholesale avatar

northpolewholesale

New Zenner

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

Re: Wordpress On ZC [Support Thread]

DivaVocals:

You actually could have just uploaded the sylesheet_woz.css to your template's CSS directory too..

AHHH YES!! I totally forgot that Zencart automatically reads all the files in there! DOH!!!! :lookaroun

Thanks for all the help folks!!

2 Feb 2009, 11:13 PM
#600
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:

AHHH YES!! I totally forgot that Zencart automatically reads all the files in there! DOH!!!! :lookaroun

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