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

Wordpress On ZC [Support Thread]

Views: 620,622

Results 781 to 800 of 1,861
2 May 2009, 2:44 AM
#781
ebookba avatar

ebookba

New Zenner

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

Wordpress On ZC [Support Thread]

Anyone knows how to fix automatic redirection to wordpress blog when a '?' is detected at the end?

such as
http://domain.com/?
will redirect to
http://domain.com/index.php?main_page=wordpress

Because it is an issue with zenid attached to the url; and clicking on 'home' will bring you to the blog.

Thanks for any help~!

2 May 2009, 4:33 PM
#782
cannie avatar

cannie

New Zenner

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

Re: Wordpress On ZC [Support Thread]

I've installed WP on 2 sites.
One site everything works fine. The "pages" open up in a new window and not inside of the site on the second one.

I don't know if that makes sense, but here is the link:
http://chuforiagraffix.com/store/index.php?main_page=wordpress

I need everything to open up right in the little wordpress section.
If someone could give me a clue as to what setting or change I might need to make it would be appreciated.

thanks in advance!

3 May 2009, 7:04 PM
#783
magicman avatar

magicman

Zen Follower

Join Date:
Oct 2007
Location:
MA, USA
Posts:
385
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Sorry, I cant get it to work. I have WP installed into blog directory and ZC installed into store directory.

Please help with proper config. I am not sure what the path to WP is.

4 May 2009, 5:36 PM
#784
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

MagicMan:

Sorry, I cant get it to work. I have WP installed into blog directory and ZC installed into store directory.

Please help with proper config. I am not sure what the path to WP is.

path to wordpress: yoursite.com/blog_directory/

or do you mean the ABSPATH thing from the wordpress-config.php file?

6 May 2009, 5:55 PM
#785
pajur avatar

pajur

New Zenner

Join Date:
Apr 2009
Posts:
10
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi,

i have no problems running this mod. I just want to ask - is there someone who is using also some wordpress plugins? What about TDO-MINI-FORMS?

I tried to use this one, but didnt work. I am not sure if this is the right place to discuss such complicated issue (at least for me :) )
just wanted to ask if there is someone with similar problems.

7 May 2009, 1:54 PM
#786
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]

pajur:

Hi,

i have no problems running this mod. I just want to ask - is there someone who is using also some wordpress plugins? What about TDO-MINI-FORMS?

I tried to use this one, but didnt work. I am not sure if this is the right place to discuss such complicated issue (at least for me :) )
just wanted to ask if there is someone with similar problems.You are probably not going to get much response here on how to get WP plugins to work with this mod. You might have better success on the WP forums..

9 May 2009, 5:14 PM
#787
loosefast avatar

loosefast

Zen Follower

Join Date:
Jun 2005
Posts:
199
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

DivaVocals:

Your configuration is the same for the two clients sites (one is live, one is still in development)

Both sites were running the latest versions of WordPress, ZenCart and, WOZ. I had the "posts not found" error that a few others have posted about. After doing some extensive testing of my own I too determined that the issue is probably in the sidebox code..

Please don't take this the wrong way, but now what?? We've all identified that there is indeed an issue.. We all have determined where the code that needs to be modified is likely located.. However, unless and until someone who knows PHP steps in to take over this project, that's the extent of it for now. Our only other option is to PAY someone who knows PHP to fix this.

FYI.. I did make ONE attempt at a paid fix for myself, but was unsuccessful in finding anyone willing to bid on (or follow-up) the job. I posted a request on the commercial forum here and on another site. As I was not getting a satisfactory response, I moved on and found an alternate solution.. Both of my clients are happy. One prefers the seperate blog (she didn't flinch when I told her we had to abandon the embedded blog), the other never saw the blog embedded, and is happy with the solution she has been presented.

Perhaps when time/resources permit, I may make another attempt to find a commercial resource to fix this mod for me. I suspect that the likelyhood of someone stepping in to take over for this mod is unlikely given the upcoming Zen release..

You're welcome..:smile:

I wanted to update everybody on the problem I was having using the tpl_wp_sidebar.php file to display links to posts that actually go to the posts and don't display a "Post not found" message" I don't know if this will work for everybody, since its kind of funky.

Heres the site where I'm using it http://asialuna.com

The Recent posts is displaying in the right sidebox. I added code to the tpl_wp_pages.php page like so:

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
  $content = "";

if($woz_install){

  $content = '<ul>' . wp_list_pages('echo=0&title_li=') . '</ul>';

}
?>

<!-- start woz posts display -->


<h3 class="rightBoxHeading2" id="wppagesHeading">Recent Posts</h3>

<ul>
<?php
$posts = get_posts('numberposts=5'); // change to whatever number of posts to show
foreach($posts as $post) :
setup_postdata($post);
?>

<li  class="recent-posts"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<!-- <?php the_excerpt(); ?>  -->
<!-- <hr /> -->
<?php endforeach; ?>
</ul>

<!-- <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>  -->
<!-- <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>  -->

<!-- end woz posts display -->

I got the added code from an earlier post in this thread. As I said its a little funky, piggybacking the display of posts on the pages sidebar, but I'm curious to know if it can be refined and if it works for anybody else.

thanks

13 May 2009, 10:43 AM
#788
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

OK. I am trying to integrate zen cart and wordpress. I have the most recent releases of both installed in separate sub-directories.

I have uploaded the various components of WOZ and have edited the abspath to the appropriate wordpress path.

In zen cart I can get a sidebar for my blog. When I click on the link I get the following error message :

Warning: Cannot modify header information - headers already sent by (output started at /home/16602/adseddon/www.starlessriver.com/public_html/shop/includes/templates/starlessriver/templates/tpl_modules_categories_tabs.php:21) in /home/16602/adseddon/www.starlessriver.com/public_html/news/wp-includes/pluggable.php on line 850

out of my depth now :-)

