Drop / Raise Price for WooCommerce (over time)

Last updated: 18th Jan 2022.

Change Log

** Version 1.1.22 **
- Fix: translations
- Fix: jQuery JavaScript problem

** Version 1.1.21 **
- Fix: bug with variable products
- Fix: bug with refreshing countdown interval
	
** Version 1.1.20 **
- Fix: updating wp_wc_product_meta_lookup table

** Version 1.1.19 **
- Fix: Cart problem

** Version 1.1.18 **
- Fix: Optimize cronjob
- Fix: WC 2.6 comaptibility
	
** Version 1.1.17 **
- Fix: Bug with rising price
	
** Version 1.1.16 **
- Add: WooCommerce_drop_prices_price_end hook when price changes end
- Fix: Validation fix
- Add: Option to reset counter and price on product order
- Add: Option to change price in percentage

** Version 1.1.15 **
- Fix: Compatibility if other theme or plugin has same countdown script
- Fix: Problem with rise price when endprice is not set

** Version 1.1.14 **
  - Fix: Compatibility with WooComerce >= 3.0.0

** Version 1.1.13 **
  - Fix: Clearing product cache for WP Super Cache and W3 Total Cache

** Version 1.1.12 **
  - Fix: Clearing cache for variable products

** Version 1.1.11 **
- Fix: Displaying counter before scheduled date
- Fix: Change next drop/rise price time when updating start time or time for price changes

** Version 1.1.10 **
- Fix: Display of datetime picker fields
- Fix: Turning off counter bug

** Version 1.1.9 **
- Fix: Fatal error: Call to a member function is_purchasable() on a non-object on line 554

** Version 1.1.7 **
- Fix: Out of stock product now not included in drop price.

** Version 1.1.6 **
- Add: hooks WooCommerce_drop_prices_price_drop, WooCommerce_drop_prices_price_rise, WooCommerce_drop_prices_price_change

** Version 1.1.5 **
- Fix: counter Javascript bug

** Version 1.1.4 **
- Fix: Problem activating on a multi-site installation of WordPress

** Version 1.1.3 **
- Fix: Problem with loading languages files

** Version 1.1.2 **
 - Add: Variable product compatibility

** Version 1.1.1 **
 - Fix: headers already sent fix

** Version 1.1.0 **
 - Add: choose between raise or drop price over time functionality

** Version 1.0.0 **
 - Initial release

Overview and Features

Drop / Raise Price for WooCommerce (over time)

Drop / Raise Price for WooCommerce (over time) is a plugin and excellent marketing tool which allows you to lower (or raise) price of a product over time in steps say $10 or 5% every hour. This way you can attract more buyers and make them spend more time on your site waiting for lowest price they are willing to pay for a product. With this marketing tool you will be able to increase sales, get more satisfied buyers, upsell more related products and increase average time visitors spend on your web shop.

Overview and Features

  • Seamless integration into WooCommerce via its hooks
  • Choose between price rise or drop
  • Precentage or fixed value price rise or drop
  • Set price increment / decrement
  • Set minimal / maximal price
  • Set how often price will drop or raise
  • Show counter for next price drop / raise on single product page
  • Set drop / rise price timeframe - price will change from date to date and stop
  • Reset price raise / drop after completed order

Instalation

Source: https://codex.wordpress.org/Managing_Plugins#Installing_Plugins

Note:

Make sure to install WooCommerce before you activate Drop / Raise Price for WooCommerce (over time) plugin.

After downloading Drop / Raise Price for WooCommerce (over time) plugin, extract plugin zip and upload it to your plugins directory - wp-content/plugins/ folder of your Wordpress installation. Since this is extension for WooCommerce you need to install WooCommerce before activating the plugin. WooCommerce plugin which can be downloaded here.

If you need help installing Wordpress see the link here

Note:

Once you installed and activated WooCommerce go to WooCommerce > System Status and make sure that you don't have red colored errors (specially for WP memory limit).

Drop / Raise Price for WooCommerce (over time) plugin uses cronjobs and you have to setup one cronjob:

  • every minute: /usr/local/bin/curl --silent http://www.your-domain.com/?drop-price-cron

Here is screenshot of cronjobs page and setup in DirectAdmin control panel

screenshot

If your hosting company does not support one minute cronjobs we suggest that you move your website to more serious hosting company or use service like EasyCron. If you don't know how to add cronjob the best and the easiest way is to email your hosting support to do it for you.

Install WooCommerce Sample Data:

Source: https://woocommerce.com/document/importing-woocommerce-sample-data/

WooCommerce comes with sample data which you can import, dummy data file is /wp-content/plugins/woocommerce/dummy_data.xml Steps to import demo data to your WordPress WooCommerce site:

  1. Go to Tools > Import
  2. Select XML dummy content file from /wp-content/plugins/woocommerce/dummy_data.xml
  3. Click Upload file and import
  4. Assign posts to an exitsting account
  5. Check Download and import file attachments
  6. Click Submit and wait until WordPress finish downloading attachments and importing content

Warning:

Importing dummy data can take some time, specially on slow Internet connections. Be patient and do not close or refresh browser tab until import operation is completed.

Quick Setup

