Cart Popup Buttons - by ChrisAusBerlin - on WordPress WooCommerce support

This topic has 4 replies, 3 voices, and was last updated 8 years, 1 months ago ago by Jack Richardson

  • Avatar: ChrisAusBerlin
    ChrisAusBerlin
    Participant
    October 7, 2016 at 14:18

    Hi,

    in the add-to-cart popup there are two standard buttons “continue shopping” and “checkout”.
    I would like to send my customers to the “real” cart-page instead of the checkout page.
    So the buttons would be “continue shopping” and “view cart”.
    How can I change the destination of the button?

    Best,
    Christian

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 7, 2016 at 15:03

    Hello,

    In this case you need edit the \wp-content\themes\classico\framework\theme-init.php file on line 58.
    Find and replace this code
    $etConf['checkoutUrl'] = esc_url( WC()->cart->get_checkout_url() );
    with
    $etConf['checkoutUrl'] = esc_url( WC()->cart->get_cart_url() );

    then change the button name in the same file on line 51

    Regards,
    Robert Hall

    Avatar: ChrisAusBerlin
    ChrisAusBerlin
    Participant
    October 7, 2016 at 16:13

    Amazing, thank you very much!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 7, 2016 at 16:59

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

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

The issue related to '‘Cart Popup Buttons’' has been successfully resolved, and the topic is now closed for further responses

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