can anybody help?

thank you!
Nick

13 May 2009, 9:05 PM
#789
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]

niccol:

OK. I am trying to integrate zen cart and wordpress. I have the most recent releases of both installed in separate sub-directories.

I have uploaded the various components of WOZ and have edited the abspath to the appropriate wordpress path.

In zen cart I can get a sidebar for my blog. When I click on the link I get the following error message :

out of my depth now :-)

can anybody help?

thank you!
NickSearch this thread for kiddo's fix..

13 May 2009, 10:37 PM
#790
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Thank you divavocals - works great. had searched but obciously not for the right thing. thanks for pointing me in the right direction
nick

14 May 2009, 5:43 PM
#791
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

sorry, I have another slight problem.

when i try to switch wordpress themes I get a blank screen rather than the preview with the error message:

Fatal error: Call to a member function get_template_dir() 
on a non-object in /home/16602/adseddon/www.starlessriver.com
/public_html/shop/includes/languages/english/starlessriver
/credit_cards.php on line 46

actually the functionality of switching themes works fine so I just get an annoying error message. A quick search indicated that this error isn't unknown but Dr Byte says that this is probably a WOZ issue so here I am back in this forum !:smile:

thanks again

Nick

14 May 2009, 10:40 PM
#792
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]

niccol:

sorry, I have another slight problem.

when i try to switch wordpress themes I get a blank screen rather than the preview with the error message:

Fatal error: Call to a member function get_template_dir()
on a non-object in /home/16602/adseddon/www.starlessriver.com
/public_html/shop/includes/languages/english/starlessriver
/credit_cards.php on line 46

>  
> actually the functionality of switching themes works fine so I just get an annoying error message. A quick search indicated that this error isn't unknown but Dr Byte says that this is probably a WOZ issue so here I am back in this forum !:smile:
>  
> thanks again
>  
>  
>  
> Nick
I would suggest search through this thread for the error message.. Aside from that, it is my understanding that this module as written was meant to be used with the default WP theme. Another theme may introduce code which causes WOZ ro behave badly/oddly. (I have seen WP themes which even embed encrypted code which displays ads and odd links on your site.:no:) 
 
Barring you finding an answer within this thread, you might also try posing your question on the WP forum as well. Otherwise my strong suggestion is to use the WP default template and modify it to match the theme you are trying to use.. WP themes are pretty simple to mod..:yes:
 
Also one last thing.. If I had to guess, it sounds like your WP files are in the same directory as your Zen files.. This might cause an issue if you are using a theme this mod was not intended to work with.. If I am right, try moving WP to it's own directory and update WOZ to reflect this change, and see if you still have the same issue..
14 May 2009, 11:25 PM
#793
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

DivaVocals:

I would suggest search through this thread for the error message.. Aside from that, it is my understanding that this module as written was meant to be used with the default WP theme. Another theme may introduce code which causes WOZ ro behave badly/oddly. (I have seen WP themes which even embed encrypted code which displays ads and odd links on your site.:no:)

Barring you finding an answer within this thread, you might also try posing your question on the WP forum as well. Otherwise my strong suggestion is to use the WP default template and modify it to match the theme you are trying to use.. WP themes are pretty simple to mod..:yes:

Also one last thing.. If I had to guess, it sounds like your WP files are in the same directory as your Zen files.. This might cause an issue if you are using a theme this mod was not intended to work with.. If I am right, try moving WP to it's own directory and update WOZ to reflect this change, and see if you still have the same issue..

Thanks for your answer and your time,

I find it unlikely that it is a issue with the theme. I have a bit of experience with WP themes and had just copied the default theme to a new folder to use as the base of a new theme. So the two folders actually contain exactly the same files. It is not as if I am using some whacky bought theme.

Also, the error occurs whether I am changing 'from' or 'to' the default theme which suggests it doesn't have too much to do with the theme.

No, the installation is in two separate directories both at the same level as each other - one below root.

I have searched this thread and haven't come up with much of use. Likewise the Zen Cart forum.

To me it looks like the error message is definitely Zen Cart generated as it refers to a Zen Cart file:

