WooCommerce

How to check if WooCommerce is activated on WP multisite

Typically the plugins I write are not standalone but require other plugins such as WooCommerce to be enabled to work correctly. So before I run my plugin, I need to check if the plugin I depend on is activated. In a multisite environment this gets a bit more complicated. If my own plugin is networkwide activated, then I require for the plugin I depend on to also be network activated. In theory it is possible for a plugin to be …

How to check if WooCommerce is activated on WP multisite Read Article »

Coping with sudden demand in a WooCommerce shoop

Covid-19 has brought many challenges for shop owners. Whilst some shops are at a standstill, others have experienced a sudden increase in demand which can quickly overwhelm the capacity of the team to fulfil orders. In this article I explain possible strategies to cope with a sudden increase in demand. But first, why does a shop need to worry about a sudden spike? Surely it’s good news to be in demand? Yes and No. When I went to school I …

Coping with sudden demand in a WooCommerce shoop Read Article »

Restock on Refund in WooCommerce

For WooCommerce 4.0 and older, restocking on refund has two possible ways of being handled: A refund of the order where the order status is changed to “Refunded” triggeres a restock of all items in the order. A partial refund of the order gives the admin the option to restock or not with a tick box: As of WooCommerce 4.1 the option for a full order refund can now also be managed through a filter. Woo 4.1 introduces the new …

Restock on Refund in WooCommerce Read Article »

File Deletions in WP All Import

Last updated 1 April 2020. The WordPress plugin “WP All Import” allows site admins to bulk upload data in CSV (or other) formats. Its Pro version is compatible with WooCommerce and ACF, making it a popular choice for Woo shop owners to bulk import and update product data. WP All Import comes with a multitude of settings which give great flexibility, but with great flexibility comes great complexity. And it’s not always clearly labelled what consequences these settings have. This …

File Deletions in WP All Import Read Article »

All the ways to write paths in WordPress & WooCommerce

I don’t use hardcoded URLS and paths in my code as most of my sites are for clients which have to be moved from the development server to the live server. In the database, it’s easy enough to modify the URLs through search & replace; but within files, it’s a recipe for disaster using a full URL or server path.  So as a cheatsheet for myself, I’ve documented all the ways we can write WP & Woo URLs and paths …

All the ways to write paths in WordPress & WooCommerce Read Article »