TECHNICAL PROBLEM MESSAGE FROM WORDPRESS
-
Regarding my post below
https://xtemos.com/forums/topic/technical-problem-message-from-wordpress/#post-311075
Unfortunately, your fix doesn’t work.
Today I’ve received again an error message from WordPress for the same problem.
Can you help me?
Best regards
Andrea
Hello,
We will fix this in the nearest update. We have not released it yet.
Meanwhile, you can use the code we have provided in the previous topic.
Best Regards
Hello,
thank you, but unfortunately, the code you gave me in the previous topic doesn’t fix the problem.
So I hope you will release soon an update
Best regards
Andrea
Hello,
Please try this code instead of that one we provided earlier:
function woodmart_cart_count() {
if ( ! is_object( WC() ) || ! property_exists( WC(), 'cart' ) || ! method_exists( WC()->cart, 'get_cart_contents_count' ) ) {
return;
}
$count = WC()->cart->get_cart_contents_count();
?>
<span class="wd-cart-number<?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
}
Best Regards
Ok, thank you.
I will try it
Best regards
Andrea
You are welcome! We are here to help.
Wish you a wonderful day!
The topic ‘TECHNICAL PROBLEM MESSAGE FROM WORDPRESS’ is closed to new replies.