Plugin Directory

Changeset 3035897


Ignore:
Timestamp:
02/14/2024 09:21:20 PM (2 years ago)
Author:
skynetsolutions
Message:

1.1.24 - Updated stock to allow for first run on stock.

Location:
midwest-logistics/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • midwest-logistics/trunk/classes/class-ml-stock.php

    r3008368 r3035897  
    1717        //Basically if no items are found then the option is incremented and then used to find products that have changed.
    1818        //The reset function allows us increment the option.
    19         $stock_counter = get_option($this->metaStockCounterOption,1);
     19        //delete_option( $this->metaStockCounterOption );
     20        $stock_counter = get_option($this->metaStockCounterOption,false);
     21        if($stock_counter == false) {
     22            $stock_counter = 1;
     23        }
    2024        $pull_stock_setting = true;
     25       
    2126       
    2227        if($settingOptions !== "") {
     
    8994            $this->metaStockCheck => 'Y'
    9095        );
    91 
    9296
    9397        $products = wc_get_products($args);
     
    135139               }
    136140            }
    137         }
     141        } 
    138142 
    139143        return $skuArray;
     
    202206        }
    203207        if($debugout == true) {
     208            $stock_counter = get_option($this->metaStockCounterOption,1);
    204209            echo "Products being ran: <br>";
    205210            var_dump($skusResults);
     211            echo "<br><br><br>";
     212            echo "Stock Counter Number: " . $stock_counter . " <br>";
    206213            echo "<br><br><br>";
    207214        }
  • midwest-logistics/trunk/midwest-wholesale.php

    r3025264 r3035897  
    44    * Plugin URI:  https://plugins.skynet-solutions.net/
    55    * Description: Midwest Wholesale Plugin allows you to automatically add Woocommerce orders into the Midwest Logistics order system.
    6     * Version:     1.1.23
     6    * Version:     1.1.24
    77    * WC requires at least: 6.0.0
    88    * WC tested up to: 8.2.0
  • midwest-logistics/trunk/readme.txt

    r3025264 r3035897  
    55Tested up to: 6.4.1
    66Requires PHP: 7.0
    7 Stable tag: 1.1.23
     7Stable tag: 1.1.24
    88License: GPLv3
    99
Note: See TracChangeset for help on using the changeset viewer.