ClassicPress – Get Simple Auctions, Lottery and Group Buy running on lightweight WordPress fork

ClassicPress Get Simple Auctions, Lottery and Group Buy running on lightweight WordPress fork

ClassicPress is WordPress long awaited fork of WordPress 4.9 (from version 2.0 fork of WP 6.2.x) without Gutenberg block editor, basically a lighter fork of WordPress with a few tweaks and improvements. It is under active development, has less bloat and has latest security patches. You will love overall simplicity and speed.

Most popular themes and plugins that work with WordPress 6.x are compatible with ClassicPress and there are forks of WooCommerce called ClassicCommerce and RankMath called Classic SEO (for more infos see link here).

Update: ClassicPress v2.0+ is a re-fork based on WordPress 6.2.x so brings ClassicPress a host of new features. Release notes are here. There is also https://directory.classicpress.net/ for native plugins and themes.

WooCommerce Simple Auctions running on ClassicPress v2.2.0 – https://wpgenie.org/classicpress-wsa/ – here is how we have setup it https://wpgenie.org/classicpress-wsa/setup/

Setting up prerequisites in ClassicPress

First thing to do when installing one of our plugins on ClassicPress is to decide what version of WooCommerce you will use. ClassicCommerce is fork based on WooCommerce v3.5.3 and usually needs tiny compatibility plugin (get it here) which allows WooCommerce addons to work with ClassicCommerce. We used StoreFront theme.

classicpress-plugins-list
Plugin list in ClassicPress

Another option is regular WooCommerce installation but version that does not include (register) blocks for Gutenberg like WooCommerce v4.8.3 – scroll to the bottom and download version you want from wordpress.net/plugins repository. Once WooCommerce is ready you can install our plugins like you would on normal WordPress website.

Payment gateways tested in ClassicPress

Payment gateway we tested beside those that are preinstalled with WooCommerce is WooCommerce Stripe Gateway version 5.3.0 since that is the latest one that works fine with WooCommerce v4.8.2. Here is sample order done using test card with Stripe GW:

classicpress stripe order using test card plugin woocommerce stripe payment

Using our plugins on ClassicPress

There is no difference in how you use and work with plugins. Everything from documentation applies here. Install it, setup couple of products, make couple of orders and that’s it. Once deal, auction or lottery ends you and users will get notifications (if that is set), normal workflow is not affected in any way.

WooCommerce Lottery with Pick Number Mod addon
WooCommerce Lottery with Pick Number Mod addon

Here is screenshot of how auction product looks like:

ClassicPress with WooCommerce Simple Auction auction single product page

And screenshot with WooCommerce Group Buy / Deals product:

classicpress group buy deal product
Group Buy / Deal single product page

In this simple guide we have shown how you can use our plugin on ClassicPress setup and enjoy its superb performance. Easy on hosting and great for your visitor’s user experience.

Privilege Escalation Vulnerability in WCFM

Wordfence team reported a Privilege Escalation via Account Takeover vulnerability in WCFM โ€“ WooCommerce Frontend Manager, a WordPress plugin with more than 20k installations. Some of those sites are also our clients using our Auction, Group Buy and Lottery plugins so we urge them (and all other using the plugin) to update WCFM to the latest version.

This vulnerability makes it possible for an authenticated attacker to change the email of any user, including an administrator, which allows them to reset the password and take over the account and website. Full article is here and tech details are here.

Coming Soon Mode is available starting in WooCommerce 9.1

WooCommerce introduced option to set store “Coming Soon” mode so no need to have additional “manintenance mode” or “coming soon” plugins. You can switch that option from WooCommerce Settings. From version 9.3.1 there is also small icon in wp-admin upper left corner showing whether site is live or in coming soon.

New shortcode in WooCommerce Simple Auctions for any WordPress visual builder

We listened to our clients and introduced this handy feature. From WooCommerce Simple Auctions version 3.0 we have introduced special shortcode which display template parts for single auction page.

Shortcode example is below:

[wsa_templates template="countdown"]

This is useful for any visual builder like Avada Builder, WP Bakery Visual Composer, Beaver Builder, Divi Builder, Oxygen Builder, Themify Builder, SeedProd, Gutenberg, etc. You can do usual styling using your visual builder and just place shortcode with part you need (bid input, countdown timer, auction details, etc).

Available shortcode attributes (template parts) are:

add-to-cart
countdown
pay
bid-form
condition
dates
max-bid
reserve
auction-sealed
ajax-conteiner-start
ajax-conteiner-end

Keep on your mind that most builders require WooCommerce addon / integration in order to build WooCommerce pages like shop or single product page. As always we recommend you to check documentation for visual builder of your choice and see how it works and integrates with WooCommerce.

We have also FAQ entry covering this shortcode, see FAQ item no 68.

Bid Input Form Fixes for Some Themes

We have noticed that some themes are changing default quantity input field and controls from default WooCommerce one. That can cause misaligment of those fields and fixes are needed for such cases. Here are ready made fixes in form of code snippets or copy paste CSS for those who experienced described problems:

https://pastebin.com/fyQWyBJTย  – fix for Shoptimizer theme
https://pastebin.com/fZFgWacPย – fix for Enfold theme
https://pastebin.com/xhsegr4qย  – fix for Woodmart theme
https://pastebin.com/3pudwH3eย – fix for Avada theme
https://pastebin.com/M6fFue3Eย – fix for Salient theme
https://pastebin.com/X2c41izdย – fix for XStore theme

CSS code should be copy pasted in Appereance > Customize > Custom CSS.

