Using with WooCommerce (10 posts)

  1. SimonGiddings
    Posted 11 months ago #

    Does anyone have experience of using Customizr with WooCommerce ?
    I have already created a blog site with Customizr and now need to open an e-commerce site.

    It would be great if there were a step by step guide of what is necessary to do to continue using this great theme.

    Can anyone give helpful, constructive advice here ?

  2. rdellconsulting
    Posted 11 months ago #

    In the absence of any other feedback, I have used Czr/Woocommerce to setup a prototype, simple site.

    No Guide available. I simply Activated the Plugin and started using it.

    Give it a try and if you get stuck then come back for advice.

  3. mlakey130
    Posted 11 months ago #

    Hi @SimonGiddings
    I use Customizr and Woocommerce. There is a bug right now with latest version of the theme causing an error on my 'Shop' page within the latest version of Woocommerce. The developer is working on a fix for it. I have been very pleased with using both (even though I have an error on my 'Shop' page right now). I have been very pleased with any support issues with the developer as well. Wait until the new update is released, and then give it a try. Woocommerce is easy to set up and use. Good luck and like the previous post, use it and if you get stuck, check back here for tweaks, advice, fixes, etc.

  4. ElectricFeet
    Posted 11 months ago #

    Now updated.

    @SimonGiddings: the WooCommerce documentation is quite good. There are no special instructions for Customizr, but Customizr is written to work with WooCommerce out of the box, so you don't need them.

    The key thing is to have a local installation, so that you can try things out on your own computer first. Use Mamp/Wamp/Bitnami WordPress Stack to do this.

  5. rdellconsulting
    Posted 11 months ago #

    I'd recommend Desktop Server if you go that route. Best tool I ever purchased, but free for up to 3 sites.

  6. SimonGiddings
    Posted 11 months ago #

    Thanks to both of you for your encouragement, I have started my excursion into customising customizr.

    I'll certainly look into Desktop Server should my own installation cause problems.

  7. SimonGiddings
    Posted 11 months ago #

    Ok, you guys proposed, so here I am.
    Following ElectricFeet's remark, I expected the homepage to be displayed with my featured products - this is not working.

    I have also seen that there appears to be a problem with the current release of Customizr. Could this be related ?

    Do I need to edit the index.php for it to output the correct content for the homepage ?

  8. ElectricFeet
    Posted 11 months ago #

    Ah no. The front page features are Featured Pages. It's not designed for featured products or featured posts.

    The paid product Featured Pages Unlimited will allow you to link to any product page, but it doesn't link automatically to WooCommerce's featured products (I don't think)—you would have to set them in Appearance > Customize.

    It's a nice idea to make it automatic, though. An expansion of this snippet could probably do it.

  9. ElectricFeet
    Posted 11 months ago #

    This picks up the three latest featured products and puts them in the featured pages areas of Customizr's front page. A pre-requisite to it working is that you set each of the the featured pages to something first (otherwise, the code to display the products is bypassed).

    // Substitute featured pages with WooCommerce featured products
    add_filter('tc_fp_id' , 'my_woocommerce_featured_product_ids', 10 ,2);
    function my_woocommerce_featured_product_ids( $page_id , $fp_id ) {
    	if ( is_plugin_active('woocommerce/woocommerce.php') ) {
    		$current_featured_products = wc_get_featured_product_ids(); // returns an array of size (number of featured products) + 1 
    		$number_of_featured_products = (count($current_featured_products) - 1);
    		// Only sets a featured product if you have at least one featured product
    		if ( ! ( is_int($number_of_featured_products) && $number_of_featured_products > 0 ) )
    			return $page_id;
    		switch($fp_id) {
    			case "one" :
    				$page_id = ('publish' == get_post_status( $current_featured_products[0] ) ) ? $current_featured_products[0] : $page_id;
    			case "two" :
    				if ( $number_of_featured_products > 1 )
    					$page_id = ('publish' == get_post_status( $current_featured_products[1] ) ) ? $current_featured_products[1] : $page_id;
    			case "three" :
    				if ( $number_of_featured_products > 2 )
    					$page_id = ('publish' == get_post_status( $current_featured_products[2] ) ) ? $current_featured_products[2] : $page_id;
    		} // End switch
    	} // End is_plugin_active
    	return $page_id;

    It needs to be pasted in your child theme's functions.php. (Read How to Customize Customizr if you've never done this.)

    I have tested this on a local install with dummy products. Let me know if it works for you in a more realistic environment.

  10. SimonGiddings
    Posted 11 months ago #

    Thank you for this, however it is far too limited for my needs.
    Looks like I will need to create a static home page and put in the relevant woocommerce short codes.

    Great work though !


You must log in to post.

About this Theme

About this Topic