Plugin Conflict Causes Error on My Forms

  • Unknown's avatar

    Hey! I have recently installed a plugin that manages the budgets for my services on my website.

    But this plugin ended up having a conflict with the Woocommerce Plugin. And it messes up the checkout form.

    When I deactivate the budget plugin then Woocommerce checkout form goes back to normal.

    I found out that the code that is responsible for executing the form styles is this one:

    function style_orcamento_cw(){
    
    	wp_register_style( 'bootstrap', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css');   
    	wp_enqueue_style( 'bootstrap' );
    
    	wp_register_style( 'font-awesome.min', 'https://use.fontawesome.com/releases/v5.2.0/css/all.css');   
    	wp_enqueue_style( 'font-awesome.min' );
    
    	wp_register_style( 'animate', plugins_url( '/css/animate.css?versao='.versao_cw(), __FILE__ ));   
    	wp_enqueue_style( 'animate' );
    
    	wp_register_style( 'swiper.min', 'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.5/css/swiper.min.css');   
    	wp_enqueue_style( 'swiper.min' );
    
    	wp_register_style( 'style-cw', plugins_url( '/css/style-cw.css?versao='.versao_cw(), __FILE__ ));   
    	wp_enqueue_style( 'style-cw' );
    
    }

    When I use the: “is_page” function then the code never is executed even when it is in the page informed.

    These are the two pages that have the conflict:

    https://agencianilo.com.br/finalizar-compra/

    https://agencianilo.com.br/orcamentos/

    So what do you guys sugest me to do to avoid this conflict!? Help please! haha

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    impulsioneicomcafe · Member ·

    I found out that the only code messing up my form whas the bootstrap one.

    So I defined that only that command wouldn’t be executed in the woocommerce section.

    if ( !is_page( 'Finalizar compras' ) ) {
    
    	wp_register_style( 'bootstrap1', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css');   
    	wp_enqueue_style( 'bootstrap1' );
    }
    
  • The topic ‘Plugin Conflict Causes Error on My Forms’ is closed to new replies.