Add or remove woocomerce error messages
-
i am developing this shipping cost generater for TNT.the thing is if there is an error i need to show the error and restrict user from checkout.I used following method to do that.
if(!empty($xml->ratedTransitTimeResponse->ratedProducts->ratedProduct[0]->quote->price)){ $cost+=(float)$xml->ratedTransitTimeResponse->ratedProducts->ratedProduct[0]->quote->price; } else wc_add_wp_error_notices(new WP_Error(1,'Shipping cost error'));
then the problem is how i can remove this notice when the user entered the correct data and manage the thing done.
When user entered correct data user can proceed but still the error is there.I need to remove it!
(I tried this far with lot of references so if i have miss anything please correct me.)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add or remove woocomerce error messages’ is closed to new replies.