Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Magento & Wordpress
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 

No problem, I’d love to see this work ... unfortunately, still getting the same error message after changing to:

if (!function_exists('__')) {
    
function __($text$domain 'default'{
        
return translate($text$domain);
    
}
}

on line 134 in l10n.php

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 

Alright, I actually figured out from here: http://www.programmiamo.it/blog/integrare-wordpress-e-magento.html that the code I changed actually needed to be changed on 116-118 not 133-135

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.

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

yer sorry i just noticed that. and have updated the post.

have you cleared the cache?

 Signature 

If someone tells you its impossible, try anyway or you will never know.
Compound Interest Calculator

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 

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?

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

Comments seem to work fine for me?

Can you post a link?

 Signature 

If someone tells you its impossible, try anyway or you will never know.
Compound Interest Calculator

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dzynit
Jr. Member
 
Total Posts:  3
Joined:  2008-06-10
 

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?

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 
lazzymonk - 10 June 2008 08:32 AM

Comments seem to work fine for me?

Can you post a link?

http://www.minervapromotions.com/gladrag/blog/

Also ... do you know how to set it up to keep all the default content on the right - like here: http://www.compagniadelcavatappi.it/magtest/blog/

I can’t seem to find the difference in their post - unless it’s the wordpress theme.

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dzynit
Jr. Member
 
Total Posts:  3
Joined:  2008-06-10
 

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.

Thanks for your time.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 

@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 youthe authorNothing lengthyjust an overview.</p>
            </
li>
            -->

            
<?php if ( is_404() || is_category() || is_day() || is_month() ||
                        
is_year() || is_search() || is_paged() ) {
            ?> 
<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'); ?></ablog 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'); ?></ablog 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'); ?></ablog 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'); ?></ablog archives
            
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search resultsyou 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'); ?></ablog archives.</p>

            
<?php } ?>

            
</li<?php }?>
<br />
            
<?php wp_list_pages('title_li=<h3>Pages</h3>' ); ?>
<br />
            <
li><h3>Archives</h3>
                <
ul>
                
<?php wp_get_archives('type=monthly'); ?>
                
</ul>
            </
li>
<
br />
            
<?php wp_list_categories('show_count=1&title;_li=<h3>Categories</h3>'); ?>

            <?php 
/* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<br />
                <
li><h3>RSS</h3>
                <
ul>
                    <
li><a href="<?php bloginfo('rss2_url'); ?>" ><?php echo $this->__('Posts'?></a></li>
                <
li><a href="<?php bloginfo('comments_rss2_url'); ?>" ><?php echo $this->__('Comments'?></a></li>
                </
ul>
                </
li>
            
<?php } ?>

            <?php 
endif; ?>
        
</ul>
    </
div>

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 
lazzymonk - 10 June 2008 08:32 AM

Comments seem to work fine for me?

Can you post a link?

Just to clarify - the comments still aren’t working for me: http://www.minervapromotions.com/gladrag/blog

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.

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dzynit
Jr. Member
 
Total Posts:  3
Joined:  2008-06-10
 

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.

Thanks much.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

@ sherrie - can you try the attached blog.phtml, thanx

File Attachments
blog.phtml  (File Size: 4KB - Downloads: 129)
 Signature 

If someone tells you its impossible, try anyway or you will never know.
Compound Interest Calculator

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

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.

 Signature 

If someone tells you its impossible, try anyway or you will never know.
Compound Interest Calculator

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 
lazzymonk - 10 June 2008 01:48 PM

@ sherrie - can you try the attached blog.phtml, thanx

Actually that took away the container and messed up the display ...

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Mentor
 
Avatar
Total Posts:  1191
Joined:  2007-12-14
Illinois, USA
 
lazzymonk - 10 June 2008 07:42 PM

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! smile

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
195660 users|1437 users currently online|365758 forum posts