evolve_woocommerce_cross_sell_display

The evolve evolve woocommerce cross sell display function.

Description

evolve_woocommerce_cross_sell_display(); 

Usage

  1. if ( !function_exists( 'evolve_woocommerce_cross_sell_display' ) ) { 
  2. require_once '/library/woo-config.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = evolve_woocommerce_cross_sell_display(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/library/woo-config.php  
  1. function evolve_woocommerce_cross_sell_display() { 
  2. global $product, $woocommerce_loop, $post, $smof_data; 
  3.  
  4. $crosssells = WC()->cart->get_cross_sells(); 
  5.  
  6. if (sizeof($crosssells) == 0) 
  7. return; 
  8.  
  9. $number_of_columns = 4; 
  10.  
  11. woocommerce_cross_sell_display(apply_filters('woocommerce_cross_sells_total', -1), $number_of_columns);