• Resolved kingofmycastle

    (@kingofmycastle)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kingofmycastle

    (@kingofmycastle)

    I have just resolved this myself so I thought I’d explain what I did in case anybody else had this issue. I am using the Classic Editor plugin and this could be a blocks v classic issue at the time I initially installed WooCommerce.

    1. I went to WooCommerce / Status / Tools and cleared both transients as well as the template cache.

    2. I use ACF fields to add text on a page and remove all the default HTML from the shop, basket, checkout and my account pages. I hadn’t removed the default HTML from the dev site for the checkout and account pages. (* note this is unlikely to have fixed this issue but just in case I have listed it here.)

    Hi @kingofmycastle,

    Thank you for sharing your solution with us and the WooCommerce community. I’m glad to know you were able to resolve the issue by clearing the transients and the template cache.

    Your feedback is valuable and helps us improve our products and services. We appreciate your time and effort in troubleshooting this issue and posting your findings on the forum.

    Just so you know – we will now close this ticket as solved. If you have any other questions or issues, please feel free to open a new ticket and we’ll be happy to assist you.

    Thank you for choosing WooCommerce and have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wc_print_notices() Output different on dev v staging.’ is closed to new replies.