Changeset 2728074
- Timestamp:
- 05/22/2022 05:06:34 PM (4 years ago)
- Location:
- variation-price-display/trunk
- Files:
-
- 3 edited
-
includes/conditions.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
variation-price-display.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
variation-price-display/trunk/includes/conditions.php
r2719756 r2728074 110 110 function vpd_format_price( $format, $type, $product ){ 111 111 112 if( 'yes' === $format ){ 113 $formatted_price = wc_format_sale_price( wc_price( $product->get_variation_regular_price( $type ) ), wc_price( $product->get_variation_sale_price( $type ) ) ); 112 switch ( $format ) { 113 114 case "yes": 115 116 if( $product->get_variation_regular_price( $type ) !== $product->get_variation_sale_price( $type ) ){ 117 118 $formatted_price = wc_format_sale_price( wc_price( $product->get_variation_regular_price( $type ) ), wc_price( $product->get_variation_sale_price( $type ) ) ); 119 } 120 else{ 121 122 $formatted_price = wc_price( $product->get_variation_price( $type ) ); 123 124 } 125 114 126 $price = apply_filters( 'vpd_formatted_price', $formatted_price, $type, $product ); 115 } 116 else{ 117 $formatted_price = wc_price( $product->get_variation_price( $type ) ); 127 128 break; 129 130 default: 131 132 $formatted_price = wc_price( $product->get_variation_price( $type ) ); 133 118 134 $price = apply_filters( 'vpd_non_formatted_price', $formatted_price, $type, $product ); 135 119 136 } 120 137 -
variation-price-display/trunk/readme.txt
r2719756 r2728074 1 === Variation Price Range Displayfor WooCommerce ===1 === Variation Price Display Range for WooCommerce === 2 2 Contributors: hakik 3 3 Tags: price range, variation price, price display … … 15 15 == Description == 16 16 17 **Variation Price Range Displayfor WooCommerce** plugin lets you change the price displayed on both the shop page and the single product page.17 **Variation Price Display Range for WooCommerce** plugin lets you change the price displayed on both the shop page and the single product page. 18 18 19 19 By default, variable products on WooCommerce display a range of prices from lowest to highest. … … 74 74 == Frequently Asked Questions == 75 75 76 = What is the purpose of the Variation Price Range Displayfor WooCommerce? =76 = What is the purpose of the Variation Price Display Range for WooCommerce? = 77 77 78 Variation Price Range Displayfor WooCommerce replaces the default Variation price range in both shop and single product page. You can show Minimum Price, Maximum Price, Minimum to Maximum Price, Maximum to Minimum Price.78 Variation Price Display Range for WooCommerce replaces the default Variation price range in both shop and single product page. You can show Minimum Price, Maximum Price, Minimum to Maximum Price, Maximum to Minimum Price. 79 79 80 80 = Can change the price according to selected variation? = … … 88 88 89 89 == Changelog == 90 91 = 1.1.5 [22-05-2022] = 92 * Fix: Format Sale Price shows if not on sale. 93 * Compatibility: Tested with WooCommerce 6.5.1. 90 94 91 95 = 1.1.4 [07-05-2022] = -
variation-price-display/trunk/variation-price-display.php
r2719756 r2728074 1 1 <?php 2 2 /** 3 * Plugin Name: Variation Price Range Displayfor WooCommerce3 * Plugin Name: Variation Price Display Range for WooCommerce 4 4 * Plugin URI: https://wordpress.org/plugins/variation-price-display 5 5 * Description: Adds lots of advanced options to control how you display the price for your WooCommerce variable products. 6 6 * Author: Hakik Zaman 7 * Version: 1.1. 47 * Version: 1.1.5 8 8 * Domain Path: /languages 9 9 * Requires at least: 5.5 … … 11 11 * Requires PHP: 7.0 12 12 * WC requires at least: 5.5 13 * WC tested up to: 6. 4.013 * WC tested up to: 6.5.1 14 14 * Text Domain: variation-price-display 15 15 * Author URI: https://github.com/hakikz … … 34 34 */ 35 35 36 protected $_version = '1.1. 4';36 protected $_version = '1.1.5'; 37 37 38 38 /*
Note: See TracChangeset
for help on using the changeset viewer.