-
AuthorPosts
-
January 21, 2018 at 1:06 pm #900345
Good Day
I would like to find out,
I noticed that when one check out – they have duplicate in terms and conditions.I tried the following from the forum
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;
}it gives me error –
Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.Please can Enfold team advice.
My website is http://www.ecbuy.co.za
January 22, 2018 at 3:48 pm #900846Any Enfold Support please ?
January 23, 2018 at 10:18 pm #901721Hi,
Your return needs to be converted as
return “”;
and it should work.
Best regards,
BasilisJanuary 24, 2018 at 9:47 am #902003Please advice where must i put the converted as ?
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;
}
;Like that above?
January 24, 2018 at 11:57 am #902079add_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;
}Hi – i tried as stated
But it gives me an error when updatingUnable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.
January 25, 2018 at 7:19 am #902660Hi charlescheng719,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJanuary 25, 2018 at 9:12 am #902687This reply has been marked as private.January 26, 2018 at 5:38 am #903173Hi charlescheng719,
Yes, I see the error, but the error is not it the code, you need to try to add this code via FTP.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.