Kitestudio Support
  • Hire Us
  • PinkMart Pro
  • Tata Pro
  • login
  • Register
Login | Register
×

Login

Log In
Lost Password?

Community Forums

Counter does not appear on on deal products when buttons under

  • 5 years ago root
    Keymaster

    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';
    		}
    	}
    }
    5 years ago root
    Keymaster

    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

    5 years ago root
    Keymaster

    Hi mate, This issue has been fixed in the 2.4.2 update. please check it 🙂

    5 years ago root
    Keymaster

    It works now.

    5 years ago root
    Keymaster

    Gald to hear that 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Recent Topics

  • installation problem – Pinkmart Theme
  • Support With email
  • Edición del header
  • all demo pages are not import.
  • Products are not showing on mobile view

Recent Comments

    Search Forums

    Recent Topics

    • installation problem – Pinkmart Theme
    • Support With email
    • Edición del header
    • all demo pages are not import.
    • Products are not showing on mobile view

    Recent Replies

    • all demo pages are not import.
    • Edición del header
    • Need double click to see product detail page
    • Need double click to see product detail page
    • List Layout
    • Most popular topics
    • Topics with no replies

    KiteStudio Team

    We take great care to make sure that we respond to all questions within 1 business day.

    You can also contact us via
    help.kitestudio@gmail.com

    Getting Support

    • teta Documentation
    • teta changelogs
    • Pinkmart Changelogs
    • Video tutorials
    • Register
    • Login