This topic has 12 replies, 2 voices, and was last updated 1 years, 4 months ago ago by Kristjan
1. Shopping cart Icon amount in the main menu is not updated when:
changing item quantity in cart
It updates with page refresh.
2. Shopping cart Icon amount is not updated at all after applying a coupon.
Hello, Kristjan,
Thank you for contacting us and for using XStore.
Please try to activate Always load “wc-cart-fragments” via Theme Options > Speed Optimization. Clear cache and check the result.
Kind Regards,
8theme team
Well, it helped with popup calculation. But after applying coupon, it still calculates incorrectly even after refreshing the page.
Hello, Kristjan,
Thank you for your response.
Please record a video of the problem (upload it on a filesharing service, for example – https://wetransfer.com/ , and provide us with URL)and provide temporary wp-admin access, so we can check the situation more deeply.
Kind Regards,
8theme team
The video is here: https://hilo.ee/files/booster.mp4
Free shipping starts from 78 euros.
As you can see, I have added message in shopping cart myself that calculates correctly.
I’m using this for cart value:
WC()->cart->cart_contents_total + WC()->cart->tax_total;
Changing the setting “Ignore coupons while count free shipping” to “yes” still calculates incorrectly.
Calculation works fine without applying a coupon.
Hello, Kristjan,
Thank you for your response.
We need to check the settings on your site more deeply. Please provide temporary wp-admin and FTP access.
Kind Regards,
8theme team
Sending info
You can use “SINUTH10” as a coupon code.
Hello, Kristjan,
Thank you for your response.
Please provide the correct wp-admin access – https://prnt.sc/JGnDtpvPd8Ou
Kind Regards,
8theme team
Please use this password:
Hello, Kristjan,
Thank you for your response.
We will have another specialist review your inquiry in greater detail and will be in touch with you after the weekend.
Kind Regards,
8theme team
Hello, Kristjan,
By default, we use WC()->cart->get_displayed_subtotal() to calculate the amount.
We have updated the theme and added the et_progress_bar_amount filter to it, which allows you to change the formula for calculating the amount.
This filter will also be included in the next theme update.
Using this filter, we have changed the formula to yours.
The filter is located in the child theme in the functions.php file.
If you wish, you can change it, for example, to take into amount coupons in the calculation.
The code of the filter is below.
/**
* Change theme progress bar amount.
*/
add_filter('et_progress_bar_amount', function($amount){
$amount = WC()->cart->cart_contents_total + WC()->cart->tax_total;
//Uncomment this to add discount to amount
//$amount += WC()->cart->get_discount_total();
return $amount;
}, 10, 1);
Kind Regards,
8theme team
Thanks! It is working now.
Tagged: amount, icon, shopping cart, updated, woocommerce, wordpress
The issue related to '‘Shopping cart Icon amount is not updated’' has been successfully resolved, and the topic is now closed for further responses