Tagged: enfold, woocommerce
-
AuthorPosts
-
May 25, 2018 at 3:39 pm #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.
May 26, 2018 at 12:49 am #962478Hey,
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
May 27, 2018 at 4:33 pm #962804Hi 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,
VictoriaMay 28, 2018 at 3:07 pm #963279Hi,
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
May 31, 2018 at 9:06 am #964678Hi 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,
VictoriaJune 4, 2018 at 9:16 pm #966810I had the same issue, simplified the Terms & Conditions to a simple page with the text editor and all works fine now.
Thank you :)June 5, 2018 at 7:50 am #967018Hi thewebsmiths,
Great, glad you got it working and thanks for the feedback :-)
Best regards,
RikardFebruary 23, 2021 at 11:46 am #1283039Interesting 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
February 25, 2021 at 4:40 pm #1283707Hi,
@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,
IsmaelFebruary 25, 2021 at 6:57 pm #1283732Thanks!
February 26, 2021 at 3:22 pm #1283866 -
AuthorPosts
- The topic ‘woocommerce 3.4 – terms and conditions dosen't open in checkout!!’ is closed to new replies.