Plugin Directory

Changeset 3413789


Ignore:
Timestamp:
12/08/2025 02:50:49 AM (3 months ago)
Author:
litexten
Message:

bug fixes

Location:
litcommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • litcommerce/trunk/changelog.txt

    r3381665 r3413789  
    11*** LitCommerce Changelog ***
     2
     32025-12-08 - version 1.3.3
     4* Fixed - Fix Bugs
    25
    362025-10-21 - version 1.3.2
  • litcommerce/trunk/litcommerce.php

    r3381665 r3413789  
    33Plugin Name: LitCommerce: Multi-channel Selling Tool For WooCommerce
    44Description: Helps you easily integrate your WooCommerce store with LitCommerce.
    5 Version: 1.3.2
     5Version: 1.3.3
    66Author: LitCommerce
    77Author URI: https://litcommerce.com
     
    704704    ]);
    705705}
     706
     707add_filter( 'woocommerce_can_restore_order_stock', 'litc_conditional_no_restore_stock', 10, 2 );
     708
     709function litc_conditional_no_restore_stock( $can_restore, $order ) {
     710    if ( ! $order instanceof WC_Order ) {
     711        return $can_restore;
     712    }
     713
     714    if ( $order->get_status() === 'cancelled' ||  $order->get_status() === 'refunded') {
     715        $no_restore = $order->get_meta( 'litc_order_no_restore_stock' );
     716
     717        if ( $no_restore == '1' || $no_restore === 'yes' ) {
     718            return false;
     719        }
     720    }
     721
     722    return $can_restore;
     723}
  • litcommerce/trunk/readme.txt

    r3381665 r3413789  
    44Tags: WooCommerce, Amazon, eBay, Etsy, TikTok
    55Tested up to: 6.8
    6 Stable tag: 1.3.2
     6Stable tag: 1.3.3
    77License: GPL-2.0
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • litcommerce/trunk/steps/SendWooCommerceKeys.php

    r3381665 r3413789  
    2727        $url     .= '&channel_url=' . urlencode( site_url() );
    2828        $url     .= '&from_app=marketplace';
    29         $url     .= '&version_plugin=1.3.2';
     29        $url     .= '&version_plugin=1.3.3';
    3030        $url     .= '&app_store=wordpress';
    3131        $reconnect = filter_input( INPUT_GET, 'reconnect', FILTER_SANITIZE_NUMBER_INT );
Note: See TracChangeset for help on using the changeset viewer.