WooCommerce Marketplace Suggestions

woocommerce_show_marketplace_suggestions WooCommerce has a feature called “Marketplace suggestions” that is enabled by default. This feature will, for example, add a new tab with suggested add-ons when you edit a product. While this feature can be useful for those new to WooCommerce, you may prefer to turn it off. You can do so by following the … Read more

WooCommerce Usage Tracking

After installing WooCommerce, you’ll be prompted to choose whether or not to send WooCommerce usage data to the WooCommerce team. If you’re curious about what data is being sent, you can check out their explanation on their website. If you decide later on that you don’t want to continue with tracking, you can easily change … Read more

How to update WooCommerce wp_wc_product_attributes_lookup table programatically?

If you are using WooCommerce, you may be familiar with the wp_wc_product_attributes_lookup table. This table is used to improve the performance of WooCommerce and is typically updated automatically. However, if you make changes to the attributes of a product directly in the wp_postmeta table, the wp_wc_product_attributes_lookup table may not be updated immediately. For example, you … Read more

Find user orders that have a specific product in WooCommerce

Have you ever needed to find the order IDs for a particular product for a given customer in WooCommerce? It’s not a straightforward task, but fortunately, there is a simple function that can help. The bytflow_get_order_ids_for_product() function makes it easy to get the order IDs for a particular product for a given customer. Here is … Read more

How to add a sequence number to WooCommerce order

Why are WooCommerce order numbers not sequential? WooCommerce orders are stored into wp_posts table together with almost everything you do on your WordPress website. Posts, pages, drafts, forms and other are all stored in the same table and they share the same sequence number. This is the reason you see a gap between order numbers, … Read more