>
ID, 'is_editor_choice', true); ?>
is_featured() ) : ?>
' . esc_html__( 'Featured!', 'rehub-theme' ) . '', $post, $product ); ?>
is_on_sale()) : ?>
get_regular_price() && $product->get_regular_price() !=0) {
$percentage = round( ( ( $product->get_regular_price() - $product->get_price() ) / $product->get_regular_price() ) * 100 );
}
if ($percentage && $percentage>0 && !$product->is_type( 'variable' )) {
$sales_html = apply_filters( 'woocommerce_sale_flash', '
- ' . $percentage . '%', $post, $product );
} else {
$sales_html = apply_filters( 'woocommerce_sale_flash', '
' . esc_html__( 'Sale!', 'rehub-theme' ) . '', $post, $product );
}
?>
>
use_thumb = true;
$showimg->no_thumb = rehub_woocommerce_placeholder_img_src('');
$showimg->width = (int)$custom_img_width;
$showimg->height = (int)$custom_img_height;
$showimg->show_resized_image();
?>
ID, 'span');?>
is_featured() ) : ?>
>
ID);?>
()
address; ?>
1):?>
+
add_to_cart_url() !='') : ?>
%s',
esc_url( $product->add_to_cart_url() ),
esc_attr( $product->get_id() ),
esc_attr( $product->get_sku() ),
$product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '',
$product->supports( 'ajax_add_to_cart' ) ? 'ajax_add_to_cart' : '',
esc_attr( $product->get_type() ),
$product->get_type() =='external' ? ' target="_blank"' : '',
$product->get_type() =='external' ? ' rel="nofollow sponsored"' : '',
esc_html( $product->add_to_cart_text() )
),
$product );?>