Plugin Directory

Changeset 3210301


Ignore:
Timestamp:
12/19/2024 08:44:43 AM (16 months ago)
Author:
mintpay
Message:

Fix when price is null or empty

Location:
mintpay/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mintpay/trunk/index.php

    r3202289 r3210301  
    44 * Plugin URI: https://mintpay.lk
    55 * Description: WooCommerce plugin of Mintpay. Sri Lanka's first buy now pay later platform, that allows consumers to split their payment into 3 interst-free installments.
    6  * Version: 2.0.2
     6 * Version: 2.0.3
    77 * Author: Mintpay (Private) Limited
    88 * Author URI: https://mintpay.lk
  • mintpay/trunk/price-breakdown/index.php

    r3202289 r3210301  
    239239    // get variable products price
    240240    $price    = mintpay_calculate_variant_installment_with_wdr( $variation_data, $product );
    241     $price    = number_format( $price / 3, 2, '.', ',' );
     241    $price    = number_format( (float)$price / 3, 2, '.', ',' );
    242242    $sentence = mintpay_generate_sentence( $price, $currency_symbol, $mintpay_wording );
    243243
  • mintpay/trunk/readme.txt

    r3202289 r3210301  
    55Tested up to: 6.5.5
    66WC tested up to: 8.9.2
    7 Stable tag: 2.0.2
     7Stable tag: 2.0.3
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    6161= 2.0.2 =
    6262* [Fix] - Css Warning fix
     63= 2.0.3 =
     64* [Fix] - Fix then price is null or empty
    6365
    6466== External Services ==
Note: See TracChangeset for help on using the changeset viewer.