New Landing How can we help? Themeforest Theme Support Neighborhood How can I change the link of the "Continue shopping" field?

Viewing 9 posts - 1 through 9 (of 9 total)
  • #308067
    janheege
    Member
    Post count: 148

    Hi,

    How can I change the link of the “Continue shopping” field?

    The red field in the sceenshot is the “Continue shopping” field.

    Attachments:
    You must be logged in to view attached files.
    #308202
    David Martin – Support
    Moderator
    Post count: 20834

    This simply defaults to your shop page you have set in WooCommerce.

    What URL are you wanting to amend it to?

    #308209
    janheege
    Member
    Post count: 148

    Hi,

    I want to amend https://blackwood-watches.com/ on https://blackwood-watches.com/ and https://blackwood-watches-en.com/ on https://blackwood-watches-en.com/

    Where can I add it?

    See sceenshot below.

    Attachments:
    You must be logged in to view attached files.
    #308215
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    So do want it to link to the homepage?

    Try adding the code below to the functions.php of the child theme.

    function sf_wc_empty_cart_redirect_url() {
    	return 'https://blackwood-watches.com/';
    }
    add_filter( 'woocommerce_return_to_shop_redirect', 'sf_wc_empty_cart_redirect_url' );

    -Rui

    #308221
    janheege
    Member
    Post count: 148

    Hi,

    My child theme functions.php is confused.
    What ever I paste in it the site is complete black after it.

    Here is my child theme functions.php:

    <?php
    add_filter( ‘gettext’, ‘sf_string_translate’, 20, 3 );
    function sf_string_translate( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case ‘Add to Shopping Bag’ :
    $translated_text = __( ‘In den Warenkorb hinzufügen’, $domain ); //just change it.
    break;
    }
    return $translated_text;
    }
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }
    load_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/language’ );
    function sf_child_theme_locale() {
    //echo get_stylesheet_directory() . ‘/language’ ;exit;
    //load_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/language’ );
    load_child_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/language’ );
    }
    //add_action( ‘init’, ‘sf_child_theme_locale’ );
    ?>

    #308223
    David Martin – Support
    Moderator
    Post count: 20834

    This means there is a PHP error in your code.

    Please add FTP details also.

    #308225
    David Martin – Support
    Moderator
    Post count: 20834
    #308287
    janheege
    Member
    Post count: 148

    Hi,

    It doesn’t work fine. Do you have another solution? Maybe a code?

    #308318
    David Martin – Support
    Moderator
    Post count: 20834

    What is the issue with it?

    The code solution would be:

    add_filter( 'woocommerce_continue_shopping_redirect', 'wc_custom_redirect_continue_shopping' );
    
    function wc_custom_redirect_continue_shopping() {
      //return your desired link here.
      return http://www.yourwebsite.com/location
    }

    Else you would need to work with a developer to change this further.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register