@@ -23,7 +23,7 @@ function anytrack_for_woocommerce_wp_head()
2323function anytrack_for_woocommerce_woocommerce_add_to_cart ($ cart_item_key , $ product_id , $ quantity , $ variation_id , $ variation , $ cart_item_data )
2424{
2525 $ settings = get_option ('waap_options ' );
26- $ add_to_cart = isset ($ settings ['add_to_cart ' ]) ? $ settings ['add_to_cart ' ] : '' ;
26+ $ add_to_cart = isset ($ settings ['add_to_cart ' ]) ? $ settings ['add_to_cart ' ] : 'AddToCart ' ;
2727
2828 $ product_info = anytrack_for_woocommerce_get_single_product_info ($ product_id , $ quantity , $ variation_id );
2929 $ items = [];
@@ -37,7 +37,7 @@ function anytrack_for_woocommerce_woocommerce_add_to_cart($cart_item_key, $produ
3737function anytrack_for_woocommerce_template_redirect ()
3838{
3939 $ settings = get_option ('waap_options ' );
40- $ initiate_checkout = isset ($ settings ['initiate_checkout ' ]) ? $ settings ['initiate_checkout ' ] : '' ;
40+ $ initiate_checkout = isset ($ settings ['initiate_checkout ' ]) ? $ settings ['initiate_checkout ' ] : 'InitiateCheckout ' ;
4141
4242 if (is_checkout () && !isset ($ _GET ['key ' ])) {
4343
@@ -74,7 +74,7 @@ function anytrack_for_woocommerce_view_product()
7474{
7575 global $ post ;
7676 $ settings = get_option ('waap_options ' );
77- $ viewProduct = isset ($ settings ['ViewContent ' ]) ? $ settings ['ViewContent ' ] : '' ;
77+ $ viewProduct = isset ($ settings ['ViewContent ' ]) ? $ settings ['ViewContent ' ] : 'ViewContent ' ;
7878
7979 if (is_product ()) {
8080
@@ -102,7 +102,7 @@ function anytrack_for_woocommerce_woocommerce_new_order($order_id)
102102 $ order = wc_get_order ($ order_id );
103103
104104 $ settings = get_option ('waap_options ' );
105- $ purchase = isset ($ settings ['purchase ' ]) ? $ settings ['purchase ' ] : '' ;
105+ $ purchase = isset ($ settings ['purchase ' ]) ? $ settings ['purchase ' ] : 'Purchase ' ;
106106 $ fixed_type = 'Purchase ' ;
107107
108108 $ is_upstroke = $ order ->get_created_via () == 'upstroke ' ;
0 commit comments