-
AuthorPosts
-
June 29, 2017 at 1:31 pm #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,
SonjaJuly 1, 2017 at 5:20 am #815228Hey 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,
RikardJuly 4, 2017 at 2:13 pm #816329The 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.phpTo avoid the issue, download the terms.php and upload it in /theme_name/woocommerce/checkout/terms.php and change line 17 to
$terms_content = “”;July 4, 2017 at 2:22 pm #816333And 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, 4 months ago by yanknudtskov.
July 5, 2017 at 4:49 am #816590Hi yanknudtskov,
Thanks a lot for sharing, much appreciated! Could you try that out @wpsonja?
Best regards,
RikardJuly 6, 2017 at 2:02 pm #817260Thank 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…July 6, 2017 at 8:12 pm #817488Hi 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,
VictoriaJuly 7, 2017 at 5:08 pm #817927Hi 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?
July 10, 2017 at 10:53 am #818628Yes, it works! Thank you yanknudtskov for your work!!!!
@kilimats: In my case the hyperlink “I’ve read the terms and conditions” exists.Best regards,
SonjaJuly 10, 2017 at 2:01 pm #818728Hi kilimats,
Can you remove the code given above, we need to test a bit more.
Best regards,
VictoriaNovember 13, 2017 at 8:41 pm #876264Thanks 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
November 14, 2017 at 4:37 pm #876654Hi Jon,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.