Woo Commerce Plugin for Pagelines!

30 posts in this topic

Posted · Report post

I asked Mike Jolley from Woo Commerce about Pagelines customizations (after seeing the Jigoshop plugin) and he just went ahead and did it. Amazing! This is a great integration and even allows you to use the Woo Commerce with Pagelines sections. So far it seems to be working fine, just be aware that I don't think he plans to support it or update it much, though it's on github now. https://github.com/mikejolley/pagelines-woocommerce Thanks Mike! J

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Hi, That's cool! I'll bring this to the attention of our developers.
1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

This is awesome! Just installed it and it worked beautifully. I hope this is picked up as an official plugin, woocommerce is amazing and there's room for 2 ecommerce plugins for pagelines :)
1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for letting us know!

Share this post


Link to post
Share on other sites

Posted · Report post

Yes an official plugin would be great. Most of my clients use woocommerce as plugin (more extensions available) for them is a reliable and supported plugin the most important thing.(There site is there income) They are impressed from pagelines but do not switch because there is no supported plugin from pagelines. As soon as it is supported they switch. for now they prefer a safe solution woocommerce with a woothemes theme

Share this post


Link to post
Share on other sites

Posted · Report post

Does this work with woocommerce 1.6? I installed 1.6 and all the category pages stopped showing the products that belonged in them.

Share this post


Link to post
Share on other sites

Posted · Report post

@doughboy99 We did not develop this plug-in/integration, it was one of the developers from the Woo team. Remember that according to the read me file, this is not supported by the Woo team and we can not provide support either.

Share this post


Link to post
Share on other sites

Posted · Report post

Please, please, please make an official PageLines WooCommerce integration plugin! We have many sites with the PageLines/Woo Commerce combo installed. All of the woo themes we've tried pale in comparison to the power of PageLines. IMO both are best of breed and the combo is dynamite.

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Danny, as mentioned above, will bring it to the developers' attention.

Share this post


Link to post
Share on other sites

Posted · Report post

I second monkbait and digspinat!, I have Woocommerce 1.6 working fully with MikeJolly's plugin, but the just released their 2.0 version and now the product loops are broken. They do mention a fix for the product loop but I can't make it work. An official plugin would be most welcome.

Share this post


Link to post
Share on other sites

Posted · Report post

Check with woo as well, if they wrote the original plugin they might be able to make a small switch to make it work again.

Share this post


Link to post
Share on other sites

Posted · Report post

Here is my code modified from pagelines-jigoshop. 

I am not a PHP guru,just know something about PHP. 

My code doesn't have sections. But it works great like pagelines-jigoshop does. (At least for me!)

I have seen Mike's solution. Some of his sections still can be used.  

The code I provide DID NOT check if pagelines and woocommerce installed. 

If some of you have problem with the old plugin , maybe try mine.  It works like what pagelines-jigoshop do. 

 

remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0);
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
add_action('woocommerce_before_main_content', 'open_woocommerce_content_wrappers', 10);
add_action('woocommerce_after_main_content', 'close_woocommerce_content_wrappers', 10);
add_action( 'template_redirect', 'woo_integration' );	
add_action( 'admin_init', 'admin_page'  );
add_filter( 'postsmeta_settings_array', 'woo_meta' , 10, 1 );
add_filter( 'pl_cpt_dragdrop', 'woo_templates' , 11, 3 );	


	function admin_page() {
		if ( ! function_exists( 'ploption' ) )
			return;
		pl_add_options_page( array( 
			'name'	=> 'woocommerce',
			'raw'	=> '<p>All pages are handled in their respective page meta settings except the main shop page, as this is an archive it requires a special meta page to control layout.</p>
				<p>It is not possible to add sections to the shop or product content areas, you can however add sections to the header/morefoot/footer areas and hide them by default then enable them on the product archive special meta tab.</p>',
		 	'title'	=> 'Woocommerce Instructions.'	
		) );	
	}


	/**
	 *	Remove products from the template setup area, we cant control them so remove them.
	 *  Individual products have meta settings, product archive is handled in special meta.
	 */	
	function woo_templates( $bool, $public_post_type, $area ) {
		
		if ( 'product' === $public_post_type )
			$bool = false;
		elseif( 'product_variation' === $public_post_type )
			$bool = false;
		else
			$bool =  $bool;

		return $bool;
	}


	/**
	 *	Add integration to store page
	 */
	function woo_integration() {
		if ( is_archive() )
			new PageLinesIntegration( 'product_archive' );
	}

    /**
	 *	Add tab to Special Meta
	 */
	function woo_meta( $d ) {

		global $metapanel_options;

		$meta = array(
		
		'product_archive' => array(
			'metapanel' => $metapanel_options->posts_metapanel( 'product_archive', 'product_archive' ),
			'icon'		=> sprintf( '%s/%s', WP_PLUGIN_URL,  basename( dirname( __FILE__ ) ) ).'/icon.png'
		) );
			$d = array_merge($d, $meta);

			return $d;
		}











