greatwitenorth / quantities-and-units-for-woocommerce

Add unit support to items and allow decimal quantities in WooCommerce.
GNU General Public License v2.0
9 stars 18 forks source link

first pass WooCommerce 3.0 compatibility. #11

Open helgatheviking opened 7 years ago

helgatheviking commented 7 years ago

Notes:

  1. back-compatibility with pre-3.0 is not preserved. To preserve it you would need to write a helper function that always checks the WooCommerce version number and returns $product->id or $product->get_id() as appropriate.
  2. product data is not saved via CRUD. But get_post_meta() and update_post_meta() are still viable.
madebycaliper commented 6 years ago

I just spent the last hour going through this on my local install so I could quiet down the PHP warnings... @greatwitenorth it would be awesome if you could merge this PR into master! (I think there's another one waiting on the list that has some WC 3.0+ fixes too, though they might be redundant)