• Resolved maandevwp

    (@maandevwp)


    Cart page created using WC-blocks and woocommerce default cart jquery events not working with it. Can you please share new jQuery event with work with wcblock cart page.

    I need to add a condition dynamically if minimum cart total less than $300 then hide proceed to checkouts button

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Reynier (a11n)

    (@reynierc)

    Hi @maandevwp

    I understand that you’re looking to adjust your cart page so when the cart’s total is below $300, the “Proceed to Checkout” button is hidden. This requires custom JavaScript since you’re using WC-blocks, which doesn’t rely on WooCommerce’s default jQuery events.

    The solution involves writing a script that listens to cart updates and conditionally displays the checkout button based on the cart total. It’s a bit of a custom functionality that falls outside our scope of support, I recommend asking in the WooCommerce Community Slack, where you can tap into the collective knowledge of fellow merchants and/or developers.

    Alternatively, you might also want to explore the options on our customization page. There you can find resources and professionals who can assist with tailor-made solutions for your WooCommerce store.

    Remember, custom code should be implemented cautiously to keep your site stable and compatible with updates, we recommend backing up your site before implementing them. Hope this points you to the right direction.

    Thread Starter maandevwp

    (@maandevwp)

    My concern is when cart pages create suing shortcode then we have woocmerce jQuery events like update_checkout. I am looking similar event which fire after cart update. I checked byt not found any vent for WC block cart.

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @maandevwp,

    You’re right that WooCommerce’s default cart page relies on events like update_checkout and other jQuery events for dynamic updates. However, with WC Blocks, the cart page functions differently, and those default events don’t trigger the same way. Unfortunately, WC Blocks doesn’t offer jQuery events like update_checkout that fire after a cart update.

    To accomplish what you’re trying to do, you’ll need to implement a custom solution with a different approach, which falls outside the scope of support for this forum.

    Thread Starter maandevwp

    (@maandevwp)

    WooCommerce have plan to add these events in future

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.