Plugin Directory

Changeset 2855067


Ignore:
Timestamp:
01/26/2023 10:22:08 AM (3 years ago)
Author:
molonies
Message:

Updating readme/assets from GitHub

Location:
moloni-es/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • moloni-es/trunk/README.md

    r2845423 r2855067  
    66![WordPress Plugin: Tested WP Version](https://img.shields.io/badge/WordPress-6.1.1%20tested-orange)
    77![WooCommerce: Required Version](https://img.shields.io/badge/WooCommerce-%3E%3D%203.0.0-orange)
    8 ![WooCommerce: Tested Version](https://img.shields.io/badge/WooCommerce-7.2.0%20tested-orange)
     8![WooCommerce: Tested Version](https://img.shields.io/badge/WooCommerce-7.3.0%20tested-orange)
    99
    1010![GitHub](https://img.shields.io/github/license/moloni-pt/woocommerce)
     
    1515**Requires PHP:**      7.2 
    1616**Tested up to:**      6.1.1 
    17 **WC tested up to**    7.2.2 
    18 **Stable tag:**        1.0.38 
     17**WC tested up to**    7.3.0 
     18**Stable tag:**        1.0.39 
    1919**License:**           GPLv2 or later 
    2020**License URI:**       [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html)
     
    7171
    7272## Changelog
     73
     74### 1.0.39
     75* FIX: Fixed error on product edit in older versions of WooCommerce
     76* Tested up to version 7.3.0 of WooCommerce
     77
    7378### 1.0.38
    7479* FIX: Small fixes and improvements
  • moloni-es/trunk/moloni_es.php

    r2845423 r2855067  
    44 *   Plugin Name:  Moloni España
    55 *   Description:  Simple invoicing integration with Moloni ES
    6  *   Version:      1.0.38
     6 *   Version:      1.0.39
    77 *   Tested up to: 6.1.1
    88 *   WC tested up to: 7.2.2
  • moloni-es/trunk/readme.txt

    r2845423 r2855067  
    33Contributors: Moloni
    44Tags: Invoicing, Orders
    5 Stable tag: 1.0.38
     5Stable tag: 1.0.39
    66Tested up to: 6.1.1
    7 WC tested up to: 7.2.2
     7WC tested up to: 7.3.0
    88
    99Requires PHP: 5.6
     
    6868
    6969== Changelog ==
     70= 1.0.39 =
     71* FIX: Fixed error on product edit in older versions of WooCommerce
     72* Tested up to version 7.3.0 of WooCommerce
     73
    7074= 1.0.38 =
    7175* FIX: Small fixes and improvements
  • moloni-es/trunk/src/Controllers/SyncProducts.php

    r2845423 r2855067  
    6767                            Log::write(sprintf(__('Product with reference %1$s was updated from %2$s to %3$s','moloni_es'),$product['reference'],$currentStock,$newStock));
    6868                            $this->updated[$product['reference']] = sprintf(__('Product with reference %1$s was updated from %2$s to %3$s','moloni_es'),$product['reference'],$currentStock,$newStock);
    69                             wc_update_product_stock($wcProductId, $newStock);
     69                            wc_update_product_stock($wcProduct, $newStock);
    7070                        }
    7171                    } else {
  • moloni-es/trunk/src/Hooks/OrderView.php

    r2845423 r2855067  
    55use WP_Post;
    66use WC_Order;
     7use Exception;
    78use MoloniES\Start;
    89use MoloniES\Plugin;
     
    3637    public function moloni_add_meta_box()
    3738    {
    38         $screen = wc_get_container()->get(CustomOrdersTableController::class)->custom_orders_table_usage_is_enabled()
    39             ? wc_get_page_screen_id('shop-order')
    40             : 'shop_order';
     39        $screen = 'shop_order';
     40
     41        try {
     42            if (class_exists(CustomOrdersTableController::class) && wc_get_container()->get(CustomOrdersTableController::class)->custom_orders_table_usage_is_enabled()) {
     43                $screen = wc_get_page_screen_id('shop-order');
     44            }
     45        } catch (Exception $ex) {}
    4146
    4247        add_meta_box('moloni_add_meta_box', 'Moloni', [$this, 'showMoloniView'], $screen, 'side', 'core');
Note: See TracChangeset for help on using the changeset viewer.