Plugin info

Total downloads: 1,796
Active installs: 10
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 11/24/2015 (3690 days ago)
Added to WordPress: 7/28/2015 (10 years old)
Minimum WordPress version: 4.0
Tested up to WordPress version: 4.4.34
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3690 days ago • 1 reviews

22/100

Is WooCommerce Last Purchased abandoned?

Possibly abandoned (last update 3690 days ago).

Compatibility

Requires WordPress: 4.0
Tested up to: 4.4.34
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Essential Addons for Elementor – Popular Elementor Templates & Widgets
Rating 4.9/5 (3,987 reviews)Active installs 2,000,000
Google for WooCommerce
Rating 2.7/5 (245 reviews)Active installs 900,000
WooPayments: Integrated WooCommerce Payments
Rating 3.0/5 (127 reviews)Active installs 900,000
WooCommerce PayPal Payments
Rating 2.6/5 (504 reviews)Active installs 800,000
WooCommerce Stripe Payment Gateway
Rating 3.0/5 (218 reviews)Active installs 700,000
WooCommerce Tax (formerly WooCommerce Shipping & Tax)
Rating 2.0/5 (104 reviews)Active installs 600,000

Description

This little WooCommerce plugin shows last purchased date on single product page. It shows last purchase date made by anyone, not just current user. If current product has no sales yet, popup will not appear.

Why would I show this to my customers?

From my experience, showing last purchased date can increase conversion rate. This trick is using by Allegro (www.allegro.pl), biggest auction and sales website in Poland.

Basic usage

Just install plugin and you are ready to go.

Using just date in your theme (and hide popup if needed)

So you want to get last purchased date somewhere in your theme files? No problem.

First way: using WooCommerce hooks

In you function.php file paste below code.

function show_last_purchased_date(){

    if ( WLP()->last_purchased_date() ){
        echo '
' . WLP()->last_purchased_text() . ': ' . WLP()->last_purchased_date() . '
'; } } add_action('woocommerce_product_meta_end', 'show_last_purchased_date');

For more information about WooCommerce hooks, please visit WooCommerce documentation.

Second way: override WooCommerce template

You can achieve exact same result by overriding WooCommerce templates.

You will need to override one of WooCommerce templates. In this case we will put this information right after Add to cart button and SKU.

For more information about this, please visit WooCommerce documentation.

  1. Go to your woocommerce plugin directory.
  2. Go to templates directory.
  3. Go to single-product.
  4. Copy meta.php file to ‘your_theme_directory/woocommerce/single-product/’.
  5. If you don’t have such directory, create it.
  6. Now add below code just before

    last_purchased_date() ): ?>

    last_purchased_text(); ?>: last_purchased_date(); ?>

Don’t show popup

In your functions.php:

function hide_wlp_popup(){

    WLP()->hide_popup = true;

}
add_action('before_wlp_init', 'hide_wlp_popup');

Styling

You can override popup styles. Just place your rules in your theme style.css file. Couple examples below.

Display popup in bottom left corner instead of bottom right

.wlp-popup{

    left: 15px;
    right: auto;
    margin-right: 15px;

}

Change background and text color

.wlp-popup{

    background: rgba(98,233,219,0.9);
    color:#0b413b;

}

Remove rounded corners, non-transparent background, no X button

.wlp-popup{

    background: #76234c;
    border-radius: 0;

}

.wlp-popup-close{

    display:none;

}

Version history

1.0.1 – Popup not appearing bug fixed
1.0 – Initial version

Translations

This plugin is translation ready. You can help by translating this plugin into your language. All languages are stored in languages directory.

`Time ago` text translation.

This plugin uses timeago.js jQuery plugin. This plugin is also ready for translations. You can find all available languages here. If your language is not available in timeago.js plugin, you will need to create such translation as well.

TODO List

This plugin is free, and I have got limited time. However I will try to implement following features in near future:

  • Add options to WordPress admin area:
    • show/hide close button,
    • popup appear settings,
    • custom css field,
  • Ability to override popup html to your own.

License

This plugin is released under GPLv2 license. This plugins is free to use both in personal and commercial usage. It’s distributed “as is”, and no support from the author is provided.

Special thanks

Special thanks to Ryan McGeary (http://ryan.mcgeary.org), author of timeago.js, jQuery plugin used in this little project.

Installation

From WordPress dashboard

  1. Log in to you WordPress dashboard.
  2. Navigate to plugins page and to “Add new” next.
  3. Type “WooCommerce Last Purchased” in search field.
  4. Install and activate plugin.

Manually place plugin files in your plugins directory

  1. Download and unzip plugin files.
  2. Copy plugin folder (woocommerce-last-purchased) to your WordPress installation plugins directory (/wp-content/plugins/).
  3. Go to you WordPress panel, to plugins page.
  4. Activate plugin.

Install plugin from your WordPress dashboard

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

No changelog available