Skip to content

DevPress/precise-sales-for-woocommerce

Repository files navigation

Precise Sales for WooCommerce Testing status

  • Requires PHP: 7.0
  • WP requires at least: 6.0
  • WP tested up to: 6.0
  • WC requires at least: 5.9.1
  • WC tested up to: 6.8.0
  • Stable tag: 1.0.0
  • License: GPLv3 or later License

Description

Enables WooCommerce product sale scheduling to the day, hour and minute.

Screenshot of sale settings.

This extends the default WooCommerce functionality which only offers product sale scheduling to the day (in 24 hour increments). This plugin adds a field for hour and minute, so that sales can be scheduled to start and end at a more precise time.

This extension is especially helpful for shops that operate in a country with multiple timezones (like the United States) that want to offer a one day sale across timezones. For those shops, a sale can start at midnight in one timezone and end at midnight in another timezone- allowing a 27 hour sale (or other arbitrary period).

Additional Information

By default WooCommerce stores scheduled sale times in a unix timestamp format using the product meta fields _sale_price_dates_to and _sale_price_dates_from.

This plugin uses the same product meta fields to store the more precise sale timestamp. If the plugin is ever disabled, any previously scheduled sales will still work and use the more precise time that was initially set unless the product is later updated, in which case it will revert to the default date functionality.

Credits

The majority of this code was contributed by Igor Benic and developed for Universal Yums. It was converted to a standalone plugin and polished for release by Devin Price.

About

Allows WooCommerce sales to be scheduled to the minute.

Resources

License

Stars

Watchers

Forks

Packages

No packages published