Tagged with " woocommerce"
Apr 3, 2018 - Wordpress    Comments Off on Reset menu_order of WooCommerce products in phpMyAdmin

Reset menu_order of WooCommerce products in phpMyAdmin

The Problem

At the time of writing this post, there has never been a native feature within WooCommerce that allows you to reset the ordering of products within the “Products” section in the WordPress back-end.

Read more »

Nov 7, 2013 - eCommerce, Wordpress    Comments Off on WooCommerce change number of Related Products to show

WooCommerce change number of Related Products to show

To change the number of related products only you can use this code in the Theme Functions (functions.php) file:

/**
 * WooCommerce Extra Feature
 * --------------------------
 *
 * Change number of related products on product page
 * Set your own value for 'posts_per_page'
 *
 */ 
function woo_related_products_limit() {
 global $product;

 $args = array(
 'post_type' => 'product',
 'no_found_rows' => 1,
 'posts_per_page' => 6,
 'ignore_sticky_posts' => 1,
 'orderby' => $orderby,
 'post__in' => $related,
 'post__not_in' => array($product->id)
 );
 return $args;
}add_filter( 'woocommerce_related_products_args', 'woo_related_products_limit' );

 

Note: This change may be overwritten by a Theme update.

Feb 23, 2013 - eCommerce, Wordpress    Comments Off on WooCommerce change products per page

WooCommerce change products per page

Change number of products per row

Add to functions.php

// Change number or products per row to 3
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
function loop_columns() {
return 3; // 3 products per row
}
}
 Read more »
Pages:12»