Skip to content

Instantly share code, notes, and snippets.

@wooexperte
Created October 5, 2020 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wooexperte/94f30c64feb998a521491789b3c18c1f to your computer and use it in GitHub Desktop.
Save wooexperte/94f30c64feb998a521491789b3c18c1f to your computer and use it in GitHub Desktop.
Anzahl
add_filter( 'woocommerce_cross_sells_total', 'qreuz_modify_cross_sells_count', 20 );
function qreuz_modify_cross_sells_count( $columns ) {
$cross_sells = 6;
return $cross_sells; // define how many cross sell products shall max. be shown on the cart page
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment