Changeset 1876959
- Timestamp:
- 05/18/2018 07:41:34 AM (8 years ago)
- Location:
- avecdo-for-woocommerce/trunk
- Files:
-
- 3 edited
-
avecdo.php (modified) (2 diffs)
-
models/Model.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
avecdo-for-woocommerce/trunk/avecdo.php
r1862752 r1876959 4 4 * Plugin URI: http://avecdo.com/ 5 5 * Description: avecdo connector plugin for WooCommerce 6 * Version: 1.3. 76 * Version: 1.3.8 7 7 * Author: Modified Solutions ApS 8 8 * Author URI: https://www.modified.dk/ … … 29 29 * @var string Version string 30 30 */ 31 define('AVECDO_WOOCOMMERCE_PLUGIN_VERSION', '1.3. 7');31 define('AVECDO_WOOCOMMERCE_PLUGIN_VERSION', '1.3.8'); 32 32 33 33 /** -
avecdo-for-woocommerce/trunk/models/Model.php
r1855018 r1876959 131 131 private function assignAvecdoProductMetaData($productId, $avecdoProduct, array &$imagesIds) 132 132 { 133 /* @todo temp fix, we need the price calculator, so just for now we make this object. */ 134 $product = wc_get_product($productId); 133 if ('yes' !== get_option( 'woocommerce_prices_include_tax')) { 134 $product = wc_get_product($productId); 135 } 135 136 $galleryImages = array(); 136 137 $thumbnailImages = array(); … … 158 159 case "_regular_price": 159 160 $method = "setPrice"; 160 if ( $product) {161 if ('yes' !== get_option( 'woocommerce_prices_include_tax') && $product) { 161 162 $metaValue = (float) $this->getPriceIncludingTax($product, $metaRow->meta_value, 1); 162 163 } else { … … 185 186 case "_sale_price": 186 187 $salePrice = (float) $this->getSalePrice($productId); 187 if ( $product) {188 if ('yes' !== get_option( 'woocommerce_prices_include_tax') && $product) { 188 189 $salePrice = (float) $this->getPriceIncludingTax($product, $salePrice, 1); 189 190 } -
avecdo-for-woocommerce/trunk/readme.txt
r1862752 r1876959 3 3 Tags: feed, service, avecdo, Facebook, Google Shopping, shopping, woocommerce, kelkoo, miinto, Pricerunner, Partner-ads, ecommerce, e-commerce 4 4 Requires at least: 3.5 5 Tested up to: 4.9. 56 Stable tag: 1.3. 75 Tested up to: 4.9.6 6 Stable tag: 1.3.8 7 7 License: Mozilla Public License Version 2.0 8 8 License URI: https://www.mozilla.org/en-US/MPL/2.0/ … … 45 45 46 46 == Changelog == 47 48 = 1.3.8 = 49 * Minor fix to reduce load when fetching products, and calculating if the product prices are tax inclusive. Tested with WordpPress 4.9.6 47 50 48 51 = 1.3.7 =
Note: See TracChangeset
for help on using the changeset viewer.