Plugin Directory

Changeset 2855643


Ignore:
Timestamp:
01/27/2023 06:52:43 AM (3 years ago)
Author:
appmaker
Message:

1.36.12 = 1.36.12 =

Updated Date: 27/01/23


  • WooCommerce Plugin: WOO discount rules plugin bug fixes
Location:
appmaker-woocommerce-mobile-app-manager/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • appmaker-woocommerce-mobile-app-manager/trunk/lib/third-party-support/misc/class-appmaker-wc-woo-discount-rules.php

    r2842699 r2855643  
    7979                $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 );
    8080                $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;
    8282            }
    8383           
     
    100100                    $data['price'] =  $data['sale_price'] = $discounted_price;
    101101                    $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;
    103103                }
    104104            }
  • appmaker-woocommerce-mobile-app-manager/trunk/plugin.php

    r2843898 r2855643  
    66 * Plugin URI: https://appmaker.xyz
    77 * Description: This Plugin is used to manage Android and iOS mobile app created for your WooCommerce store
    8  * Version: 1.36.11
     8 * Version: 1.36.12
    99 * Author: Appmaker
    1010 * Author URI: https://appmaker.xyz/woocommerce
     
    3232     * @var string
    3333     */
    34     static $version = '1.36.11';
     34    static $version = '1.36.12';
    3535
    3636    /**
  • appmaker-woocommerce-mobile-app-manager/trunk/readme.txt

    r2843898 r2855643  
    55Requires at least: 4.5.0
    66Tested up to: 6.1.1
    7 Stable tag: 1.36.11
     7Stable tag: 1.36.12
    88Requires PHP: 5.2
    99This Plugin is used to manage Android and iOS mobile app created for your WooCommerce store
     
    164164== Changelog ==
    165165
     166= 1.36.12 =
     167
     168Updated Date: 27/01/23
     169
     170* WooCommerce Plugin: WOO discount rules plugin bug fixes
     171
    166172= 1.36.10 =
    167173
Note: See TracChangeset for help on using the changeset viewer.