have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); $product = wc_get_product( get_the_ID() ); if ( $settings['eael_product_grid_style_preset'] == 'eael-product-simple' || $settings['eael_product_grid_style_preset'] == 'eael-product-reveal' ) { ?>
  • get_image( 'woocommerce_thumbnail' )); ?>

    get_title()); ?>

    get_average_rating(), $product->get_rating_count() )); } if ( ! $product->managing_stock() && ! $product->is_in_stock() ) { printf( '%s', __( 'Stock
    Out', 'essential-addons-for-elementor-lite' ) ); } elseif ( $product->is_on_sale() ) { printf( '%s', __( 'Sale!', 'essential-addons-for-elementor-lite' ) ); } ?> get_price_html()); ?>
    get_id() ); } ?>
  • get_image( 'woocommerce_thumbnail' ); ?>
    get_id(), 'icon' ); } ?>

    get_title()); ?>

    get_average_rating(), $product->get_rating_count() ); } if ($product->is_on_sale()){ printf( '%s', __( 'Sale!', 'essential-addons-for-elementor-lite' )); } ?> get_price_html(); ?>
  • get_id() ); }); } wc_get_template_part( 'content', 'product' ); } } } else { printf( '

    %

    ', __( 'No products found!', 'essential-addons-for-elementor-lite' ) ); } wp_reset_postdata(); ?>