The line it refers to is line 46 of the credit_card.php file. Which goes:

define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));

The only reference in the forum to this goes along the lines of :

The choke occurs here:

Fatal error: Call to a member function on a non-object in /home/content/z/o/l/zolaweb/html/zencart/includes/languages/english/credit_cards.php on line 46

The issue is that the object $template doesn't exist

That being said, $template should have been created, it gets called earlier in the code without puking, so I'm digging through to see where it gets unset/lost whatever.

I will report back later today with more details and hopefully a fix.

But really other than talking about it being a session issue does not provide any answers.

Does anybody have any ideas?

Nick

14 May 2009, 11:39 PM
#794
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 if the new theme is based on the default, AND the add-on worked with the default theme, why not just simply modify the default theme and be done with it..?? Just a thought.. I mean sure it would be nice to know THE answer:yes:, but seeing that this is largely an abandoned add-on, you may not get an answer here.. (sad but true) You might need to start looking at "Plan B" options..

niccol:

Thanks for your answer and your time,

I find it unlikely that it is a issue with the theme. I have a bit of experience with WP themes and had just copied the default theme to a new folder to use as the base of a new theme. So the two folders actually contain exactly the same files. It is not as if I am using some whacky bought theme.

Also, the error occurs whether I am changing 'from' or 'to' the default theme which suggests it doesn't have too much to do with the theme.

No, the installation is in two separate directories both at the same level as each other - one below root.

I have searched this thread and haven't come up with much of use. Likewise the Zen Cart forum.

To me it looks like the error message is definitely Zen Cart generated as it refers to a Zen Cart file:

The line it refers to is line 46 of the credit_card.php file. Which goes:

define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));

>  
>  
> The only reference in the forum to this goes along the lines of :
>  
>  
>  
> But really other than talking about it being a session issue does not provide any answers.
>  
> Does anybody have any ideas?
>  
> Nick
15 May 2009, 9:01 AM
#795
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Well, actually i can work with any theme I like as long as I don't change between them.

Yes, you are right - I may never know the answer. It isn't a show stopper.

So, I will sidestep the issue. Which raises another question whether I am going about this the right way in the first place.

I have a site with a shop and with a 'must sign in to comment' wordpress news section. I want the login's for the shop and the blog to be the same. If a customer is logged into the blog then they are logged into the shop. And vice versa.

As I write this I realise the code isn't all that intricate but is there a good solution to do this that already exists?

WOZ with the add-on zencart-and-wordpress-user-integration seemed to do it but is there a better solution? I don't really care about templates/themes - I can make wordpress/zen cart/xhtml all look the same anyway.

Thanks

Nick

And thanks divavocals for all your help in general:smile:

15 May 2009, 1:57 PM
#796
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]

niccol:

Well, actually i can work with any theme I like as long as I don't change between them.

Yes, you are right - I may never know the answer. It isn't a show stopper.

So, I will sidestep the issue. Which raises another question whether I am going about this the right way in the first place.

I have a site with a shop and with a 'must sign in to comment' wordpress news section. I want the login's for the shop and the blog to be the same. If a customer is logged into the blog then they are logged into the shop. And vice versa.

As I write this I realise the code isn't all that intricate but is there a good solution to do this that already exists?

WOZ with the add-on zencart-and-wordpress-user-integration seemed to do it but is there a better solution? I don't really care about templates/themes - I can make wordpress/zen cart/xhtml all look the same anyway.

Thanks

Nick

And thanks divavocals for all your help in general:smile:You're welcome.. :smile: As for your question HOPEFULLY someone will post an answer.. However, the real downside of this add-on is that because it is an abandoned project, this thread generally only sees action when people have issues.. There unfortunately isn't enough of an exchange of "ideas' in this thread.. sigh

15 May 2009, 2:49 PM
#797
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

niccol:

The line it refers to is line 46 of the credit_card.php file. Which goes:

define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));

> Does anybody have any ideas? Nick

the conflict is because of this variable: $template , which has been defined earlier by wordpress. Do you still have this line at the end of your wordpress-config.php file? $template = new template_func(DIR_WS_TEMPLATE);
15 May 2009, 6:09 PM
#798
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

rainthebat:

the conflict is because of this variable: $template , which has been defined earlier by wordpress. Do you still have this line at the end of your wordpress-config.php file? $template = new template_func(DIR_WS_TEMPLATE);

no I don't have that line anywhere in that file.

thanks for your help.

Nick

15 May 2009, 6:24 PM
#799
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

niccol:

no I don't have that line anywhere in that file.

thanks for your help.

Nick

I am sorry, that is incorrect. That line does not go at the end of wordpress-config.

However, I still believe that it is the $template variable problem.

When does this problem occur? Is it when accessing the wordpress_default.php page? Or when accessing any wordpress page?

15 May 2009, 6:47 PM
#800
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

niccol:

Does anybody have any ideas?

Nick

It is something to do with the pesky wp_redirect() function on line 17 of wp-admin/themes.php