Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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…

    #1006675

    Hey 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,
    Peter

    #1006681

    Thank u!

    i did not understand where u added this code!

    #1006690

    Hi,
    I added the link to the functions.php to the private content. It’s located at the very bottom of the file.

    Best regards,
    Dude

    #1006694

    ok 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 happens

    #1006704

    Hi,

    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,
    Dude

    #1006710

    no, 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.

    #1007002

    Hi,

    I’m not sure if I understand the issue. Please read the private content.

    Best regards,
    Peter

    #1007006

    No, 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 panel

    From 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.

    #1007038

    Hi,

    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,
    Peter

    #1007813

    Ok 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?

    #1008222

    Hi,
    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

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