Home Forums WoodMart support forum Mini Cart

Mini Cart

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #56473

    alphonsowisseh
    Participant

    Hey,

    I’m trying to customize the Mini Cart by editing the mini-cart.php file but the changes I make don’t take effect. Can you help with this?

    Thanks

    #56487

    Hello,

    Please describe your aim: what are you changing and what result do you want to get. Provide your actions in more details, also where do you modify the file?

    Best Regards

    #56496

    alphonsowisseh
    Participant

    When I make changes to the woocommerce/cart/mini-cart.php file, nothing changes on the front end. For example, if I replace the word ‘Subtotal’ from the code below, the page still says ‘Subtotal’:

    <p class="woocommerce-mini-cart__total total"><strong><?php esc_html_e( 'Subtotal', 'woocommerce' ); ?>:</strong> <?php echo WC()->cart->get_cart_subtotal(); ?></p>

    Attachments:
    You must be logged in to view attached files.
    #56499

    Hello,

    If you want just rewrite a word do not modify templates.

    You can translate all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3

    Best Regards

    #56500

    alphonsowisseh
    Participant

    I don’t want to translate or just change words. I want to make changes to the mini cart and have those changes reflect on the front end. Am I editing the correct file?

    Also, is there a way to enable and disable the mini cart?

    Thanks

    #56518

    Eric Watson
    Participant

    Hello,

    1) Yes, you are editing the correct file, but after file changes, you need to add the product to the cart again to update the cart widget from the cache.

    2) Sorry, but there is no such option in our theme.

    Kind Regards
    XTemos Studio

Viewing 6 posts - 1 through 6 (of 6 total)