woocommerce_gzd_template_show_variation_price

The WooCommerce Germanized woocommerce gzd template show variation price function.

Description

woocommerce_gzd_template_show_variation_price( $show, $product, $variation ); 

Parameters (3)

0. $show
The show.
1. $product
The product.
2. $variation
The variation.

Usage

  1. if ( !function_exists( 'woocommerce_gzd_template_show_variation_price' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-germanized/includes/wc-gzd-template-functions.php'; 
  3.  
  4. // The show. 
  5. $show = null; 
  6.  
  7. // The product. 
  8. $product = null; 
  9.  
  10. // The variation. 
  11. $variation = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = woocommerce_gzd_template_show_variation_price($show, $product, $variation); 
  15.  

Defined (1)

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

/includes/wc-gzd-template-functions.php  
  1. function woocommerce_gzd_template_show_variation_price( $show, $product, $variation ) { 
  2.  
  3. if ( ( $variation->sale_price_label !== $product->sale_price_label ) || ( $variation->sale_price_regular_label !== $product->sale_price_regular_label ) ) 
  4. return true; 
  5.  
  6. return $show; 
  7.