Scarcity Counter
WordPress Plugin for artificial scarcity. Great for marketing purposes.
by Simon Mayerhofer · github.com/simonmayerhofer/scarcity-counter · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/simonmayerhofer/scarcity-counter/releases/download/v1.1.0/scarcity-counter.zipReadme
Scarcity Counter
Scarcity Counter is a WordPress plugin for artificial scarcity. It is great for marketing purposes. By providing timelimits and random reduction numbers it aims to make it not too obvious it's fake. Be aware that it is just client side. So if the user visit your site on another device another number will be visible.
It works with multiple counters on a page. Use the same id attribute to show the same counter at different places on your page.
Demo
You can see it in action on Codepen.
Shortcode
[scarcity-counter id="id" start="27" min="3" reduction="3" timelimit="5000"]
Attributes
- id Unique id to identify the counter. You should always use new ids on different pages! If used multiple times on the same page, the same number is shown. defaults to
id. - start number to start with. defaults to
27. - min lower limit. the counter won't ever get below that limit. defaults to
3. - reduction upper range limit. E.g. if 5 is set as the limit, the counter will be reduced by a number between 1 and 5. defaults to
3. - timelimit number in milliseconds how long to wait until another reduction (on page reload). defaults to
5000.
Requirements
To compile this plugin, it requires the following modules installed on your system:
Compilation
To compile the plugin follow the following steps:
- Navigate to this plugins directory
- Setup composer:
composer install - Install npm modules:
npm install
After you followed the steps above you're able to compile the project with
grunt build.
Use grunt watch to watch the files for changes.
FYI: You can just go to Releases to download a already compiled release.
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.1.0 | Apr 22, 2018 | scarcity-counter.zip | 4 |
| v1.0.0 | Apr 22, 2018 | scarcity-counter.zip | 6 |
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.