Featured Products not working

Home Page 8DegreeThemes Forum Premium Themes WP Store Pro Featured Products not working

  • Author
    Posts
  • #4839

    Anonymous

    Hi There, I am having an issue with featured products in the customizer not working anymore, see here ( http://prntscr.com/f8queo ) It does not want to update any new products, so it just shows old images or its blank. I have disabled all plugins to check whether there is conflict but it remains the same.

    One more question. Is it possible to use a specific product as a featured product? If so, that does not work either ( http://prntscr.com/f8qwzq )

    Thanks and Regards
    Adrian

  • #4864

    8Degree Themes
    Keymaster

    Hello there,
    since the woocommerce update few query structures have been changed.
    So for this to function you need to make a slight change in query.
    Find this file:
    wp-content\themes\wp-store-pro\inc\widgets\assets\widget-product.php
    then inside it after line no.54
    find this:

    elseif($product_type == 'feature_product'){
          $product_args = array(
            'post_type'        => 'product',  
            'meta_key'         => '_featured',  
            'meta_value'       => 'yes',
            'posts_per_page'   => $product_number
            );
        }

    replace it with:

    elseif($product_type == 'feature_product'){
    
          $product_visibility_term_ids = wc_get_product_visibility_term_ids();
          $product_args = array(  
           'post_type' => 'product',  
           'posts_per_page' => $product_number,
           'meta_query'     => array(),
           'tax_query'      => array(
             'relation' => 'AND',
             ),
           ); 
          $product_args['tax_query'][] = array(
            'taxonomy' => 'product_visibility',
            'field'    => 'term_taxonomy_id',
            'terms'    => $product_visibility_term_ids['featured'],
            );
        }

    If not send me an email at support@8degreethemes.com I will send whole file to replace.

    Thanks!

  • #5142

    Anonymous

    Please unsubscribe me from emails

  • #5144

    8Degree Themes
    Keymaster

    You should unsubscribe from the wordpress.org not from our site.
    Thanks!

You must be logged in to reply to this topic.

Our New Release - Eight Degree Innovative Corporate Theme (EDICT)

EDICT is a clean and innovative business WordPress theme. This business theme, built fully on theme options with Redux Framework, comes up with three stunning homepage demo layouts that can be imported with just one click of a button. Not to mention it also includes three elegantly designed blog, portfolio and header layouts.

Click on the below image for more detail.

Edict  Eight Degree Innovative Corporate Theme

Please post your questions in the respective forum above.

All questions related to our Pro theme will be answered in less than 24 hours. All questions related to our Free theme will be answered in less than 48 hours.
Our Facebook page is the best place to get updated with themes, documentation, question/answers. Please like us here: