ACF date field with live stream single product
-
Hello,
I have a live stream product, an ACF with the start and end date field of the live stream.
I need to compare the start and end date with the current time and hide the live stream player inside the single product if it meets the end date and show a recorded video elementor video widget + acf to pull the dynamic url.
example:
live stream start at Sept. 8, 2022 – 12:00 am = js to check the current date if less than or equal to the start date, show live stream, CSS display: block;live steam end at Sept 8, 2022 – 11:59 pm = js to check the current date if greater than or equal to the end date, hide the live stream player and show an elementor video widget via CSS display: block;
of course, this has to also check if the user already bought the item.
i hope this explains the logic.
Thank you.
- The topic ‘ACF date field with live stream single product’ is closed to new replies.