Ok, so I read up a bit and realized I cannot mix and match (React and pure JS).
So, in the new WooCommerce they’ve created so-called slot fills that you can use to create your own react component as a separate plugin that you can then attach in a few places.
Once you do that, you can use things like useDispatch
to interact with the cart store for instance.
Related Posts:
- List of JS events in the WooCommerce frontend
- Hide Add to Cart Button
- How to stop a Gutenberg Block from firing multiple GET Requests?
- “Cannot read property ‘replace’ of undefined” Javascript error when trying to add attribute terms from add product page [closed]
- Javascript / Ajax Error After Migrating To New Domain Name
- How can i stop woocommerce checkout event based on api request result?
- adding a script with type=”module” to woocommerce admin area
- Force uppercase on some WooCommerce checkout fields input
- Javascript error when adding an item to the cart [closed]
- Add to cart – button should be disabled
- Using the WordPress and WooCommerce REST APIs in the same Node app
- Woocommerce variable product’s total amount by javascript
- Ajax add to cart not updating Elementor mini cart totals
- Trying to run Javascript on AJAX call
- List of JS events in the WooCommerce frontend
- Woocommerce Checkout Page Total Price Inside Google Pay Script
- Running JavaScript after using WooCommerce Filter Plugin
- Deregister dequeue JS scripts except on 1 product page
- woocommerce deposit Form with AJAX and shortcode won’t update but add to previous output
- How to make wocommerce shop products same heigt
- Format number to 2 decimal places
- currentURL is not defined
- Retrieve Woocommerce Cart Url with javascript/jquery [closed]
- How to insert link, with lightbox, that opens specific page content only
- Woocommerce custom product with JS script, can’t understand how it works [closed]
- Removing ‘woocommerce-no-js’ class from body
- How do I fix this “Uncaught ReferenceError: woodmartThemeModule is not defined”?
- Loading specific ajax from a product
- Update a server-side render Block when woocommerce cart block changed
- Create WooCommerce custom stock option that is non-purchasable
- Query multiple post type and categories
- Shipping restrictions with WooCommerce variable products
- WooCommerce – Flat rate shipping based on X quantity steps?
- Custom URL for each product variation – rewrite rules
- Change “Shipping” text to “Delivery” everywhere I appears in woocommerce
- Customize WooCommerce orders displayed shipping
- creating product with variations using woocommerce REST API
- Adding extra one email address who receives email as admin – woocommerce
- Woocomerce language
- How to set default values in Woocommerce checkout? [closed]
- Payment methods are not displaying in Woocommerce
- How do I display a user’s previous orders as a select box option on a product?
- How to configure Woocommerce Payment Methods programmatically?
- Add content to the last slide of each product
- Remove add to cart icon/view product button woocommerce
- Products Shortcode is Displaying Single Product Page Price for all Products [closed]
- Expired session error (admin) when I try to make a call to WooCommerce api [closed]
- How to increase execution time out limit in WordPress dashboard?
- Woocommerce. Max weight per order based on shipping class
- Make order notes field at woocommerce checkout only viewable on front end by Admin level user role [closed]
- How to apply these filters
- get_the_post_thumbnail_url does not return anything if image size is set
- How can I add a so i can show sale price under normal price
- WooCommerce checkout page price break down table hook
- How can I compel alphanumeric entries for username textbox on woocommerce registration form
- Help me to intergrate product database to WordPress
- How to add a “buy now” button below “add to cart” button [closed]
- Cart page displays the price and amount as zero regardless of price entered [closed]
- Display list of only specific tags on product
- Change the “Register” headline in Woocommerce
- How to display customer mobile number in woocommerce customers page
- Get all categories inside a Product Tag archive page
- Woocommerce – Hide shipping at all, if only certain product or products with certain shipping class is in the cart
- Include stock information in WooCommerce order confirmation email
- How to upload very large JPGs to Media Library for WooCommerce digital download prints
- use vendor address instead of store main address for shipping and taxes calculation
- where does $checkout in form-checkout.php woocommerce come from? [closed]
- woocommerce add button underneath order details
- How to trace errors in debug.log for WooCommerce 3.0?
- Auto set Woocommerce product ID as SKU on save
- I want to show always 4 category boxes everytime in woocommerce
- Delete product image using WooCommerce API?
- Empty Cart on just mobile and Microsoft edge browser
- Possible to have multiple Authorize.net accounts on the same site?
- Allow HTML in product attributes for WooCommerce
- WP All import sale price 0 [closed]
- WooCommerce database upgrade behaviour
- How to neutralize a parent theme php template?
- creating number of database entries based on users numerical input
- Import download attachment from woocommerce product
- Understanding WooCommerce Build-In Geolocation/ Geo_IP classes
- Same WooComerce shop for different WP sites?
- Custom Shipping Method: need non-instance settings and non-global settings
- how to query single product in woocommerce? [closed]
- Woocommerce 404 after chang default language
- When creating a new order (on the dashboard) how can I get the ID of the selected customer
- Setup WooCommerce to properly handle inventory with variable product?
- Why does have_comments return false but get_comments return array of commemts?
- WooCommerce: I Need to hide my page title/header (including menu) from all the WooCommerce related product pages, such as category and keyword pages
- How to add another ordercomments field to woocommerce checkout
- Select Child Attributes Based on Parent [closed]
- How to get all child categories of current parent category in product detail page of woocommerce? [closed]
- Mandatory Fields For WooCommerce Products Before Publishing
- In woo commerce , Products change back to “Draft” from “published” automatically after it is purchased on the woo commerce shop page.Theme WP rentals [closed]
- how to refrence woocommerce blocks in code?
- Wp Redirect Not Working Can u Help
- Email Woocommerce customer a link to login and set a password for their automatically created account
- Styling made on archive page product images applies to product images on cart header block and on cart page but should not
- How to avoid double add to cart AJAX Add to card Woocommerce?
- Canonical Tag Issue with Dual Product URLs in WooCommerce & Yoast SEO