Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #814445

    Dear Support Team,

    I’m using Enfold with WooCommerce. It’s a shop for reseller (in French). After the last WooCommerce update, the terms and conditons are shown twice on the checkout page. I just want to have the checbox “I accept terms and conditions”. Can you help me? What’s wrong?

    Best regards,
    Sonja

    #815228

    Hey Sonja,

    Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #816329

    The problem is not with Enfold, but rather with WooCommerce 3.1.0

    In the changelog (https://github.com/woocommerce/woocommerce/blob/master/CHANGELOG.txt) they introduced this:

    * Feature – Display (toggle-able) terms inline on the checkout rather than showing a link.

    I can’t seem to find where the toggle is, but the code change can be found here on line 17
    https://github.com/woocommerce/woocommerce/blob/master/templates/checkout/terms.php

    To avoid the issue, download the terms.php and upload it in /theme_name/woocommerce/checkout/terms.php and change line 17 to
    $terms_content = “”;

    #816333

    And if you want to fix it with a more clean approach through a filter, you can use this piece of code in functions.php

    add_filter('woocommerce_format_content', 'yanco_remove_inline_terms', 10, 2);
    function yanco_remove_inline_terms( $apply_filters, $raw_string ) {
    	if( is_checkout() ) {
    		return '';
    	}
    	return $apply_filters;
    }
    • This reply was modified 7 years, 5 months ago by yanknudtskov.
    #816590

    Hi yanknudtskov,

    Thanks a lot for sharing, much appreciated! Could you try that out @wpsonja?

    Best regards,
    Rikard

    #817260

    Thank you yanknudtskov, i can confirm this works!
    So is this a new mandatory change from woocommerce to force customer to scroll the terms and services before buying? very distracting when thoses terms are pages long…

    #817488

    Hi kilimats,

    That’s a question for the WooCommerce team.

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #817927

    Hi Everyone,

    when using the function.php code shared by yanknudtskov, the term and condition page stops from showing on the checkout page, however, the hyperlink to the page on “I’ve read and accept the terms & conditions ” is gone. Can you advise how to retain the hyperlink?

    #818628

    Yes, it works! Thank you yanknudtskov for your work!!!!

    @kilimats
    : In my case the hyperlink “I’ve read the terms and conditions” exists.

    Best regards,
    Sonja

    #818728

    Hi kilimats,

    Can you remove the code given above, we need to test a bit more.

    Best regards,
    Victoria

    #876264

    Thanks a ton, this code worked for sure.
    Had been having the same problem but not until the most recent version of Enfold.
    Any fix coming in the next version?

    add_filter('woocommerce_format_content', 'yanco_remove_inline_terms', 10, 2);
    function yanco_remove_inline_terms( $apply_filters, $raw_string ) {
    	if( is_checkout() ) {
    		return '';
    	}
    	return $apply_filters;
    }

    Jon

    #876654

    Hi Jon,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.