• Your query is valuable for us, you can post your query any time.
    We are ON in week days. You will get instant support in our working hours.
    We are little slow in non-working hours, but you will get response in maximum 24 hours.
    Our working timing is
    [10:00 AM (IST) - 7:00 PM (IST)]
    [6:30 AM (CET)- 3:30 PM (CET)]
    [12:30 AM (EST) - 9:30 AM (EST)]

    Login Rules
    1. Premium users can login directly using aMember credentials, Created at the time of purchase.
    2. Free users can re-register to access forum using this link : Register Here.


  • Recently WordPress releases a new update with version 5.5. In that we got many new features.
    So we also updated our theme according to it. And uploaed all latest version in "Members Area"
    You can download latest version from your acocunt and update your theme.

    You can follow this link to get update process: Click Here

Product Slider Widget - Featured products

itarizin

Pro Member
Pro
#1
Hello there,

I've an issue with "Product Slider" widget.
Whenever I select "Featured" on Product Type, no items are shown. Either selecting the Category or not, doesn't change the result.

It is odd, because if I use the left hand filter on the products widget, and select filter "Fetured" instead of "Recent" it shows the featured products, hence the attribute is set for the products
Before I start investigate the widget, can you please check if there's a known issue?

Many thanks.


1588428660518.png
 

itarizin

Pro Member
Pro
#2
Hi there, I answer my own question.

On file /inc/frontpage-function.php from row 672

change the way it filter the "featured" products.
(use the commented code as reference where to stop insertion)

PHP:
        $tax_query = array();

        if($cat_slug != '0'){
            array_push($tax_query,
                        array(
                            'taxonomy' => 'product_cat',
                            'field' => 'term_id',
                            'terms' => $cat_slug,
                     ));
        }

        if($productType == 'featured'){
            array_push($tax_query,
                        array(
                            'taxonomy' => 'product_visibility',
                            'field'    => 'name',
                            'terms'    => 'featured',
                            'operator' => 'IN',
                        ));
        }

        $args['tax_query'] = $tax_query;

        #if($productType == 'featured'){
        #// featured product
        #    $args['meta_query'] =  array(
        #        'key'   => '_featured',
        #        'value' => 'yes'
        #    );
        #}
        #else
        if($productType == 'random'){
            //random product
          $args['orderby'] = 'rand';
        }