Translate term in shopping cart widget from the header
-
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!
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
}
}
Never mind. It seems to work now!
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.
The topic ‘Translate term in shopping cart widget from the header’ is closed to new replies.