Changeset 2749677
- Timestamp:
- 06/29/2022 01:32:47 PM (4 years ago)
- Location:
- gtm-ecommerce-woo/trunk
- Files:
-
- 4 edited
-
gtm-ecommerce-woo.php (modified) (1 diff)
-
lib/GaEcommerceEntity/Event.php (modified) (1 diff)
-
lib/Util/WcTransformerUtil.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gtm-ecommerce-woo/trunk/gtm-ecommerce-woo.php
r2748129 r2749677 4 4 * Plugin URI: https://wordpress.org/plugins/gtm-ecommerce-woo 5 5 * Description: Push WooCommerce eCommerce (GA4 and UA compatible) information to GTM DataLayer. Use any GTM integration to measure your customers' activites. 6 * Version: 1.10. 16 * Version: 1.10.2 7 7 * Author: Handcraft Byte 8 8 * Author URI: https://handcraftbyte.com/ -
gtm-ecommerce-woo/trunk/lib/GaEcommerceEntity/Event.php
r2748129 r2749677 70 70 $itemPrice = isset($item->price) ? $item->price : 0; 71 71 $itemQuantity = isset($item->quantity) ? $item->quantity : 1; 72 return $carry + ( $itemPrice *$itemQuantity);72 return $carry + ((float) $itemPrice * (float) $itemQuantity); 73 73 }, 0); 74 74 } -
gtm-ecommerce-woo/trunk/lib/Util/WcTransformerUtil.php
r2728066 r2749677 17 17 * https://woocommerce.github.io/code-reference/classes/WC-Order-Item-Product.html 18 18 */ 19 public function getItemFromOrderItem( $orderItem ): Item {19 public function getItemFromOrderItem( $orderItem ): Item { 20 20 $product = $orderItem->get_product(); 21 21 $variantProduct = ( $orderItem->get_variation_id() ) ? (wc_get_product( $orderItem->get_variation_id() ))->get_name() : ''; -
gtm-ecommerce-woo/trunk/readme.txt
r2748129 r2749677 118 118 == Changelog == 119 119 120 = 1.10.2 = 121 122 * fix casting issue PHP 8.0 123 120 124 = 1.10.1 = 121 125
Note: See TracChangeset
for help on using the changeset viewer.