Changeset 2581004
- Timestamp:
- 08/10/2021 05:09:58 PM (5 years ago)
- Location:
- oribi-analytics
- Files:
-
- 10 added
- 2 edited
-
tags/3.6 (added)
-
tags/3.6/LICENSE (added)
-
tags/3.6/css (added)
-
tags/3.6/css/style.css (added)
-
tags/3.6/images (added)
-
tags/3.6/images/oribi.svg (added)
-
tags/3.6/inc (added)
-
tags/3.6/inc/oribi-admin-settings.php (added)
-
tags/3.6/index.php (added)
-
tags/3.6/readme.txt (added)
-
trunk/index.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
oribi-analytics/trunk/index.php
r2575262 r2581004 6 6 * Author: Oribi 7 7 * Author URI: https://oribi.io 8 * Version: 3. 58 * Version: 3.6 9 9 * Text Domain: oribi 10 10 */ … … 158 158 $product = $item->get_product(); 159 159 $quantity = (int)$item->get_quantity(); 160 $price = (float) $item->get_subtotal() / $quantity;160 $price = (float)round($item->get_subtotal() / $quantity, 2); 161 161 $productRegularPrice = (float)$product->get_regular_price(); 162 162 $productActivePrice = (float)$product->get_price(); … … 172 172 'name' => $item->get_name(), 173 173 'price' => $price, 174 'taxPrice' => (float) $item->get_subtotal_tax() / $quantity,174 'taxPrice' => (float)round($item->get_subtotal_tax() / $quantity, 2), 175 175 'discountPrice' => $discountPrice, 176 176 'quantity' => $quantity, -
oribi-analytics/trunk/readme.txt
r2575262 r2581004 5 5 Requires at least: 5.0 6 6 Tested up to: 5.7.2 7 Stable tag: 3. 57 Stable tag: 3.6 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.