function open_woocommerce_content_wrappers() {
	
		?><!-- PageLines woocommerce before -->
											<section id="postloop" class="copy top-postloop postloop-bottom">
												<div class="copy-pad">
													<article class="page type-page hentry fpost">
														<div class="hentry-pad ">
															<div class="entry_wrap fix">
																<div class="entry_content">
		<?php 

		}
	
	function close_woocommerce_content_wrappers() {

		?>
																</div>
															</div>
														</div>
													</article>
												</div>
											</section>
									</div></div></div>
                                     <div id="sidebar-wrap">
									<div id="sidebar1" class="scolumn fix">
	<div class="scolumn-pad">
		<section id="sb_primary" class="copy no_clone section-sb_primary">
			<div class="copy-pad">
			<?php pagelines_draw_sidebar('sb_primary', 'Primary Sidebar', 'includes/widgets.default'); ?>
			</div>
		</section>
	</div>
</div></div>
<!-- end sidebar-wrap --> 
								</div>
		<?php 

	}
 

it removes the woocommerce breadcumbs and woocommerce sidebar. 

I think if breadcumbs is needed , then NavXT is better. 

sidebar used Primary Sidebar . 

If Primary Sidebar not provide enough control , you can try this plugin. 

Dynamic widget.  

 

I think it is Much Much better than widget logic . 

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

We'll alert our developers.  Thanks so much for contributing your code and ideas!

Share this post


Link to post
Share on other sites

Posted · Report post

Hi guys,

 

I tried installing the Woocommerce plugin integration (github) however I'm getting an error as follows:

 

Fatal error: Class 'PageLinesIntegration' not found in /home/.../public_html/...../wp-content/plugins/pagelines-woocommerce-master/pagelines-woocommerce.php on line 106

 

Has anyone else been able to resolve this issue?
 

Thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

@Ngudan

We did not develop this plug-in/integration, it was one of the developers from the Woo team. Remember that according to the read me file, this is not supported by the Woo team and we can not provide support either.

Share this post


Link to post
Share on other sites

Posted · Report post

@kakadong

I'd like to give your code a try to see if it works with WooCommece 2.0, how would I go about doing that? I just know basic coding so I do not know where your could should be placed.

Thanks,

Ed

Share this post


Link to post
Share on other sites

Posted · Report post

Ed,

 

You'd have to go to Woo to get the plugin.  As mentioned above, it is not one of our products and Woo has apparently stated they do not support it, either. 

 

I'm sorry this isn't more helpful.

Share this post


Link to post
Share on other sites

Posted · Report post

Ed, just copy my code and paste it in your functions.php .

 

It works great with woo 2.0 .  I have 3 sites running Woo 2.04 + Pagelines  without any problem.

 

If you used jigoshop +pagelines-jigoshop  before , my code do almost the same thing.

 

Just FYI ,  You have to install woocommerce and pagelines. (Of course.)

Share this post


Link to post
Share on other sites

Posted · Report post

A quick note to let people know I am working on modifying Mike Jolly's Pagelines woocommerce plugin to work with woocommerce 2.0. It will be available on the store as a free plugin. Right now it is being tested and bugs worked out. Will let you know when it hits the store.
16 people like this

Share this post


Link to post
Share on other sites

Posted · Report post

Everybody hit the 'like' button on Ellen's post :-)

Share this post


Link to post
Share on other sites

Posted · Report post

Awesome news!!!  We're ready!

Share this post


Link to post
Share on other sites

Posted · Report post

Dear all. I am looking to add ecommerce to my site. Woo commerce looks like the one to go for. Am I right in thinking there is a proper Pagelines supplied plugin coming very soon? So should I wait or crack on with adding Woo commerce through the regular WordPress plugins section?

 

Cheers

Ben

Share this post


Link to post
Share on other sites

Posted · Report post

A quick note to let people know I am working on modifying Mike Jolly's Pagelines woocommerce plugin to work with woocommerce 2.0. It will be available on the store as a free plugin. Right now it is being tested and bugs worked out. Will let you know when it hits the store.

 

Should be coming very soon but likely an integration. 

 

 

I asked Mike Jolley from Woo Commerce about Pagelines customizations (after seeing the Jigoshop plugin) and he just went ahead and did it. Amazing! This is a great integration and even allows you to use the Woo Commerce with Pagelines sections. So far it seems to be working fine, just be aware that I don't think he plans to support it or update it much, though it's on github now. https://github.com/mikejolley/pagelines-woocommerce Thanks Mike! J

Share this post


Link to post
Share on other sites

Posted · Report post

So it will never actually be available through the PageLines plugins section?

 

Also, can I just ask, does Woo Commerce need this integration code to work with Pagelines, or does it just make it easier? I just want to check so I know if I need to get a coder to help me with the installation.

 

Cheers

 

Ben

Share this post


Link to post
Share on other sites

Posted · Report post

@motionltd Read Ellen's reply in this thread. ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now