Plugin Directory

Changeset 3075488


Ignore:
Timestamp:
04/23/2024 07:46:34 AM (2 years ago)
Author:
zipmoney
Message:

Release version 2.3.19

Location:
zipmoney-payments-woocommerce
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • zipmoney-payments-woocommerce/trunk/README.txt

    r2917068 r3075488  
    33Tags: zipmoney payments woocommerce, zipmoney payments module for woocommerce, zipmoney woocommerce addon , zipmoney payment gateway for woocommerce, zipmoney for woocommerce, zipmoney payment gateway for wordpress, buy now pay later, zippay woocommerce plugin, Own it now, pay later, Zip Co, Zip
    44Requires at least: WP 4.0
    5 Tested up to: 6.2
    6 Stable tag: 2.3.18
     5Tested up to: 6.5
     6Stable tag: 2.3.19
    77License: GPLv2 or later License http://www.gnu.org/licenses/gpl-2.0.html
    88
     
    225225= 2.3.18 =
    226226* fixed php notification issue for wc-zipmoney-checkout-js
     227
     228= 2.3.19 =
     229* fixed php notification issue for wc-zipmoney-checkout-js
  • zipmoney-payments-woocommerce/trunk/includes/view/backend/charge_buttons.php

    r2806192 r3075488  
    1111            jQuery('button.refund-items').hide();
    1212
     13            const getFormOrder = function () {
     14                return jQuery('#post').length ? jQuery('#post') : jQuery('#order');
     15            }
     16
    1317            //Set the action of capture button
    1418            jQuery('button.zip-capture-btn').click(function () {
    1519                var confirmResult = confirm('Are you sure?');
    1620                if (confirmResult == true) {
    17                     var post_form = jQuery('#post');
    18                     post_form.prop('action', '<?php echo WC_Zipmoney_Payment_Gateway_Util::get_capture_charge_url(); ?>');
     21                    var post_form = getFormOrder();
     22                    post_form.attr('action', '<?php echo WC_Zipmoney_Payment_Gateway_Util::get_capture_charge_url(); ?>');
    1923                    post_form.submit();
    2024                }
     
    2529                var confirmResult = confirm('Are you sure?');
    2630                if(confirmResult == true){
    27                     var post_form = jQuery('#post');
    28                     post_form.prop('action', '<?php echo WC_Zipmoney_Payment_Gateway_Util::get_cancel_charge_url(); ?>');
     31                    var post_form = getFormOrder();
     32                    post_form.attr('action', '<?php echo WC_Zipmoney_Payment_Gateway_Util::get_cancel_charge_url(); ?>');
    2933                    post_form.submit();
    3034                }
  • zipmoney-payments-woocommerce/trunk/zipmoney-payment-gateway.php

    r2917068 r3075488  
    77 * Give your customers the power to pay later, interest free and watch your sales grow.
    88 * Take advantage of our fast-growing customer base, proven revenue uplift, fast and simple integration.
    9  * Version:           2.3.18
     9 * Version:           2.3.19
    1010 * Author:            Zip
    1111 * Author URI:        https://www.zip.co/
     
    1616 * WC tested up to: 7.5.1
    1717 *
    18  * @version  2.3.18
     18 * @version  2.3.19
    1919 * @package  Zip
    2020 * @author   Zip
     
    2727register_activation_hook( __FILE__, 'zip_plugin_activation' );
    2828require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
    29 define( 'WOOCOMMERCE_GATEWAY_ZIPMONEY_VERSION', '2.3.14' );
     29define( 'WOOCOMMERCE_GATEWAY_ZIPMONEY_VERSION', '2.3.19' );
    3030define( 'WOOCOMMERCE_GATEWAY_ZIPMONEY_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
    3131define( 'WOOCOMMERCE_GATEWAY_ZIPMONEY_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
     
    131131    }
    132132}
     133
     134add_action( 'before_woocommerce_init', function() {
     135    if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     136        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     137    }
     138} );
Note: See TracChangeset for help on using the changeset viewer.