Changeset 3285962
- Timestamp:
- 05/02/2025 05:05:33 AM (10 months ago)
- Location:
- litcommerce/trunk
- Files:
-
- 3 edited
-
changelog.txt (modified) (1 diff)
-
litcommerce.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
litcommerce/trunk/changelog.txt
r3226563 r3285962 38 38 39 39 *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 3 3 Plugin Name: LitCommerce 4 4 Description: Helps you easily integrate your WooCommerce store with LitCommerce. 5 Version: 1.2. 55 Version: 1.2.6 6 6 Author: LitCommerce 7 7 Author URI: https://litcommerce.com … … 264 264 return $reordered_columns; 265 265 } 266 266 add_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) 269 add_action('manage_woocommerce_page_wc-orders_custom_column', 'litc_new_custom_orders_list_column_content', 20, 2); 270 function 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 } 267 300 // Adding custom fields meta data for each new column (example) 268 301 add_action('manage_shop_order_posts_custom_column', 'litc_custom_orders_list_column_content', 20, 2); -
litcommerce/trunk/readme.txt
r3274066 r3285962 4 4 Tags: WooCommerce, Amazon, eBay, Etsy, TikTok 5 5 Tested up to: 6.7.1 6 Stable tag: 1.2. 56 Stable tag: 1.2.6 7 7 License: GPL-2.0 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 *2. Templates and Recipes* 33 Utilize Templates and Recipes to quickly create your listing. 33 Utilize Templates and Recipes to quickly create your listing. 34 34 - 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. 35 35 - A Recipe is a set of templates for a particular channel for saving more of your time. … … 41 41 42 42 *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. 44 44 - Create an instantaneous synchronization between your WooCommerce site and your sales channels for product listings, orders, pricing, and inventory. 45 45
Note: See TracChangeset
for help on using the changeset viewer.