WooCommerce: Only Allow A Single Top-Level Category of Items in the Cart
This code was out of date and doesn't work as displayed with the latest versions of WooCommerce or WordPress.
This code was out of date and doesn't work as displayed with the latest versions of WooCommerce or WordPress.
Get the id of the top level category for a product no matter what it’s depth in the category tree.
This came in from a Stack Overflow question called WooCommerce Link Product Visibility To Day Of Week
This question came from Stack Overflow asking, for warranty purposes, how to save a product's SKU to the order item meta for future discovery. The problem is that when a product still exists in an installation the SKU is available for…
2018-01-30: The solution to this for WooCommerce 3.x+ needs to be updated for screenshots only. WooCommerce moved the product display options to the Customizer under "WooCommerce". I'll be working to get this post and the plugin's instructions updated. 2017-08-10: Created…
I use the Memcached Redux plugin on all of the servers and WordPress installs that I manage. I want to share the proper way to get your WordPress and Debian server setup to utilize Memcached. This guide will also set your…
A workflow for orders that I manage requires the ability to modify orders in completed or processing status. WooCommerce's 2.2 update removed the ability to edit orders that were in certain statuses.
When creating a plugin for Wordpress it's important to not only keep your files secure, but also discourage direct access to the files from browsers and other remote sources. This is why it's important to add a few lines of…
If your WooCommerce categories are suddenly (or initially) are displaying as a 404 (Not Found) page on the front end of your site you can try the following: