Changeset 3221559
- Timestamp:
- 01/13/2025 11:55:08 AM (14 months ago)
- Location:
- gtm-server-side
- Files:
-
- 6 edited
- 1 copied
-
tags/2.1.26 (copied) (copied from gtm-server-side/trunk)
-
tags/2.1.26/includes/class-gtm-server-side-webhook-completed.php (modified) (1 diff)
-
tags/2.1.26/includes/class-gtm-server-side-webhook-processing.php (modified) (1 diff)
-
tags/2.1.26/includes/class-gtm-server-side-webhook-purchase.php (modified) (1 diff)
-
trunk/includes/class-gtm-server-side-webhook-completed.php (modified) (1 diff)
-
trunk/includes/class-gtm-server-side-webhook-processing.php (modified) (1 diff)
-
trunk/includes/class-gtm-server-side-webhook-purchase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gtm-server-side/tags/2.1.26/includes/class-gtm-server-side-webhook-completed.php
r3202552 r3221559 53 53 'cart_hash' => $order->get_cart_hash(), 54 54 'ecommerce' => array( 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'discount_amount' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_discount_total() ), 63 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 63 64 ), 64 65 'user_data' => GTM_Server_Side_WC_Helpers::instance()->get_order_user_data( $order ), -
gtm-server-side/tags/2.1.26/includes/class-gtm-server-side-webhook-processing.php
r3197326 r3221559 53 53 'cart_hash' => $order->get_cart_hash(), 54 54 'ecommerce' => array( 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'discount_amount' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_discount_total() ), 63 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 63 64 ), 64 65 'user_data' => GTM_Server_Side_WC_Helpers::instance()->get_order_user_data( $order ), -
gtm-server-side/tags/2.1.26/includes/class-gtm-server-side-webhook-purchase.php
r3197326 r3221559 53 53 'cart_hash' => $order->get_cart_hash(), 54 54 'ecommerce' => array( 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'discount_amount' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_discount_total() ), 63 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 63 64 ), 64 65 'user_data' => GTM_Server_Side_WC_Helpers::instance()->get_order_user_data( $order ), -
gtm-server-side/trunk/includes/class-gtm-server-side-webhook-completed.php
r3202552 r3221559 53 53 'cart_hash' => $order->get_cart_hash(), 54 54 'ecommerce' => array( 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'discount_amount' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_discount_total() ), 63 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 63 64 ), 64 65 'user_data' => GTM_Server_Side_WC_Helpers::instance()->get_order_user_data( $order ), -
gtm-server-side/trunk/includes/class-gtm-server-side-webhook-processing.php
r3197326 r3221559 53 53 'cart_hash' => $order->get_cart_hash(), 54 54 'ecommerce' => array( 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'discount_amount' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_discount_total() ), 63 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 63 64 ), 64 65 'user_data' => GTM_Server_Side_WC_Helpers::instance()->get_order_user_data( $order ), -
gtm-server-side/trunk/includes/class-gtm-server-side-webhook-purchase.php
r3197326 r3221559 53 53 'cart_hash' => $order->get_cart_hash(), 54 54 'ecommerce' => array( 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 55 'transaction_id' => esc_attr( $order->get_order_number() ), 56 'affiliation' => '', 57 'value' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total() ), 58 'tax' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_total_tax() ), 59 'shipping' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_shipping_total() ), 60 'currency' => esc_attr( $order->get_currency() ), 61 'coupon' => esc_attr( join( ',', $order->get_coupon_codes() ) ), 62 'discount_amount' => GTM_Server_Side_WC_Helpers::instance()->formatted_price( $order->get_discount_total() ), 63 'items' => GTM_Server_Side_WC_Helpers::instance()->get_order_data_layer_items( $order->get_items() ), 63 64 ), 64 65 'user_data' => GTM_Server_Side_WC_Helpers::instance()->get_order_user_data( $order ),
Note: See TracChangeset
for help on using the changeset viewer.