Plugin Directory

Changeset 2020650


Ignore:
Timestamp:
01/28/2019 05:36:03 PM (7 years ago)
Author:
jank404
Message:

Version 1.0.1 - SKU

Location:
apollo
Files:
104 added
2 edited

Legend:

Unmodified
Added
Removed
  • apollo/trunk/includes/admin/invoice.php

    r2013244 r2020650  
    3232      foreach ($order->get_items() as $item_id => $item_data) {
    3333        $product = $item_data->get_data();
     34        $productData = wc_get_product($item_data->get_product_id());
    3435        $without_tax = floatval($product['total']) / $product['quantity'];
    3536        $tax_amount = floatval($product['total_tax']) / $product['quantity'];
     
    4445          '_documentItemTaxes' => array(array('rate' => $tax_percent))
    4546        );
     47
     48        if($productData->get_sku() != '') {
     49          $product_data['SKU'] = $productData->get_sku();
     50        }
    4651
    4752        if (floatval($product['total']) < floatval($product['subtotal'])) { // item is discounted
  • apollo/trunk/readme.txt

    r2017683 r2020650  
    7777
    7878Make sure you go to extension settings and set "token" and "organization id" in order for extension to work. You can find your data on [Apollo](https://getapollo.io), under Integrations > WooCommerce.
     79
     80== Changelog ==
     81
     82= 1.0.1 - January 28, 2019 =
     83
     84- Added: SKU codes (In preparation for Apollo inventory tracking with SKU codes in next patch)
     85
     86= 1.0.0 - January 16, 2019 =
     87
     88- Initial release.
Note: See TracChangeset for help on using the changeset viewer.