Change button from 'checkout' to 'go to cart'

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

  • Avatar: rubenvandoorn
    rubenvandoorn
    Participant
    January 31, 2015 at 16:42

    Best Mr/Mrs,

    In the webshop:
    – I click on a product
    – In the product I click ‘add to cart’
    The following screen appears:

    How can I change the red button ‘Proceed to checkout’ (dutch: Naar de kassa) to ‘Add to cart’, plus that it links to the cart instead of directly to checkout.

    Hope to hear from you soon.

    Regards,
    Ruben

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 31, 2015 at 17:18

    Hello,

    You can change “Checkout” text in the file wp-content/themes/legenda/framework/theme-functions.php (line 847) and the link can be changed on the line 845 edit the code <?php echo esc_url( $woocommerce->cart->get_checkout_url() ); ?> in var checkoutUrl = '<?php echo esc_url( $woocommerce->cart->get_checkout_url() ); ?>'; string.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: rubenvandoorn
    rubenvandoorn
    Participant
    January 31, 2015 at 17:54

    Hi Eva,

    Thanks for your reply.

    I think something went wrong in a copy-paste action.

    I altered the code in:

    						// RVD Checkout url omgezet in cart url
                            var checkoutUrl = '<?php echo get_permalink(woocommerce_get_page_id('cart')); ?>';
                            var contBtn = '<?php _e('Continue shopping', ETHEME_DOMAIN) ?>';
    						// RVD Checkout omgezet in Cart
                            var checkBtn = '<?php _e('Cart', ETHEME_DOMAIN) ?>';
    

    It seems to work.

    Thanks.

    Regards,
    Ruben

    Avatar: Eva
    Eva Kemp
    Support staff
    January 31, 2015 at 18:14

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

    Avatar: scott ritchie
    scott ritchie
    Participant
    February 5, 2015 at 08:22

    Hey Eva –

    Two questions to go along with this:

    1. Is it possible to add Suggested Products within the box?

    2. How do i add the Single Product Popup Box to products that have variable selections?

    thx.
    Scott

    Avatar: Eva
    Eva Kemp
    Support staff
    February 5, 2015 at 10:30

    Hello,

    1. You can add up-sell products as described in Woocommerce documentation:
    http://docs.woothemes.com/document/related-products-up-sells-and-cross-sells/

    2. Unfortunately this option is available only for single products. Sorry.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 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.