Hello @jonroc804
Sorry for the delayed response.
While this isn’t possible out-of-the-box, you can still use the action hook below to show the add to cart button when timer reaches zero:
add_action('hurryt_9999_campaign_ended', function(){
// show add to cart button
});
To help you with the code that show the button, please reply with more details on what are you’re trying to accomplish.
Best,
– Nabil
With your above code, I was hoping something like this would work, making it purchasable after the time went off?
add_filter( ‘woocommerce_is_purchasable’, ‘__return_false’);
add_action('hurryt_239_campaign_ended', function(){
add_filter( 'woocommerce_is_purchasable', '__return_true');
});
Hello @jonroc804
Did the code above work for you?
Let me know if need help with that.
Best,
– Nabil
Hello,
I’m going to mark this thread as resolved. Feel free to reply or open a new ticket if you still need help.
Best
– Nabil