Code snippets and how to use them
https://wpgenie.org/tutorials-category/code-snippets-and-template-customizations-using-child-theme
(you will need account onย wpgenie.orgย for this tutorial). You can also always contact us via support to help you with this issue.

New shortcodes in WooCommerce Lottery Pick Number Mod addon for WooComerce Lottery

There are two new shortcodes available for displaying instant wins and instant winners in WooCommerce Lottery Pick Number. We have implemented after some inquires from clients using WooCommerce Lottery and Pick Number Mod addon. Shortcodes are available if you have active Pick Number Mod addon (version 2.4.7 and higher).

Shortcode that displays all instant wins with pagination and ordering:

[lottery_all_instant_wins paginate="true" limit="5" orderby="title"]

Shortcode that displays all instant winners with pagination:

[lottery_all_instant_winners limit="5"]

WooCommerce Lottery Pick Number and how to avoid on hold for orders and duplicate numbers in orders

In pick number it is possible to have two users selecting same number unless things are properly set up. How that could happen? For example one user selects number and does not pay for order right away but later on whole order is still created and available for payment / checkou. In meantime other user purchased that number in other client’s order. If 1st user tries to make payment order will go on hold due to duplicate ticket. This is normal behaviour of plugin.

How can site owner prevent this situtation?

  1. Lottery Pick Number comes with ticket reservation setting, it is located in Woo Settings > Lottery
  2. sensible value for reservation is 5 minutes, this means tickets will be unable for selection to others for 5 mins after user adds it to cart
  3. now we need to define time in which order will be cancelled if not paid, this is done via setting called “Hold Stock”, in Woo Settings > Products > Inventory tab, you need to set hold stock to 1 minute less than reservation time, so set it to 4 mins

This way we allowed each user 4 minutes to complete payment and finalize order, 1 minute later ticket will be freed if order was not completed. Settings explained here apply both to randomly assigned number and manual ticket number picking.

If you have some questions please open ticket here.

WooCommerce Simple Auctions v3.0 bidder verification and auto charge for won auctions

We have released new update for WooCommerce Simple Auctions v3.0 with two new features you asked for: allow bids if user has stored credit card and auto charge for won auctions if user has stored credit card. These new features work with WooCommerce Stripe Payment gateway.

First one allows users which have valid payment option saved (credit card) to place bids. This way you can verify user’s payment method.

Second feature allows to automatically charge saved card in case user has won auction. Order is automatically created and saved credit card is charged.

New settings in WooCommerce Settings > Auctions tab.
WooCommerce Stripe Payment Gateway setting that needs to be enabled for these new features.
Screenshot of user’s My Account page > Payment methods with saved credit card. Credit cards are saved on Stripe not on your website so no worries about PCI compliance.

New version is published on CodeCanyon. If you have questions feel free to open support ticket.

WooCommerce 8.5.0 triggering mod_security rule and causing 403 error

Recently we have came accross issue with WooCommerce versions 8.5.0 and higher which has enabled feature “Order Attribution (Order Attribution Enable this feature to track and credit channels and campaigns that contribute to orders on your site)”.

Issue is that this feature triggers ModSecurity Comodo rule ID 218500 (SQLmap attack detected). Triggering that rule prevents access to site for all users and could potentially ban user’s IP via firewall.

You might want to disable this option or skip the rule (can be done usually in your control panel or you need to contact hosting support).

FAQ for WooCommerce Group Buy and Deals

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, for example WP Super Cache and W3TC is working but we advise no caching for logged in users. If page cache is enabled some widgets will not work – like recently viewed deals. Once user is logged in and there is no caching anymore all widgets will be updated in real time. You can use CDN and browser caching. Our plugin demo website uses WP Super Cache with page and browser caching. All of our plugins have same requirements for caching as WooCommerce – check it here https://developer.woo.com/docs/how-to-configure-caching-plugins-for-woocommerce/
  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 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
  28. List of Group Buy custom product metafields:
    _groupbuy_dates_from
    _groupbuy_dates_to
    _groupbuy_participants_count
    _groupbuy_regular_price
    _groupbuy_max_deals_per_user
    _groupbuy_min_deals
    _groupbuy_max_deals
    _groupbuy_relisted
    _groupbuy_closed
    _groupbuy_started
    _groupbuy_has_started
    _groupbuy_fail_reason
    _groupbuy_participant_id
    _groupbuy_participants_count
    _groupbuy_order_hold_on
    
  29. List of Group Buy hooks / actions:
    woocommerce_product_options_groupbuy
    woocommerce_groupbuy_do_relist
    wc_groupbuy_participate
    wc_groupbuy_cancel_participation
    woocommerce_refund_processed
    woocommerce_order_partially_refunded
    woocommerce_order_fully_refunded
    woocommerce_order_refunded
    woocommerce_groupbuy_do_extend
    woocommerce_groupbuy_started
    wc_groupbuy_close
    wc_groupbuy_fail
    wc_groupbuy_min_fail
    wc_groupbuy_won
    before_groupbuy_cron
    after_groupbuy_cron
    pre_get_groupbuy_search_form
    woocommerce_groupbuy_before_participate
    woocommerce_groupbuy_ajax_change_participate
    woocommerce_groupbuy_participate_future
    
  30. List of Group Buy filters:
    
    woocommerce__groupbuy_history_data
    woocommerce_groupbuy_history_heading
    groupbuy_history_started_text
    groupbuy_history_starting_text
    woocommerce_order_fully_refunded_status
    default_groupbuy_orderby_options
    default_groupbuy_orderby
    wc_groupbuy_sale_flash
    time_text
    get_groupbuy_search_form
    woocommerce_groupbuy_badge