Plugin info

Total downloads: 4,029
Active installs: 50
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 7/23/2013 (4544 days ago)
Added to WordPress: 7/21/2013 (12 years old)
Minimum WordPress version: 2.7
Tested up to WordPress version: 3.5.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4544 days ago

20/100

Is WooCommerce Custom Order Data abandoned?

Possibly abandoned (last update 4544 days ago).

Compatibility

Requires WordPress: 2.7
Tested up to: 3.5.2
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

One Click Demo Import
Rating 4.3/5 (78 reviews)Active installs 1,000,000
TablePress – Tables in WordPress made easy
Rating 5.0/5 (4,616 reviews)Active installs 700,000
Cookie Information | Free GDPR Consent Solution
Rating 3.5/5 (140 reviews)Active installs 100,000
Rara One Click Demo Import
Rating 2.7/5 (7 reviews)Active installs 20,000

Description

If you are extending WooCommerce by creating themes or developing plugins you will find this plugin to be priceless!

WooCommerce uses WordPress logic and database tables to store data on store items, orders, checkouts…
If you are integrating a payment gateway or any 3rd party app with your store, you sometimes need to
store some extra data for specific orders. It tends to be very hard or even impossible to extend orders
with custom data.

Extend WC Orders

Here’s how easy it is to extend a WooCommerce order in your code:

| WC_CustomOrderData::extend($order);

To set a custom property to an order, just type:

| $order->custom->your_custom_property = ‘some value’;

After that you can use your custom order property by referring the “custom” order property:

| $custom_property = $order->custom->your_custom_property;

You can allways check if a custom order property exists using the standard PHP way:

| if(isset($order->custom->your_custom_property)) { doStuff(); }

All custom order properties are saved in a separate database table. When you finish working with the order,
make sure you save custom data by typing:

| $order->custom->save();

Note: Storred objects and arrays will be restored as arrays.

Author

Miloš Đekić is a software enthusiast from Belgrade,
Serbia. He loves to create useful software.

Installation

Just follow this simple guidelines.

Installation steps

  1. Upload ‘woocommerce-custom-order-data’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use custom order data in your WooCommerce plugins and themes
  4. That’s it. Enjoy!

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.0.1

  • Added ‘unset’ support

1.0

  • First version – WooCommerce orders can now be extended with custom data.