Created
February 12, 2012 23:19
-
-
Save jameskoster/1811704 to your computer and use it in GitHub Desktop.
WooCommerce - Change number of upsells displayed and # of products per row
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'woocommerce_after_single_product', 'woocommerce_upsell_display'); | |
add_action( 'woocommerce_after_single_product', 'woocommerce_output_upsells', 20); | |
if (!function_exists('woocommerce_output_upsells')) { | |
function woocommerce_output_upsells() { | |
woocommerce_upsell_display(3,3); // Display 3 products in rows of 3 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try: https://gist.github.com/raisonon/10107850