get_id(); $title = $product->get_name(); if ($title === '') { $title = esc_html__('Untitled', 'xshop'); } $permalink = get_permalink($pid); $priceHtml = $product->get_price_html(); $rating = $product->get_average_rating(); $count = $product->get_rating_count(); $stock = $product->get_stock_status(); $isOnSale = $product->is_on_sale(); $featured = $product->is_featured(); $type = $product->get_type(); $showHooks = !empty($args['show_hooks']); ?>
> get_image_id(); if ($imageId) { echo wp_get_attachment_image($imageId, 'xshop-card', false, ['loading' => 'lazy', 'decoding' => 'async', 'alt' => esc_attr($title)]); } elseif (has_post_thumbnail($pid)) { echo get_the_post_thumbnail($pid, 'xshop-card', ['loading' => 'lazy', 'decoding' => 'async', 'alt' => esc_attr($title)]); } else { echo '' . esc_html__('No image', 'xshop') . ''; } ?>

0): ?> (' . esc_html((string) $count) . ')'; ?>