Plugin Directory

Changeset 2752990


Ignore:
Timestamp:
07/07/2022 09:52:04 AM (4 years ago)
Author:
iplus
Message:

v 5.1.0

Location:
smallpay/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • smallpay/trunk/includes/class-wc-gateway-smallpay-configuration.php

    r2734766 r2752990  
    582582                $p = wc_get_product($product['product_id']);
    583583
    584                 $rangeProps = $this->get_price_range_configs((float) $p->get_price());
     584                // if it is a variable product, the price of the selected variant is retrived
     585                if ($p->is_type('variable')) {
     586                    $pPrice = (float) $p->get_price();
     587
     588                    $pv = new \WC_Product_Variation($product['variation_id']);
     589                    $pPrice = $pv->get_price();
     590                } else {
     591                    $pPrice = (float) $p->get_price();
     592                }
     593
     594                $rangeProps = $this->get_price_range_configs($pPrice);
    585595
    586596                if (!$rangeProps['res']) {
  • smallpay/trunk/readme.txt

    r2734766 r2752990  
    88WC Requires at least: 3.0.0
    99WC Tested up to: 6.5.1
    10 Stable tag: 5.0.0
     10Stable tag: 5.1.0
    1111License: GNU General Public License v3.0
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    108108= 5.0.0 =
    109109 * Changed - Management of categories that can be paid in installments
     110 
     111= 5.1.0 =
     112 * FIxed - Incompatibility with variable products
  • smallpay/trunk/smallpay.php

    r2734766 r2752990  
    55 * Plugin URI:
    66 * Description: Official SmallPay plugin.
    7  * Version: 5.0.0
     7 * Version: 5.1.0
    88 * Author: SmallPay Srl
    99 * Author URI: https://www.smallpay.it
     
    2222}
    2323
    24 define('SPWC_PLUGIN_VERSION', '5.0.0');
     24define('SPWC_PLUGIN_VERSION', '5.1.0');
    2525
    2626class WC_SmallPay
Note: See TracChangeset for help on using the changeset viewer.