-
Counter does not appear on deal products when style is set to “buttons appears under” while it works in single product.
Problem is somewhere here,
$flag
is set to 2 when on home page.add_action( 'woocommerce_single_product_summary', 'add_deal_count_down_timer', 25 ); if ( ! function_exists( 'add_deal_count_down_timer' ) ) { function add_deal_count_down_timer( $flag ) { global $post; $today = time(); $deal_end_date = get_post_meta( get_the_ID(), '_sale_price_dates_to', true ); if ( ! empty( $deal_end_date ) && $deal_end_date > $today && ( $flag == 1 || empty( $flag ) ) ) { $deal_end_date = date( 'Y-m-d', $deal_end_date ); echo '<div class="single_deal_count_down_timer">'; echo do_shortcode( '[countdown end_date="' . $deal_end_date . '" color="#000000" label_color="#000000" fontsize="28"]' ); echo '</div>'; } if ( ! empty( $deal_end_date ) && $deal_end_date > $today && $flag == 2 ) { return 'count_down'; } } }
Hi dinko , thank you for report this issue, I report this issue to our developers, they will check it and this issue will be fixed next update
Hi mate, This issue has been fixed in the 2.4.2 update. please check it 🙂
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.