have_posts()) : $offers->the_post(); global $post; $i++; ?>
ID, 'rehub_offer_product_coupon', true );
$offer_coupon_mask = get_post_meta( $post->ID, 'rehub_offer_coupon_mask', true ); ?>
ID, 'rehub_offer_product_price_old', true );?>
ID, 'rehub_offer_product_price', true );?>
ID, 'rehub_offer_product_url', true );
$offer_post_url = apply_filters('rehub_create_btn_url', $offer_post_url);
$offer_url = apply_filters('rh_post_offer_url_filter', $offer_post_url );
$offer_btn_text = get_post_meta( $post->ID, 'rehub_offer_btn_text', true );
?>
$number,
'ignore_sticky_posts' => '1',
'post_type' => 'product',
);
if (!empty ($random)) {
$args ['orderby'] = 'rand';
}
if (!empty ($order)) {
$args ['meta_key'] = $order;
$args ['orderby'] = 'meta_value_num';
}
if (!empty ($orderby)) {
$args ['order'] = $orderby;
}
if (!empty ($tags)) {
$tags = array_map( 'trim', explode( ",", $tags) );
$args['tax_query'] = array(array('taxonomy' => 'product_tag', 'terms' => $tags, 'field' => 'slug'));
}
if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) {
$args['tax_query'][] = array(
'relation' => 'AND',
array(
'taxonomy' => 'product_visibility',
'field' => 'name',
'terms' => 'outofstock',
'operator' => 'NOT IN',
)
);
}
$wp_query = new WP_Query($args);
if($wp_query->have_posts()): ?>
have_posts()) : $wp_query->the_post(); global $post; global $product; $i++ ?>
ID, 'rehub_woo_coupon_code', true ) ?>
add_to_cart_url() );
$offer_post_url = apply_filters('rehub_create_btn_url', $offer_post_url);
$offer_url = apply_filters('rh_post_offer_url_filter', $offer_post_url );
?>
get_id();
if(rehub_option('compare_woo_cats') != '') {
$cmp_btn_args['woocats'] = esc_html(rehub_option('compare_woo_cats'));
}
?>