• Hi,

    I have a page where all categories are shown. I’ve set up a timer for the category. Is there a code I can put in the back-end to show it in the HTML?

    For example to put the timer in the bottom right corner: https://imgur.com/a/lZfoE3m

    Kind Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @pokro

    Our plugin only allows setting timers for products within a category, hasn’t function for the category itself. Sorry about that!

    Thread Starter pokro

    (@pokro)

    Thanks for your quick reply! Could you explain where the dates for a product are saved in the database? If it’s an attribute of a product, I can still do it that way.

    Thanks ??

    • This reply was modified 2 years, 11 months ago by pokro.
    Plugin Author WPClever

    (@wpclever)

    You can get the timer data by using below code:

    $actions = get_post_meta( $product_id, 'woopt_actions', true );

    It will return an array of actions, each action will be a string with the special structure like that:

    set_outofstock|10|date_after>08/20/2021

    You should parse this string to get the value you want.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show timer for category’ is closed to new replies.