Changeset 3191127
- Timestamp:
- 11/18/2024 10:54:43 AM (15 months ago)
- Location:
- tradetracker-connect
- Files:
-
- 6 edited
- 8 copied
-
tags/2.2.11 (copied) (copied from tradetracker-connect/trunk)
-
tags/2.2.11/README.md (copied) (copied from tradetracker-connect/trunk/README.md) (2 diffs)
-
tags/2.2.11/README.txt (copied) (copied from tradetracker-connect/trunk/README.txt) (2 diffs)
-
tags/2.2.11/admin/class-tradetracker-connect-admin.php (copied) (copied from tradetracker-connect/trunk/admin/class-tradetracker-connect-admin.php)
-
tags/2.2.11/includes/class-tradetracker-connect-feed.php (copied) (copied from tradetracker-connect/trunk/includes/class-tradetracker-connect-feed.php)
-
tags/2.2.11/includes/class-tradetracker-connect-xml.php (copied) (copied from tradetracker-connect/trunk/includes/class-tradetracker-connect-xml.php) (1 diff)
-
tags/2.2.11/includes/class-tradetracker-connect.php (copied) (copied from tradetracker-connect/trunk/includes/class-tradetracker-connect.php)
-
tags/2.2.11/public/class-tradetracker-connect-public.php (modified) (1 diff)
-
tags/2.2.11/tradetracker-connect.php (copied) (copied from tradetracker-connect/trunk/tradetracker-connect.php) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/class-tradetracker-connect-xml.php (modified) (1 diff)
-
trunk/public/class-tradetracker-connect-public.php (modified) (1 diff)
-
trunk/tradetracker-connect.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tradetracker-connect/tags/2.2.11/README.md
r3177883 r3191127 4 4 Requires at least: 5.5 5 5 Requires PHP: 7.4 6 Tested up to: 6. 57 Stable tag: 2.2.1 06 Tested up to: 6.7 7 Stable tag: 2.2.11 8 8 License: GPLv3 or later 9 9 … … 90 90 91 91 == Changelog == 92 = 2.2.11 = 93 - Fixed tracking script for zero-priced products 94 92 95 = 2.2.10 = 93 96 - Added temporary file for product feed generation -
tradetracker-connect/tags/2.2.11/README.txt
r3177883 r3191127 4 4 Requires at least: 5.5 5 5 Requires PHP: 7.4 6 Tested up to: 6. 57 Stable tag: 2.2.1 06 Tested up to: 6.7 7 Stable tag: 2.2.11 8 8 License: GPLv3 or later 9 9 … … 90 90 91 91 == Changelog == 92 = 2.2.11 = 93 - Fixed tracking script for zero-priced products 94 92 95 = 2.2.10 = 93 96 - Added temporary file for product feed generation -
tradetracker-connect/tags/2.2.11/includes/class-tradetracker-connect-xml.php
r3177883 r3191127 25 25 } 26 26 27 public function saveXML( ?string$filename = null)27 public function saveXML($filename = null) 28 28 { 29 29 $this->_set_product_count(); -
tradetracker-connect/tags/2.2.11/public/class-tradetracker-connect-public.php
r3116933 r3191127 278 278 $product_item->currency = htmlentities($order_item->get_order()->get_currency(), ENT_QUOTES); 279 279 $product_item->quantity = $order_item->get_quantity(); 280 $product_item->product_price_cents = $product->get_price() * 100;281 $product_item->product_price_ex_tax_cents = $order_item->get_subtotal() > 0 ? ($order_item->get_subtotal() * 100) / $product_item->quantity: 0;282 $product_item->product_tax_cents = $order_item->get_subtotal_tax() > 0 ? ($order_item->get_subtotal_tax() * 100) / $product_item->quantity: 0;280 $product_item->product_price_cents = is_numeric($product->get_price()) ? round((float) $product->get_price() * 100) : 0; 281 $product_item->product_price_ex_tax_cents = is_numeric($order_item->get_subtotal()) && $product_item->quantity > 0 ? round((float) $order_item->get_subtotal() * 100 / $product_item->quantity) : 0; 282 $product_item->product_tax_cents = is_numeric($order_item->get_subtotal_tax()) && $product_item->quantity > 0 ? round((float) $order_item->get_subtotal_tax() * 100 / $product_item->quantity) : 0; 283 283 284 284 $brand_terms = get_the_terms($order_item->get_product_id(), 'pa_brand'); -
tradetracker-connect/tags/2.2.11/tradetracker-connect.php
r3177883 r3191127 15 15 * Plugin Name: TradeTracker Connect 16 16 * Description: Seamless WordPress integration for TradeTracker's Merchants. 17 * Version: 2.2.1 017 * Version: 2.2.11 18 18 * Author: TradeTracker.com 19 19 * Author URI: https://tradetracker.com … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('TRADETRACKER_CONNECT_VERSION', '2.2.1 0');38 define('TRADETRACKER_CONNECT_VERSION', '2.2.11'); 39 39 define('TRADETRACKER_CONNECT_URL', plugin_dir_url(__FILE__)); 40 40 define('TRADETRACKER_CONNECT_PATH', plugin_dir_path(__FILE__)); -
tradetracker-connect/trunk/README.md
r3177883 r3191127 4 4 Requires at least: 5.5 5 5 Requires PHP: 7.4 6 Tested up to: 6. 57 Stable tag: 2.2.1 06 Tested up to: 6.7 7 Stable tag: 2.2.11 8 8 License: GPLv3 or later 9 9 … … 90 90 91 91 == Changelog == 92 = 2.2.11 = 93 - Fixed tracking script for zero-priced products 94 92 95 = 2.2.10 = 93 96 - Added temporary file for product feed generation -
tradetracker-connect/trunk/README.txt
r3177883 r3191127 4 4 Requires at least: 5.5 5 5 Requires PHP: 7.4 6 Tested up to: 6. 57 Stable tag: 2.2.1 06 Tested up to: 6.7 7 Stable tag: 2.2.11 8 8 License: GPLv3 or later 9 9 … … 90 90 91 91 == Changelog == 92 = 2.2.11 = 93 - Fixed tracking script for zero-priced products 94 92 95 = 2.2.10 = 93 96 - Added temporary file for product feed generation -
tradetracker-connect/trunk/includes/class-tradetracker-connect-xml.php
r3177883 r3191127 25 25 } 26 26 27 public function saveXML( ?string$filename = null)27 public function saveXML($filename = null) 28 28 { 29 29 $this->_set_product_count(); -
tradetracker-connect/trunk/public/class-tradetracker-connect-public.php
r3116933 r3191127 278 278 $product_item->currency = htmlentities($order_item->get_order()->get_currency(), ENT_QUOTES); 279 279 $product_item->quantity = $order_item->get_quantity(); 280 $product_item->product_price_cents = $product->get_price() * 100;281 $product_item->product_price_ex_tax_cents = $order_item->get_subtotal() > 0 ? ($order_item->get_subtotal() * 100) / $product_item->quantity: 0;282 $product_item->product_tax_cents = $order_item->get_subtotal_tax() > 0 ? ($order_item->get_subtotal_tax() * 100) / $product_item->quantity: 0;280 $product_item->product_price_cents = is_numeric($product->get_price()) ? round((float) $product->get_price() * 100) : 0; 281 $product_item->product_price_ex_tax_cents = is_numeric($order_item->get_subtotal()) && $product_item->quantity > 0 ? round((float) $order_item->get_subtotal() * 100 / $product_item->quantity) : 0; 282 $product_item->product_tax_cents = is_numeric($order_item->get_subtotal_tax()) && $product_item->quantity > 0 ? round((float) $order_item->get_subtotal_tax() * 100 / $product_item->quantity) : 0; 283 283 284 284 $brand_terms = get_the_terms($order_item->get_product_id(), 'pa_brand'); -
tradetracker-connect/trunk/tradetracker-connect.php
r3177883 r3191127 15 15 * Plugin Name: TradeTracker Connect 16 16 * Description: Seamless WordPress integration for TradeTracker's Merchants. 17 * Version: 2.2.1 017 * Version: 2.2.11 18 18 * Author: TradeTracker.com 19 19 * Author URI: https://tradetracker.com … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('TRADETRACKER_CONNECT_VERSION', '2.2.1 0');38 define('TRADETRACKER_CONNECT_VERSION', '2.2.11'); 39 39 define('TRADETRACKER_CONNECT_URL', plugin_dir_url(__FILE__)); 40 40 define('TRADETRACKER_CONNECT_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.