Changeset 2287683
- Timestamp:
- 04/20/2020 05:16:18 PM (6 years ago)
- Location:
- channelengine-woocommerce/trunk
- Files:
-
- 2 edited
-
admin/class-channel-engine-api.php (modified) (3 diffs)
-
woocommerce-channel-engine.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
channelengine-woocommerce/trunk/admin/class-channel-engine-api.php
r2263168 r2287683 79 79 80 80 $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; 83 84 } 84 85 … … 124 125 125 126 $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; 128 130 } 129 131 … … 404 406 405 407 $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 411 409 return array( 412 410 'success' => true, 413 'orderId' =>$order->getId(),414 'merchantOrderNo' =>$wc_order->get_order_number()411 'orderId' => $order->getId(), 412 'merchantOrderNo' => $wc_order->get_id() 415 413 ); 416 414 } -
channelengine-woocommerce/trunk/woocommerce-channel-engine.php
r2263168 r2287683 4 4 Plugin URI: http://channelengine.net 5 5 Description: ChannelEngine plugin for WooCommerce 6 Version: 2.4. 16 Version: 2.4.2 7 7 Author: ChannelEngine 8 8 Author URI: http://channelengine.net
Note: See TracChangeset
for help on using the changeset viewer.