• Hello everyone,
    I am facing a challenge, and I ask you guys for help!
    I need to create 3 countdowns on my website (that I would like to show on some pages).
    The countdowns must be for 30, 60 and 90 days, starting on the date of the last purchase of the client.

    Here is an example :
    The client purchases the (only) product on the site on may 15th.
    First countdown timer on home page ends on 15th june.
    Second countdown timer on home page ends on 15th july.
    Third countdown timer on home page ends on 15th august.

    Is there a way I can put this together ?
    I am using an Astra theme with an Elementor builder, and Woocommerce for the shopping part.

    Hope someone has a solution for this case!
    Thank you very much,
    Best regards,
    Robin

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter robincolbert

    (@robincolbert)

    There is a place in My Account / Orders, where we can see the date of the last order :

    <td class=”woocommerce-orders-table__cell woocommerce-orders-table__cell-order-date” data-title=”Date”>
    <time datetime=”2021-02-17T11:52:23+00:00″>17 février 2021</time>
    </td>

    Moderator bcworkz

    (@bcworkz)

    OK, thanks for that, but we don’t know where that date comes from, nor how the customer’s ID is stored. If I knew the post type name I could query for an order and take a guess at the source. If that doesn’t work I’m lost. Even then, I need the post type name. Does its name show up in the URL when you view the list of orders?

    If you want to try a different solution, I suggest asking in the dedicated WooCommerce support forum for suggestions. Those that know the plugin better than me may have more constructive suggestions.

    Thread Starter robincolbert

    (@robincolbert)

    I’m going to dig into that direction!
    Thank you alot, have a nice day!

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Countdown based on order date’ is closed to new replies.