Good afternoon. I use the currency switcher plugin. 2 currencies: $ and Euro.

I withdraw the amount from the basket in the cap in this way.

When I select the dollar in the select, only the currency symbol changes in the cap. But, if I change the currency again, the value also changes, only it turns out late. For example, the goods cost 30 dollars or 40 euros. Currency Euro, in the basket is 40 euros. Change currencyswitcher, in the basket of $ 40. Once again I change, in the basket 30 euros.

<div class="restrain small-cart-content">
                        <p class="total"> <?php echo carbon_get_theme_option('crb_summ'.get_lang()); ?>:
                            <span class="amount">
                                global $woocommerce;
                                $total = $woocommerce->cart->total;
                                echo $total .' '. get_woocommerce_currency_symbol();
                        <p class="buttons">
                            <a href="<?php echo $cart_url; ?>" class="button"><?php echo carbon_get_theme_option('crb_to_cart'.get_lang()); ?></a>

You know what the problem is?

Thank you in advance for your help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.