After talking with some of the WooCommerce people on Slack, I realized that the problem here is probably this pattern, in frontend/cart.js
– due to the fact, that my store uses the AJAX functionality that WooCommerce provides.
var show_notice = function( html_element, $target ) {
if ( ! $target ) {
$target = $( '.woocommerce-notices-wrapper:first' ) ||
$( '.cart-empty' ).closest( '.woocommerce' ) ||
$( '.woocommerce-cart-form' );
}
$target.prepend( html_element );
A default, new HTML element seems to be created and prepended to the wrapper when certain store states are met after an AJAX update.
Related Posts:
- Selective Product Category for Carousel
- Change WooCommerce add_to_cart Button Text?
- How to add custom metakey to shop_order page’s searching function?
- Which template file to edit to edit homepage in Mystile [closed]
- Create custom function for hero image
- replace text in Sort Box
- add_filter to specific WooCommerce Category
- Woocommerce checkout field
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- add referrer to woo
- How to include any template using Shortcode fuction?
- Image loading function not working on archive.php template
- Add a field into a shortcode of an extension
- Way to redirect all Product Sub Category to its Main category Page?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Create a Woocommerce product widget with category filter
- Delay a function, any function!
- Specify multiple categories for custom post template – FATAL ERROR
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- Using functions.php to include code that’s processed inline
- How to make a new function that includes a template
- How add body_class from wp_termmeta
- Adding product to WooCommerce cart [closed]
- WooCommerce -> wc_enqueue_js not working [closed]
- Use existing image sizes for WooCommerce
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- Show admin page, only if function is being used
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Prevent creating multiple image resizes in twentytwelve template
- Simplest Way to Build Custom Archives Page?
- Display ACF category image on archive and single template files
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to hide content on mobile in the functions.php file – woocommerce
- Woocommerce Default sorting product by product type
- How to hide WooCommerce product title and short description to non logged in users?
- Render page with specific id from functions.php
- How to require a config file in a template and in function.php?
- the_date() and the_time() functions display actual date an time instead of published date and time
- Load templates, pass arguments, and render output from functions.php
- localize_script but data changes dependent on product ID
- Change class woocommerce on function.php
- Show ‘Add to Cart’ on Out of Stock products
- Hide ‘add to cart’ when certain value in dropdown is selected
- removing description tabs – single product page – breaks footer
- Link product attribute value to a URL – woocommerce
- Remove text after a dot and a colon in Woocommerce product title
- When are the user meta fields created in the database? Admin vs Woo API REST
- price of product can’t return when get data of product in functions.php
- Woocommerce product price change
- Help with with my function for wordpress
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- is_product_category(‘Services’) not working
- Problems adding a new field to product in cart
- Parent category as WOOCommerce Categories widget title
- Woocommerce Display Discount On cart
- Problem with my footer after changing WooCommerce Products Sorting [closed]
- Variable function names
- Override plugin function to show invoices even if not logged in
- Woocommerce – Switching Price for Category
- WP Enqueue Script Error
- how can I change the read more link destinations and direct all to the same page?
- Woocommerce custom calculation function
- button to toggle css styling / div visibility?
- add product thumbnail to checkout page only and include variation name
- Echo a String Based On Geolocation? [Woocommerce || ACF]
- More than one search results page template for two searches on site
- WordPress function with attribute pass to template
- Execute jQuery with custom event listener after successfully add an item to the cart
- Move product attributes after summary on single product page
- Which method is more correct for removing WooCommerce Extensions menu item?
- Show number of sold products but be first for less than 2
- function syntax is off,
- Javascript and Stylesheet in child page
- Newest comments first not working
- Insert menu into theme location depending on user logged in/out status
- Retrieve a custom form field modified by a filter
- us states dropdown function and echo in theme template files
- How to pass a variable from a template page to the child theme functions.php
- Function the_content
- Allow the access over wp-login.php
- Shortcode to output get_header not working
- Display post_meta-by_key on product catalogue
- How can i hide content if not friend in Buddypress? [closed]
- Get term count on a category page
- Woocommerce – Checkout error message
- add variable to actions/functions across different files (woocommerce)
- reusing code in function and running it with loop
- Make a PHP file with a function
- Creating mixture of shortcodes to use in the visual/text editor
- “woocommerce_output_related_products” not working
- My website is generating weired url parameters of paginated pages
- woocommerce_sort_product_tabs() expects an array
- How to store page-{id}.php templates in custom folder
- sort by date in users
- Is it possible to set the first image from a gallery as the product image, rather than the featured image?
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- Need help adding currency conversion to this code
- Add class to functions.php custom code to call font awesome icon
- Possible to overwrite load_template function in plugin using functions.php
- How to Programmatically Replace Characters in WooCommerce Product Slugs?