WooCommerce Group Buy and Deals

Last updated: 13th Dec 2022.

Thank you for purchasing our plugin. If you have any questions that are beyond the scope of this help file, please feel free to email via contact form here. Have fun!

Change Log

Warning:

Always backup WordPress database and files before updating to latest version, just in case!

Note:

If you override default and use custom templates in your_theme/woocommerce/ you need to make sure that templates are updated with those in plugin_dir/templates/ - otherwise some new features might not show up on the site.

** Version 1.1.26 **
- Fix: language fixes

** Version 1.1.25 **
- Fix: tax and price display
	
** Version 1.1.24 **
- Fix: cart quantity issues
	
** Version 1.1.23 **
- Fix: decimal separator in wp-admin
	
** Version 1.1.22 **
- Fix: lost password redirect
- Fix: checkout redirect
- Fix: meta cache potential problem
- Fix: [groupbuys] shortcode
- Fix: code cleanup
- Fix: updated POT file	
	
** Version 1.1.21 **
- Fix: updated POT file
- Fix: fatal error method_exists
- Add: fully tested with PHP8 and WooCommerce 5.0

** Version 1.1.20 **
- Fix: tax classes

** Version 1.1.19 **
- Fix: WPML shortcode and widgets bug

** Version 1.1.18 **
- Add: quantity selector now reflects max deals per user limit
- Fix: fatal error when relisting
- Fix: required fields when publishing group buy / deal
- Fix: shortcode [my_groupbuys] not showing past groupbuys
- Fix: php error
- Add: do not mix deals with regular products disabled by default

** Version 1.1.17 **
- Fix: Better refund handling for failed group buy deals
- Add: New order status for deals "Group buy in progress" and "Group buy failed"

** Version 1.1.16 **
- Fix: Updating product lookup table
- Fix: Removed update function
- Add: Added WPMU support
	
** Version 1.1.15 **
- Fix: Automatic partial refund
- Fix: fixed POT file
	
** Version 1.1.14 **
- Fix: downloadable product available for download only if deal is success

** Version 1.1.13 **
- Fix: mail notifications for succeeded deal

** Version 1.1.12 **
- Fix: Removing groupbuy from users my groupbuy list when deleting log in admin
- Fix: Bug when doing automatic refund on PHP v7.2
- Fix: Notice

** Version 1.1.11 **
- Fix: my_groupbuys shortcode problem with relisted groupbuys
- Fix: Refund notice for payment that does not support automatic refund

** Version 1.1.10 **
- Fix: Replaced woocommerce_get_page_id with wc_get_page_id
- Fix: Refund ajax working style
- Add: Redirection to previous page after login
- Fix: Fixed deprecated function

** Version 1.1.9 **
- Fix: Illegal string offset 'product_id'
- Fix: Replaced woocommerce_get_page_id with wc_get_page_id
- Fix: Changed name of jquery countdown plugin for compability issue

** Version 1.1.8 **
- Add: Last second order waits for "Hold Stock (minutes)" until order is marked as cancelled / failed due to delay caused by payment process
- Fix: Changed name of jquery countdown plugin for compability issue

** Version 1.1.7 **
- Add: Limit ticket by group buy in the quantity selector
- Add: Compact countdown option
- Fix: Changed admin dashboard widget
- Fix: Php notice in backend WooCommerce email settings

** Version 1.1.6 **
- Fix: stock status not changing when relisting
- Fix: featured_groupbuys shortcode bug
- Fix: future group buy not showing once it starts
- Fix: bugs in admin backend filter product on PHP v7.1.x

** Version 1.1.5 **
- Fix: Bug not creating log table on activation

** Version 1.1.4 **
- Fix: Featured groupbuys shortcode bug
- Fix: Groupbuys shortcode bug

** Version 1.1.3 **
- Fix: Featured widget bug
- Fix: Check for minimal PHP and WordPress versions to avoid fatal errors on activating plugin in unsupported environment

** Version 1.1.2 **
- Fix: Progres bar no-min class on single page
- Fix: Progres bar value 0 bug

** Version 1.1.1 **
- Fix: Query problems with WC 3.0.0
- Fix: WPML bug when using secondary language without main language

