fbpx

Jupiter theme woocommerce error

HomeTopicsSupport forumJupiter theme woocommerce error
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16149
    Avatar
    spletster
    Participant

    Hi

    I’m building (local) a new business website based on Jupiter theme and I need to create a few products using Woocommerce.
    There looks to be an error related to size-guide element in product template.

    I could also clone the site in development to online server, so you can check it there.

    error:
    WARNING: INVALID ARGUMENT SUPPLIED FOR FOREACH() IN …..\WP-CONTENT\THEMES\XTS-JUPITER\FRAMEWORK\MODULES\WC-SIZE-GUIDE\CLASS-WC-SIZE-GUIDE.PHP ON LINE 98

    Attachments:
    You must be logged in to view attached files.
    #16151
    Artem Temos
    Artem Temos
    Keymaster

    Hello,

    We will fix this error in our next theme update. As for now, you need to replace the code in the file framework/modules/wc-size-guide/class-wc-size-guide.php https://take.ms/bjoqt

    foreach ( $product_categories as $category ) {
    	if ( get_term_meta( $category->term_id, '_xts_size_guide', true ) ) {
    		$id = get_term_meta( $category->term_id, '_xts_size_guide', true );
    	}
    }

    with the following one

    if ( $product_categories ) {
    	foreach ( $product_categories as $category ) {
    		if ( get_term_meta( $category->term_id, '_xts_size_guide', true ) ) {
    			$id = get_term_meta( $category->term_id, '_xts_size_guide', true );
    		}
    	}
    }

    Kind Regards

    #16152
    Avatar
    spletster
    Participant

    Great, it works 🙂
    Thanks.

    Regards

    #16155
    Artem Temos
    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘Jupiter theme woocommerce error’ is closed to new replies.

Sign in

No account yet?

Create an Account