Changeset 2855643
- Timestamp:
- 01/27/2023 06:52:43 AM (3 years ago)
- Location:
- appmaker-woocommerce-mobile-app-manager/trunk
- Files:
-
- 3 edited
-
lib/third-party-support/misc/class-appmaker-wc-woo-discount-rules.php (modified) (2 diffs)
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
appmaker-woocommerce-mobile-app-manager/trunk/lib/third-party-support/misc/class-appmaker-wc-woo-discount-rules.php
r2842699 r2855643 79 79 $data['price_display'] = $data['sale_price_display'] = $min_price !== $max_price ? sprintf( _x( '%1$s-%2$s', '', 'woocommerce' ), APPMAKER_WC_Helper::get_display_price( $min_price ), APPMAKER_WC_Helper::get_display_price( $max_price ) ) : APPMAKER_WC_Helper::get_display_price( $min_price ); 80 80 $data['price'] = $data['sale_price'] = $min_price !== $max_price ? sprintf( _x( '%1$s-%2$s', '', 'woocommerce' ), $min_price , $max_price ) : $min_price ; 81 $data['sale_percentage'] = round( ( ( $data['regular_price'] - $data['sale_price'] ) / $data['regular_price'] ) * 100 ).'%';81 $data['sale_percentage'] = ( $product->is_on_sale() && 0 != $data['regular_price'] && ( $data['regular_price'] > $data['sale_price'] ) ) ? round( ( ( (float) $data['regular_price'] - (float) $data['sale_price'] ) / (float) $data['regular_price'] ) * 100 ).'%' : false; 82 82 } 83 83 … … 100 100 $data['price'] = $data['sale_price'] = $discounted_price; 101 101 $data['price_display'] = $data['sale_price_display'] = APPMAKER_WC_Helper::get_display_price( $discounted_price ); 102 $data['sale_percentage'] = round( ( ( $data['regular_price'] - $data['sale_price'] ) / $data['regular_price'] ) * 100 ).'%';102 $data['sale_percentage'] = ( $product->is_on_sale() && 0 != $data['regular_price'] && ( $data['regular_price'] > $data['sale_price'] ) ) ? round( ( ( (float) $data['regular_price'] - (float)$data['sale_price'] ) / (float)$data['regular_price'] ) * 100 ).'%': false; 103 103 } 104 104 } -
appmaker-woocommerce-mobile-app-manager/trunk/plugin.php
r2843898 r2855643 6 6 * Plugin URI: https://appmaker.xyz 7 7 * Description: This Plugin is used to manage Android and iOS mobile app created for your WooCommerce store 8 * Version: 1.36.1 18 * Version: 1.36.12 9 9 * Author: Appmaker 10 10 * Author URI: https://appmaker.xyz/woocommerce … … 32 32 * @var string 33 33 */ 34 static $version = '1.36.1 1';34 static $version = '1.36.12'; 35 35 36 36 /** -
appmaker-woocommerce-mobile-app-manager/trunk/readme.txt
r2843898 r2855643 5 5 Requires at least: 4.5.0 6 6 Tested up to: 6.1.1 7 Stable tag: 1.36.1 17 Stable tag: 1.36.12 8 8 Requires PHP: 5.2 9 9 This Plugin is used to manage Android and iOS mobile app created for your WooCommerce store … … 164 164 == Changelog == 165 165 166 = 1.36.12 = 167 168 Updated Date: 27/01/23 169 170 * WooCommerce Plugin: WOO discount rules plugin bug fixes 171 166 172 = 1.36.10 = 167 173
Note: See TracChangeset
for help on using the changeset viewer.