Home Forums WoodMart support forum Translate term in shopping cart widget from the header

Translate term in shopping cart widget from the header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #697466

    Andrei
    Participant

    Hi. Can you please tell me how i can translate this: https://prnt.sc/L4nz-r9xEgMg
    Using Loco, but that string does not show up and in header settings there’s nothing related to it.

    Thanks!

    #697470

    Andrei
    Participant

    It seems to be coming from this file:
    woodmart/inc/integrations/woocommerce/template-tags.php

    if ( ! function_exists( 'woodmart_cart_count' ) ) {
    	function woodmart_cart_count() {
    		if ( ! is_object( WC() ) || ! property_exists( WC(), 'cart' ) || ! is_object( WC()->cart ) || ! method_exists( WC()->cart, 'get_cart_contents_count' ) ) {
    			return;
    		}
    
    		$count = WC()->cart->get_cart_contents_count();
    		?>
    		<span class="wd-cart-number wd-tools-count<?php echo woodmart_get_old_classes( ' woodmart-cart-number' ); ?>"><?php echo esc_html( $count ); ?> <span><?php echo esc_html( _n( 'item', 'items', $count, 'woodmart' ) ); ?></span></span>
    		<?php
    	}
    }
    #697471

    Andrei
    Participant

    Never mind. It seems to work now!

    #697522

    Hello,

    Sound’s Good! That you have managed to resolve your issue by yourself,
    You are the best!

    Feel free to write back anytime. If you need further assistance, we are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Translate term in shopping cart widget from the header’ is closed to new replies.