Plugin Directory

Changeset 2287683


Ignore:
Timestamp:
04/20/2020 05:16:18 PM (6 years ago)
Author:
channelengine
Message:

Version 2.4.2

Location:
channelengine-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • channelengine-woocommerce/trunk/admin/class-channel-engine-api.php

    r2263168 r2287683  
    7979
    8080            $productId = $lineItem['product_id'];
    81             if($lineItem->is_type('variable')) {
    82                 $productId = $lineItem->get_variation_id();
     81            $variationId = $lineItem->get_variation_id();
     82            if(!is_null($variationId)) {
     83                $productId = $variationId;
    8384            }
    8485
     
    124125
    125126                $productId = $lineItem['product_id'];
    126                 if($lineItem->is_type('variable')) {
    127                     $productId = $lineItem->get_variation_id();
     127                $variationId = $lineItem->get_variation_id();
     128                if(!is_null($variationId)) {
     129                    $productId = $variationId;
    128130                }
    129131
     
    404406
    405407            $wc_order->save();
    406 //            //Extra data
    407 //            //TODO: Should these be parsed to other objects?
    408 //            update_post_meta($wc_order->get_id(), parent::PREFIX . '_extra_data', serialize($order->getExtraData()));
    409 //            update_post_meta($wc_order->get_id(), parent::PREFIX . '_shipments', serialize($order->getShipments()));
    410 //            update_post_meta($wc_order->get_id(), parent::PREFIX . '_cancellations', serialize($order->getCancellations()));
     408
    411409            return array(
    412410                'success' => true,
    413                 'orderId'=>$order->getId(),
    414                 'merchantOrderNo'=>$wc_order->get_order_number()
     411                'orderId' => $order->getId(),
     412                'merchantOrderNo' => $wc_order->get_id()
    415413            );
    416414        }
  • channelengine-woocommerce/trunk/woocommerce-channel-engine.php

    r2263168 r2287683  
    44Plugin URI: http://channelengine.net
    55Description: ChannelEngine plugin for WooCommerce
    6 Version: 2.4.1
     6Version: 2.4.2
    77Author: ChannelEngine
    88Author URI: http://channelengine.net
Note: See TracChangeset for help on using the changeset viewer.