Plugin Directory

Changeset 3285962


Ignore:
Timestamp:
05/02/2025 05:05:33 AM (10 months ago)
Author:
litexten
Message:

bug fixes

Location:
litcommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • litcommerce/trunk/changelog.txt

    r3226563 r3285962  
    3838
    3939*Fixed: "Compatibility Fix for PHP 8.1."
     40
     41
     42= 1.2.6 2025-05-02 =
     43
     44*Fixed: "Order Columns."
  • litcommerce/trunk/litcommerce.php

    r3255661 r3285962  
    33Plugin Name: LitCommerce
    44Description: Helps you easily integrate your WooCommerce store with LitCommerce.
    5 Version: 1.2.5
     5Version: 1.2.6
    66Author: LitCommerce
    77Author URI: https://litcommerce.com
     
    264264    return $reordered_columns;
    265265}
    266 
     266add_filter('manage_woocommerce_page_wc-orders_columns', 'litc_custom_shop_order_column', 20);
     267
     268// Adding custom fields meta data for each new column (example)
     269add_action('manage_woocommerce_page_wc-orders_custom_column', 'litc_new_custom_orders_list_column_content', 20, 2);
     270function litc_new_custom_orders_list_column_content( $column, $order ) {
     271    switch ($column) {
     272        case '_litc_order_from' :
     273
     274            // Get custom post meta data
     275            $column_data = $order->get_meta('_litc_order_from');
     276            if (!empty($column_data))
     277                echo $column_data;
     278
     279            // Testing (to be removed) - Empty value case
     280            else
     281                echo '';
     282
     283            break;
     284        case '_litc_order_number' :
     285            $column_data = $order->get_meta('_litc_order_number');
     286
     287            if ($column_data) {
     288                $litc_order_id = $order->get_meta('_litc_order_id');
     289                if ($litc_order_id) {
     290                    echo "<a href='https://app.litcommerce.com/orders/{$litc_order_id}' target='_blank'>{$column_data}</a>";
     291                } else {
     292                    echo $column_data;
     293                }
     294            } else {
     295                echo '';
     296            }
     297
     298    }
     299}
    267300// Adding custom fields meta data for each new column (example)
    268301add_action('manage_shop_order_posts_custom_column', 'litc_custom_orders_list_column_content', 20, 2);
  • litcommerce/trunk/readme.txt

    r3274066 r3285962  
    44Tags: WooCommerce, Amazon, eBay, Etsy, TikTok
    55Tested up to: 6.7.1
    6 Stable tag: 1.2.5
     6Stable tag: 1.2.6
    77License: GPL-2.0
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232*2. Templates and Recipes*
    33 Utilize Templates and Recipes to quickly create your listing. 
     33Utilize Templates and Recipes to quickly create your listing.
    3434- Utilize Templates, which are sets of attributes and settings for listings, to quickly generate or modify your product listings. When a Template is modified, all listings to which it was applied are also updated.
    3535- A Recipe is a set of templates for a particular channel for saving more of your time.
     
    4141
    4242*4. Use LitCommerce LiveSync to sync in real-time.*
    43 - Automatically sync in WooCommerce, and LitCommerce will update itself immediately on all sale channels. 
     43- Automatically sync in WooCommerce, and LitCommerce will update itself immediately on all sale channels.
    4444- Create an instantaneous synchronization between your WooCommerce site and your sales channels for product listings, orders, pricing, and inventory.
    4545
Note: See TracChangeset for help on using the changeset viewer.