Plugin Directory

Changeset 2784124


Ignore:
Timestamp:
09/13/2022 03:51:49 PM (4 years ago)
Author:
cryptapi
Message:

v4.6.1 - Minor fixes

Location:
cryptapi-payment-gateway-for-woocommerce
Files:
5 deleted
5 edited
16 copied

Legend:

Unmodified
Added
Removed
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.1/CryptAPI.php

    r2778920 r2784124  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.6.0
     6Version: 4.6.1
    77Requires at least: 5
    88Tested up to: 6.0.2
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.1/README.md

    r2778920 r2784124  
    272272* Minor fixes
    273273
     274#### 4.6.1
     275* Minor fixes
     276
    274277### Upgrade Notice
    275278#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.1/controllers/CryptAPI.php

    r2778920 r2784124  
    322322                    'title' => __('Order cancelation timeout', 'cryptapi'),
    323323                    'type' => 'select',
    324                     'default' => '3600',
     324                    'default' => '0',
    325325                    'options' => array(
    326326                        '0' => __('Never', 'cryptapi'),
     
    623623                $order->payment_complete($data['address_in']);
    624624                if ($this->virtual_complete) {
    625                     $is_virtual = false;
     625                    $count_products = count($order->get_items());
     626                    $count_virtual = 0;
    626627                    foreach ($order->get_items() as $order_item) {
    627628                        $item = wc_get_product($order_item->get_product_id());
    628                         if ($item->is_virtual()) {
    629                             $is_virtual = true;
     629                        $item_obj = $item->get_type() === 'variable' ? wc_get_product($order_item['variation_id']) : $item;
     630
     631                        if ($item_obj->is_virtual()) {
     632                            $count_virtual += 1;
    630633                        }
    631634                    }
    632                     if ($is_virtual) {
     635                    if ($count_virtual === $count_products) {
    633636                        $order->update_status('completed');
    634637                    }
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.1/define.php

    r2778920 r2784124  
    11<?php
    22
    3 define('CRYPTAPI_PLUGIN_VERSION', '4.6.0');
     3define('CRYPTAPI_PLUGIN_VERSION', '4.6.1');
    44define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    55define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.1/readme.txt

    r2778920 r2784124  
    44Requires at least: 5
    55Tested up to: 6.0.2
    6 Stable tag: 4.6.0
     6Stable tag: 4.6.1
    77Requires PHP: 7.2
    88WC requires at least: 5.8
     
    282282* Minor fixes
    283283
     284= 4.6.1 =
     285* Minor fixes
     286
    284287== Upgrade Notice ==
    285288
  • cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php

    r2778920 r2784124  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.6.0
     6Version: 4.6.1
    77Requires at least: 5
    88Tested up to: 6.0.2
  • cryptapi-payment-gateway-for-woocommerce/trunk/README.md

    r2778920 r2784124  
    272272* Minor fixes
    273273
     274#### 4.6.1
     275* Minor fixes
     276
    274277### Upgrade Notice
    275278#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php

    r2778920 r2784124  
    322322                    'title' => __('Order cancelation timeout', 'cryptapi'),
    323323                    'type' => 'select',
    324                     'default' => '3600',
     324                    'default' => '0',
    325325                    'options' => array(
    326326                        '0' => __('Never', 'cryptapi'),
     
    623623                $order->payment_complete($data['address_in']);
    624624                if ($this->virtual_complete) {
    625                     $is_virtual = false;
     625                    $count_products = count($order->get_items());
     626                    $count_virtual = 0;
    626627                    foreach ($order->get_items() as $order_item) {
    627628                        $item = wc_get_product($order_item->get_product_id());
    628                         if ($item->is_virtual()) {
    629                             $is_virtual = true;
     629                        $item_obj = $item->get_type() === 'variable' ? wc_get_product($order_item['variation_id']) : $item;
     630
     631                        if ($item_obj->is_virtual()) {
     632                            $count_virtual += 1;
    630633                        }
    631634                    }
    632                     if ($is_virtual) {
     635                    if ($count_virtual === $count_products) {
    633636                        $order->update_status('completed');
    634637                    }
  • cryptapi-payment-gateway-for-woocommerce/trunk/define.php

    r2778920 r2784124  
    11<?php
    22
    3 define('CRYPTAPI_PLUGIN_VERSION', '4.6.0');
     3define('CRYPTAPI_PLUGIN_VERSION', '4.6.1');
    44define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    55define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt

    r2778920 r2784124  
    44Requires at least: 5
    55Tested up to: 6.0.2
    6 Stable tag: 4.6.0
     6Stable tag: 4.6.1
    77Requires PHP: 7.2
    88WC requires at least: 5.8
     
    282282* Minor fixes
    283283
     284= 4.6.1 =
     285* Minor fixes
     286
    284287== Upgrade Notice ==
    285288
Note: See TracChangeset for help on using the changeset viewer.