Results 1 to 10 of 19

Hybrid View

  1. #1
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default WordPress and Zen Cart

    Maybe this isn't the place to post this but since all of us are using zen cart maybe it is ;)

    I have the module that allows WP and zen cart to play together installed and working. I would like the front page of my store to display the main wordpress page.

    I know i could do a redirect to the wordpress page but that's kind of a drag.. I'd really like to have the blog and at the bottom of the blog still display the "New Products for December" thingie..

    I know that's asking alot. I thought about maybe somehow doing a server side includes but that doesn't seem to be working.

    Any thoughts??

  2. #2
    Join Date
    Nov 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: WordPress and Zen Cart

    It should not be hard, just modify your zen cart template to display the wordpress loop on the front page or where-ever you want the loop, it will put it there

    hope that helps
    http://www.linuxnetworkcare.com
    Affordable Linux Server Managament Solution

  3. #3
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: WordPress and Zen Cart

    sounds easy but i have no idea what tham means haha! I looked in the faq and forums about wordpress and loops, also on the wordpress site. But i don't really get it. Is their some kind of tag i can stick on the zen index.php?

    Could you give me an example? Sorry to be such a pain.. I'm stumped on this one.

    Thanks!
    Jamie

  4. #4
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: WordPress and Zen Cart

    Quote Originally Posted by jamiemcparland View Post
    sounds easy but i have no idea what tham means haha! I looked in the faq and forums about wordpress and loops, also on the wordpress site. But i don't really get it. Is their some kind of tag i can stick on the zen index.php?

    Could you give me an example? Sorry to be such a pain.. I'm stumped on this one.

    Thanks!
    Jamie
    Are you talking about something like on the front page of http://www.getyourgameshere.com ? I basically did what xerophyte was saying.. put some code into my define_main_page that loops and pulls posts from wordpress (currently latest 3 posts)

  5. #5
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: WordPress and Zen Cart

    Yea that's exactly it! I'm getting close. I got a loop going and i'm sticking it in the define_main_page.php but i'm fighting an error message right now.

    Heres the loop that i'm working on right now

    Code:
    <?php
    require('./wordpress/wp-blog-header.php');
    ?>
    
    <div id="blog"><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    	 <h3 class="storytitle"><?php the_title(); ?></a></h3>
    </div>
    	
    	<div class="storycontent">
    		<?php the_content(__('(more...)')); ?>
    	</div>
    	
    
    </div>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    </div>
    But i'm getting this error ugh!

    1146 Table 'wordpress.configuration' doesn't exist
    in:
    [select configuration_key, configuration_value from configuration where configuration_key RLIKE 'SHOW_PRODUCT_INFO_MAIN' and configuration_value > 0 order by configuration_value]
    1146 Table 'wordpress.sessions' doesn't exist
    in:
    [select count(*) as total from sessions where sesskey = '2pavvh6j66ieaf1p5as8bo3h81']

    Care to share the loop code your useing ;)

  6. #6
    Join Date
    Dec 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: WordPress and Zen Cart

    Hey samad64,
    that's a great theme you have on your site. Is that one you made or is it available for download somewhere?

 

 

Similar Threads

  1. Wordpress blog and Zen-Cart?
    By Rimo in forum General Questions
    Replies: 1
    Last Post: 25 Apr 2011, 09:35 PM
  2. Wordpress and Zen Cart Sessions
    By roweenaweb in forum General Questions
    Replies: 3
    Last Post: 28 Sep 2010, 01:29 PM
  3. Replies: 1
    Last Post: 18 Jul 2010, 08:35 AM
  4. Wordpress and Zen-Cart
    By gene6482 in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2007, 04:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg