Plugin Directory

Changeset 3221559


Ignore:
Timestamp:
01/13/2025 11:55:08 AM (14 months ago)
Author:
gtmserver
Message:

Update to version 2.1.26 from GitHub

Location:
gtm-server-side
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gtm-server-side/tags/2.1.26/includes/class-gtm-server-side-webhook-completed.php

    r3202552 r3221559  
    5353            'cart_hash' => $order->get_cart_hash(),
    5454            '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() ),
    6364            ),
    6465            '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  
    5353            'cart_hash' => $order->get_cart_hash(),
    5454            '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() ),
    6364            ),
    6465            '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  
    5353            'cart_hash' => $order->get_cart_hash(),
    5454            '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() ),
    6364            ),
    6465            '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  
    5353            'cart_hash' => $order->get_cart_hash(),
    5454            '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() ),
    6364            ),
    6465            '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  
    5353            'cart_hash' => $order->get_cart_hash(),
    5454            '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() ),
    6364            ),
    6465            '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  
    5353            'cart_hash' => $order->get_cart_hash(),
    5454            '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() ),
    6364            ),
    6465            'user_data' => GTM_Server_Side_WC_Helpers::instance()->get_order_user_data( $order ),
Note: See TracChangeset for help on using the changeset viewer.