Commit Graph

65 Commits

Author SHA1 Message Date
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Ron Rennick d3ab19b7cf eliminate internal use of deprecated functions
- remove deprecation of offsetGet as it is used throught abstract order
- eliminate use of offsetGet in unit tests, structured data, order functions
-
2020-07-17 17:14:26 -03:00
Ron Rennick 5ee0eccb7b add/update correct deprecated notices on existing deprecations 2020-07-16 17:13:08 -03:00
Claudio Sanches 8ef99cf1de Check if order exists before create downloads hash 2019-08-12 12:18:35 -03:00
Mike Jolley 22ce8aa8b8 Order items respect wc_round_tax_total 2019-01-11 13:20:57 +00:00
Claudio Sanches 949514fe75 Fixed includes/class-wc-order-item-product.php PHPCS violations 2018-03-21 00:49:45 -03:00
Mike Jolley b727f4ce64 Hash may not exist 2018-03-07 15:13:40 +00:00
Mike Jolley 23eccd4b14
Merge pull request #18957 from alexmacarthur/pii-downloads
Hash customer email address in download URLs.
2018-02-22 12:27:33 +00:00
Mike Jolley 700246345b Numeric check needs to come after formatting the decimal 2018-02-21 14:02:44 +00:00
Alex MacArthur 3e0e75ebc3 Fix spacing issues. 2018-02-21 07:34:56 -06:00
Alex MacArthur 00e71b304d Hash customer email address in download URLs. 2018-02-21 07:34:56 -06:00
Caleb Burks 634bee567e Ensure item totals are not empty 2018-02-20 02:19:12 -05:00
Mike Jolley 2547861710 Converting to floats messes with storage - keep strings 2017-11-06 20:04:03 +00:00
Claudio Sanches 70c2f7436b Merge pull request #16233 from woocommerce/fix/16232
Check data is an array in set_variation method
2017-07-26 01:15:01 -03:00
Fulvio Notarstefano 7781b2ea4d [#16242] Add context to woocommerce_backordered_item_meta_name 2017-07-25 11:54:03 +08:00
Mike Jolley 504a216582 Check data is an array in set_variation method
Closes #16232
2017-07-24 10:43:34 +01:00
Jaydeep Rami 3522857d23 Fix typo in WooCommerce plugin (#16135)
* Fixed typo

* Fixed more typo

* Fixed more typo

* Fix tyop

* Fix more typo

* Fix more typo

* Fix typo

* Fix typo

* Fix typo

* Fix typo datatime object

* Fix short name of compat

* Fix typo: update short name

* Fix typo "deactive" to "deactivate" and short BW - Compat

* Fix typo "Backwards compat"

* Fix typo 'parameters'

* Fix more typo 'pararmeters'

* Fix typo 'compund'

* FIx typo order

* Fix typo

* Fix typo 'incorrecly'

* Fix typo 'genarate'

* Fix typo 'reletive'

* Fix typo 'Handly'

* Fix typo 'rotatated'

* Fix typo

* Fix typo 'additonal'

* Fix typos
2017-07-17 11:10:52 +01:00
Mike Jolley 3939f50ced Download display in account/checkout 2017-07-11 13:45:35 +01:00
Mike Jolley 8dbf41994b Check if subtotal is blank, not empty
Closes #15104
2017-05-18 15:59:07 +01:00
Boro Sitnikovski f493afe718 intval -> floatval 2017-05-04 10:09:16 +02:00
Boro Sitnikovski 8f63211f1c Fix non numeric warning for orders. 2017-05-03 08:31:35 +02:00
Mike Jolley e1ae5bded2 Ensure order is not cached before download permissions are generated 2017-04-19 16:53:31 +01:00
Mike Jolley 72be782e2a Merge pull request #13719 from rodrigoprimo/remove-unused-phpdoc
Remove phpdoc for non-existing argument on WC_Order_Item_Product::get_product()
2017-03-22 19:16:39 +00:00
Rodrigo Primo b47a7b52df Remove phpdoc for non-existing argument on WC_Order_Item_Product::get_product() 2017-03-22 16:04:49 -03:00
Rodrigo Primo ce9ecefa98 Remove unused global variable from WC_Order_Item_Product::get_item_downloads() 2017-03-22 16:00:11 -03:00
Mike Jolley 3a2f3586ed get_tax_refunded_for_item ignoring tax id
Fixes #13681
2017-03-21 11:20:39 +00:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Mike Jolley 3529d7cafd Cache items 2017-02-01 14:54:18 +01:00
Justin Shreve 474a307420 Introduce get_tax_class_slugs. 2017-01-25 13:38:13 -08:00
Mike Jolley 2e1e7c0f93 Fix downloads remaining
Issues around ‘’ set (unlimited downloads) Fixes #12692
2017-01-03 15:03:55 +00:00
Manos Psychogyiopoulos 02abc9b9eb use get_order instead of creating new object when applying woocommerce_get_product_from_item 2016-12-21 21:01:47 +02:00
Manos Psychogyiopoulos e2651d730d back compat for old order item 'qty' field 2016-12-20 01:06:39 +02:00
Mike Jolley b9bb8eabba Fix order item meta 2016-11-24 11:50:34 +00:00
Mike Jolley b1007c9d62 Fix order item meta saving 2016-11-23 15:37:34 +00:00
Justin Shreve afa294e70d Fix legacy API issues 2016-11-21 10:57:33 -08:00
Justin Shreve 51a55b6782 Add interface, renaming main order item data store to abstract. Various fixes. 2016-11-21 10:57:33 -08:00
Justin Shreve b20b3590c8 First pass at order items 2016-11-21 10:56:21 -08:00
Mike Jolley edf973d35f Feedback 2016-11-21 14:30:56 +00:00
Mike Jolley b81bde4f5a admin updates 2016-11-18 19:56:17 +00:00
Mike Jolley b1565cf0d6 Download update routine and interface 2016-11-18 19:29:37 +00:00
Mike Jolley 1b6d7acd24 Data store for downloads 2016-11-18 17:13:02 +00:00
Mike Jolley 599a2ad296 Product CRUD improvements (#12359)
* args is not used any more - remove todo

* Added test for attributes

* wc_get_price_excluding_tax usage

* parent usage

* Fix rating counts

* Test fixes

* Cleanup after tests

* Make sure status transition code runs even during API calls, not just in admin.

* Default visibility

* Fix attribute setting in API

* Use get name instead of get title

* variation id usage

* Improved cross sell templates

* variation_data

* Grouped product sync

* Notices

* Sync is not needed in API

* Delete

* Rename interfaces

* Update counts in data store
2016-11-16 12:17:00 +00:00
Mike Jolley 5f4dbdb733 [Product CRUD] Variations - setters, getters and admin. (#12228)
* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* Feedback fixes
2016-11-09 16:05:49 +00:00
Mike Jolley 3f9ab31461 Fix CRUD refunds 2016-09-07 10:04:56 +01:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Mike Jolley 9bd57414c5 Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now. 2016-08-26 10:48:17 +01:00
Mike Jolley 1f1868195b Write context error 2016-08-25 14:32:28 +01:00
Mike Jolley 3637814b92 Revert use of default_data for default args and just set that in constructor 2016-08-25 13:31:03 +01:00
Mike Jolley 25883f8687 Set_props helper to load data from DB and handle errors 2016-08-25 13:05:27 +01:00
Mike Jolley a8dc46cfdf Default line item data 2016-08-24 16:06:35 +01:00