Commit Graph

471 Commits

Author SHA1 Message Date
claudiulodro ae80d12d80 Merge master 2017-08-14 11:12:09 -07:00
Mike Jolley 1545e46fd5 cache clearing 2017-08-11 16:17:13 +01:00
Mike Jolley 5587ff6874 Variation data store should remove product_type term on save
Closes #16409
2017-08-11 12:32:12 +01:00
Mike Jolley e90fb6d54f fix discount apply and save 2017-08-10 15:33:01 +01:00
Mike Jolley cd8fb23884 Add ability to get local item rather than from DB 2017-08-10 14:38:02 +01:00
Mike Jolley f71dc64d35 Manual discounts and negative taxes 2017-08-09 18:53:10 +01:00
Mike Jolley f480c98d11 Data stores 2017-08-09 16:17:02 +01:00
Boro Sitnikovski 9022261f13 Fix cache issue.
From discussion with @mikejolley:

The class is not doing its job of invaliding cache after adding a line item.
At any point (action hook), a 3pd can call `get_items` and it will cache the items for that particular order so any subsequent calls to it will return bad data.
Unless you ADD items, `get_items` will return good data.
So adding items in this case is not invalidating, so that's the bug.

Relates to: https://github.com/woocommerce/woocommerce-bookings/issues/1310
2017-08-07 15:29:17 +02:00
claudiulodro 91f1d41842 Clarify logic 2017-08-01 13:21:23 -07:00
claudiulodro 5e8f957f3a Formatting 2017-08-01 12:52:12 -07:00
claudiulodro e1fad0d7eb Bring up to date with master 2017-07-28 14:27:19 -07:00
claudiulodro b5e5f035fb Clean up 2017-07-28 13:27:19 -07:00
claudiulodro e335724c50 Finalize product query 2017-07-28 11:59:44 -07:00
Mike Jolley f47bb39a06 Merge pull request #15479 from woocommerce/add/poc-no-managing-meta-directly
Proof of concept to error when internal meta props are accessed directly
2017-07-27 15:54:24 +01:00
claudiulodro ec6d11bd67 Just needs visibility support and cleanup 2017-07-25 10:01:24 -07:00
claudiulodro 689c5e7006 Better code 2017-07-25 08:36:01 -07:00
claudiulodro cdbead8961 Clean up and tests 2017-07-24 15:05:23 -07:00
Jaydeep Rami 46d3638089 Fix missing return statement (#16148)
* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement
2017-07-20 18:01:14 +01:00
Mike Jolley 3faa1c1ee9 Unset variable prices on read.
Closes #16145
2017-07-20 12:48:14 +01:00
Mike Jolley 8d277a263b Sort by order + zone ID as a fallback in shipping zones
Fixes #16170
2017-07-19 10:16:50 +01:00
jaydeeprami 55100562b3 Fix typo in '@oaram' to '@param' 2017-07-19 08:14:41 +05:30
Claudio Sanches 90691e881f Merge pull request #16140 from woocommerce/update/16136
Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
2017-07-17 19:24:44 -03: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 a2a34cf0be Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
#16136
2017-07-17 10:34:44 +01:00
claudiulodro 8c8684b8aa Move meta query init above sku query 2017-07-14 10:10:37 -07:00
claudiulodro b04534bb85 Hook everything up to wc_product_query 2017-07-14 10:01:25 -07:00
claudiulodro f66198c37d Initial working wc_get_products 2017-07-14 09:50:20 -07:00
claudiulodro 753979ec49 WC_Product_Query 2017-07-12 13:58:39 -07:00
Mike Jolley 6421b2a0be Fix rtrim for non - separators 2017-07-12 15:17:48 +01:00
Daniel Rey Lopez 04a83b0faa Change the "Rest of the World" zone name to "Locations not covered by your other zones" everywhere 2017-07-11 08:19:42 +01:00
Akeda Bagus 53807185a8
Fixed typos.
These typos are catched by `misspell` program.

```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen |  xargs misspell -w
```

Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Mike Jolley b9757cca00 leave objects alone rather than slashing in the meta api
Has tests. Prevents notices when you pass an object to add_meta_data.
2017-07-04 16:09:21 +01:00
Mike Jolley 6bc1c16d77 Merge pull request #15900 from JustinSainton/patch-4
Add search_customers() filter
2017-07-04 10:54:50 +01:00
Justin Sainton 31d8a4a6d7 Add additional parenthesis.
Maybe don't throw fatal errors.
2017-07-03 10:19:57 -07:00
Mike Jolley 8ab1ef459c WP_Query expects paged, not page
Fixes #15930
2017-07-03 12:24:30 +01:00
Justin Sainton 29c9fa55d8 Add search_customers() filter
Includes each of the parameters passed to the method, as well as a context parameter for each query.

Our specific use case for this is for a custom wholesale ordering system, where we're wanting to limit the search to a specific role - so customizing the arguments here would be really helpful.

Ironically, proposed the same thing three years ago and the committed filter no longer exists: e91ca49b6d
2017-06-30 13:52:24 -07:00
Mike Jolley 3bfd2bab48 Prevent extra slashes on meta values
by_mid functions do not expect slashes

Fixes #15868
2017-06-29 22:41:11 +01:00
Claudio Sanches 70ae880f29 Merge pull request #15843 from woocommerce/fix/15834
Force date created on update if not set.
2017-06-28 11:11:40 -03:00
Mike Jolley 8dcbf9aa8d Force date created on update if not set.
Closes #15834
2017-06-28 12:25:23 +01:00
Brent Shepherd 1992d90d37 Revert "Merge pull request #14706 from crodas/make_get_item_consistent"
This reverts commit 56ffa3d2aa, reversing
changes made to 64a60de24f.
2017-06-27 22:28:23 -07:00
Mike Jolley d568069c37 Add slashes to meta value in data store before passing to WP functions
Fixes #15808
2017-06-27 15:11:32 +01:00
Claudiu Lodromanean 5ebc4a4010 Merge pull request #15740 from woocommerce/update/prime-term-caches
Update/prime term caches for product queries
2017-06-22 08:18:55 -07:00
Mike Jolley 67bc729ea5 update_post_caches for all posts at once 2017-06-22 13:39:17 +01:00
Mike Jolley 74cb2965b3 Ensure we have a parent
Fixes #15737
2017-06-22 12:06:10 +01:00
Mike Jolley e06aa6f60a Prime term cache before read 2017-06-21 17:09:39 +01:00
Mike Jolley 0ce2ff2249 Fix update of terms after new rating 2017-06-15 11:29:18 +01:00
claudiulodro 57c5bab731 Space 2017-06-14 09:58:15 -07:00
Mike Jolley cb34cb8d81 Made variations more lenient so that they can be created whilst a parent does not yet exist 2017-06-14 16:37:46 +01:00
claudiulodro 62064d56f8 Add edge case test 2017-06-13 14:00:12 -07:00
claudiulodro f1a9dbc69e Extra checks and tests 2017-06-13 13:32:21 -07:00