• Resolved wuteng

    (@wuteng)


    Hello, is there a way to add anything to the new dynamic Mini Cart block widget? I can see that it’s made with typescript so probably no option to override it with templates anymore? Any suggestions on this? I need to add a button and some text in addition to the existing buttons in it but don;t see a way except of doing my own ajax mini cart.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @wuteng

    Thanks for reaching out!

    I understand that you would like to customize how the Mini Cart looks.

    This is a fairly complex development topic that would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

    Thread Starter wuteng

    (@wuteng)

    I would doubt that removing an option that existed is a ‘custom coding’ thing. This was possible before blocks were added, and the blocks added do not include such possibility as Woocommerce had. It was nice to be able to change nearly anything with the use of themes and template overrides, now it requires creating a custom minicart that is exactly the smae as the block, just allows you to add additional things to it.

    Hi,

    ...I need to add a button and some text in addition to the existing buttons in it but don;t see a way except of doing my own ajax mini cart.

    Using custom code, that is possible, however, please note custom code requests are not supported in our forum. To get a better idea, can you provide a screenshot of what exactly you would like to implement? And please provide more details about the text you want to add.

    Thanks.

    Thread Starter wuteng

    (@wuteng)

    <span style=”color: rgb(50, 55, 60); font-family: "Open Sans", sans-serif; font-size: 14.4px; white-space: normal; background-color: rgb(251, 251, 251);”>is there a way to add anything to the new dynamic Mini Cart block widget? I can see that it’s made with typescript so probably no option to override it with templates anymore?</span>

    op

    That’s basically the only thign I want to know. I am aware I can make custom code, that why I stated it. I wanted to use it the same way it was possible with old widget – with template override. Asking if it is possible or not, as the new block widget looks kinda useless in such case.

    Hi @wuteng

    You could give it a try using a staging environment to test if the code will work on your site so that it won’t modify your live site or impact customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    Hope this helps!

    Thread Starter wuteng

    (@wuteng)

    Once again, I’m not asking for code or way to make a custom mini cart. I know how to do this – that’s my job. What I’m asking is if the template override that was available for woocommerce is still available somehow for the new mini cart block. As the mini-cart template override works only for the old mini cart widget, not the block.

    Saif

    (@babylon1999)

    Hello @wuteng,

    WooCommerce blocks don’t operate like normal WooCommerce templates, so you can’t override their behaviour, at least not by default.

    You can find the list of templates that can be overridden here: https://github.com/woocommerce/woocommerce/tree/7.3.0/plugins/woocommerce/templates

    Hope this helps!

    Thread Starter wuteng

    (@wuteng)

    Thanks for clarification.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘New Mini Cart block edits’ is closed to new replies.