• 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 ?

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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.

    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.

    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.

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

    Thread Starter SimonGiddings

    (@simongiddings)

    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.

    Thread Starter SimonGiddings

    (@simongiddings)

    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 ?

    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.

    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;
    				break;
    
    			case "two" :
    				if ( $number_of_featured_products > 1 )
    					$page_id = ('publish' == get_post_status( $current_featured_products[1] ) ) ? $current_featured_products[1] : $page_id;
    				break;
    
    			case "three" :
    				if ( $number_of_featured_products > 2 )
    					$page_id = ('publish' == get_post_status( $current_featured_products[2] ) ) ? $current_featured_products[2] : $page_id;
    				break;
    
    		} // 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.

    Thread Starter SimonGiddings

    (@simongiddings)

    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 !

    Electric Feet,

    What do you mean by “set each of the featured pages to something”?

    Could you be more specific please.

    I think this will probably solve my problem.

    Thanks.

    Also, I see that this snippet works for three products, but there are only two product ids in the add filter line. I see from the source code that the product id numbers are there. Should all three product id numbers be there?

    Also, what do I do with the featured pages I’ve already featured? Should I delete them?

    I see a lot of postings trying to accomplish this but even the redirect plugs are very technical. I just want to sell some things. I wish I had time to learn to program and understand all this better.

    Your help is greatly appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Using with WooCommerce’ is closed to new replies.