Changing url in function - by Jens - on WordPress WooCommerce support

This topic has 8 replies, 3 voices, and was last updated 10 years, 8 months ago ago by Eva Kemp

  • Avatar: jbrogaard
    Jens
    Participant
    April 8, 2015 at 10:26

    Hi, I got this question partly answered 😉
    http://themeforest.net/item/legenda-responsive-multipurpose-wordpress-theme/5888906/comments#comment_9647064

    Also, I discovered your other answer here regarding the same:
    https://www.8theme.com/reply/38564/
    Are you proposing to change the string all together with a hardcoded URL or finding the cart variable to be used instead? Maybe, if you could specifiy with a random url, would help me a lot.

    Looking forward to your answer.

    7 Answers
    Avatar: Eva
    Eva Kemp
    Participant
    April 8, 2015 at 10:55

    Hello,

    Could you please post your question here to avoid any misunderstanding?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: jbrogaard
    Jens
    Participant
    April 8, 2015 at 13:05

    When clicking on ‘Add to cart’ a modal window/pop-up appears with two links: ‘continue shopping’ and ‘Checkout’ – how do I change the text and link from ‘Checkout’ to ‘Go to cart’?

    Quite important since many customers will want to see their cart before checking out.

    Thx.

    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 8, 2015 at 13:13

    You may find these words in legenda\framework\theme-fuctions.php line 838 or simply search within this file for the word ‘Checkout’.

    With best regards
    Brian Johnson

    Avatar: jbrogaard
    Jens
    Participant
    April 8, 2015 at 13:31

    Hi Brian, I am able to find the string but what precisely should I change in order to change the Checkout link to Cart link/URL?

    I’d like the user to go to the cart instead of directly to checkout.

    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 8, 2015 at 13:33

    You should replace also this line var checkoutUrl = '<?php echo esc_url( $woocommerce->cart->get_checkout_url() ); ?>'; with this var checkoutUrl = '<?php echo esc_url( $cart=$woocommerce->cart->get_cart_url() ); ?>';

    With best regards
    Brian Johnson

    Avatar: jbrogaard
    Jens
    Participant
    April 8, 2015 at 13:36

    Superb and of course 😉 Thx, I’ll try later.

    Avatar: Eva
    Eva Kemp
    Participant
    April 8, 2015 at 14:08

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.