bbfunk
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] wc_add_notice() doesn’t work on checkout pageForum: Plugins
In reply to: [WooCommerce] wc_add_notice() doesn’t work on checkout pageHi,
For my case I found an alternative solution to solve my problem: if the conditions aren’t met to redirect to the payment form on the payment gateway, I simply redirect the customer to the cart page after added the custom notice:
wc_add_notice(__('shit... a problem occurred, you need to remove a product from your cart!','my_gateway'), 'error'); return $woocommerce->cart->get_cart_url();
It works perfectly.
Best regards ??
- This reply was modified 5 years, 1 month ago by bbfunk.
Forum: Plugins
In reply to: [WooCommerce] wc_add_notice() doesn’t work on checkout pageThere is probably a way to solve it. I’d like to solve it as soon as possible, but we need to search kinda to find the solution I think.
Best regards ??
Forum: Plugins
In reply to: [WooCommerce] wc_add_notice() doesn’t work on checkout pageHi NickGreen,
Thanks for your reply ;).
I didn’t find any issue on the Web too… but this is probably because the scenario in my plugin, like in the plugin of doffine I think, require to display specific notices after the checkout button clicked.
I’ll probably post the problem on Github tomorrow.
Best regards ??
Forum: Plugins
In reply to: [WooCommerce] wc_add_notice() doesn’t work on checkout pageHi again Doffine,
I don’t know if nickirongate will answer here again, but I’d like to find a solution for this problem because it’s the last problem I have to finish my plug-in :).
I’ll try to add notice in different ways to solve the problem, but without success…
I wonder if I’ll try to add my own notices rather than Woocommerce notices…Best regards ??
Forum: Plugins
In reply to: [WooCommerce] wc_add_notice() doesn’t work on checkout pageHi Doffine,
I reply to your problem because I have the same: on the Woocommerce plug-in I developed, the wc_add_notice() function worked as well before I update Woocommerce to 3.9.0 version. Since I did the update, the notices don’t display correctly on the checkout page.
So think so the update generate the problem.Did you find a solution to solve it?
If yes, I’m curious to know this solution ;).
Thanks for your reply!
best regards ??