Plugin Directory

Changeset 3154912

Timestamp:
09/20/2024 01:19:05 AM (3 hours ago)
Author:
symmetriahr
Message:

Add rounding to 4 decimals for item price and tax

Location:
kigokasa-api-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kigokasa-api-for-woocommerce/trunk/README.md

    r3153604 r3154912  
    66**Requires PHP**: 5.6 
    77**Tested up to**: 6.6.1 
    8 **Stable tag**: 1.4 
     8**Stable tag**: 1.4 
    99**WC requires at least**: 3.0.0 
    1010**WC tested up to**: 9.2.3 
     
    5454
    5555## Changelog
     56
     57
     58
     59
    5660
    5761### 1.4
  • kigokasa-api-for-woocommerce/trunk/README.txt

    r3153604 r3154912  
    66Requires PHP: 5.6
    77Tested up to: 6.6.1
    8 Stable tag: 1.4
     8Stable tag: 1.4
    99WC requires at least: 3.0.0
    1010WC tested up to: 9.2.3
     
    6464==  Changelog ==
    6565
     66
     67
     68
    6669= 1.4 =
    6770Add support for custom cart fees
  • kigokasa-api-for-woocommerce/trunk/includes/class-woo-kigokasa-api-request.php

    r3153604 r3154912  
    112112                if (1 === (int)get_option( 'woo_kigokasa_api_product_use_calculated_price' )){ // since v1.3
    113113                    // try to use calculated price from order item
    114                     $currentPrice = (float)number_format($singlePrice, 2, '.', '');
     114                    $currentPrice = );
    115115                }
    116116                if (1 === (int)get_option( 'woo_kigokasa_api_product_price_override' )){
    117117                    // modify current price to include tax if tax rate exits
    118                     $currentPrice = $currentPrice * (($taxRate / 100) + 1);
     118                    $currentPrice = );
    119119                }
    120120
  • kigokasa-api-for-woocommerce/trunk/includes/class-woo-kigokasa-api.php

    r3153604 r3154912  
    4242     * @since 1.0.0
    4343     */
    44     const PLUGIN_VERSION = '1.4';
     44    const PLUGIN_VERSION = '1.4';
    4545
    4646    /**
  • kigokasa-api-for-woocommerce/trunk/kigokasa-api-for-woocommerce.php

    r3153604 r3154912  
    1212 * Plugin URI:        https://www.symmetria.hr/kigokasa-api-for-woocommerce/
    1313 * Description:       This plugin provides integration of KigoKasa API service with WooCommerce. Plugin integrates with WooCommerce checkout process and sends API request with the order details to the KigoKasa service.
    14  * Version:           1.4
     14 * Version:           1.4
    1515 * Author:            Symmetria d.o.o.
    1616 * Author URI:        https://www.symmetria.hr/
     
    3131 * Rename this for your plugin and update it as you release new versions.
    3232 */
    33 define( 'WOO_KIGOKASA_API_PLUGIN_NAME_VERSION', '1.4' );
     33define( 'WOO_KIGOKASA_API_PLUGIN_NAME_VERSION', '1.4' );
    3434
    3535/**
Note: See TracChangeset for help on using the changeset viewer.