wc_print_notices() Output different on dev v staging.

[ad_1]

Hi, when I add a product to the cart using the add-to-cart url and land on the Cart page I get the message that “Product A has been added to your basket”.

This is inside a div with class “woocommerce-notices-wrapper”.

But on my staging site (identical everything I think, e.g. WC, WP and PHP versions) the HTML inside this div is different.

On dev this div contains messages inside a “.wc-block-components-notice-banner” div whilst the staging site displays messages inside a “.woocommerce-message” div.

Does anybody know why they are presented with different divs with different class names?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer