daily pastebin goal
53%
SHARE
TWEET

WooCommerce - Set number of cross sells

lorro May 21st, 2015 (edited) 459 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
 
Top