• I’m having trouble with the WooCommerce plugin. It is not showing my products within the category view on my site. I did use the System Status tool to find out one of the .php files is out of date within the plugin. When I go to update just the one file it shows that it is the most update version of that file (checked the file version with Dreamweaver) but the System Status tool is still saying: woocommerce/content-product_cat.php version 2.5.0 is out of date. The core version is 2.5.2,

    Any thoughts on what could be causing this error?

    Thanks!

    https://wordpress.org/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Edit the product.

    View the publish box.

    You’ll see a catalog visibility option. Make sure its not hidden or search only.

    Thread Starter iangdesign

    (@iangdesign)

    Thank you for your response! The visibility is set to “Catalog & Search” any other ideas what could be causing this issue?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    No, but you should probably switch to the default WP theme to see if your templates are affecting it at all.

    Thread Starter iangdesign

    (@iangdesign)

    It looks like the template is affecting the the product category :-/

    I am not expertly versed in php…but is there anything I can do short of switching out the template. I have a little bit of time invested into this template. It is also not supported by the developer anymore.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter iangdesign

    (@iangdesign)

    Hi Mike, I followed the info in your link to the best of my abillity, let me know if you need any other info. See below:

    The website is highspeedind.com when you click on the Products>Pumps>COMPLETE PUMPS/STATORS the product should appear there as it does at the bottom of the homepage.

    Overrides (WooCommerce):	 	sellya/woocommerce/archive-product.php,
    sellya/woocommerce/cart/cross-sells.php,
    sellya/woocommerce/content-product.php,
    sellya/woocommerce/content-product_cat.php version 2.5.0 is out of date. The core version is 2.5.2,
    sellya/woocommerce/content-single-product.php,
    sellya/woocommerce/content-widget-product.php,
    sellya/woocommerce/loop/add-to-cart.php,
    sellya/woocommerce/loop/orderby.php,
    sellya/woocommerce/loop/pagination.php,
    sellya/woocommerce/loop/price.php,
    sellya/woocommerce/loop/sale-flash.php,
    sellya/woocommerce/single-product/add-to-cart/external.php,
    sellya/woocommerce/single-product/add-to-cart/grouped.php,
    sellya/woocommerce/single-product/add-to-cart/simple.php,
    sellya/woocommerce/single-product/add-to-cart/variable.php,
    sellya/woocommerce/single-product/meta.php,
    sellya/woocommerce/single-product/price.php,
    sellya/woocommerce/single-product/product-image.php,
    sellya/woocommerce/single-product/product-thumbnails.php,
    sellya/woocommerce/single-product/related.php,
    sellya/woocommerce/single-product/review.php,
    sellya/woocommerce/single-product/sale-flash.php,
    sellya/woocommerce/single-product/share.php,
    sellya/woocommerce/single-product/short-description.php,
    sellya/woocommerce/single-product/tabs/description.php,
    sellya/woocommerce/single-product/tabs/tabs.php,
    sellya/woocommerce/single-product/title.php,
    sellya/woocommerce/single-product/up-sells.php,
    sellya/woocommerce/single-product-reviews.php,
    sellya/woocommerce/single-product.php,
    sellya/woocommerce/taxonomy-product_cat.php,
    sellya/woocommerce/taxonomy-product_tag.php

    I have tried to manually update the content-product_cat.php via ftp, but for some reason it is not accepting the file.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    What is inside sellya/woocommerce/taxonomy-product_cat.php?

    Thread Starter iangdesign

    (@iangdesign)

    Do you mean the actual markup in the php file?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Yes, that controls the archive itself..

    Thread Starter iangdesign

    (@iangdesign)

    Here is the code in the taxonomy-product_cat.php file:

    <?php
    /**
     * The Template for displaying products in a product category. Simply includes the archive template
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/taxonomy-product_cat.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer).
     * will need to copy the new files to your theme to maintain compatibility. We try to do this.
     * as little as possible, but it does happen. When this occurs the version of the template file will.
     * be bumped and the readme will list any important changes.
     *
     * @see 	    http://docs.woothemes.com/document/template-structure/
     * @package 	WooCommerce/Templates
     * @version     1.6.4
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    wc_get_template( 'archive-product.php' );
    Plugin Contributor Mike Jolley

    (@mikejolley)

    Must be sellya/woocommerce/archive-product.php then. Whats there?

    Thread Starter iangdesign

    (@iangdesign)

    sellya/woocommerce/archive-product.php:

    <?php
    /**
     * The Template for displaying product archives, including the main shop page which is a post type archive
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer).
     * will need to copy the new files to your theme to maintain compatibility. We try to do this.
     * as little as possible, but it does happen. When this occurs the version of the template file will.
     * be bumped and the readme will list any important changes.
     *
     * @see 	    http://docs.woothemes.com/document/template-structure/
     * @author 		WooThemes
     * @package 	WooCommerce/Templates
     * @version     2.0.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    get_header( 'shop' ); ?>
    
    	<?php
    		/**
    		 * woocommerce_before_main_content hook.
    		 *
    		 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
    		 * @hooked woocommerce_breadcrumb - 20
    		 */
    		do_action( 'woocommerce_before_main_content' );
    	?>
    
    		<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
    
    			<h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
    
    		<?php endif; ?>
    
    		<?php
    			/**
    			 * woocommerce_archive_description hook.
    			 *
    			 * @hooked woocommerce_taxonomy_archive_description - 10
    			 * @hooked woocommerce_product_archive_description - 10
    			 */
    			do_action( 'woocommerce_archive_description' );
    		?>
    
    		<?php if ( have_posts() ) : ?>
    
    			<?php
    				/**
    				 * woocommerce_before_shop_loop hook.
    				 *
    				 * @hooked woocommerce_result_count - 20
    				 * @hooked woocommerce_catalog_ordering - 30
    				 */
    				do_action( 'woocommerce_before_shop_loop' );
    			?>
    
    			<?php woocommerce_product_loop_start(); ?>
    
    				<?php woocommerce_product_subcategories(); ?>
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php wc_get_template_part( 'content', 'product' ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			<?php woocommerce_product_loop_end(); ?>
    
    			<?php
    				/**
    				 * woocommerce_after_shop_loop hook.
    				 *
    				 * @hooked woocommerce_pagination - 10
    				 */
    				do_action( 'woocommerce_after_shop_loop' );
    			?>
    
    		<?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
    
    			<?php wc_get_template( 'loop/no-products-found.php' ); ?>
    
    		<?php endif; ?>
    
    	<?php
    		/**
    		 * woocommerce_after_main_content hook.
    		 *
    		 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
    		 */
    		do_action( 'woocommerce_after_main_content' );
    	?>
    
    	<?php
    		/**
    		 * woocommerce_sidebar hook.
    		 *
    		 * @hooked woocommerce_get_sidebar - 10
    		 */
    		do_action( 'woocommerce_sidebar' );
    	?>
    
    <?php get_footer( 'shop' ); ?>
    Plugin Contributor Mike Jolley

    (@mikejolley)

    I don’t see anything custom there? Rename it so our default version is used instead.

    FYI theme authors are only supposed to override files they change. Bundling all files is not advised and causes problems down the road.

    Thread Starter iangdesign

    (@iangdesign)

    Thanks for the quick reply Mike. What should I rename it so it is the WooCommerce default?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    _archive-product.php: then it will no longer be loaded.

Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘WooCommerce content-product_cat.php issue’ is closed to new replies.