PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 1.1.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v1.1.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / admin / meta-assets / js / admin-edit.js

admin-edit.js in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 1.1.0, at admin/meta-assets/js/admin-edit.js

813 lines 21.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($){
2
3 CartFlowsAdminEdit = {
4
5 /**
6 * Init
7 */
8 init: function()
9 {
10 this._bind();
11 this._set_font_weigths();
12 },
13
14 /**
15 * Binds events
16 */
17 _bind: function()
18 {
19 $( document ).on('click', '.wcf-cpf-add', CartFlowsAdminEdit._add_custom_field );
20 $( document ).on('click', '.wcf-cpf-action-remove', CartFlowsAdminEdit._remove_custom_field );
21
22 $( document ).on('change', '.wcf-field-font-family', CartFlowsAdminEdit._set_font_weight_select_options );
23 $( document ).on('change', '.wcf-field-font-weight', CartFlowsAdminEdit._set_font_weight_val );
24 },
25
26 _set_font_weight_val: function(event) {
27 event.preventDefault();
28 $(this).attr( 'data-selected', $(this).val() );
29
30 CartFlowsAdminEdit._set_google_url();
31 },
32
33 _set_font_weigths: function() {
34
35 $('.wcf-field-font-family').select2();
36
37 var google_url = '';
38 var google_font_families = {};
39
40 $('.wcf-field-font-family').each(function(index, el) {
41 var font_family = $(el).val();
42 var id = $(el).data('for');
43
44 var temp = font_family.match("'(.*)'");
45
46 if( temp && temp[1] ) {
47 font_family = temp[1];
48 }
49
50 var new_font_weights = {};
51 if( wcf.google_fonts[ font_family ] ) {
52
53 var variants = wcf.google_fonts[ font_family ][0];
54
55 $.each( variants, function(index, weight) {
56 if( ! weight.includes( 'italic' ) ) {
57 new_font_weights[ weight ] = wcf.font_weights[ weight ];
58 }
59 });
60
61 var weight = $( '.wcf-field-font-weight[data-for="'+id+'"]' );
62 if( weight.length ) {
63
64 weight.empty(); // remove old options
65 var current_selected = weight.attr('data-selected');
66 var selected = "";
67
68 $.each(new_font_weights, function(key,value) {
69
70 if( key == current_selected ) {
71 var selected = "selected='selected'";
72 }
73
74 weight.append($("<option "+selected+"></option>").attr("value", key).text(value));
75 });
76 }
77
78 temp_font_family = font_family.replace(' ', '+');
79 google_font_families[ temp_font_family ] = new_font_weights;
80
81 } else if( wcf.system_fonts[ font_family ] ) {
82
83 var variants = wcf.system_fonts[ font_family ]['variants'];
84
85 $.each( variants, function(index, weight) {
86 if( ! weight.includes( 'italic' ) ) {
87 new_font_weights[ weight ] = wcf.font_weights[ weight ];
88 }
89 });
90
91 var weight = $( '.wcf-field-font-weight[data-for="'+id+'"]' );
92
93 if( weight.length ) {
94 var current_selected = weight.attr('data-selected');
95
96 weight.empty(); // remove old options
97 var selected = "";
98 $.each(new_font_weights, function(key,value) {
99
100 if( key == current_selected ) {
101 var selected = "selected='selected'";
102 } else {
103 }
104 weight.append($("<option "+selected+"></option>").attr("value", key).text(value));
105 });
106 }
107 }
108 });
109
110 CartFlowsAdminEdit._set_google_url();
111 },
112
113 _set_google_url: function() {
114 var google_url = '';
115 $('.wcf-field-font-family').each(function(index, el) {
116
117 var font_family = $(el).val();
118 var id = $(el).data('for');
119
120 var temp = font_family.match("'(.*)'");
121
122 if( temp && temp[1] ) {
123 font_family = temp[1];
124 }
125
126 if( ( 'inherit' != font_family ) && ( 'Helvetica' !== font_family ) && ( 'Verdana' !== font_family ) && ( 'Arial' !== font_family ) && ( 'Times' !== font_family ) && ( 'Georgia' !== font_family ) && ( 'Courier' !== font_family ) ) {
127 font_family = font_family.replace(' ', '+');
128
129 var weight = $( '.wcf-field-font-weight[data-for="'+id+'"]' );
130 var font_weight = weight.val();
131
132 if( typeof font_weight == 'undefined' && id == 'wcf-base' ){
133 font_weight = '';
134 }
135 var bar = '',
136 colon = '';
137
138 if( google_url ) {
139 if( font_weight != ''){
140 bar = '|';
141 colon = ':';
142 }
143 google_url = google_url + bar + font_family + colon + font_weight;
144 } else {
145 google_url = font_family;
146 }
147 }
148
149 });
150
151 $('#wcf-field-google-font-url').val( '//fonts.googleapis.com/css?family=' + google_url );
152 },
153
154 _set_font_weight_select_options: function(event) {
155 event.preventDefault();
156
157 CartFlowsAdminEdit._set_font_weigths();
158 },
159
160 _remove_custom_field: function(e) {
161
162 e.preventDefault();
163
164 var $this = $(this),
165 wrap = $this.closest('.wcf-cpf-actions'),
166 post_id = $('#post_ID').val(),
167 type = wrap.data('type'),
168 key = wrap.data('key'),
169 row = $this.parents('.wcf-field-row');
170
171 var delete_status = confirm( "This action will delete this field. Are you sure?" );
172 if (true == delete_status) {
173 $this.addClass('wp-ui-text-notification').text('Removing..');
174
175 $.ajax({
176 url: wcf.ajax_url,
177 data: {
178 action: "wcf_delete_checkout_custom_field",
179 post_id: post_id,
180 type : type,
181 key : key,
182 security: cartflows_admin.wcf_delete_checkout_custom_field_nonce
183 },
184 dataType: 'json',
185 type: 'POST',
186 success: function ( data ) {
187 row.slideUp(400, 'swing', function() {
188 row.remove();
189 });
190 }
191 });
192 }
193 },
194
195 _add_custom_field: function(e) {
196
197 e.preventDefault();
198
199 var $this = $(this),
200 wrap = $this.closest('.wcf-cpf-wrap'),
201 post_id = $('#post_ID').val(),
202 add_to = wrap.find( '.wcf-cpf-fields.wcf-cpf-add_to select' ).val() || '',
203 type = wrap.find( '.wcf-cpf-fields.wcf-cpf-type select' ).val() || '',
204 options = wrap.find( '.wcf-cpf-fields.wcf-cpf-options textarea' ).val() || '',
205 label = wrap.find( '.wcf-cpf-fields.wcf-cpf-label input' ).val() || '',
206 name = wrap.find( '.wcf-cpf-fields.wcf-cpf-name input' ).val() || '';
207
208 if( '' === label ) {
209 wrap.find( '.wcf-cpf-fields.wcf-cpf-label input' ).focus();
210 return;
211 }
212
213 if( '' === name ) {
214 wrap.find( '.wcf-cpf-fields.wcf-cpf-name input' ).focus();
215 return;
216 }
217
218 $this.addClass('updating-message').text('Adding Field..');
219
220 $.ajax({
221 url: wcf.ajax_url,
222 data: {
223 action : "wcf_add_checkout_custom_field",
224 post_id : post_id,
225 add_to : add_to,
226 type : type,
227 options : options,
228 label : label,
229 name : name,
230 security: cartflows_admin.wcf_add_checkout_custom_field_nonce
231 },
232 dataType: 'json',
233 type: 'POST',
234 success: function ( data ) {
235
236 if( $('.' + data.add_to_class ).length ) {
237 $('.' + data.add_to_class ).append( data.markup );
238
239 var new_row = $('.wcf-field-row.field-'+data.field_args.name );
240
241 $this.removeClass('updating-message').text('Added Field!');
242 setTimeout(function() {
243 $this.text('Add New Field');
244 }, 1500);
245
246
247 if( $('.wcf-field-row.field-'+data.field_args.name ).length ) {
248 $('html, body').animate({
249 scrollTop: $('.wcf-field-row.field-'+data.field_args.name ).offset().top
250 }, 800);
251 }
252 }
253 }
254 });
255
256 },
257 };
258
259 /**
260 * Initialization
261 */
262 $(function(){
263 CartFlowsAdminEdit.init();
264 });
265
266 })(jQuery);
267
268 (function($){
269
270 if ( typeof getEnhancedSelectFormatString == "undefined" ) {
271 function getEnhancedSelectFormatString() {
272 var formatString = {
273 noResults: function() {
274 return wc_enhanced_select_params.i18n_no_matches;
275 },
276 errorLoading: function() {
277 return wc_enhanced_select_params.i18n_ajax_error;
278 },
279 inputTooShort: function( args ) {
280 var remainingChars = args.minimum - args.input.length;
281
282 if ( 1 === remainingChars ) {
283 return wc_enhanced_select_params.i18n_input_too_short_1;
284 }
285
286 return wc_enhanced_select_params.i18n_input_too_short_n.replace( '%qty%', remainingChars );
287 },
288 inputTooLong: function( args ) {
289 var overChars = args.input.length - args.maximum;
290
291 if ( 1 === overChars ) {
292 return wc_enhanced_select_params.i18n_input_too_long_1;
293 }
294
295 return wc_enhanced_select_params.i18n_input_too_long_n.replace( '%qty%', overChars );
296 },
297 maximumSelected: function( args ) {
298 if ( args.maximum === 1 ) {
299 return wc_enhanced_select_params.i18n_selection_too_long_1;
300 }
301
302 return wc_enhanced_select_params.i18n_selection_too_long_n.replace( '%qty%', args.maximum );
303 },
304 loadingMore: function() {
305 return wc_enhanced_select_params.i18n_load_more;
306 },
307 searching: function() {
308 return wc_enhanced_select_params.i18n_searching;
309 }
310 };
311
312 var language = { 'language' : formatString };
313
314 return language;
315 }
316 }
317
318 var wcf_init_color_fields = function() {
319
320 // Call color picker
321 $('.wcf-color-picker').wpColorPicker();
322 }
323 var wcf_woo_product_search_init = function() {
324
325 var $product_search = $('.wcf-product-search:not(.wc-product-search)');
326
327 if( $product_search.length > 0 ) {
328
329 $product_search.addClass('wc-product-search');
330
331 $(document.body).trigger('wc-enhanced-select-init');
332 }
333 }
334
335 var wcf_woo_coupon_search_init = function() {
336
337 $( ':input.wc-coupon-search' ).filter( ':not(.enhanced)' ).each( function() {
338 var select2_args = {
339 allowClear: $( this ).data( 'allow_clear' ) ? true : false,
340 placeholder: $( this ).data( 'placeholder' ),
341 minimumInputLength: $( this ).data( 'minimum_input_length' ) ? $( this ).data( 'minimum_input_length' ) : '3',
342 escapeMarkup: function( m ) {
343 return m;
344 },
345 ajax: {
346 url: wc_enhanced_select_params.ajax_url,
347 dataType: 'json',
348 quietMillis: 250,
349 data: function( params, page ) {
350 return {
351 term: params.term,
352 action: $( this ).data( 'action' ) || 'wcf_json_search_coupons',
353 security: cartflows_admin.wcf_json_search_coupons_nonce
354 };
355 },
356 processResults: function( data, page ) {
357 var terms = [];
358 if ( data ) {
359 $.each( data, function( id, text ) {
360 terms.push( { id: id, text: text } );
361 });
362 }
363 return { results: terms };
364 },
365 cache: true
366 }
367 };
368
369 select2_args = $.extend( select2_args, getEnhancedSelectFormatString() );
370
371 $( this ).select2( select2_args ).addClass( 'enhanced' );
372 });
373 };
374 var wcf_pages_search_init = function() {
375
376
377 $( 'select.wcf-search-pages' ).each( function() {
378
379 var select2_args = {
380 allowClear: $( this ).data( 'allow_clear' ) ? true : false,
381 placeholder: $( this ).data( 'placeholder' ) ? $( this ).data( 'placeholder' ): '',
382 minimumInputLength: $( this ).data( 'minimum_input_length' ) ? $( this ).data( 'minimum_input_length' ) : '3',
383 escapeMarkup: function( m ) {
384 return m;
385 },
386 ajax: {
387 url: wc_enhanced_select_params.ajax_url,
388 dataType: 'json',
389 quietMillis: 250,
390 data: function( params, page ) {
391 return {
392 term: params.term,
393 action: $( this ).data( 'action' ) || 'wcf_json_search_pages',
394 security: cartflows_admin.wcf_json_search_pages_nonce
395 };
396 },
397 processResults: function( data, page ) {
398
399 return { results: data };
400 },
401 cache: true
402 }
403 };
404
405 select2_args = $.extend( select2_args, getEnhancedSelectFormatString() );
406
407 $( this ).select2( select2_args ).addClass( 'enhanced' );
408 });
409 };
410
411 var wcf_add_repeatable_product = function() {
412
413 $('.wcf-add-repeatable').on('click', function(e) {
414
415 var $this = $(this),
416 field_name = $this.data('name'),
417 wrap = $this.closest('.wcf-repeatables-wrap'),
418 template = $('#tmpl-wcf-product-repeater').html(),
419 highest = 0,
420 new_key = 0;
421
422 wrap.find('.wcf-repeatable-row').each(function(er) {
423 var r_row = $(this),
424 key = r_row.data('key');
425
426 if ( key > highest ) {
427 highest = key;
428 }
429 });
430
431 new_key = highest + 1;
432
433 template = template.replace( /{{id}}/g, new_key );
434
435
436 $( template ).insertBefore( ".wcf-add-repeatable-row" );
437
438 /* Woo Product Search */
439 wcf_woo_product_search_init();
440
441 e.preventDefault();
442 });
443
444 }
445
446 var wcf_remove_repeatable_product = function() {
447 $(document).on( 'click', '.wcf-repeatable-remove', function(e) {
448
449 var $this = $(this),
450 deletable_row = $this.closest('.wcf-repeatable-row'),
451 wrap = $this.closest('.wcf-repeatables-wrap');
452
453 var all_rows = wrap.find('.wcf-repeatable-row');
454
455 if ( all_rows.length === 1 ) {
456 alert("You cannot remove this product.");
457 }else{
458 deletable_row.remove();
459 }
460 } );
461 }
462
463 /* Simple Quantity */
464 var wcf_set_variation_mode_option = function() {
465
466 $('.wcf-variation-mode select').each(function(e) {
467 var $this = $(this),
468 variation_mode = $this.val(),
469 wrap = $this.closest('.wcf-repeatable-row-standard-fields'),
470 quantity_data = wrap.find('.wcf-quantity-data');
471
472 if ( 'simple-quantity' === variation_mode ) {
473 quantity_data.show();
474 }else{
475 quantity_data.hide();
476 }
477 });
478
479 $(document).on( 'change', '.wcf-variation-mode select', function(e) {
480 var $this = $(this),
481 variation_mode = $this.val(),
482 wrap = $this.closest('.wcf-repeatable-row-standard-fields'),
483 quantity_data = wrap.find('.wcf-quantity-data');
484
485 if ( 'simple-quantity' === variation_mode ) {
486 quantity_data.show();
487 }else{
488 quantity_data.hide();
489 }
490 });
491 }
492
493 var wcf_add_quantity_data = function() {
494
495 $(document).on('click', '.wcf-quantity-add-option', function(e) {
496
497 e.preventDefault();
498
499 var $this = $(this),
500 wrap = $this.closest('.wcf-quantity-data'),
501 template = $('#tmpl-wcf-product-simple-quantity').html(),
502 highest = 0,
503 new_key = 0,
504 main_wrap = $this.closest('.wcf-repeatable-row'),
505 main_key = main_wrap.data('key');
506
507 wrap.find('.wcf-quantity-repeatable-row').each(function(er) {
508 var r_row = $(this),
509 key = r_row.data('key');
510
511 if ( key > highest ) {
512 highest = key;
513 }
514 });
515
516 new_key = highest + 1;
517
518 template = template.replace( /{{id}}/g, main_key );
519 template = template.replace( /{{data_id}}/g, new_key );
520
521 $( template ).insertAfter( wrap.find('.wcf-quantity-repeatable-row').last() );
522 });
523 }
524
525 var wcf_remove_quantity_data = function() {
526
527 $(document).on( 'click', '.wcf-quanity-remove', function(e) {
528
529 var $this = $(this),
530 deletable_row = $this.closest('.wcf-quantity-repeatable-row'),
531 wrap = $this.closest('.wcf-quantity-data');
532
533 var all_rows = wrap.find('.wcf-quantity-repeatable-row');
534
535 if ( all_rows.length === 1 ) {
536 alert("You cannot remove this product.");
537 }else{
538 deletable_row.remove();
539 }
540 } );
541 }
542
543 /* Custom Fields Hide / Show */
544 var wcf_custom_fields_events = function() {
545
546 /* Ready */
547 wcf_custom_fields();
548
549 /* Change Custom Field*/
550 $('.wcf-column-right .wcf-checkout-custom-fields .wcf-cc-fields .wcf-cc-checkbox-field input:checkbox').on('change', function(e) {
551 wcf_custom_fields();
552 });
553 }
554
555 /* Disable/Enable Custom Field section*/
556 var wcf_custom_fields = function() {
557
558 var wrap = $('.wcf-checkout-table'),
559 custom_fields = wrap.find('.wcf-column-right .wcf-checkout-custom-fields .wcf-cc-fields .wcf-cc-checkbox-field .field-wcf-custom-checkout-fields input:checkbox');
560
561 var field_names = [
562 '.wcf-custom-field-box',
563 '.wcf-cb-fields',
564 '.wcf-sb-fields',
565 ];
566
567 if ( custom_fields.is(":checked") ) {
568 $.each( field_names, function(i, val) {
569 wrap.find( val ).show();
570 })
571 } else {
572 $.each( field_names, function(i, val) {
573 wrap.find( val ).hide();
574 });
575 }
576 }
577
578 /* Advance Style Fields Hide / Show */
579 var wcf_advance_style_fields_events = function() {
580
581 /* Ready */
582 wcf_advance_style_fields();
583 wcf_thankyou_advance_style_fields();
584
585 /* Change Advance Style Field*/
586 $('.wcf-column-right .wcf-checkout-style .wcf-cs-fields .wcf-cs-checkbox-field input:checkbox').on('change', function(e) {
587 wcf_advance_style_fields();
588 });
589
590 /* Change Advance Style Field*/
591 $('.wcf-thankyou-table [name="wcf-tq-advance-options-fields"]').on('change', function(e) {
592 wcf_thankyou_advance_style_fields();
593 });
594 }
595
596 var wcf_thankyou_advance_style_fields = function() {
597 var wrap = $('.wcf-thankyou-table'),
598 checkbox_field = $('.wcf-thankyou-table [name="wcf-tq-advance-options-fields"]');
599
600 var field_names = [
601 '.field-wcf-tq-container-width',
602 '.field-wcf-tq-section-bg-color'
603 ];
604
605 if ( checkbox_field.is(":checked") ) {
606 $.each( field_names, function(i, val) {
607 wrap.find( val ).show();
608 })
609 } else {
610 $.each( field_names, function(i, val) {
611 wrap.find( val ).hide();
612 });
613 }
614 }
615
616 /* Disable/Enable Advance Style Field section*/
617 var wcf_advance_style_fields = function() {
618
619 var wrap = $('.wcf-checkout-table'),
620 custom_fields = wrap.find('.wcf-column-right .wcf-checkout-style .wcf-cs-fields .wcf-cs-checkbox-field input:checkbox');
621
622 var field_names = [
623 '.wcf-cs-fields-options',
624 '.wcf-cs-button-options',
625 '.wcf-cs-section-options',
626 ];
627
628 // console.log(custom_fields);
629
630 if ( custom_fields.is(":checked") ) {
631 $.each( field_names, function(i, val) {
632 wrap.find( val ).show();
633 })
634 } else {
635 $.each( field_names, function(i, val) {
636 wrap.find( val ).hide();
637 });
638 }
639 }
640
641 var wcf_settings_tab = function() {
642
643 if( $('.wcf-tab.active').length ) {
644 $active_tab = $('.wcf-tab.active');
645
646 $active_tab_markup = '.' + $active_tab.data('tab');
647
648 if( $( $active_tab_markup ).length ) {
649 $( $active_tab_markup ).siblings().removeClass('active');
650 $( $active_tab_markup ).addClass('active');
651 }
652 }
653
654 $('.wcf-tab').on('click', function(e) {
655 e.preventDefault();
656
657 $this = $(this),
658 tab_class = $this.data('tab');
659
660 $('#wcf-active-tab').val( tab_class );
661
662 $this.siblings().removeClass('wp-ui-text-highlight active');
663 $this.addClass('wp-ui-text-highlight active');
664
665 if( $( '.' + tab_class ).length ) {
666 $( '.' + tab_class ).siblings().removeClass('active');
667 $( '.' + tab_class ).addClass('active');
668 }
669 });
670 }
671
672 var wcf_offer_fields_events = function() {
673
674 /* Ready */
675 wcf_offer_fields();
676
677 /* Change Discount Type*/
678 $('.wcf-offer-table .field-wcf-offer-discount select').on('change', function(e) {
679 wcf_offer_fields();
680 });
681 }
682
683 var wcf_offer_fields = function() {
684
685 var wrap = $('.wcf-offer-table');
686
687 if ( wrap.length < 1 ) {
688 return;
689 }
690
691 var field_names = [
692 '.field-wcf-offer-discount-value',
693 ];
694
695 $.each( field_names, function(i, val) {
696
697 if ( '.field-wcf-offer-discount-value' === val ) {
698
699 var discount_type = wrap.find('.field-wcf-offer-discount select').val();
700
701 if ( 'discount_percent' === discount_type || 'discount_price' === discount_type ) {
702 wrap.find( val ).show();
703 }else{
704 wrap.find( val ).hide();
705 }
706 }
707 });
708
709 }
710
711 var wcf_input_file_init = function() {
712
713 var file_frame;
714 window.inputWrapper = '';
715
716 $( document.body ).on('click', '.wcf-select-image', function(e) {
717
718 e.preventDefault();
719
720 var button = $(this);
721 window.inputWrapper = $(this).closest('.wcf-field-row');
722 if ( file_frame ) {
723 file_frame.open();
724 return;
725 }
726
727 // Create the media frame.
728 file_frame = wp.media( {
729 multiple: false
730 } );
731
732 // When an image is selected, run a callback.
733 file_frame.on( 'select', function() {
734
735 var attachment = file_frame.state().get( 'selection' ).first().toJSON();
736 // place first attachment in field
737 window.inputWrapper.find( '#wcf-image-preview' ).show();
738
739 window.inputWrapper.find( '#wcf-image-preview' ).children('.saved-image').remove();
740
741 window.inputWrapper.find( '#wcf-image-preview' ).append('<img src="' + attachment.url + '" width="150" class="saved-image" style="margin-bottom:12px;" />');
742
743 window.inputWrapper.find( '#wcf-image-value' ).val( attachment.url );
744
745 // window.inputWrapper.find( '.wcf-image-id' ).val( attachment.id );
746
747 // window.inputWrapper.find( '.wcf-image-value' ).val( attachment.url );
748
749 $('.wcf-remove-image').show();
750 });
751
752 // Finally, open the modal
753 file_frame.open();
754 });
755
756 $( '.wcf-remove-image' ).on( 'click', function( e ) {
757 e.preventDefault();
758
759 var button = $(this),
760 closeRow = $(this).closest('.wcf-field-row');
761
762 closeRow.find( '#wcf-image-preview img' ).hide();
763 closeRow.find( '.wcf-image-id' ).val('');
764 closeRow.find( '.wcf-image' ).val('');
765 button.hide();
766
767 });
768 }
769
770 $(document).ready(function($) {
771
772 wcf_settings_tab();
773
774 wcf_init_color_fields();
775
776 /* Woo Product Search */
777 wcf_woo_product_search_init();
778
779 /* Woo Coupon Search */
780 wcf_woo_coupon_search_init();
781
782 /* Pages Search */
783 wcf_pages_search_init();
784
785 /* Select Image Field */
786 wcf_input_file_init();
787
788 /* Set Variation Mode Data */
789 wcf_set_variation_mode_option();
790
791 /* Repeateble Product */
792 wcf_add_repeatable_product();
793
794 /* Custom Fields Show Hide */
795 wcf_custom_fields_events();
796
797 /* Remove Repeatable Product */
798 wcf_remove_repeatable_product();
799
800 /* Advance Style Fields Show Hide */
801 wcf_advance_style_fields_events();
802
803 /* Upsell/Downsell Show Hide Fields */
804 wcf_offer_fields_events();
805
806 /* Quantity Data */
807 wcf_add_quantity_data();
808 wcf_remove_quantity_data();
809 });
810
811
812 })(jQuery);
813