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]
- How to display custom field in woocommerce orders in admin panel?
- How to redirect to post if search results only returns one post
- How to customize search result page title?
- How to get the original price of the product in woocommerce?
- How to fix a theme with page.php Default Template that accidentally deleted?
- How to Acheive the custom woocommerce category template
- Hide some items from Screen options in dashboard for products
- Using locate-template & shortcodes doesn’t appear to work
- Can I use require() function in a template file?
- How to set global variables in template page?
- Why isn’t is_page_template() adding a body class?
- Issue adding text after short description on product pages Woocommerce [closed]
- Exclude Empty Child Categories in Menu
- Query children and parent title
- change billing and shipping address 1 and 2 field placeholders [closed]
- Creating loop within functions.php
- Make “sidebar template” the default template for new pages
- Display WooCommerce subscriptions for user [closed]
- woocommerce target button with class after ajax update
- Retrieve post modified date for specific post by post ID
- WordPress function for 1 to for many
- Attach parent category template to all subcategories
- Add class or ID to any WordPress function
- Woocommerce checkout field maxlength, make input number field only (postcode)
- How To Create WooCommerce Custom Template For Specific Product?
- change in form-checkout.php by using code in functions.php
- How to remove howdy dropdown menu content
- How to include local menu based on page id?
- How to create function from code?
- How to extract the variables out from “add_shortcode” function?
- Default Gallery Edit/Template Editable?
- Product Tags in Add New product as checkbox list [closed]
- Retrieve tags data in post body
- I want to get product attirbute in the section below
- Load Woocommerce and WordPress Functions Outside
- When sale price is 0.00 show only regular price
- Remove the product category module block from the Woocommerce product page
- how can I edit flexslider in woocommerce. [Urgent]
- Functions For Calling Specific Elements
- Full page template function
- help I changed one currency in woocommerce and everything is ruined [closed]
- wordpress use single ajax in place of multiple ajax requests in a smarter way
- Add Element as a Filter to the_content
- (Woocommerce) Order by price when entering specific category
- Need print logo without any ID & class
- Define PHP variable from a seperate API if statement
- attachment page template? only show attachments for current post?
- Create custom function for hero image
- replace text in Sort Box
- add_filter to specific WooCommerce Category
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- Image loading function not working on archive.php template
- 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]
- Delay a function, any function!
- Specify multiple categories for custom post template – FATAL ERROR
- How to make a new function that includes a template
- How add body_class from wp_termmeta
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- How to hide WooCommerce product title and short description to non logged in users?
- Render page with specific id from functions.php
- the_date() and the_time() functions display actual date an time instead of published date and time
- localize_script but data changes dependent on product ID
- Show ‘Add to Cart’ on Out of Stock products
- 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
- 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]
- Override plugin function to show invoices even if not logged in
- 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
- Execute jQuery with custom event listener after successfully add an item to the cart
- Which method is more correct for removing WooCommerce Extensions menu item?
- Newest comments first not working
- 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
- Display post_meta-by_key on product catalogue
- How can i hide content if not friend in Buddypress? [closed]
- Woocommerce – Checkout error message
- 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
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- Need help adding currency conversion to this code