Plugin Directory

Changeset 3137711


Ignore:
Timestamp:
08/19/2024 03:39:11 PM (20 months ago)
Author:
dreamfox
Message:

Version 3.5.1

Location:
woocommerce-product-payments
Files:
303 added
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-product-payments/trunk/readme.txt

    r3135011 r3137711  
    55Requires PHP: 7.4
    66Tested up to: 6.4.2
    7 Stable tag: 3.5.0
     7Stable tag: 3.5.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7575
    7676== Changelog ==
     77
     78= 3.5.1 =
     79* Bugfixes
     80
    7781= 3.5.0 =
    7882* tested with latest woocommerce
  • woocommerce-product-payments/trunk/woocommerce-product-payments.php

    r3135011 r3137711  
    55* Plugin URI: https://www.dreamfoxmedia.com/project/woocommerce-payment-gateway-per-product-premium/
    66* Description: Extend WooCommerce plugin to add different payments methods to a product
    7 * Version: 3.5.0
     7* Version: 3.5.1
    88 * WC tested up to: 7.8
    99 * WC tested up to: 8.5.1
     
    206206        }
    207207        update_option( 'woocommerce_product_apply', $productIds );
    208         $postPayments = ( $order->get_meta( 'payments' ) ? $order->get_meta( 'payments' ) : array() );
     208        if ( is_object( $order ) && method_exists( $order, 'get_meta' ) ) {
     209            $postPayments = ( $order->get_meta( 'payments' ) ? $order->get_meta( 'payments' ) : array() );
     210        } else {
     211            $postPayments = array();
     212        }
    209213        $woo = new WC_Payment_Gateways();
    210214        //$payments = $woo->get_available_payment_gateways();
Note: See TracChangeset for help on using the changeset viewer.