• Resolved Shahadat Hossain

    (@palashwpdev)


    I’m developing a plugin and I used some hooks for the cart page and they were working fine. But with the block themes they do not work completely. So my question is what are the alternatives for those hooks?
    For example: woocommerce_cart_item_price, woocommerce_cart_totals_before_order_total, alter_product_subtotal_in_cart_for_bogo and some other hooks does not work.
    Is there any documentation for this, I’m really confused about this. Please let men know how to work around this.
    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @palashwpdev,

    Thank you for reaching out!

    I’m developing a plugin and I used some hooks for the cart page and they were working fine. But with the block themes they do not work completely. So my question is what are the alternatives for those hooks?

    This is expected, WooCommerce blocks don’t use the same hooks as normal PHP templates.

    If you building a custom solution around WooCommerce blocks,?you can refer to this section of the development repository.

    Please note that custom solutions are not something we can generally assist with per our?support policy. If you need more help with this, you might want to check the?#developers?channel of the?Woo Community Slack?or hire a?WooExpert.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Many hooks from WooCommerce cart page does not work with block themes!’ is closed to new replies.