Setting up new drop price product is easy:

  • make sure all steps from Installation are done (WooCommerce installed, plugin enabled, cronjobs set)
  • go to Products => Add Products
  • add title, description, images, featured image, select category - all things you do when adding regular product
  • in Product Data you will notice tab General with new inputs: Price decrement, Minimal price, Drop price every n minutes, Counter checkbox and Drop Price Timeframe
  • make sure that you have entered value greater than 0 in "Drop price every n minutes" otherwise price will not drop
  • populate new Drop Price product inputs like on screenshot
    screenshot
  • publish product

FAQ

Here you can find answers to frequently asked questions. Feel free to contact us if you can't find answer to your question.

  1. How can I call countdown timer on home page or content-product.php? - Add following code to the functions.php:
    add_action( 'woocommerce_after_shop_loop_item_title', 'wpgenie_show_counter_on_loop', 50 );
     function wpgenie_show_counter_on_loop(){
     	global $product;
     	if(!isset ($product)) return;
     	if (isset($product->drop_price_counter) &&
     		($product->drop_price_counter == 'yes') &&
     		isset($product->drop_price_next_drop) &&
     		$product->drop_price_next_drop){
     		echo '<div class="drop-price-counter">';
     		echo "<p>".sprintf(__('Next price %s in', 'drop_price'), $product->drop_price_type)."</p>";
     		echo '<div class="drop-price-time" id="countdown">
     				<div class="drop-price-countdown" data-time="'.$product->drop_price_next_drop.'" data-productid="'.$product->id.'" ></div>
     			</div>';
     		echo "</div>";
     	}
     }
     			
  2. Do you use cronjobs? - Yes. Please check installation instructions.
  3. Does this plugin work with caching plugins? - Yes, but we suggest you to turn off cache on single page products where you have drop price enabled. All of our plugins have same requirements for caching as WooCommerce - check it here https://docs.woocommerce.com/document/configuring-caching-plugins
  4. How can I translate plugin to my language? Do you have translations? - We only maintain english translation. We do not have resources to quality maintain other translations. If you have trasnlation, you can submit one to us and we will post it here for download if someone wants it, but those will be unofficial.

    Here are steps which can help you to traslate plugin yourself:

    • two lang files that you will edit are located in:

      plugin_dir/lang/drop_price-gb_GB.po
      plugin_dir/lang/drop_price-gb_GB.mo
    • you need to download and install Poedit https://poedit.net/download
    • download drop_price-gb_GB..po and open it with Poedit
    • do your translations with Poedit
    • when done save drop_price-gb_GB.po, saving drop_price-gb_GB.po will create drop_price-gb_GB.mo
    • you need to upload both files to /wp-content/languages/plugins/ and not to plugin directory because translations will be lost if you update plugin by deleting old one

    Note:

    In filename drop_price-gb_GB.po suffix en_GB must match your language settings in WordPress, otherwise language will not be loaded. So for example you can have drop_price-en_AU.mo, drop_price-af.mo or drop_price-en_CA.mo, complete list of available suffixes are here https://make.wordpress.org/polyglots/teams/

  5. I have installed your plugin but images are not aligned, buttons are too small / big, input fields needs to be smaller / bigger, can you help? - In short no.

    It's your duty to modify plugin template to match your style and theme. Themes can implement different ways how they customize pages and parts of Woocommerce. We cannot guarantee that our plugin will look same as in our demo for every possible theme out there. Web developing is more than getting a theme and couple plugins, enabling them and deliver web site. Our templates are coded by standards and they adhere to WordPress and WooCommerce template structure. That means that minimal intervention is needed from client side, but sometimes there is no way to avoid template changes. Some themes use similar structure and have minimal interventions in structure and our plugin looks good out of the box and some do not. It's your task as web developer and client who purchased plugin to modify and customize plugin templates to match your own (or client's) needs and styles. This is part of developing a web site. You cannot expect that everything will be perfect for every possible theme and plugin comibation out there or that we will do your job for you as part of support. We support plugin - we do not style and customize client's sites. Thanks for understanding.

    Note:

    Right way to customize plugin's templates is to copy contest of plugin_dir/templates/ directory to your_theme/woocommerce/ directory and do modifications there.

    When you ask us for support make sure it's not related to tasks we don't do as part of support:

    - style or customize your theme to do this or that
    - provide support for bugs caused by 3rd party plugins or themes (we can pinpoint that some plugin is problematic)
    - send you CSS or HTML code for modifying html elements
  6. 3rd party plugin is causing problems? Its developers tell you that we need to fix our plugin? - Woocommerce extensions should be transparent - meaning one extension should work with another without introduction of special code that makes them compatible. Imagine what would happen and how much time we would need to spend if we would have to add a bit of compatibility code for every Woocommerce extension that's out there - we would end up in huge plugin with tons of problems which would be problem to test and debug. That's why we think every plugin developer should stick to Woocommerce coding standards and APIs (they're there for that reason) and not require 3rd party developers to code something into their extensions / plugins so that it could work with theirs.
wpgenie plugin

Love this plugin?

This plugin is created by wpgenie. Check out our free stuff.

We do WordPress developing, plugins for WordPress & WooCommerce, eCommerce sites based on WooCommerce, WordPress performance optimization and managed WordPress hosting.