Home Forums WoodMart support forum TECHNICAL PROBLEM MESSAGE FROM WORDPRESS

TECHNICAL PROBLEM MESSAGE FROM WORDPRESS

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #312308

    italyana
    Participant

    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

    #312378

    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

    #312405

    italyana
    Participant

    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

    #312501

    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

    #312566

    italyana
    Participant

    Ok, thank you.

    I will try it

    Best regards
    Andrea

    #312601

    You are welcome! We are here to help.

    Wish you a wonderful day!

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

The topic ‘TECHNICAL PROBLEM MESSAGE FROM WORDPRESS’ is closed to new replies.