My goal with this, as I am learning, is to add a countdown timer after the add to cart form on the product page that counts down the time left until the sale is over. I’m using “How TO – JavaScript Countdown Timer” from the w3schools website and I wrote code for getting the _sale_price_dates_to using $sale_date = get_post_meta( $product->get_id(),