Skip to content

Commit 49aaa73

Browse files
authored
Use fallback eventnames if not set (#9)
* Use fallback default event names if not set * Increment version to 1.5.9 in preparation for release * Increment version to 1.5.9 in preparation for release * revert init
1 parent 00767af commit 49aaa73

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

anytrack-for-woocommerce/trunk/anytrack-for-woocommerce.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/*
33
Plugin Name: AnyTrack for WooCommerce
44
Description: Connect with Google, Facebook, Bing, Taboola and Outbrain and sync all your ad campaigns directly from WooCommerce.
5-
Version: 1.5.8
5+
Version: 1.5.9
66
Author: AnyTrack Ltd.
77
Author URI: https://anytrack.io
8-
Stable tag: 1.5.8
8+
Stable tag: 1.5.9
99
*/
1010

1111
//error_reporting(E_ALL);

anytrack-for-woocommerce/trunk/modules/ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function wpafw_checkout_action()
1010
if (check_ajax_referer('ajax_call_nonce', 'security')) {
1111

1212
$settings = get_option('waap_options');
13-
$add_payment_info = isset($settings['add_payment_info']) ? $settings['add_payment_info'] : '';
13+
$add_payment_info = isset($settings['add_payment_info']) ? $settings['add_payment_info'] : 'AddPaymentInfo';
1414

1515

1616

anytrack-for-woocommerce/trunk/modules/hooks.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function anytrack_for_woocommerce_wp_head()
2323
function 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
3737
function 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';

anytrack-for-woocommerce/trunk/readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://anytrack.io/
44
Tags: woocommerce, e-commerce, conversions, facebook, google, funnelkit
55
Requires at least: 4.7
66
Tested up to: 6.8.1
7-
Stable tag: 1.5.8
7+
Stable tag: 1.5.9
88
Requires PHP: 7.0
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -77,6 +77,9 @@ prefer on the pixel settings on AnyTrack.
7777
Initial version.
7878

7979
== Changelog ==
80+
= 1.5.9 =
81+
* Standard event names
82+
8083
= 1.5.8 =
8184
* Add property id validation
8285

0 commit comments

Comments
 (0)