About
The Dynamic Pricing plugin is designed for WordPress. It helps you apply time-based discounts, seasonal pricing, and rounding logic for different pricing packages on your website. Ideal for photographers, event planners, or any business needing custom pricing adjustments!
How It Works
The plugin calculates pricing dynamically based on several customizable settings:
- Midweek Discount: Apply discounts to prices for bookings made during weekdays (Monday to Friday). You can define the discount as a percentage or a fixed amount.
- Winter Discount: Automatically apply discounts during winter months (e.g., November to February) to encourage bookings during off-peak times.
- Price Rounding: Round the final price to a specified value (e.g., round to the nearest £50 or £100).
- Greater vs. Lesser Discount: Choose whether to apply the greater or lesser of the two discounts (midweek vs. winter).
Once the discounts are applied, the plugin recalculates the final price, rounding it as needed, and displays it on the front end.
Installation Instructions
To install the Dynamic Pricing plugin on your WordPress site, follow these steps:
- Download the plugin ZIP file.
- Go to your WordPress admin dashboard and navigate to Plugins > Add New.
- Click the Upload Plugin button at the top.
- Select the plugin ZIP file you downloaded, and click Install Now.
- Once the installation is complete, click Activate to activate the plugin.
- After activation, you will see a new menu item in your WordPress admin dashboard titled "Dynamic Pricing".
- Configure the plugin settings as needed and start using the shortcodes to display dynamic pricing on your site.
Settings Explained
The plugin offers several customizable settings to control how discounts are applied. Here's an overview:
- Midweek Days: Choose which days are considered midweek for applying discounts (e.g., Monday through Friday).
- Winter Months: Select which months will be considered winter for applying discounts (e.g., December to February).
- Rounding: Specify the rounding value for the final price (e.g., round to the nearest £50 or £100).
- Discount Conflict Mode: Decide whether the plugin should apply the greater or lesser of the discounts when both midweek and winter discounts apply.
Test Cases: How It Works in Action
Here are some test cases that demonstrate how the Dynamic Pricing plugin applies discounts:
Test Case 1: Midweek Discount
Base Price: £2250
Midweek Discount: Fixed £750
Winter Discount: 25%
Rounding: £50
Scenario: A booking is made on a Wednesday (midweek).
Price Calculation: £2250 - £750 = £1500 → Rounded to £1500 (No winter discount applied because midweek discount is higher)
Test Case 2: Winter Discount
Base Price: £2250
Midweek Discount: Fixed £500
Winter Discount: 25%
Rounding: £50
Scenario: A booking is made in December (winter month).
Price Calculation: £2250 - £562.50 (winter discount) = £1687.50 → Rounded to £1700 (No midweek discount applied because winter discount is higher)
Shortcodes Explained
The Dynamic Pricing plugin provides two shortcodes to handle different aspects of pricing:
1. Date/Venue Picker Shortcode
This shortcode displays a date picker and venue input, allowing users to select a date and venue before calculating the price. Use it like this:
[dynamic_pricing_date_picker]
2. Price Display Shortcode
This shortcode displays the calculated price based on the selected date, venue, and available discounts. Use it like this:
[dynamic_price id="123"]
Replace `123` with the ID of the package you want to display the price for.
Multiple Packages
You can define and display multiple packages on the same page by using the price display shortcode multiple times, each with a unique package ID. For example:
[dynamic_price id="123"] [dynamic_price id="124"]
Viewing Logs and CSV Export
The plugin keeps a log of all pricing calculations for reference. You can view these logs in the WordPress admin panel and even export them as a CSV file for reporting or analysis.
To view the logs:
- Go to the "Dynamic Pricing Logs" section in the WordPress admin menu.
- You can filter, search, and view detailed logs for each pricing calculation.
To export the logs to CSV, click the "Export to CSV" button on the logs page. This will download a CSV file with all the logged data for further analysis.
Plugin Removal (In Case of Issues)
If you encounter issues with the plugin and need to remove it, follow these steps:
- Log in to your website's FTP or use the file manager in your hosting control panel.
- Navigate to the `wp-content/plugins` directory.
- Locate the plugin folder (e.g., `dynamic-pricing`) and rename it to something like `dynamic-pricing-deactivated`.
- Once renamed, WordPress will deactivate the plugin automatically, and your site should no longer be affected.
Data Storage & Privacy
This plugin respects your users’ privacy and does not transmit any data externally.
All data is stored locally on your own server. Specifically, the plugin stores the following data in your WordPress database:
- Logs When a user selects a date and venue to view prices, the plugin logs the selected date, venue, and user IP address.
- Pricing Package Settings: Your defined pricing packages, seasonal rules, discounts, and rounding preferences are stored as plugin settings.
These logs are stored only on your WordPress database and are accessible only to site administrators.
No data is shared with any external services or third parties, including the plugin developer. The plugin does not use cookies, trackers, or analytics.
If you choose to remove the plugin, all stored data can be deleted manually from the database (This will be later updated with a clear down process in the next version)
Screenshots
Here are some screenshots showcasing the plugin:






Download
Ready to get started? Download the plugin below and install it on your WordPress site like any other plugin.
Download Dynamic Pricing Plugin