** Version 1.1 **
- Fix: WooCommerce > 3.0 compatibility
- Fix: Delete entry when order is cancelled
- Fix: Multiple failed emails to same user
+ Add: manual group buy relist feature
+ Add: Added [vendor] tag for sending mail to group buy author/vendor on group_buy_fail, group_buy_finished - useful with
multivendor plugins like WC Vendors or if you want to send email to group buy author or owner in case of multivendor site

** Version 1.0.3 **
- Fix: fatal error bug in loop template

** Version 1.0.2 **
- Fix: JS bug in frontend

** Version 1.0.1 **
- Fix: Bug with text domain

** Version 1.0.0 **
- Initial release

Overview and Features

WooCommerce Group Buy

WooCommerce Group Buy is a extension for popular WooCommerce plugin and extends it with group buy / deals feature. This extension allows you to implement powerful group buy solution like Groupon. Woocommerce Group Buy is easily setup and customized, and you need basic Woocommerce and web developing knowledge.

With WooCommerce Group Buy plugin you can setup WordPress deals (group buy) website in less than 30 minutes (assuming you have payment processor allready sorted). WooCommerce Group Buy plugin integrates seamlessly with WooCommerce and no special knowledge is needed (same level like for standard WooCommerce usage).

Overview and Features

  • Seamless integration into WooCommerce via its hooks
  • You get new type of WooCommerce product type - Groupbuy
  • Define number of group buy participants - 1 or more
  • Buyers / users can purchase one or more deals
  • Ability to refund purchase if deal failed (payment processor has to support this feature!)
  • Ability to instantly finish group buy deal if max number of deals was sold
  • Define minimal and maximum number of deals available
  • Define max deals per user
  • Set start and end time for group buy deal
  • Easily control how you want to display deals - along with other items or on separate page
  • Widgets with ending soon, future, latest / recent, featured, recently viewed, deals search and random deals
  • Email notifications (with editable email templates) for group buy win, fail, finish, no luck (fail notification for deal participant)
  • Group buy product has group buy icon (label) on thumbnail
  • Group buy product single page has new tab "Group Buy History"
  • User has "My deals" page where one can see active deals and purchased deals - page with shortcode [my_groupbuys]
  • Group buy filtering in product list (wp-admin)
  • Group buy product has icon which describes different group buy status: active, finished, failed (wp-admin)
  • Plenty of shortcodes including shortcode to show my deals for logged in user
  • Make group buy from any type of Woocommerce product - simple, virtual or downloadable products
  • Manually delete any participant via Woocommerce order management - deleting order deletes ticket
  • WPML compatible
  • works with WooCommerce API - read tutorial
  • Dokan integration available

Installation

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

Note:

Make sure to install WooCommerce before you activate Group Buy / Deals plugin.

You can install plugin via WordPress "Add New" plugin - to do that download "Installable WordPress files only", click add new and that's it. In case you do not have permissions to upload to plugins/ directory you will need FTP login info.

screenshot

Alternative setup. After downloading WooCommerce Group Buy 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). Make sure to enable inventory management in WooCommerce!

WooCommerce Group Buy plugin uses cronjobs and you have to setup one cronjob:

  • every minute: /usr/local/bin/curl --silent http://www.your-domain.com/?groupbuy-cron=check

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

screenshot

More details about cronjobs can be found by googling "how to add cronjob in cPanel / DirectAdmin". 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 (purpose of hosting support are tasks like helping you with cronjobs, our support helps you with plugin issues - cronjobs are hosting related task / issue).

Why do we use and suggest real server cronjobs? Plugin will work with WP cron but disadvantage of WP Cron is that it will trigger only when someone visits your website, if there is no site activity for say 3 days, the cron will not be triggered for 3 days but next time you have visit on your website. Real server cronjobs do not depend on website activity and are run in fixed defined intervals as set in cronjob config.

Note:

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. We cannot use WordPress cronjobs because they are not reliable and depend on visitor accessing your website. In order to have reliable way to end and finish group buy / deal you need real cronjob.

