user2899728
user2899728

Reputation: 2319

Woocommerce: How to change position of error message in cart page?

I am trying to display woocommerce cart error messages and notices in top of header. I have put wc_print_notices(); in top of header but it still did not work for me.

For example if I apply any coupon, it shows success or error message that displays within cart instead of header.

Is there any way to change position of the error messages that are produced by ajax ?

Upvotes: 0

Views: 828

Answers (1)

Husain Ahmed
Husain Ahmed

Reputation: 868

You have to create template of cart page in your theme folder as per the woocommerce rule and edit your cart.php file according to your requirement.

Upvotes: 1

Related Questions