R
R
Roman2020-11-03 09:48:35
WooCommerce
Roman, 2020-11-03 09:48:35

How to convert cart to woocommerce?

Why is "Basket" not translated? Below I attached the code as it is displayed in header.php, Translation is done through Loco Translate, everything is translated, namely this word is not. If you refresh the page, then for a split second a translation to "Basket" appears.

<div class="header__cart">
              <div class="widget_shopping_cart_content">
                <a href="/cart"><?php _e('Корзина', 'cona'); ?>
                  <span class="total"><?php echo WC()->cart->get_cart_contents_count(); ?></span>
                </a>
              </div>
            </div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danny Arty, 2020-11-03
@DanArst

Try disabling Ajax mode in theme settings

A
Artem Zolin, 2020-11-03
@artzolin

In fact, on the contrary, you need to write in English _e( 'Cart', 'cona' )and translate into the languages ​​\u200b\u200bthat you need. You can use the Loco Translate plugin or the Poedit program for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question