Plugin Directory

Changeset 2077011


Ignore:
Timestamp:
04/29/2019 01:06:39 PM (7 years ago)
Author:
ingpsp
Message:

Don't reduce stock if order was retried

Location:
ing-psp/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ing-psp/trunk/CHANGELOG.md

    r2043930 r2077011  
    11# Changelog WooCommerce
     2
     3** 1.3.9 **
     4* Don't reduce stock if order was retried
    25
    36** 1.3.8 **
  • ing-psp/trunk/README.md

    r2043930 r2077011  
    1515
    1616## Version number
    17 Version 1.3.8
     17Version 1.3.9
    1818
    1919## Pre-requisites to install the plug-ins
  • ing-psp/trunk/classes/class-wc-ingpsp-helper.php

    r1962294 r2077011  
    393393    {
    394394        if (version_compare(get_option('woocommerce_version'), '3.0', '>=')) {
    395             wc_reduce_stock_levels($order->get_id());
     395            if ( ! get_post_meta( $order->id, '_order_stock_reduced', $single = true ) )
     396                wc_reduce_stock_levels($order->get_id());
    396397        } else {
    397             $order->reduce_order_stock();
     398            if ( ! get_post_meta( $order->id, '_order_stock_reduced', $single = true ) )
     399                $order->reduce_order_stock();
    398400        }
    399401    }
  • ing-psp/trunk/ingpsp.php

    r2043930 r2077011  
    55 * Plugin URI: https://www.ing.nl/
    66 * Description: ING WooCommerce plugin for ING Kassa Compleet and ING ePay markets.
    7  * Version: 1.3.8
     7 * Version: 1.3.9
    88 * Author: Ginger Payments
    99 * Author URI: https://www.gingerpayments.com/
     
    2020 * Define ING PSP plugin version
    2121 */
    22 define('INGPSP_PLUGIN_VERSION', 'WooCommerce v1.3.8');
     22define('INGPSP_PLUGIN_VERSION', 'WooCommerce v1.3.9');
    2323
    2424add_action('plugins_loaded', 'woocommerce_ingpsp_init', 0);
  • ing-psp/trunk/readme.txt

    r2043930 r2077011  
    44Contributors: ingpsp, gingerpayments
    55Requires at least: 4.0
    6 Tested up to: 4.9.6
    7 Stable tag: 1.3.8
     6Tested up to: 5.1.1
     7Stable tag: 1.3.9
    88License: The MIT License (MIT)
    99License URI: https://opensource.org/licenses/MIT
     
    104104== Changelog ==
    105105
    106 = 1.3.8 =
     106= 1.3.9 =
    107107* Fix for DOB check
    108108
Note: See TracChangeset for help on using the changeset viewer.