Support » Plugin: WooCommerce Gift Coupon » Page builder (s) conflict

  • Resolved henrischiltz

    (@henrischiltz)


    Hello (again)
    I’m so so so soooo sorry to bother you again. I promise you that as soon as i make a sale with your plugin, i’ll make a donation. You guys really earned it. But rihgt now i’m broke and i found an issue i’ve not been able to solve myself :/
    Anytime i have a “page editor” plugin (such as Elementor, bold builder etc… i tried a few to see if i could just use another one, but i always have the same problem) i cannot clic the text box on the top right corner next to the visual box (on a page or article, woocommerce products works fine) and none of the page builders works.
    I tried a fresh install of wordpress with only Woocommerce, Your plugin and a page builder but that didn’t helped :/
    (I thought that the modifications i made in your plugins might have been the problem, i played alot with it, tried to update the dompdf thing (and failed…lol), add the coupon description, changed the template etc.. etc.., but aparently even on a fresh instal, i have the same problem)

    I found that i can disable your plugins, make changes to my website normaly, then reactivate it without loosing the data from the product (i only loose the settings in the plugins setting section, but that not the end of the world i guess).

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Alberto Perez

    (@studiosweb)

    Hi again @henrischiltz!

    So…the problem is that you have other plugin considerated ‘page builder’ and you cant click on de coupon product configuration tabs…or where?

    Can you tell me the name of your plugin to make a test?

    Don´t worry for your replys… we are lovely to receive issues, comments… etc we can create a big plugin together.

    We´ll make a test and we´ll give you new notices.

    Thanks a lot!

    PD: We are nervious for your donation!! 🙂

    Your plugins works fine, it’s the “page builders” that don’t work.
    But i tried a bunch and they all had this problem when your plugins was activated. And the problem is gone as soon as i disable your plugin. So… even if your end works… it causes problems elsewhere :/ (i can actually edit any product just fine, it’s when i edit a page or standart post that there is a problem)

    I tried a lot but i’m interested in particular by “Elementor Page Builder” and “Bold Page Builder”.

    PS : little update, i don’t always lose info from your plugin page setings when i disable / activate it again. Don’t know what changed…

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi again.

    I’ll try to install anyone of this modules which you tell me.

    I think that is possible to be a problem with JavaScript error. You saw the console log navegator to see the JS error?

    PS: The settings always remove when the plugin is unnistalled in the unninstall.php

    Regards.

    Hi,
    I didn’t know such console existed, cool 🙂
    I found this :
    “TypeError: $(…)[0] is undefined woocommerce-gift-coupon.js:12:8”
    From a firefox console (if that matters)
    Cheers

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @henrischiltz

    Ok…that is the problem.

    We´ll review that.

    Cheers!

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @henrischiltz

    We have found the problem and it´ll repair in the next update (3.0)

    Thanks a lot for your report.

    We are excitend for your donation jaja 🙂

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @henrischiltz

    We repair this bug. Please upgrade your plugin to the version 3.0

    Regards.

    Thank you @studiosweb
    But i still have the same “TypeError: $(…)[0] is undefined woocommerce-gift-coupon.js:12:8” and the problem is still there :/

    Well there is an improvment, i can switch between visual and text when i don’t use either elementor or bold builder. But i still have the error message on the console with them.

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @henrischiltz

    Have you updated to the last version 3.0?

    Can you copy me the JavaScript of woocommerce-gift-coupon.js

    Regards.

    Hi, yes i did the update.
    Here is the content of woocommerce-gift-coupon.js

    jQuery(document).ready(function($){
    	//Add ColorPicker
    	if ($('.woocommerce-gift-coupon-color').length > 0) {
      	$('.woocommerce-gift-coupon-color').wpColorPicker();
    	}
    
      //Selector visibility
      var selectors = { 
      	woocommerce_gift_coupon_title_type: 'woocommerce_gift_coupon_title_h', 
      	woocommerce_gift_coupon_info_paragraph_type: 'woocommerce_gift_coupon_info_paragraph', 
      };
      $.each( selectors, function( key, value ) {
      	if ($('#'+key).length > 0) {
      		//Initial
    	  	if ($('#'+key)[0].value > 0) {
    			  $('#wp-'+value+'-wrap').hide();
    			}
    	  	//Onchage
    			if ($('#wp-'+value+'-wrap').length > 0) {
    		  	$('#'+key).change(function() {
    			    if ($(this).val() > 0) {
    			    	$('#wp-'+value+'-wrap').hide();
    			    }
    			    else {
    			    	$('#wp-'+value+'-wrap').show();
    			    }
    				});
    	  	}
      	}
    	});
    });
    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @henrischiltz

    Can you copy and reeplace this?

    jQuery(document).ready(function($){
    	//Add ColorPicker
    	if ($('.woocommerce-gift-coupon-color').length > 0) {
      	$('.woocommerce-gift-coupon-color').wpColorPicker();
    	}
    
      //Selector visibility
      var selectors = { 
      	woocommerce_gift_coupon_title_type: 'woocommerce_gift_coupon_title_h', 
      	woocommerce_gift_coupon_info_paragraph_type: 'woocommerce_gift_coupon_info_paragraph', 
      };
      $.each( selectors, function( key, value ) {
      	if ($('#'+key).length > 0) {
      		//Initial
      		if ($('#'+key)[0]) {
    		  	if ($('#'+key)[0].value > 0) {
    				  $('#wp-'+value+'-wrap').hide();
    				}
    			}
    	  	//Onchage
    			if ($('#wp-'+value+'-wrap').length > 0) {
    		  	$('#'+key).change(function() {
    			    if ($(this).val() > 0) {
    			    	$('#wp-'+value+'-wrap').hide();
    			    }
    			    else {
    			    	$('#wp-'+value+'-wrap').show();
    			    }
    				});
    	  	}
      	}
    	});
    });

    Tell me if you resolve the problem with that code

    Yep, That did the trick !
    I’ll do some more extensive tests tonigth, but the couple test i made have all worked so far 🙂
    THANKS !!

    Plugin Author Alberto Perez

    (@studiosweb)

    Ok, in the next update we will change that.

    Regards

    You are awesome =)
    I made a small donation, can’t afford more, but you really deserve it (and more).
    Keep up the good work 🙂

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @henrischiltz

    We are lovely to help people as you.

    Thanks a lot for your donation!! This help us so much!!

    I’ll give you notice for this issue this weekend!

    Best regards

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Page builder (s) conflict’ is closed to new replies.