Skip to content

Commit dddeb61

Browse files
committed
Merge remote-tracking branch 'origin/AT-2002-disable-woo-standard-event-mapping'
2 parents 78fddaf + 859ff58 commit dddeb61

4 files changed

Lines changed: 18 additions & 9 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.6
5+
Version: 1.5.7
66
Author: AnyTrack Ltd.
77
Author URI: https://anytrack.io
8-
Stable tag: 1.5.6
8+
Stable tag: 1.5.7
99
*/
1010

1111
//error_reporting(E_ALL);

anytrack-for-woocommerce/trunk/modules/class-form-elements.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function __construct( $type, $parameters, $value ){
2727
'style' => '',
2828
'upload_text' => '',
2929
'placeholder' => '',
30+
'disabled' => false,
3031
];
3132
$this->parameters = array_merge( $default_array, $this->parameters );
3233
$this->value = $value;
@@ -123,7 +124,7 @@ function generate_result_block(){
123124
124125
'.( $this->parameters['sub_text'] && $this->parameters['sub_text'] != '' ? '<i qtip-content="'.htmlentities( $this->parameters['sub_text'] ).'" class="fa ml-15 qtip_picker fs-16 fa-question-circle " aria-hidden="true"></i>' : '' ).'
125126
126-
<input type="text" class="form-control is_small '.$this->parameters['class'].'" name="'.$this->parameters['name'].'" id="'.$this->parameters['id'].'" placeholder="'.$this->parameters['placeholder'].'" value="'.( $this->value && $this->value != '' ? esc_html( stripslashes( $this->value ) ) : $this->parameters['default'] ).'">
127+
<input type="text" class="form-control is_small '.$this->parameters['class'].'" name="'.$this->parameters['name'].'" id="'.$this->parameters['id'].'" placeholder="'.$this->parameters['placeholder'].'" value="'.( $this->value && $this->value != '' ? esc_html( stripslashes( $this->value ) ) : $this->parameters['default'] ).'" '.( $this->parameters['disabled'] ? 'disabled' : '' ).'>
127128
128129
</div>
129130
</div>

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ function show_settings(){
238238
'style' => ' ',
239239
'placeholder' => 'ViewContent',
240240
'id' => '',
241-
'class' => ''
241+
'class' => '',
242+
'disabled' => true
242243
),
243244
array(
244245
'type' => 'text',
@@ -248,7 +249,8 @@ function show_settings(){
248249
'style' => ' ',
249250
'placeholder' => 'AddToCart',
250251
'id' => '',
251-
'class' => ''
252+
'class' => '',
253+
'disabled' => true
252254
),
253255
array(
254256
'type' => 'text',
@@ -258,7 +260,8 @@ function show_settings(){
258260
'style' => ' ',
259261
'placeholder' => 'InitiateCheckout',
260262
'id' => '',
261-
'class' => ''
263+
'class' => '',
264+
'disabled' => true
262265
),
263266
array(
264267
'type' => 'text',
@@ -268,7 +271,8 @@ function show_settings(){
268271
'style' => ' ',
269272
'placeholder' => 'AddPaymentInfo',
270273
'id' => '',
271-
'class' => ''
274+
'class' => '',
275+
'disabled' => true
272276
),
273277
array(
274278
'type' => 'text',
@@ -278,7 +282,8 @@ function show_settings(){
278282
'style' => ' ',
279283
'placeholder' => 'Purchase',
280284
'id' => '',
281-
'class' => ''
285+
'class' => '',
286+
'disabled' => true
282287
),
283288
array(
284289
'type' => 'text',
@@ -288,7 +293,8 @@ function show_settings(){
288293
'style' => ' ',
289294
'placeholder' => 'Upsell',
290295
'id' => '',
291-
'class' => ''
296+
'class' => '',
297+
'disabled' => false
292298
),
293299

294300

anytrack-for-woocommerce/trunk/readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ prefer on the pixel settings on AnyTrack.
7777
Initial version.
7878

7979
== Changelog ==
80+
= 1.5.7 =
81+
* Restrict the event mapping to the default standards
8082

8183
= 1.5.6 =
8284
* Add FunnelKit Upsell tracking

0 commit comments

Comments
 (0)