Our plugin is meant to be used as ecommerce solution which will / should earn money so we suggest you to invest in proper hosting (which at least supports one minute cronjobs).

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 Sample data does not include group buy products, it provides data to populate Woocommerce store with some demo products, ratings, comments, etc. 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 Group Buy Setup

Setting up new group buy 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 dropdown menu select Groupbuy
  • you will see new tab in left menu named Group Buy, see screenshot:
    screenshot
  • fill all details (they are self explainable)
  • set group buy duration by setting start and end date
  • publish product (group buy deal)

In Woocommerce Settings -> Group Buy you can set group buy base page where your client will have a list of all group buy deals. Please see note if you want to set your group buy page as home page. If you have group buy only website there is no need to setup group buy base page, you can use Woocommerce shop page.

Note:

Make sure that when setting up group buy site your group buy base page is different than your home page. If you need deals on home page use shortcodes or widgets to display them on your home page.

Changes in WooCommerce

After you activate WooCommerce Group Buy plugin couple new options will appear:

  1. WooCommerce product has new tab in Product data block called Groupbuy
  2. Product list has column with group buy status icons
  3. Product list filter has group buy filtering
  4. Single product page in wp-admin has new block named "group buy" where you can see group buy history
  5. Orders list has column with group buy icon to easily see which order is from group buy
  6. WooCommerce settings - new tab called group buy
  7. WooCommerce settings - Emails - new items: group buy win, group buy fail, group buy finish, group buy no luck email templates
  8. New widgets: future deals, ending soon deals, featured deals, latest deals, recently viewed deals, random deals
  9. New shortcodes

New WooCommerce product type group buy:

screenshot

Plugin Options

Here are settings that you can turn on and off. Settings are self explainable. You can enable or disable showing past and future deals. Another useful setting is whether to mix regular products with deals or just show deals on separate page (defined via deals Base Page dropdown, see screenshot).

screenshot

On screenshot below you can see how product list with deals looks like. Group buy status icon colors: green - active group buy, orange - finished, red - failed.

screenshot

If group buy has failed, in product / group buy details you will see "Refund" link which enables you to refund all tickets to participants if your group buy rules require that. Make sure that you did not convert regular product to group buy because you will refund all regular purchases in that case! We strongly suggest against converting regular product with orders to group buy!

screenshot

Once group buy deal is finished you can view buyers on single group buy page or in wp-admin edit product page. Below are screenshots. You can create my deals page for users where you can use this shortcode: show user's deals (active deals in which user participates and list of user's won deals) - [my_groupbuys]

Note:

If you leave option "max deals per user" unregistered / guest users will be able to purchase deal(s).

Email Notifications and Templates

Plugin comes with 4 email notifications, 2 for admin and 2 for users. In fact there are 2 different email notifications - deal failed and deal succeeded. You can edit those by going to Woocommerce Settings -> Email tab.

screenshot

On screenshot below you can see all available options for WooCommerce Group Buy Deals. To edit settings you need to click in your WordPress wp-admin on WooCommerce Settings then find Group Buy Deals tab.

screenshot

Shortcodes

Here is a list of all available plugin shortcodes. Some shortcodes accept optional orderby and order attributes.

  • show featured deals - [featured_groupbuys per_page="12" columns="4" orderby="date" order="desc"]
  • show ending soon deals - [ending_soon_groupbuys per_page="12" columns="4" order="desc"]
  • show recent deals - [recent_groupbuys per_page="12" columns="4" orderby="date" order="desc"]
  • show future deals - [future_groupbuys], [future_groupbuys per_page="12" columns="4" orderby="date" order="desc"]
  • show popular deals - [popular_groupbuys], [popular_groupbuys per_page="12" columns="4" orderby="date" order="desc"]
  • show user's deals (active deals in which user purchased and list of user's won deals) - [my_groupbuys]
  • show multiple deals - [groupbuys], [groupbuys per_page="12" columns="4" orderby="date" order="desc" skus="sku1,sku2,sku3" ids="1,2,3"]

Note:

