Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2762614
Changing the link
Closed

Comments

  • Roman started the conversation

    how and where to change the link from the checkout button. so that before you go to the checkout page, you are first directed to register?

  •  767
    Janilyn replied

    Hi Roman,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  • [deleted] replied

    Hi Roman,

    Please add the custom code below in your child theme. 

    function wpc_custom_link_checkout($checkout_url) {
        if (!is_user_logged_in()) {
            $checkout_url = wc_get_account_endpoint_url('dashboard');
        }
        return $checkout_url;
    }
    add_filter( 'woocommerce_get_checkout_url', 'wpc_custom_link_checkout', 1, 1 );
    

    The last, pls clear cache and re-check it again.

    Best regards,