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.
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.
Just install plugin and you are ready to go.
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 '<div class="last-purchased-date">' . WLP()->last_purchased_text() . ': ' . WLP()->last_purchased_date() . '</div>'; } } 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.
Now add below code just before <?php do_action( 'woocommerce_product_meta_end' ); ?>
last_purchased_date() ): ?>
<div class="last-purchased-date"> <?php echo WLP()->last_purchased_text(); ?>: <?php echo WLP()->last_purchased_date(); ?> </div>
Don’t show popup
In your functions.php:
function hide_wlp_popup(){ WLP()->hide_popup = true; } add_action('before_wlp_init', 'hide_wlp_popup');
You can override popup styles. Just place your rules in your theme style.css file. Couple examples below.
.wlp-popup{ left: 15px; right: auto; margin-right: 15px; }
.wlp-popup{ background: rgba(98,233,219,0.9); color:#0b413b; }
.wlp-popup{ background: #76234c; border-radius: 0; } .wlp-popup-close{ display:none; }
1.0.1 – Popup not appearing bug fixed
1.0 – Initial version
This plugin is translation ready. You can help by translating this plugin into your language. All languages are stored in languages directory.
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.
This plugin is free, and I have got limited time. However I will try to implement following features in near future:
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 to Ryan McGeary (http://ryan.mcgeary.org), author of timeago.js, jQuery plugin used in this little project.
Starting from $0 per month.
Rating
Reviewers
1 reviews
Tags
Developed By
Dawid Urbanski
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Unlock the Power of Countdown for Downloads
Showcase Bluesky Posts in a Dynamic and Engaging Slider
Enhance Global Shopping Experience with Currency Converter
Improve Navigation, Enhance User Experience & Increase Engagement
Enhance Your Website Visually & Draw Attention to Stunning Card Carousel
Bring TikTok's Dynamism to Your Website with Engaging Slides
Easily Gather and Organize Event RSVPs and Registrations
Boost Your Website with Interactive Polls
Increase Engagement & Improve the Promotion of Your Content
Display Bluesky Posts in a Stylish and Interactive Carousel
Create Interactive, Customizable Maps for Engaging Data Visualization
Increase Sales by Displaying Discounts & Converting Customers
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!