Plugin Directory

Changeset 1907590


Ignore:
Timestamp:
07/11/2018 11:10:01 AM (8 years ago)
Author:
alexwing
Message:
  • Fix import orders status to wc-completed
  • Fix import category images url
Location:
woo-oscommerce-sync/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woo-oscommerce-sync/trunk/readme.txt

    r1845303 r1907590  
    55Requires at least: 3.5.1
    66Tested up to: 4.9.4–es_ES
    7 Stable tag: 2.0.1
     7Stable tag: 2.0.3
    88License: AGPLv3.0 or later
    99License URI: http://opensource.org/licenses/AGPL-3.0
     
    7070
    7171== Changelog ==
     72= 2.0.3 =
     73* Fix import orders status to wc-completed
     74
     75= 2.0.2 =
     76* Fix import category images url
     77
    7278= 2.0.1 =
    7379
  • woo-oscommerce-sync/trunk/woocommerce-osc-sync.php

    r1845303 r1907590  
    55  Description: Import products, categories, customers and orders from osCommerce to Woocommerce
    66  Author: Alejandro Aranda
    7   Version: 2.0.1
     7  Version: 2.0.3
    88  Author URI: http://www.aaranda.es
    99  Original Author: David Barnes
     
    108108                              if ($category['categories_image'] != '') {
    109109                                   if (esc_url($_POST['store_url'])) {
    110                                         $url = rtrim($_POST['store_url'], '/') . '/images/' . urlencode($category['categories_image']);
     110                                        //otw_log("importCategories", "Image: " . rtrim($_POST['store_url'], '/') . '/image/' . urlencode($category['categories_image']));
     111                                        $url = rtrim($_POST['store_url'], '/') . '/image/' . urlencode($category['categories_image']);
    111112                                        $attach_id = otw_import_image($url);
    112113                                   }
     
    579580                                            'post_password' => $order_key,
    580581                                            'post_title' => 'Order – ' . date("M d, Y @ h:i A", strtotime($order['date_purchased'])),
    581                                             'post_status' => 'publish'
     582                                            'post_status' => 'wc-completed'
    582583                                        );
    583584                                        otw_log("importOrders", "Header: " . json_encode($data));
     
    653654                                             }
    654655                                        }
     656                                       
     657                                       
    655658                                   }
    656659                              }
Note: See TracChangeset for help on using the changeset viewer.