

The element is structured around a container with the class x-count and key attributes:
data-count-year: Extracts the expiration year from Woo Fields.data-count-mo: Extracts the month.data-count-day: Extracts the day.These attributes are essential for the element's functionality. Additionally, the element includes conditional logic to display the countdown only if the product is on sale and if the sale date is specified.
Within the x-count container, modify the countdown display using classes like x-count__days, x-count__hours, x-count__mins, x-count__secs. Customize the CSS as needed to fit your design.
parseInt(container.getAttribute("data-count-mo")) - 1
parseInt(container.getAttribute("data-count-day")) + 0