diff --git a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php index d9266d1..bde654a 100755 --- a/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php +++ b/anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php @@ -2,10 +2,10 @@ /* Plugin Name: AnyTrack for WooCommerce Description: Connect with Google, Facebook, Bing, Taboola and Outbrain and sync all your ad campaigns directly from WooCommerce. -Version: 1.5.8 +Version: 1.5.9 Author: AnyTrack Ltd. Author URI: https://anytrack.io -Stable tag: 1.5.8 +Stable tag: 1.5.9 */ //error_reporting(E_ALL); diff --git a/anytrack-for-woocommerce/trunk/modules/ajax.php b/anytrack-for-woocommerce/trunk/modules/ajax.php index a636f93..0f58ae8 100644 --- a/anytrack-for-woocommerce/trunk/modules/ajax.php +++ b/anytrack-for-woocommerce/trunk/modules/ajax.php @@ -10,7 +10,7 @@ function wpafw_checkout_action() if (check_ajax_referer('ajax_call_nonce', 'security')) { $settings = get_option('waap_options'); - $add_payment_info = isset($settings['add_payment_info']) ? $settings['add_payment_info'] : ''; + $add_payment_info = isset($settings['add_payment_info']) ? $settings['add_payment_info'] : 'AddPaymentInfo'; diff --git a/anytrack-for-woocommerce/trunk/modules/hooks.php b/anytrack-for-woocommerce/trunk/modules/hooks.php index efd0ff4..5f397a7 100644 --- a/anytrack-for-woocommerce/trunk/modules/hooks.php +++ b/anytrack-for-woocommerce/trunk/modules/hooks.php @@ -23,7 +23,7 @@ function anytrack_for_woocommerce_wp_head() function anytrack_for_woocommerce_woocommerce_add_to_cart($cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data) { $settings = get_option('waap_options'); - $add_to_cart = isset($settings['add_to_cart']) ? $settings['add_to_cart'] : ''; + $add_to_cart = isset($settings['add_to_cart']) ? $settings['add_to_cart'] : 'AddToCart'; $product_info = anytrack_for_woocommerce_get_single_product_info($product_id, $quantity, $variation_id); $items = []; @@ -37,7 +37,7 @@ function anytrack_for_woocommerce_woocommerce_add_to_cart($cart_item_key, $produ function anytrack_for_woocommerce_template_redirect() { $settings = get_option('waap_options'); - $initiate_checkout = isset($settings['initiate_checkout']) ? $settings['initiate_checkout'] : ''; + $initiate_checkout = isset($settings['initiate_checkout']) ? $settings['initiate_checkout'] : 'InitiateCheckout'; if (is_checkout() && !isset($_GET['key'])) { @@ -74,7 +74,7 @@ function anytrack_for_woocommerce_view_product() { global $post; $settings = get_option('waap_options'); - $viewProduct = isset($settings['ViewContent']) ? $settings['ViewContent'] : ''; + $viewProduct = isset($settings['ViewContent']) ? $settings['ViewContent'] : 'ViewContent'; if (is_product()) { @@ -102,7 +102,7 @@ function anytrack_for_woocommerce_woocommerce_new_order($order_id) $order = wc_get_order($order_id); $settings = get_option('waap_options'); - $purchase = isset($settings['purchase']) ? $settings['purchase'] : ''; + $purchase = isset($settings['purchase']) ? $settings['purchase'] : 'Purchase'; $fixed_type = 'Purchase'; $is_upstroke = $order->get_created_via() == 'upstroke'; diff --git a/anytrack-for-woocommerce/trunk/readme.txt b/anytrack-for-woocommerce/trunk/readme.txt index 8f484a4..2b5fcc6 100755 --- a/anytrack-for-woocommerce/trunk/readme.txt +++ b/anytrack-for-woocommerce/trunk/readme.txt @@ -4,7 +4,7 @@ Donate link: https://anytrack.io/ Tags: woocommerce, e-commerce, conversions, facebook, google, funnelkit Requires at least: 4.7 Tested up to: 6.8.1 -Stable tag: 1.5.8 +Stable tag: 1.5.9 Requires PHP: 7.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -77,6 +77,9 @@ prefer on the pixel settings on AnyTrack. Initial version. == Changelog == += 1.5.9 = +* Standard event names + = 1.5.8 = * Add property id validation