Plugin Directory

Changeset 2377110


Ignore:
Timestamp:
09/08/2020 10:41:32 AM (5 years ago)
Author:
mechuram
Message:

2.0.7 - bugfix backward compatibility

Location:
woo-price-per-unit/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woo-price-per-unit/trunk/readme.txt

    r2376574 r2377110  
    8080**Changelog**
    8181
     82**2.0.7**
     83- Backward compatibility for recent bug-fix
     84
    8285**2.0.6**
    8386- Bug-fix - In certain configurations price  with taxes was displayed improperly in Cart
     
    203206== Changelog ==
    204207
     208= 2.0.7 =
     209- Backward compatibility for recent bug-fix
     210
    205211= 2.0.6 =
    206212- Bug-fix - In certain configurations price  with taxes was displayed improperly in Cart
     
    291297== Upgrade Notice ==
    292298 
     299= 2.0.7 =
     300- Backward compatibility for recent bug-fix
     301
    293302= 2.0.6 =
    294303- Bug-fix - In certain configurations price  with taxes was displayed improperly in Cart
  • woo-price-per-unit/trunk/woo-price-per-unit.php

    r2376557 r2377110  
    44Plugin URI: https://mechcomp.cz/price-per-unit-pro/
    55Description: WooCommerce Price Per Unit allows the user to show prices recalculated per units(weight) and do some customization to the look of the prices
    6 Version: 2.0.6
     6Version: 2.0.7
    77Author: Martin Mechura
    88Author URI: http://mechcomp.cz
     
    609609        }
    610610        $round_prices = get_option('_mcmp_ppu_disable_price_rounding') == 'yes' ? false : true;
    611         if ( $woocommerce->cart->display_prices_including_tax() ) {
     611        //Pre Woo 3.3.0 compatibility - display_prices_including_tax is declared there.
     612        if (method_exists($woocommerce->cart,'display_prices_including_tax')) {
     613            $incl_tax = $woocommerce->cart->display_prices_including_tax();
     614        } else {
     615            $incl_tax = 'excl' !== $woocommerce->cart->tax_display_cart;
     616        }
     617        if ( $incl_tax ) {
    612618            $normal_price = wc_get_price_including_tax( $product );
    613619        } else {
Note: See TracChangeset for help on using the changeset viewer.