Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1370615

    Hello together
    I have installed here the store from woocommerce
    now I have a question

    When the shopping cart is empty, the button “Back to store” appears then the product list is displayed.

    is it possible to change the link in this button, that it shows to my store (menu item)

    If I change this link in woocommerce settings products store page then afterwards the page my-shop and the product list are displayed

    thanks in advance
    kind regards
    Franz

    #1370662

    Hey schweg33,
    Thanks for the link to your site, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function change_cart_backward_link() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
      $('#top.<a href='https://refer.wordpress.com/r/84/woocommerce/' target='_blank' rel="nofollow">woocommerce</a>-cart .button.wc-backward').each(function() {
        $(this).attr('href','/mein-shop/');
      });
    })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'change_cart_backward_link');

    Best regards,
    Mike

    #1370673

    Hello Mike
    Thank you for your quick feedback
    unfortunately I get an error back (see below)
    I still have to enter a path in the code.

    thank you
    kind regards
    franz

    #1370676

    Hi,
    Please ensure that you are copying the code from the forum and not an email, otherwise include admin login in the Private Content area so we can be of more assistance.

    Best regards,
    Mike

    #1370677

    Thanks
    Hello Mike
    I have copied the code from the forum.

    kind regards
    Franz

    or do you need the ftp connection

    #1370678

    Hi,
    Thanks for the login, I missed a semicolon
    I added the function for you, please check.

    Best regards,
    Mike

    #1370679

    Thanks Mike

    Now it fits great
    you can close this request

    kind regards
    Franz

    thank you for your super :-) SUPPORT

    #1370681

    Hi,
    Glad we were able to help, and thanks for the feedback, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘change link’ is closed to new replies.