-
AuthorPosts
-
September 6, 2018 at 2:58 pm #1006630
Hi guys the link terms anc conditions in my ceckout page doesn’ link…
what happens?i ve created an user 4 u, so u can check the problem…
September 6, 2018 at 3:57 pm #1006675Hey 4EPIU,
WooCommerce normally shows the content of the terms and condition page on the checkout page if a user clicks on the link (it fades the content in). However this does not work if you use the advanced layout builder because the content of the layout builder is too complex and WooCommerce can’t handle it.I added this code to your child theme functions.php:
add_action('wp_footer', 'ava_custom_tos_click'); function ava_custom_tos_click(){ ?> <script> jQuery(function($) { // wait until everything completely loaded all assets $(window).on('load', function() { // remove the click event $( document.body ) .off( 'click', 'a.woocommerce-terms-and-conditions-link' ); }); }); </script> <?php }
and the terms link now opens the terms page in a new tab (of course I replace FULLURLTOYOURTERMSPage with the url to your terms page).
Best regards,
PeterSeptember 6, 2018 at 4:00 pm #1006681Thank u!
i did not understand where u added this code!
September 6, 2018 at 4:09 pm #1006690Hi,
I added the link to the functions.php to the private content. It’s located at the very bottom of the file.Best regards,
DudeSeptember 6, 2018 at 4:11 pm #1006694ok thank u!
u really helped me…Ive another problem…
can i ask u why if i setted the custom 404 page, now when i click edit page my page is renamend in error?!
i i deactivate the custom 404 this error doen’t happensSeptember 6, 2018 at 4:23 pm #1006704Hi,
Do you mean the permalink changes to https://www.website.com/errore ? If yes this is necessary because the slug 404 is reserved and the permalink https://www.website.com/404 is not possible. However https://www.website.com/404 redirects to https://www.website.com/errore. However you can replace “errore” with another slug – you just need to click on the button “modifica” next to the permalink to edit the slug.
Best regards,
DudeSeptember 6, 2018 at 4:27 pm #1006710no, that’s a test I did to circumvent the problem. I created an html file of my 404 page.
but I would like to work with the theme setting.
September 7, 2018 at 9:53 am #1007002Hi,
I’m not sure if I understand the issue. Please read the private content.
Best regards,
PeterSeptember 7, 2018 at 9:59 am #1007006No, unfortunately did not understand the problem, because I have not explained well:
– I created page 404.
– I set the page as custom 404 in the theme panelFrom that moment on when I click “edit” page from the wordpress top bar, the page is opened in the edit and renamed to “erorr”.
If I disable the custom page 404 from the theme options panel, this problem no longer occurs.
The page https://www.4epiu.it/errore/
it’s an html page that I created to get around the problem. in such a way that if there is an arrore 404 redirects to that page. So you do not take it into consideration!But I would like to use the 404 custom that I created with the composer of the theme, the one I referred to as the custom page 404 in the theme options.
September 7, 2018 at 10:56 am #1007038Hi,
I think I understood the issue now. I think the problem was that the second language (en) wasn’t properly configured. I now selected the english version of the page in the english option panel and the italian version of the 404 page in the italian option panel.
Best regards,
PeterSeptember 10, 2018 at 9:11 am #1007813Ok forget this issue of 404.
I have it in my own way.
Now the problem comes to be the link of the chckout.
When you have entered the code in the function.php, all the content has been automatically deleted!
so my site has lost all styles, because I had entered the font via function.php.Now I have restored the backup, but if I enter the code you sent me to make the link work, the terms and conditions in the checkout does not work yet!
What should I do to solve the problem?
September 11, 2018 at 7:50 am #1008222Hi,
The code seems correct to me – please try to clear the server and browser cache. It’s also strange the code of the functions.php was missing because it was there when I added my code (and also afterwards).Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.