Mini cart not empty after payment [update: all payments on external websites]
Hi,
[Update: I discovered that the mini cart is not emptied after payment on any external payment site. When returning from the payment site to the WooCommerce "Thank you" page, the payed item does not disappear from the Brizy mini cart. This applies to all browsers and can be observed when using the following payments: PayPal, Giropay or SOFORT].
This is how it looks after returning from PayPal, the cart is not empty:

When pressing "View cart" the cart is empty in this case, but not every time:

Same thing on iOS:

After playing around I even was able to pay the same item several times and it still did not disappear from the cart. So customers may think payment was unsuccessful and pay again. This is a critical bug and must be fixed really quick, please.
Uli
-
Hi,
Thank you for all these details. We informed our team about this problem and they will investigate it more deeply. When I receive a notification from them, we will inform you too!
Thank you!
Best regards,
Sandra0 -
Hi Sandra,
the mini cart element is full of bugs, more than a year after the WooCommerce feature release:
- WooCommerce mini-cart text does not translate: "Subtotal", "View cart" and "Checkout"
- WooCommerce - mini cart shows wrong subtotal. This bug has been reported already 5 months ago.
- Brizy Pro by default ignores the settings of currency position, thousand separator, decimal separator as well as the number of decimals.
- Mini cart not empty after PayPay purchase when using Safari on MacOS and iOS.
Customers, including myself, have already provided bugfixes for #2 and #3, but your developers did not manage to integrate them to the latest Brizy release. I do actually get the impression, the mini cart element is neglected, although customers with a web store depend on it.
Please, Sandra, do me a favor and remind your developers to get this mini cart working. Issue #4 is the most critical, it causes considerable confusion among store customers.
Uli
0 -
Hi Uli,
1 - The problem with the translation for the WooCommerce strings was already fixed. See here an example. Could you please check it again?
About the 2nd, 3rd and 4th issue, our developers are working to improve them. We are doing our best to release the fix as soon as possible. I'm sorry for this inconvenience!
Best regards,
Sandra0 -
May i ask, if you had any chance to look at this critical bug meanwhile?
I also found out now, that this problem extends to Google chrome (and probably to all browsers) once you purchase an item a second time. It occurs to me, that this is most likely a cookie problem.
Uli
0 -
Hi,
Thank you for updating us with these details. I informed our team about this and they will investigate this problem. Unfortunately, at the moment, we still find the cause of this problem and for this reason, we can't provide a workaround solution. Did you check the cache and cookie? Did you have deleted them?
Thanks!
Best regards,
Sandra0 -
I deleted all cookies and cleared the cache. This did not improve the situation.
0 -
Hi,
Thank you for checking this and I'm sorry for this inconvenience! Our team are investigating and working on this problem. When we will have some notification regarding it, we will inform you too!
Best regards,
Sandra0 -
1 - The problem with the translation for the WooCommerce strings was already fixed. See here an example. Could you please check it again?
Could you please insert the solution you suggest to this thread (WooCommerce mini-cart text does not translate: "Subtotal", "View cart" and "Checkout") ?
Uli
0 -
I added the update to that post that the problem is already fixed. Could you please check it?
0 -
Hi!
Like Uli, I have a problem with the cart being not emptied after checkout but through another plugin (Payplug), on all devices, OS and browsers.
Best regards,
JP.
0 -
Hi,
Unfortunately, at the moment, we don't have integration with other payment or shopping plugins or services. Now, we have the integration with WooCommerce and we are working to solve the problem that appeared after payment on the mini-cart. We are doing our best to fix it as soon as possible.
Best regards,
Sandra0 -
@JP:
I coded a small snipet to fix this problem because I couldn't wait until Brizy finally get to it.
Insert this code to your child theme's functions.php:
// Empty Brizy mini-cart when 'thank you' page is shown after payment
add_action( 'woocommerce_thankyou', 'order_received_empty_cart_action' );
function order_received_empty_cart_action(){
session_start();
if ($_SESSION["refreshed"] == 1){
session_destroy();
return;
}
$_SESSION["refreshed"] = 1;
WC()->cart->empty_cart();
header("Refresh:0");
}Uli
0 -
Hi,
Thank you for your quick answer! Finger crossed for the upcoming fix being in a near future!
Have a nice day,
JP.
0 -
Hi,
@Uli Thank you again for your implication and this solution!
@JP Thank you too for understanding and patience!
We are striving to release the fix as soon as possible.
Best regards,
Sandra0 -
@Uli: thank you so much! It works perfectly. I was trying to find a solution with woocommerce_thankyou and WC()->cart->empty_cart() but it wasn't working. I didn't take into account the session management. Thanks a lot for this fix.
I'm a little afraid though that the refresh of the page makes the customers think that their order is counted twice, but it will do the job until the fix is there!
@Sandra: my pleasure!
Have a nice day both!
JP.
0 -
Has this problem been fixed in the meantime?
Uli
0 -
Hi,
Unfortunately, this issue has not been fixed yet, our developers are still working to solve it.
Apologies for this inconvenience.
Best regards, Nelea.
0 -
Another problem:
This is the cart page. When pressing the trash icon, the item gets deleted from the cart:

This is the view after pressing the trash icon. The mini cart does not get emptied:
0 -
Hi,
Could you please send us a URL link to the page where you encountered this problem?
Best regards, Nelea.
0 -
Could you please send us a URL link to the page where you encountered this problem?
0 -
Hi,
Thank you for the URL. The online shop page is not made with Brizy builder and we couldn't reproduce the problem. Could you please send us a video record of this problem?
Best regards, Nelea.
0 -
Hi Nelea,
the cart page is made with Brizy builder. It contains the Brizy element "shortcode". Via shortcode the WooCommerce cart gets displayed on the page:

Here is a video of the erratic Brizy mini cart behavior: Video
The mini cart is supposed to empty, when an item was deleted from the WooCommerce cart.
Uli.
0 -
Hi,
Thank you for your video.
We tried to reproduce this inconvenience and find that you are right. I have already created an internal issue and our developers will strive to fix it as soon as possible. In the meantime, you can refresh the page the cart will be empty.
Best regards, Nelea.
0 -
This bug is still not fixed. How long will we have to wait?
Uli
0 -
Hi,
We are sorry for this inconvenience.
I understand your frustration but this bug is still on the waiting list to be fixed. Sorry, but I can not give an exact ETA of when it will be fixed. Hope it will be soon.
Best regards, Nelea.
0
Please sign in to leave a comment.
Comments
25 comments