get_image_id(); if ( $appliance_ecommerce_store_image_id ) { $appliance_ecommerce_store_image_url = wp_get_attachment_url( $appliance_ecommerce_store_image_id ); $alt = $product->get_name(); } else { $appliance_ecommerce_store_image_url = $appliance_ecommerce_store_static_image2; $alt = esc_attr__('Default Image', 'appliance-ecommerce-store'); } ?> <?php echo esc_attr($alt); ?>
is_purchasable() || $product->is_in_stock() ) : ?>

get_name() ); ?>

get_price_html() ); ?>

get_rating_count() > 0 && $product->get_average_rating() > 0 ) : ?>
get_average_rating() ); ?>
(get_rating_count() ); ?>)
0 ? intval( ($appliance_ecommerce_store_sold / $appliance_ecommerce_store_total) * 100 ) : 0; ?> get_stock_quantity(); if ( $appliance_ecommerce_store_stock_available !== null ) { // If you have a custom way to get sold stock, replace below line with actual logic. $appliance_ecommerce_store_stock_sold = 0; $appliance_ecommerce_store_stock_total = $appliance_ecommerce_store_stock_sold + $appliance_ecommerce_store_stock_available; $appliance_ecommerce_store_stock_percent = ( $appliance_ecommerce_store_stock_total > 0 ) ? intval( ( $appliance_ecommerce_store_stock_sold / $appliance_ecommerce_store_stock_total ) * 100 ) : 0; ?> 0 ) : ?>
' . esc_html__( 'Stock information not available.', 'appliance-ecommerce-store' ) . '

'; } ?>