Kung Woo Price History for WooCommerce

Description

Kung Woo Price History for WooCommerce is a lightweight WooCommerce extension that automatically tracks price changes and can display the lowest recorded price from the last 30 days when a product is on sale, helping stores present price-history information.

Customers can view the full product price history in an interactive modal chart. Store administrators can customize the chart color and price-history icon, and can enable or disable PDF export from WooCommerce > KW Price History.

Features

  • 30-Day Lowest Price: Automatically calculates and displays the lowest recorded product price from the last 30 days whenever a product is on sale.
  • Price Tracking: Silently records the product price every time it gets updated or saved in the WooCommerce backend.
  • Interactive Chart: Adds a sleek “Price History” button to single product pages (via hook or shortcode) that opens a modal with a responsive Chart.js line graph.
  • Optional PDF Export: Allows customers to generate and download a PDF report of the price chart; administrators can disable this feature when it is not needed.
  • Custom Appearance: Choose a custom chart color and replace the default price-history icon with an image from the WordPress Media Library or a PNG/SVG URL.
  • Multi-Currency Support: Native compatibility with FOX – Currency Switcher Professional. Historical prices are stored once and converted dynamically to the currency selected by the customer.
  • Page Builder Friendly: Works flawlessly with Elementor and other page builders thanks to robust event delegation and global script enqueuing.
  • Security & Performance: Uses local assets, sanitizes stored settings and output, and enqueues scripts through WordPress APIs.

Screenshots

Installation

  1. Upload the entire plugin folder to the /wp-content/plugins/ directory, or install it directly via the WordPress plugins screen.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. The plugin will immediately start tracking price changes for your products.
  4. When a product is put on sale, the “Lowest price in 30 days” notice will automatically appear.
  5. A “Price History” button will be added to your single product pages. You can also use the plugin’s shortcode [kwph_price_history] to place the button anywhere on the product page or within your Elementor templates.
  6. Optional display and PDF settings are available under WooCommerce > KW Price History.

FAQ

When does the plugin record a new price?

The plugin hooks into the WooCommerce product save action. Whenever you update a product and the price differs from the last recorded entry, it logs the new price along with today’s date.

Can I import historical data?

Currently, the plugin begins tracking prices from the moment it is installed and activated. It does not look back at past WooCommerce logs.

Where is the 30-day lowest-price notice displayed?

The lowest price from the last 30 days is automatically displayed right under the product price summary, but only when the product is currently “on sale”.

Reviews

29 di Setembar dal 2026
I’m very happy with Kung Woo Price History for WooCommerce. The plugin is useful, easy to use, and works well on my store. I suggested a feature to the developer, and I really appreciate that it was implemented in the latest update. I tested the new changes, including the PDF export settings and customization options, and everything is working as expected. The developer was responsive and took user feedback seriously. Thank you for the excellent support and for continuously improving the plugin. Highly recommended!
Read all 1 review

Contributors & Developers

“Kung Woo Price History for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3.0

  • Settings: Added an option to enable or disable PDF export. The PDF library is not loaded when export is disabled.
  • Customization: Added a custom price-history icon selector using the WordPress Media Library, with PNG/SVG URL support and fallback to the existing custom/default SVG icon.
  • Customization: Added a configurable chart color with the WordPress color picker. The selected color is also used in PDF exports.
  • Backward compatibility: Existing installations keep PDF export enabled, the current default icon, and the existing red chart color until settings are changed.

1.2.0

  • Compatibility: Added native support for FOX – Currency Switcher Professional for WooCommerce.
  • Multi-currency: Price history chart values are dynamically converted to the currency selected by the customer.
  • Multi-currency: The 30-day lowest-price notice is converted consistently with the selected FOX currency.
  • Architecture: Historical prices and transient chart cache remain stored in the shop base currency, preventing duplicated history and cross-currency cache contamination.
  • Backward compatibility: Existing price-history records require no migration and remain fully usable after updating.

1.0.8

  • Refactor: Standardized all database keys, options, and variables to English (e.g., _kwph_price_history) to meet WordPress.org global standards.
  • Compatibility: Added full support for Elementor and other Page Builders by implementing global script enqueuing and JavaScript Event Delegation.
  • Architecture: Shortcode buttons now securely carry specific product data via data-chart attributes, enabling multiple distinct charts to work flawlessly on the same page.
  • Fix: Resolved a major Chart.js rendering issue (blank chart modal) by enforcing explicit canvas wrapper heights and applying rendering cycle delays.
  • Fix: Added visual fallback error messages to gracefully handle missing core JavaScript assets.

1.0.1

  • Security: Implemented strict SVG sanitization using wp_kses() with an explicit allowlist for the settings page.
  • Security: Improved late escaping across all plugin outputs.
  • Architecture: Moved all inline JavaScript from footer directly to correctly enqueued external JS files using wp_enqueue_script and wp_localize_script.
  • Architecture: Prefixed shortcodes ([kwph_price_history]) and global declarations to avoid naming collisions.
  • Update: Updated Chart.js to the newest stable version.
  • Fix: Removed remote CDN calls from the html2pdf library to ensure all assets are loaded locally.
  • Compliance: Renamed plugin to respect third-party trademarks (“for WooCommerce”).

1.0.0

  • Initial release.