How can I change 'CHECKOUT' button in mini-cart to 'VIEW CART'

This topic has 11 replies, 3 voices, and was last updated 5 years ago ago by The Watch Strap Co.

  • Avatar: The Watch Strap Co.
    The Watch Strap Co.
    Participant
    August 8, 2020 at 14:15

    We have the mini-cart setup, but don’t want people to go directly to the checkout and would like to take them to the cart first.

    Is this possible? We just need to replace CHECKOUT with VIEW CART, I’ve checked the themeoptions but can’t seem to find it

    10 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 8, 2020 at 14:36

    Hello,

    Try to add the next code in Theme Options > Theme Custom CSS > Custom CSS for desktop:

    .cart-popup-footer {
        flex-direction: column-reverse;
        padding-bottom: 0;
    }
    .cart-popup-footer > a {
        width: 100%;
        background-color: #c62828;
        display: block;
        padding: 1rem 1.2rem;
        line-height: 1.2;
        color: white !important;
        text-transform: uppercase;
        text-align: center;
        font-size: 85% !important;
        margin-top: 15px;
    }
    .cart-popup-footer > a:hover {
        opacity: 0.8;
    }
    .mini-cart-buttons {
        display: none;
    }

    Regards

    Avatar: The Watch Strap Co.
    The Watch Strap Co.
    Participant
    August 8, 2020 at 14:56

    Great! That seems to have done the trick!

    Is there any way we change the text from ‘SHOPPING CART’ to ‘VIEW CART’?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 9, 2020 at 07:26

    To prevent editing php files, use translation –
    Install Loco Translate plugin, go to LT > Plugins > XStore Core > New language > create English translation, and change the text there, disable LT plugin.

    Regards

    Avatar: The Watch Strap Co.
    The Watch Strap Co.
    Participant
    August 12, 2020 at 11:08

    Thank you Rose,

    Is there any other way to do this?

    As in the past I’ve found that Loco Translate can really slow sites, especially in the backend. I’ve had a quick look online and it still seems that its a problem 🙂

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    August 12, 2020 at 13:09

    Hello,

    No, there is not. But you can disable Loco Translate plugin once change the text. Disabling of plugin does not affect the changes once you finish them and save.

    Regards

    Avatar: The Watch Strap Co.
    The Watch Strap Co.
    Participant
    August 12, 2020 at 13:45

    I’ve just created a translation file to change ‘SHOPPING CART’ to test, but it doesn’t seem to have worked at the minute.

    Do you know where the PHP file is to change this? It may be easier, as I can then copy this to the child theme and use it that way

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    August 12, 2020 at 13:53

    Hello,

    Provide us with temporary WP Dashboard access to your site, we’ll check and help you.

    Regards

    Avatar: The Watch Strap Co.
    The Watch Strap Co.
    Participant
    August 12, 2020 at 14:33

    No problem, thanks for that!

    I’ve deleted the files to bring it back to ‘fresh’ 🙂

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    August 12, 2020 at 16:52

    Hello,

    Check now.

    Regards

    Avatar: The Watch Strap Co.
    The Watch Strap Co.
    Participant
    August 12, 2020 at 20:13

    Thanks!

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

The issue related to '‘How can I change 'CHECKOUT' button in mini-cart to 'VIEW CART'’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

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