Sitesforasnip
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Flipclock] Can't get countdown to work with minuteshaha – that’s what happens when you look at something for too long!
Thanks ??
Forum: Plugins
In reply to: [WooCommerce] Hide products of subcategories within main categoriesHi there,
I think I just worked around it by changing the number of products displayed per page so that they would all fit on one page the I hid the product count with some CSS. Something like this to change the number of products per page:
// Display 24 products per page. Goes in functions.php
add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 24;’ ), 20 );Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Discount based on Number of Cart ItemsHi folks – I ended up using this:
https://www.itthinx.com/plugins/woocommerce-volume-discount-coupons/
Can apply discount based on number of items and choose which categories to include or exclude. Works well and good value for $20.
Cheers
Forum: Plugins
In reply to: [WooCommerce] Removing subcategory products from parent categoryIn case anyone if having the same problem you can see the resolution here:
Thanks
Forum: Plugins
In reply to: [WooCommerce] Hide products of subcategories within main categoriesAbsolutely terrific – works a charm. Thank you so much you’re a life saver!
Forum: Plugins
In reply to: [WooCommerce] Hide products of subcategories within main categoriesHi,
Many thanks for your help. Unfortunately I can’t seem to get this to work I have a category called individual products and a subcategory of this called career advice. For some reason I’m still seeing the two career advice products also showing up in individual products:
https://www.smartjobsolutions.co.uk/product-category/individual-products/
https://www.smartjobsolutions.co.uk/product-category/individual-products/career-advice/I have added the code as above to my new archive-product.php file so that it looks like:
<?php /** * The Template for displaying product archives, including the main shop page which is a post type archive. * * Override this template by copying it to yourtheme/woocommerce/archive-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly get_header('shop'); global $wp_query; $term = get_term_by( 'slug', get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']); ?> <?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 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 woocommerce_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 woocommerce_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'); ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Any thoughts would be greatly appreciated. Thanks
Forum: Plugins
In reply to: [WooCommerce] Hide products of subcategories within main categoriesMany thanks I’ll give this a go!
Forum: Plugins
In reply to: [WooCommerce] Hide products of subcategories within main categoriesHi fuchsws – did you ever find a solution for this? I am having the same problem and can’t seem to find a solution anywhere. Thanks
Forum: Plugins
In reply to: [WooCommerce] Removing subcategory products from parent categoryI have now updated to the latest version of Woocommerce and also updated WordPress to version 3.7.1 but still having the same problem. Tearing my hair out! There should surely be a simple way to display the product only in the subcategory? Am I missing something obvious? Thanks
[Moderator Note: No bumping. If it’s that urgent, consider hiring someone.]
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Discount based on Number of Cart ItemsI’d also be really interested in this – can’t seem to find anything else out there that does this.
Forum: Fixing WordPress
In reply to: WooCommerce Menu Cart Plugin – problems display cart iconI really like this plugin but just can’t seem to get it to appear on my menu properly ?? Anyoone got any ideas? Thanks