BUT ... the blog is still not displaying on the cms page - I was unable to select the blog files as the custom layout, which is most likely the problem - but I’m not sure why they’re not there to select.
Yes, I finally got Blog to show up as an option - for whatever reason it wasn’t accepting the config.xml file I created in the local code - I’ll have to keep looking into that to keep it upgradeable.
I noticed though on both mine and yours that you can’t comment or view comments - do you know why this is?
The way you have done this integration, does this actually make Magento work as if it were a plugin in wordpress?
I guess most importantly, if I try this out, will wordpress remain the main site - displaying the products and Magento acting more or less as a backend?
I guess that would be what the importance is - the theme.
Mostly, the worry is, I’m the programmer - the end result is then run by the client with little to no knowledge. So I don’t want things to complicated for them. They will want to be able to edit the product display from the wordpress admin. But I’m sure that controlling the inventory etc in the magento admin will be acceptable.
All sites through me are based on wordpress, but more and more are needing ecom and the wp plugins just aren’t advanced enough or supported well enough by their designers.
Magento seems nice - is it worth working it into wordpress for now and all future ecom sites?
Would you mind sending a zip of the magento package you are now using with all the wordpress integration so far? If it works well together and is easy enough to work with - I will continue to work on and repost any new ideas or advancements.
It’s just to the point where you’ve tried so many things, that unless someone else has already made the effort and feels it’s worth more time - don’t want to get into it.
@Dzynit: I think you’re approaching this backwards. What this post is about is integrating Wordpress into Magento, not the other way around. The only thing you would manage in Wordpress is the actual posts. All of the shop aspect is done through Magento in this case.
@lazzymonk: I figured it out, I just went in the sidebar.php provided in a Wordpress theme and grabbed code from there that I wanted and put it in right_col.phtml and then copied searchform.php into the magento theme for wordpress. It works like a charm.
My right_col.phtml now looks like this:
<div id="sidebar"> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <li><h3>Search</h3><li> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> -->
<?php /* If this is a 404 page */ if (is_404()) { ?> <?php /* If this is a category archive */ } elseif (is_category()) { ?> <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the day <?php the_time('l, F jS, Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <?php the_time('F, Y'); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the year <?php the_time('Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
They don’t work for me on your example either though - I can see the link, but if I click on it it doesn’t display comments or the ability to post one.
Thanks Sherrie. I get what you mean and I think it’s worth giving it a try. Would you possibly be willing to send the files you are currently using that have already been changed?
I will share back any changes or additions from that point. Please don’t think I’m being lazy - just short on time and having been working on a solution for over a week leaving other projects waiting.
I have managed to get this running as a module which can be enabled and disabled in the admin panel.
It also doesnt require a cms page to work, although you can still add the blog to a cms page as a block.
only problem is that index.php still needs editing as do some wordpress files. but im going to try and make that easier some how.
I will tell you more in the morning (4.50 am now) if any one is interested.
I have managed to get this running as a module which can be enabled and disabled in the admin panel.
It also doesnt require a cms page to work, although you can still add the blog to a cms page as a block.
only problem is that index.php still needs editing as do some wordpress files. but im going to try and make that easier some how.
I will tell you more in the morning (4.50 am now) if any one is interested.
Definitely interested - please let me know how this is going!