Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Martyn J. a11n

    (@martynmjones)

    Hey @soyoo,

    I would like to edit the layout of the WooCommerce cart block, to show an unit after the quantity field: https://prnt.sc/22ho410

    I understand you want to add text after the quantity field on the cart block.

    There is no option to add content to this section using the default options. It would be achieved using CSS, however, this is a fairly complex development topic. I’m going to leave the topic open for a bit to see if anyone is able to chime in to help you out.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Kind regards,

    Thread Starter soyoo

    (@soyoo)

    Thanks!
    As an alternative to the CSS tick, is there a specific .php file of the plugin that I can edit?
    Or is there a filter that returns the quantity field or all the fields and that I can edit to add a div element after the quantity field?

    Plugin Support Adam Heckler

    (@adamkheckler)

    We can’t really advise on how to write your custom code, as my colleague above alluded to. However, the WooCommerce Blocks code is all open source here:

    https://github.com/woocommerce/woocommerce-gutenberg-products-block

    … if you wish to look at it and see what modifications you can make.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customize WooCommerce Cart block’ is closed to new replies.