Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #962208

    Hi,
    I have updated to enfold 4.4 + woo 3.4, nothing happens when you click “terms and conditions” / woo checkout.

    I have tried to enable the standard wordpress template, and it works fine, so it seems to be related to Enfold.

    Want to check + if there are others who experience the same problem.
    – I have tested on several different servers / installations – same problem with Enfold.

    BR, Pete

    • This topic was modified 6 years, 5 months ago by 2funky.
    #962478

    Hey,

    I’ve found out why it does not work – it looks like because of the ‘Advanced layoutbuilder’. When the conditions are created with it, it does not invoke the inline window anymore – in plain text i works.

    It would be great if you could find a solution

    BR, Pete

    #962804

    Hi 2funky,

    Yes, it can be the issue. The Terms and conditions should be a simple text page, no need for the fancy elements on it. There can be some JavaScript conflict with the checkout page otherwise.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #963279

    Hi,

    Thanks, but can you tell me if there is a way to open it in a new window, as the terms and conditions are quite comprehensive on many pages – and it may be a good idea for the user to see other pages like ex. freight and personal information

    I have tried the code below, but it seems to conflict a little with how product pages load.

    function disable_wc_terms_toggle() {
            wp_enqueue_script( 'disable-terms-toggle', '/disable-terms-toggle.js', array( 'wc-checkout', 'jquery' ), null, true );
            wp_add_inline_script( 'disable-terms-toggle', "jQuery( document ).ready( function() { jQuery( document.body ).off( 'click', 'a.woocommerce-terms-and-conditions-link' ); } );" );
    }
    
    add_action( 'wp_enqueue_scripts', 'disable_wc_terms_toggle', 1000 );
    
    function custom_terms_and_conditions_link( $link ) {
        // replace link below with your custom terms and conditions url
        return '';
    }
    add_filter( 'woocommerce_get_terms_page_permalink', 'custom_terms_and_conditions_link' );
    

    B.R., Pete

    #964678

    Hi Pete,

    I was going to check the page on your website but credentials did not work for me. Could you please update the credentials?

    Best regards,
    Victoria

    #966810

    I had the same issue, simplified the Terms & Conditions to a simple page with the text editor and all works fine now.
    Thank you :)

    #967018

    Hi thewebsmiths,

    Great, glad you got it working and thanks for the feedback :-)

    Best regards,
    Rikard

    #1283039

    Interesting one ^_^ can you guys make it so if its an ALB page it opens in a new tab/window?

    I got a few clients that are getting funky with their Terms and Conditions.. and they actually try to make them understandable by human beings.. the current situation is neat.. people don’t leave the page so the chance that they get distracted while checking out is minimized.. but it doesn’t leave any room for other interpretations

    #1283707

    Hi,


    @joax
    : You can use the following script in the functions.php file to set the terms and conditions link to actually open the page instead of rendering the content in the same container.

    // a custom script
    function ava_custom_script_mod() {
        if ( wp_script_is( 'avia-default', 'registered' ) ) {
            wp_add_inline_script( 'avia-default', '
    		(function($) {
    			$("#top .woocommerce-terms-and-conditions-link").on("click", function(e) {
    				e.preventDefault();
    				window.location.href = $(this).attr("href");
    			});
    		})(jQuery);
    	');
        }
     }
     add_action( 'wp_enqueue_scripts', 'ava_custom_script_mod', 9999);
    

    Best regards,
    Ismael

    #1283732

    Thanks!

    #1283866

    Hi,

    No problem. Glad we could help. We will close this thread now, but please feel free to open another if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘woocommerce 3.4 – terms and conditions dosen't open in checkout!!’ is closed to new replies.