#78495 Change the Continue Shopping URL

Landing Forums JupiterX WordPress Theme Change the Continue Shopping URL

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Jan Laine

    Hi! I know this has been asked in a previous discussion by someone else, but the suggested functions.php code-lines do not work for me. I have tried the following but nothing happens:

    function wc_empty_cart_redirect_url() {
    return ‘https://mysite.com/mycustomshoppage/’;
    }
    add_filter( ‘woocommerce_return_to_shop_redirect’, ‘wc_empty_cart_redirect_url’ );

    function wc_custom_redirect_continue_shopping() {
    //return your desired link here.
    return ‘https://mysite.com/mycustomshoppage/’;
    }
    add_filter( ‘woocommerce_continue_shopping_redirect’, ‘wc_custom_redirect_continue_shopping’ );

    It just directs to https://mysite.com/shop/

    Danish Iqbal Support Team

    Hello Jan,

     

    I checked the issue and yes, the filter does not seem to be working. I will create a bug report for this.

    For now, the solution is to modify the URL in the core file. You can do that by editing the functions.php file on line 105 present in wp-content/themes/jupiterx/lib/api/woocommerce folder.

     

    You will find this code: $shop_page_url = esc_url( get_permalink( wc_get_page_id( 'shop' ) ) );

     

    You can replace it with: $shop_page_url = esc_url( 'https://my-site.com/shop-url' );

     

    Regards.

    Jan Laine

    Is it safe to edit core files? It will reset if i update the theme?

    Danish Iqbal Support Team

    Hello Jan,

     

    It’s safe but yes, it will reset if you update the theme.

    This is the only alternative until its fixed in the theme.

     

    Regards.

    Private
    Jan Laine
    This reply has been marked as private.
    Private
    Danish Iqbal Support Team
    This reply has been marked as private.
    Jan Laine

    OH pls forgive me!!  Thanks.

    Amir Rather Support Team

    You’re most welcome 🙂

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