Since Woocommerce mega major Update 3.0+ things have changed quite a lot: WC_Order properties can’t be access directly as before and will throw some errors. New WC_Order and WC_Abstract_Order getters and setters methods are now needed. There is some New classes for Order items: WC_Order_Item class. WC_Order_Item_Product class. Also see: Get Order items and WC_Order_Item_Product Full Article…
How to get WooCommerce order details
See this Stack Overflow thread for more commentary: https://stackoverflow.com/a/44708344 Get and access to the order data properties (in an array of values): Get the order items and access the data with WC_Order_Item_Product and WC_Order_Item methods:
Update User Meta After a Successful Order in WooCommerce
As seen on Rodolfo’s Business Bloomer website.
How to Add Information to WooCommerce Emails
As seen here: https://www.sellwithwp.com/how-to-add-information-to-woocommerce-emails/ WooCommerce emails include each line item in an order by default within an “order items” table. This table is automatically included in almost every WooCommerce transactional email, and displays the product quantity, price, and total. However, this isn’t the only data that WooCommerce has available for the order items table in its Full Article…
Customising WooCommerce Order Emails
As seen on SkyVerge. You’ve lovingly setup your first WooCommerce shop: picked out that perfect theme (maybe one we recommend), polished your product page content to an irresistible shine, tested your frictionless checkout, and… received a nice enough but totally generic order email that in no way matches the look, the style of your shop. Full Article…
Storing WooCommerce Terms & Conditions in the Database
As written by Remi Corson: http://www.remicorson.com/storing-woocommerce-terms-conditions-in-the-database/
WooCommerce Breadcrumbs – Add categories
Customers generally prefer product breadcrumbs that show the steps it took to get to the product they are viewing, so they can backtrack easily. Breadcrumbs, if you aren’t sure, are the row of links above the main content, below the header, that look like: Home > Catalog > Clothes > Men’s > Shirts > Blue Full Article…
Get WooCommerce to automatically recreate pages?
What ended up working for me was adding “&install_woocommerce_pages=true” to the Settings page URL. For example: http://YOURDOMAIN/wp-admin/admin.php?page=woocommerce_settings&install_woocommerce_pages=true
WooCommerce – Export CSV with custom meta fields
Taken from the WooCommerce documentation: http://wcdocs.woothemes.com/user-guide/extensions/ordercustomer-csv-exporter/#section-4 This post is in relation to the ‘Order/Customer CSV Exporter‘ plugin. Adding custom meta fields to exports Starting from version 1.6 there has been possibility to add custom meta fields to the orders export csv output. Adding custom meta fields to the export can be done using ’woocommerce_export_csv_extra_columns’ filter. Below Full Article…