- This topic has 4 replies, 2 voices, and was last updated 5 years, 3 months ago by
root.
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
May 1, 2020 at 7:33 am #10790
root
KeymasterCounter 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'; } } }
May 2, 2020 at 11:59 am #10801root
KeymasterHi 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
May 4, 2020 at 8:04 am #10810root
KeymasterHi mate, This issue has been fixed in the 2.4.2 update. please check it 🙂
May 6, 2020 at 7:23 pm #10817root
KeymasterIt works now.
May 7, 2020 at 6:46 am #10823root
KeymasterGald to hear that 🙂
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.