Need a unique gift idea?
A Pastebin account makes a great Christmas gift

WooCommerce - Set number of cross sells

lorro May 21st, 2015 (edited) 461 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <?php
  2.   // set the number of cross sells on the cart page
  3.   // code goes in functions.php for your child theme
  4.   add_filter('woocommerce_cross_sells_total', 'set_cross_sells', 40);
  5.   function set_cross_sells() {
  6.     return 2;
  7.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand