Claudiu Lodromanean
2d2d7a7053
Merge pull request #22613 from woocommerce/performance/set-props
...
Performance: `set_props`
2019-02-06 10:02:54 -08:00
Mike Jolley
00b48febac
Merge branch 'update/versioned-transients-alt'
2019-02-06 13:18:50 +00:00
Mike Jolley
cb4bf5d1e5
Fix unit tests
2019-02-06 12:44:24 +00:00
Frédéric Demarle
03a60fddfc
Ignore WordPress.DB.PreparedSQL.NotPrepared
2019-02-06 10:24:41 +01:00
Frédéric Demarle
6e4854b3aa
Add filter woocommerce_update_product_stock_query
2019-02-05 20:29:45 +01:00
Mike Jolley
250e9ff423
Merge pull request #22609 from woocommerce/fix/22545
...
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-05 11:00:35 +00:00
Ron Rennick
249bf99df5
phpcs sniff fixes for class-wc-product-data-store-cpt.php
2019-02-04 12:55:21 -04:00
Ron Rennick
e64914bb3c
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-04 12:54:33 -04:00
Mike Jolley
893b33973c
Merge branch 'fix/22147'
2019-02-04 13:05:40 +00:00
Mike Jolley
a16c677baf
Missing _price
2019-01-30 16:20:23 +00:00
Mike Jolley
8e51ab2fcd
Set props using one get_post_meta call
2019-01-30 16:20:17 +00:00
Mike Jolley
23b0fdbc1f
Fix id usage
2019-01-30 16:11:44 +00:00
Mike Jolley
57ccde6643
get_product_type cache
2019-01-30 16:11:29 +00:00
Mike Jolley
59e0867afe
Add missing post_password prop
2019-01-30 16:01:54 +00:00
Mike Jolley
d3ac50d47f
Remove heavy queries from transient cleanup function
...
Remove heavy queries from transient cleanup function
Removes unneccessary loops and heavy queries.
There is a parent update and cache clear which was added in #17141 . This cleanup is handled in `update_attributes` so doing it again here should be unneccessary.
Finally, the layered nav cleanup here can be moved. #22029 notes that this was needed in case of a stock change affecting product visibility. If we move to the data store, we can avoid getting the product here which is slower.
2019-01-21 13:02:31 +00:00
Mike Jolley
7744879326
wc_delete_product_transients for parent
2019-01-21 13:01:18 +00:00
Mike Jolley
5016e4c858
Removed unused query
2019-01-11 16:56:51 +00:00
Mike Jolley
938992cbae
Exit early, add back fallback code
2019-01-11 16:52:57 +00:00
Mike Jolley
da80c154fc
Query tweaks
2019-01-11 16:48:05 +00:00
Mike Jolley
4bda1c9cad
Code style improvements
2019-01-11 15:52:43 +00:00
Matthew Rochow
7c50a29d2d
Update class-wc-product-data-store-cpt.php
2019-01-11 14:47:41 +00:00
Matthew Rochow
07b2bcc726
Update class-wc-product-data-store-cpt.php
2019-01-11 14:47:41 +00:00
Matthew Rochow
01d7eaf92f
Update class-wc-product-data-store-cpt.php
...
Updating find_matching_product_variation() function to be faster
2019-01-11 14:47:41 +00:00
Mike Jolley
e31b35597a
Slash meta values to preserve slashes on save
2019-01-08 13:28:26 +00:00
Rodrigo Primo
522f992bfe
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
...
This commits adds a filter to WC_Product_Data_Store_CPT::search_products() to let third-party code define custom ways to search for products.
2018-12-06 16:08:10 -02:00
Rodrigo Primo
6ec2b26972
Update WordPress.DB.PreparedSQL.NotPrepared sniff name
...
The latest version of WPCS that was added to WC last week, changed the name of some sniffs. This commit updates the name of one of those sniffs from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared.
2018-11-23 15:10:52 -02:00
Rodrigo Primo
57f44798cb
Fix phpcs violations automatically using phpcbf
2018-11-23 12:57:51 -02:00
Gerhard
2aa39507f7
Do not include products who's parents are not in publish status to be part of the get_on_sale_products results
2018-11-01 12:01:59 +02:00
JeroenSormani
7b4075f11a
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-16 18:53:31 +02:00
Jack Boyle
63b84ef407
Fix Requested Changes
...
Changed to check if field exists and the field is not blank.
2018-08-24 13:03:09 +10:00
Jack Boyle
c4eda39177
Add wildcard handler for SKU and other meta values
...
Add wildcard handler for SKU and other meta values
2018-08-23 09:59:39 +10:00
Joey Gilham
58cdd7dad2
Merge branch 'master' into master
2018-07-03 15:41:15 +01:00
Claudiu Lodromanean
c203ff16d9
Merge pull request #20482 from woocommerce/fix/20452
...
Avoid price setting when synced with children
2018-06-15 09:05:13 -07:00
Mike Jolley
a0eb6843c2
define limit query
2018-06-15 15:28:29 +01:00
Mike Jolley
5e14953796
Avoid price setting when synced with children
2018-06-11 11:44:58 +01:00
Mike Jolley
4bc7841325
search_products limit support
2018-06-09 17:23:07 +01:00
Khan M Rashedun-Naby
5442d30b6d
Checking Improved
2018-06-07 12:35:58 +06:00
Joey
b08b55a651
added changes for low stock notifications per product
2018-05-27 05:40:58 +01:00
Mike Jolley
06ef8c8589
Hook doc update
2018-05-02 14:28:53 +01:00
Mike Jolley
73709ee7cd
Slash meta values before updating the DB in the data store
2018-04-10 14:43:38 +01:00
Claudio Sanches
d043e4727b
Merge pull request #19595 from woocommerce/fix/19562
...
Trigger post modified update when saving products and variations, but no other product data
2018-04-03 12:23:10 -03:00
Mike Jolley
2ed018d542
Trigger post modified update when saving products and variations, but no other product data
...
Closes #19562
2018-04-03 12:51:58 +01:00
Frédéric Demarle
ee2140944c
add action woocommerce_before_delete_{$post_type}
2018-03-29 14:52:19 +02:00
Mike Jolley
40b831f4df
Missing $like was breaking unit tests.
...
@rodrigoprimo
2018-03-19 17:36:36 +00:00
Mike Jolley
eb26221b1a
Merge branch 'master' into update/19061
2018-03-16 13:59:05 +00:00
Mike Jolley
3df5a479f9
Add post_excerpt to product search
2018-03-15 11:21:27 +00:00
Mike Jolley
06418f67e5
Merge pull request #19225 from roylindauer/17355-SplitAndFilter
...
Split layered nav transient per issue #17355
2018-03-14 12:50:54 +00:00
Roy Lindauer
33cfed8e47
ensure that cache is deleted
2018-03-13 15:37:09 -07:00
Mike Jolley
906aa97aea
Merge branch 'master' into update/19061
2018-03-12 19:28:53 +00:00
Mike Jolley
f0aa07fbf7
Case insensitive or handling
2018-03-12 19:18:13 +00:00
Roy Lindauer
6fba320040
Delete tax specific transients
2018-03-12 10:57:14 -07:00
Rodrigo Primo
fee648f696
Fix phpcs violations in includes/data-stores/class-wc-product-data-store-cpt.php
2018-03-08 14:30:48 -03:00
Mike Jolley
391e5df40c
Support for OR operator
2018-02-27 19:45:45 +00:00
Mike Jolley
a1ea88ffb0
Fix comparison
2018-02-22 18:46:34 +00:00
Mike Jolley
a15c1611e0
Stopword support
2018-02-22 18:22:55 +00:00
Mike Jolley
49a74b95db
Made get_on_sale_products respect the setting to hide outofstock products
...
Closes #18981
2018-02-15 16:35:29 +00:00
Mike Jolley
b379e213c8
Allow search_products to find parent ids
2018-02-08 16:36:24 +00:00
Mike Jolley
7dd9c7fb0e
Added ability to search for all post statuses
2018-02-08 12:53:39 +00:00
Rodrigo Primo
aad2c83994
Remove unused variables
...
This commit removes two unused variables from WC_Product_Data_Store_CPT class.
2018-01-03 16:00:28 -02:00
Rodrigo Primo
22f1e549ef
Manually fixes remaining coding standard violations
2018-01-03 15:57:33 -02:00
Rodrigo Primo
a2b8e38a61
Fix coding standards violations automatically using phpcbf
2018-01-03 15:27:48 -02:00
Fulvio Notarstefano
e718d7bd40
[ #18223 ] Rename var to a more apt name
2017-12-19 17:19:10 +08:00
Fulvio Notarstefano
ee123fb739
[ #18223 ] Add argument to woocommerce_product_related_posts_query filter
2017-12-19 10:18:33 +08:00
Mike Jolley
c5a80d080b
Rename so delete is hidden
2017-11-23 14:41:17 +00:00
Mike Jolley
8dea28e6c2
Save default cat when saving products
2017-11-23 14:26:43 +00:00
Mike Jolley
a23541ad5d
Fix 4.9 conflict with variation names
...
`santiize-title` works differently with `/` chars in 4.9. This update
routine keeps variations functioning by doing a DB update on read.
Fixes #17775
2017-11-18 14:53:18 +00:00
Mike Jolley
08c4953b61
Clear counts cache when updating product attributes
...
Closes #17377
2017-10-26 20:16:52 +01:00
Mike Jolley
a467d35acd
Add cache invalidation for wc_get_product_terms
...
Closes #17369
2017-10-25 13:27:18 +01:00
Mike Jolley
9c327f09db
Sale logic only applies to simple products - fixes tests
2017-09-26 12:53:38 +01:00
Mike Jolley
4695d7a251
Handle sale dates on the fly in case of missed cron schedule.
...
Closes #16907
2017-09-25 14:19:20 +01:00
Mike Jolley
2da895c68d
Update price if product type changes
...
Fixes #16650
2017-08-30 16:23:57 +01:00
Mike Jolley
c29b9acb5b
Fix variable name
...
Closes #16636
2017-08-29 11:19:03 +01:00
Claudio Sanches
03a189726e
Introduces woocommerce_get_product_id_by_sku filter
...
Closes #16559
2017-08-22 15:04:21 -03:00
Mike Jolley
fb2d8cb394
Prevent regular price being lower than the sale price
...
Closes #16560
2017-08-22 11:43:48 +01: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
b5e5f035fb
Clean up
2017-07-28 13:27:19 -07:00
claudiulodro
e335724c50
Finalize product query
2017-07-28 11:59:44 -07: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
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
67bc729ea5
update_post_caches for all posts at once
2017-06-22 13:39:17 +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
Claudio Sanches
6be1569955
Start indexing variations with 1, closes #15081
2017-06-05 17:42:58 -03:00
Mike Jolley
532ddfa6b0
Merge conflicts
2017-05-31 12:23:52 +01:00
Mike Jolley
ed32f9c792
Only delete if the object has an ID
2017-05-30 14:44:28 +01:00
Mike Jolley
2e5053633b
CRUD should update post type on update so it matches expected value.
2017-05-25 12:09:59 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
4a3902cd48
PHPDoc: Add missing throws statement
2017-05-15 13:39:03 +02:00
Mike Jolley
e777b4d557
Merge branch 'feature/product-csv-import-export' into feature/csv-exporter
2017-05-12 21:03:20 +01:00
Mike Jolley
4cacceeede
Variation handling
2017-05-10 22:16:53 +01:00
Mike Jolley
cd9119443a
Correctly set rating during updates
...
Fixes #14994
2017-05-10 19:21:38 +01:00
Mike Jolley
19fb7ac079
Fix hardcoded table name
2017-05-09 19:17:24 +01:00
Mike Jolley
a741f2c7bf
Make other queries match the new query in 14936
2017-05-08 19:08:59 +01:00