Change "cart 0 items for 0€" into (0)

This topic has 6 replies, 3 voices, and was last updated 7 years, 11 months ago ago by Jack Richardson

  • Avatar: tipadei
    Tiina
    Participant
    November 28, 2016 at 15:05

    I would like to my menu shopping cart to show zero/the product amount in brackets instead of the whole sentence “shopping cart 0 items for 0€”. Is it possible to do this just with css or do I need to do something with the code?

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    November 29, 2016 at 16:49

    Hello,

    You need edit the file wp-content/themes/legenda/framework/woo.php file (find the section “Top Cart Widget”) in line 901.

    Regards,
    Eva Kemp.

    Avatar: tipadei
    Tiina
    Participant
    November 30, 2016 at 09:16

    I have located the file and the section, but what should I do to the code?

    Avatar: Eva
    Eva Kemp
    Support staff
    November 30, 2016 at 11:58

    Hello,

    You need remove the code _e(' items for', ETHEME_DOMAIN); in line 938 and this code <?php etheme_cart_totals(); ?> in line 919.
    Also use this css code:

    .shopping-cart-widget .cart-bag .badge-number::before {
       content: "(";
    }
    .shopping-cart-widget .cart-bag .badge-number::after {
       content: ")";
    }

    Regards,
    Eva Kemp.

    Avatar: tipadei
    Tiina
    Participant
    November 30, 2016 at 12:12

    Thanks!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 30, 2016 at 17:19

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

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

The issue related to '‘Change "cart 0 items for 0€" into (0)’' 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.