Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #4492346
WPC Countdown Timer for WooCommerce - auto-recurring promotion
Open

Comments

  • Marcin started the conversation

    Hello,

    I’m using WPC Countdown Timer for WooCommerce (Premium) and I’d like to achieve an auto-recurring promotion:

    • Example: Product A goes on sale for 1 week.
    • When the week ends, I want the same promotion to start again automatically either immediately, after a few hours, or after 24 hours, and then last another week — repeating this cycle continuously without manual changes.

    Questions:

    1. Can WPC Countdown Timer handle an auto-restart of the countdown on its own?
    2. If not, can I achieve this fully with WPC Product Timer by setting a recurring schedule (e.g., 7 days on sale → 24h gap → 7 days on sale, repeating)?
    3. Could you provide an example configuration (global rule vs. per-product), and confirm whether the sale price/schedule will re-apply automatically at each cycle?
    4. Any best practices for combining Product Timer with Countdown Timer so the front-end countdown always matches the back-end sale window?

    My environment: WooCommerce [10.1.2], WordPress [6.8.2], Theme [Divi].

    Thanks a lot!

  •  1,523
    Dustin replied

    Hi Marcin,

    Let's say you want the countdown to Sunday every week. Please add the custom code below. (How to add custom code? ↗):

    add_filter( 'wooct_active', function () {
    	return 'yes';
    } );
    
    add_filter( 'wooct_text_above', function () {
    	return 'Promotion starts on Sunday.';
    } );
    
    add_filter( 'wooct_time_end', function ( $time_end ) {
    	if ( current_time( 'D' ) !== 'Sun' ) {
    		$sunday = strtotime( 'sunday this week' );
    
    		return wp_date( 'm/d/Y', $sunday );
    	}
    
    	return $time_end;
    } );

    You will get a countdown timer like this:

    3341526950.png

    We can also customize the above snippet to apply it to specific products (selected products, products by category, keywords, etc.) rather than all. Let me know if you have any other special requests.

    Best regards,
    Dustin