Please note that there is no paging when you use shortcodes (same as with WooCommerce shortcodes). Per page attribute means how many items will be displayed on that particular page without paging!

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. Is user registration necessary? - No, if you skip entering "max deals per user" option. If you need that option then user registration is needed because we do not have reliable way to track number of deals per user.
  2. I want to instantly finish group buy deal. How can I do that? - You need to change end date timestamp to current time and group buy deal will be instantly finished.
  3. Can users create their own deals? - Basically yes, only users who can add new products can create deals. You can use multiple vendor plugin which will allow you to add users who will be able to create products (deals). You can use WooCommerce Product Vendors (there is no frontend submission for group buy / deals).
  4. Do you use cronjobs? Why do we use cronjobs? - Yes. Please check installation instructions. WordPress cronjob is run on every visit (page load), it's fine for small and not so busy websites. But sometimes you do not have enough hits (visitors) and group buy will be finished when visitor loads page (and cronjob) instead on its end timestamp. That's why we use real cronjobs - to make sure your group buy / deal will end on time. Also on busy websites you need to turn off WordPress cron and create cronjob for it to avoid cron being loaded on every hit and generating performance penalty.
  5. Where can I edit email templates? - Go to WooCommerce > Settings and click on Emails tab.
  6. Does this plugin work with caching plugins? - Yes, W3TC is working but we advise no caching for logged in users. For example if page cache is enabled widget will not work - recently viewed deals. Once user is logged in and there is no caching anymore all widgets will work. You can use CDN and browser caching. Our plugin demo website uses W3TC with page and object caching, browser caching and generic CDN mirroring. All of our plugins have same requirements for caching as WooCommerce - check it here https://docs.woocommerce.com/document/configuring-caching-plugins
  7. Can I make theme with WooCommerce Group Buy and sell it on ThemeForest? - Sure, just purchase extended licence and you're good to go. Since the current licenses do not deal with re-selling Items, Envato lets authors to decide whether they grant permission for bundling Items or not. We have the following conditions, and you need to follow them:
    • You cannot redistribute the item "as-is", even if you modify it or you make a derivative version for another platform
    • You cannot offer the plugin as a stand-alone item
    • You cannot include the plugin separately from your theme in the download package
    • You cannot provide an Item Purchase Code for your customers - Since Envato doesn't have a "multi-use" or transferable license, your customers are not entitled to receive an Item Purchase Code with your theme and use the plugin separately from your work.
    • Updating the plugin is your own responsibility
    • Since your customers cannot receive updates from us, you need to handle this on your own
    • You need to handle related support requests after your customers or you can instruct them to buy regular licence and ask us for support directly via our CodeCanyon profile (we cannot provide free support for your customers)
  8. I can't do anything because I get "out of stock message"? - group buy plugin needs inventory / stock to be enabled. If you have problems all issues should be fixed by upgrading to WooCommerce Group Buy v1.1.6
  9. How can I update plugin with new version? Is auto updating possible? - We suggest you to install Envato Marketplace (installation instructions can be found on plugin's url) plugin for auto update plugin and themes purchased on Envato. Setup is easy. Manual updating can be done by downloading new version of plugin and overwrite old files with new ones or deleting old plugin and installing new one.

    Note:

    If you have modified plugin files (templates) then you need to be careful when updating so you don't overwrite changes you made and that templates are inside child theme or theme woocommerce/ template folder.

  10. Does WooCommerce Group Buy work with WordPress import / export tools? - Yes, you can export and import deals with standard WordPress import / export tools that are located in Admin -> Tools menu.
  11. How can I enable user registration on login page? - You need to enable that feature in Woocommerce settings.
  12. 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/groupby-for-woocommerce/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 the problem)

    - send you CSS or HTML code for modifying html elements

  13. Can users buy deals without signup / register first? - Yes, guest checkout is possible if you do not set "max deals per user" option. Otherwise (if you set it) it is impossible to have users purchase deals before they're logged in because we can not count consistently their previously purchased deals only those in cart can be counted and we cannot check "max deals per user".
  14. 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.
  15. 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. Here are steps which can help you to traslate plugin or change some strings yourself:

    • you will use file plugins/groupby-for-woocommerce/languages/wc_groupbuy.pot to create your translation
    • you need to download and install Poedit https://poedit.net/download
    • download wc_groupbuy.pot and open it with Poedit
    • do your translations with Poedit
    • when done save wc_groupbuy-en_GB.po, saving wc_groupbuy-en_GB.po will create wc_groupbuy-en_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 wc_groupbuy-en_GB.po suffix en_GB must match your language settings in WordPress, otherwise language will not be loaded. So for example you can have wc_groupbuy-en_AU.mo, wc_groupbuy-af.mo or wc_groupbuy-en_CA.mo, complete list of available suffixes are here https://make.wordpress.org/polyglots/teams/

  16. Order has been canceled but I still see same deals sold and status bar does not go back to previous or zero value. What should I do? This happens only if order was completed and then cancelled. In that case purchases have been logged and you need to go to edit product -> groupbuy History block and manually delete entries that have been cancelled.
  17. How I know that group buy / deal was success or fail? What to do when group buy deal is finished? Administrator should receive email notification in both cases. In wp-admin -> WooCommerce product list you will have icon depicting (in recent versions of WooCommerce you will need to use plugin called WooCommerce Product Type Column) active or finished group buy deal. Once group buy has finished go to that particular product (edit product) and find groupbuy history block where you will be able to see groupbuy history (purchases) and order number for each group buy purchase. If group buy has failed you will be able to refund money (if supported by your payment provider). Some screenshots are here. If you created group buy product from simple product make sure to be extra careful since refund feature will refund regular product orders too. We strongly suggest against converting regular product with orders to group buy!
  18. Does WooCommerce Group Buy and Deals work with your WooCommerce Simple Bulk Discount plugin? Yes, it works fine in combination with WooCommerce Simple Bulk Discount plugin.
  19. How can I add countdown timer / counter on all pages not only on single product page? There is setting for that - click "WooCommerce Settings" then "Group Buy Settings" tab and find option called "Group Buy deals time countdown". Enable / disable it. You can use this code https://pastebin.com/ifa8vZvh (obsolete)
  20. I do not see group buy progress bar despite enabling it on single product page? End value on progress bar is missing? This happens when you don't enter max number of deals. Just enter same number as min number if it is not different than minimal number of deals and that will sort these issues.
  21. Does Group Buy & Deals support product variations? No, variations are not supported. However if you want to have deal where you can choose color or other attribute you can use https://woocommerce.com/products/product-add-ons/
  22. Refund feature does not work? How can I tell if my payment gateway supports refunds? If you got this error: "Payment does not support refund" your gateway just does not implement refund feature. Here is link for more infos about how to check if gateway supports refund feature. Keep on your mind that for issuing refund you need to click on refund button in product details, there are not automatic refunds.
  23. I want to export order(s) data. How can I do that? - There are plugins that allow exporting of various order data as CSV file which you can then import to some other software you use for order management. We can suggest you to use WooCommerce Customer / Order CSV Export or Advanced Order Export For WooCommerce. These plugins work with custom product types which are used in this plugin.
  24. Do you recommend any credit / wallet plugin for WooCommerce that works with this plugin? - Yes, you can use TeraWallet plugin which adds new credit payment gateway and works with our plugin just fine. Users or admins can top up wallet credit balance with regular payment gateways or manually.
  25. Product type column vanished in WooCommerce product list, how can I get it back? - From WooCommerce 3.4.0 update, WooCommerce developers removed that column in product list (as a result of users' feedback). There is way to restore it back using this plugin https://wordpress.org/plugins/woocommerce-product-type-column/
  26. I have manually refunded order but stock (progress bar) does not reflect this change? - When doing manual order refund please mark order as cancelled after refund. That will get group buy stock back.
  27. How can I add "Add to Cart" button for group buy / deals on shop page (product archive page)? - You can use this code snippet in your child theme's functions.php file https://pastebin.com/XRF49HjV

WooCommerce Group Buy and Deals

wpgenie plugin

Love this plugin?

This plugin is created by wpgenie. Check out our Envato profile where you can support us by purchasing our plugins, give us feedback and post your ideas and feature requests, ask for support and rate our items. 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.