MainWP Blog

Tips & Tricks
Sebastian Moran

How to easily add ACF fields to the Registration Form in WooCommerce

WooCommerce is a well-used e-commerce plugin for WordPress. You may find yourself in the position of needing to easily add additional fields to the registration form on My Account on one of your child sites. Luckily, there is an easy way to add additional fields using Advanced Custom Fields. First, you will need to install and activate the ACF plugin on your child site. Next, you will need to create a group of the fields you want to display on the WooCommerce registration form. Look for the admin menu called as follows; Field Groups Then click on Add New. You

Why not to use the WooCommerce Customer History Plugin
Tips & Tricks
Sebastian Moran

Why not to use the WooCommerce Customer History Plugin

WooCommerce is a solid, easy-to-use plugin for adding e-commerce to an existing WordPress site. Since WooCommerce is running in WordPress, it means there are many plugin options out there. One useful plugin is WooCommerce Customer History. The plugin will track how customers browse the site, which would allow you to see the products customers are browsing. But when used on a site, the plugin will add a slow admin-ajax.php POST request on every page, which will add a delay of 300-500ms on every post, page, and product on the site. Tracking analytics in a site’s database is never a good

Do Not Use the WooCommerce Admin Plugin
Tips & Tricks
Sebastian Moran

Do Not Use the WooCommerce Admin Plugin on Your Child Site

WooCommerce Admin is a feature plugin for WooCommerce, which uses React and the Gutenberg block editor to improve certain lacking core features, such as reporting and analytics in WooCommerce. Reporting in WooCommerce can be slow, as well as being MySQL resource heavy if you have high order levels on the site, whilst the WooCommerce Admin is a step in the right direction. Though the WooCommerce Admin has been in development for a number of months, the feature plugin is still a beta plugin, and still not suitable for use on a live site. In the most recent release of WooCommerce,

Useful Code Snippets for WooCommerce
Tips & Tricks
Sebastian Moran

Useful Code Snippets for WooCommerce

WooCommerce is among the most widely used plugins in WordPress to enable eCommerce on a site. Since WooCommerce has filters, actions, and hooks, that means making site changes using code snippets is easy. Code snippets can easily be added on any connected child site using the MainWP Code Snippets extension. For example, if you do not have Add to Cart redirect enabled, the Continue Shopping link will redirect the customer back to the product that was added when clicked. In most cases, this does not make sense. You can use this code snippet, which will set the Continue Shopping link

New WooCommerce Plugins for Your Store
Tips & Tricks
Sebastian Moran

New WooCommerce Plugins for Your Store

WooCommerce allows customers to leave reviews on products, but the method used for storing those reviews is still comments, so those product reviews are stored in the comments and commentmeta database tables. There is a recent plugin which fixes product reviews, by sending reminder emails using the Action Scheduler, storing product views in their custom database tables. The plugin is called Better Reviews for WooCommerce. Created custom database tables; wp_woocommerce_better_reviews_attributes wp_woocommerce_better_reviews_authormeta wp_woocommerce_better_reviews_charstcs wp_woocommerce_better_reviews_content wp_woocommerce_better_reviews_ratings When the plugin is installed, it adds a reviews admin menu tab. Reviews > Reviews Reviews > Attributes Reviews > Characteristics The settings for the plugin

Enable Varnish on a Cloudways Hosted Child Site for WooCommerce
Tips & Tricks
Sebastian Moran

How to enable Varnish on a Cloudways Hosted Child Site for WooCommerce

Varnish is a fast server-side web application accelerator. A number of Managed WordPress and other hosts already have Varnish installed and make it easy to enable on your child sites. In this example, we are going to show how easy it is using Cloudways for enabling Varnish on your child site (which is using WooCommerce), then for setting the correct rules for Varnish all through an easy-to-use UI. First, login to Cloudways and then select the server which your child site is running on. Apps > Application Settings > General Settings By default, Varnish will not be enabled and you

Plugin Feature Updates Gone Wrong
Tips & Tricks
Sebastian Moran

Plugin Feature Updates Gone Wrong! Part Deux

WooCommerce is used to power very high-level e-commerce stores which use WordPress. It currently has over 4+ million active installs. WooCommerce has an upcoming release planned for April 11th, 2019, version 3.6. The new version will include a number of performance changes, which will help when used on your child site for e-commerce. One of the changes you can test in the most recent first release candidate is for showing extension suggestions in various places in wp-admin. The suggestion extension recommends notification can be disabled after a couple of clicks, but the same issue will happen the following month. By default, there is no

Testing WooCommerce Updates
MainWP Extensions
Sebastian Moran

Using the MainWP Staging Extension for Testing WooCommerce Updates

With the breaking changes for WooCommerce if running versions earlier than 3.5.x due to WordPress 5.x release, now is the time to create a staging site. A staging site can be used to test the active theme updates, the WooCommerce-related plugins, and the WooCommerce plugin. Creating a staging site allows you to test plugin updates without having to cause issues on the live child site. In the case of child sites using WooCommerce for e-commerce, this can mean a live site going down and causing a loss in revenue. The old mantra rings true for WooCommerce: Update on staging Test

WordPress Company Space
WordPress Business
Sebastian Moran

Who Owns Who in the WordPress Company Space

WordPress powers over 32% of the internet and is one of the most used CMS out there. With WordPress being used as much as it is, who are the largest WordPress based companies and who are they owned by. WordPress Worth Current estimates place WordPress commercial ecosystem at generating $10 billion annually. The Titan in the Room If you’re going to talk about WordPress-based companies, then the titan is Automattic, which owns a number of companies like WordPress.com, Jetpack, WooCommerce, VaultPress, Akismet, Crowdsignal and Pressable. Automattic is valued at over $1.6 billion. Automattic has a number of employees who work full

WordPress Business
Sebastian Moran

Where will WordPress be in 2019?

What new projects would you want to try to use in WordPress? Common current examples of using WordPress for different site builds include brochure sites or e-commerce stores. You could also use WordPress for different sites types, using WordPress as a headless application, selling download licenses if you had a store which sold downloadable products. Both Easy Digital Downloads or WooCommerce could be used for selling download products (with a license needed). Other possible uses include using WordPress for powering a film festival site, to sell tickets, or for an events site where tickets are sold. Those type of WordPress