Mike Jolley
4fc197c67d
Merge pull request #21003 from Chunkford/patch-2
...
Giving the ability to add custom pricing data - read_price_data()
2019-01-16 15:22:40 +00:00
Mike Jolley
f68a547f53
Don't mix session and customer data
2019-01-15 16:49:01 +00:00
Mike Jolley
4dbee72c65
Merge pull request #22165 from woocommerce/fix/22089
...
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
2019-01-14 17:02:51 +00:00
Mike Jolley
1b337dea64
Load customer data regardless of current blog
2019-01-14 16:30:47 +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
Rodrigo Primo
c15d622dd2
WC_Data::get_id() does not take any parameters
...
This commit removes a parameter from a call to WC_Data::get_id() as this method does not take any parameters
2019-01-10 17:10:13 -02:00
Rodrigo Primo
609430a8f1
Remove unused parameter from WC_Webhook_Data_Store::delete()
2019-01-10 17:08:41 -02:00
Rodrigo Primo
3cf945d5d9
Fix PHPCS errors automatically using phpcbf
2019-01-10 17:07:53 -02:00
Mike Jolley
e31b35597a
Slash meta values to preserve slashes on save
2019-01-08 13:28:26 +00:00
Mike Jolley
fb9847bcca
Merge pull request #21853 from rellect/incorrect_call
...
Remove non existent parameter
2019-01-07 12:47:40 +00:00
Ron Rennick
1a02e9f64a
update variation guid with the id after creation
2019-01-02 14:26:08 -04:00
Ron Rennick
50b36e549f
phpcsw sniff fixes for class-wc-product-variable-data-store-cpt.php
2018-12-13 14:35:24 -04:00
Ron Rennick
36c220f0d6
fix merge conflicts, add missing wpdb::prepare
2018-12-13 14:21:25 -04:00
Claudiu Lodromanean
6e457799b3
Merge pull request #21943 from woocommerce/fix/21516
...
Match array keys on lowercase keys before calling set_props
2018-12-11 11:12:22 -08: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
Ron Rennick
f9b2ff170f
add missing wpdb::prepare calls
2018-11-30 15:52:20 -04:00
Ron Rennick
ef23f0bb8f
fix phpcs passing array arguments to wpdb::prepare
2018-11-29 14:52:52 -04:00
Ron Rennick
9e520af93e
populate default variation attributes when it is the first variation
2018-11-28 11:40:35 -04:00
Ron Rennick
042c61cc5d
fix phpcs sniffs in class-wc-product-variable-data-store-cpt.php
2018-11-28 11:22:07 -04: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
b071855632
Some PHPCS fixes
2018-11-16 12:17:33 +02:00
Gerhard
3943ec6395
Convert array keys to lower case before comparing keys to exclude.
2018-11-16 12:13:51 +02:00
Refael Iliaguyev
e5a8df36e3
Remove non existent parameter
2018-11-07 17:16:57 +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
Rodrigo Primo
fce22a705f
Reapply change made in c765ce644d
...
Reverting commit 61c7abc
in commit ece9f02776
, overrode a unrelated change made to the same code in another PR by commit c765ce644d
. This commit simply reapplies this change.
2018-10-29 16:34:48 -03:00
Rodrigo Primo
ece9f02776
Revert "First pass at using post_author instead of the post meta '_customer_user'"
...
This reverts commit 61c7abce4f
.
2018-10-29 11:48:44 -03:00
Rodrigo Primo
be4132e228
Revert "Set post_author to 0 for refund orders"
...
This reverts commit ad4304450d
.
2018-10-29 11:47:00 -03:00
Rodrigo Primo
ff7e307b6b
Revert "Make sure post_author is used only after WC 3.3.0 DB upgrade routine is executed"
...
This reverts commit 997a6fa40d
.
2018-10-29 11:46:33 -03:00
Rodrigo Primo
487ac201c0
Revert "Bump WC version to 3.4.0"
...
This reverts commit 7f43c39f2f
.
2018-10-29 11:44:32 -03:00
Rodrigo Primo
1d9ab63134
Revert "Punt to WC version 3.5.0"
...
This reverts commit ccf10f6ab2
.
2018-10-29 11:37:24 -03:00
Rodrigo Primo
37c796487d
Revert "Update WC_Customer_Data_Store to use post_author instead of _customer_user"
...
This reverts commit 482e844f16
.
2018-10-29 11:09:13 -03:00
Rodrigo Primo
e47ebfaafb
Revert "Update WC_Order_Data_Store_CPT::get_wp_query_args() to use post_author instead of _customer_user"
...
This reverts commit 8db3236889
.
2018-10-29 11:08:53 -03:00
JeroenSormani
7b4075f11a
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-16 18:53:31 +02:00
Claudio Sanches
61873627a7
Merge branch 'master' into feature/rest-api-v3
2018-09-10 19:16:22 -03:00
Claudio Sanches
2fcabfe7e6
/reports/coupons/totals endpoint
2018-09-08 21:04:13 -03: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
fd33f2c2a6
Added Tests
...
Added Tests for new wildcard functionality.
2018-08-23 15:23:35 +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
Chunkford
1b49a2d545
Update class-wc-product-variable-data-store-cpt.php
2018-08-08 12:45:03 +01:00
Chunkford
c9f60f7669
Update class-wc-product-variable-data-store-cpt.php
2018-08-08 12:31:38 +01:00
Chunkford
a3c826c1e4
Giving the ability to add custom price data
...
I need a way to add my own pricing data to the variation data store, so I can check which price to display on the product and category pages, So instead of adding unnecessary load by leading each variation object to extract the data and meta I need, this gives me a way to get the data through the data store which in turns uses transients instead.
2018-08-07 22:39:05 +01:00
Claudiu Lodromanean
d32a675c25
Merge pull request #20931 from woocommerce/fix/download-log-data-store
...
Fix: orderby and order parameters in WC_Customer_Download_Log_Data_Store::get_download_logs()
2018-08-04 07:57:17 -07:00
Rodrigo Primo
b09bb3eee9
Fix: orderby and order parameters in WC_Customer_Download_Log_Data_Store::get_download_logs()
...
This commit fixes a bug in WC_Customer_Download_Log_Data_Store::get_download_logs() that made impossible to change the order in which the query returned the results. This method accepts the arguments order_by and order, but it was ignoring them and always using the default values ('download_log_id' and 'ASC' respectively).
It also introduces a very basic unit test to cover the method main functionality and to make sure that the parameters order and orderby are not ignored anymore.
It seems that the modified method was inspired in WC_Customer_Download_Data_Store::get_downloads() before the same bug was fixed in #18620 .
2018-07-30 16:40:21 -03:00
Kanishk
4fc06834b6
Fix for #20904
2018-07-26 15:12:28 +05:30
Joey Gilham
58cdd7dad2
Merge branch 'master' into master
2018-07-03 15:41:15 +01:00
Joey
cd8416122f
removed low stock options for variations, and addressed changes
2018-06-19 12:40:27 +01:00
Rodrigo Primo
43d22a2349
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-18 15:17:19 -03:00
Claudiu Lodromanean
ee47ceb361
Merge pull request #20537 from woocommerce/update/transactions-revert
...
Transactions, caching, and version transient cleanup issues
2018-06-15 09:11:23 -07: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
78636b1f12
Only cache if order ID is set.
2018-06-14 14:52:25 +01:00
Rodrigo Primo
dd8bf8b522
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-11 10:44:14 -03: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
8bcf32c68d
Merge pull request #19981 from timothyjensen/coupon-usage-count-hooks
...
Add coupon usage count hooks
2018-05-24 17:16:17 +01:00
Mike Jolley
58e4802f47
Set date created if null during update
2018-05-15 19:15:42 +01:00
Rodrigo Primo
c49059ce7a
Merge branch 'master' into update/use-post-author-for-customer-id
2018-05-08 17:34:09 -03:00
Rodrigo Primo
8db3236889
Update WC_Order_Data_Store_CPT::get_wp_query_args() to use post_author instead of _customer_user
2018-05-08 17:21:57 -03:00
Rodrigo Primo
482e844f16
Update WC_Customer_Data_Store to use post_author instead of _customer_user
2018-05-07 17:54:42 -03:00
Tim Jensen
e2cc3673b2
Add coupon usage count hooks
...
These action hooks allow developers to extend functionality related to updating coupon usage counts.
2018-05-06 07:09:59 -04:00
Boro Sitnikovski
d8d2f03a50
Introduce GDPR export/erase for customer tokens
2018-05-03 09:46:07 +02:00
Claudio Sanches
a55ae32530
Merge pull request #19935 from woocommerce/update/19815
...
Hook doc update
2018-05-02 13:29:23 -03:00
Mike Jolley
06ef8c8589
Hook doc update
2018-05-02 14:28:53 +01:00
Mike Jolley
e807c6151f
Merge branch 'master' into update/erasure-requests
2018-05-02 14:06:47 +01:00
Mike Jolley
2e78259452
Compatibility with 4.9 branch
2018-05-02 11:45:02 +01:00
Mike Jolley
f59acf1350
Merge branch 'master' into update/erasure-requests
2018-05-01 13:46:53 +01:00
Mike Jolley
8e0f0cbc29
Lazy load children and attributes for variable products
2018-05-01 11:57:00 +01:00
Mike Jolley
c765ce644d
Inactive account handling
2018-04-30 15:38:45 +01:00
Claudiu Lodromanean
08088f15a9
Merge pull request #19858 from rnaby/250418-221130-wc-customer-data-store
...
Removed redundant else statement and inverted the early return
2018-04-26 11:21:41 -07:00
Boro Sitnikovski
d6b4ca980c
Add support for arrays when building meta query args
2018-04-26 16:49:49 +02:00
Khan M Rashedun-Naby
c174316bf8
Removed redundant else statement and inverted the early return
2018-04-25 22:21:21 +06:00
Boro Sitnikovski
e891e3ed7d
Support payment_method_in when selecting orders
2018-04-25 01:40:29 +01:00
Mike Jolley
29961b540a
Fix up query
2018-04-18 12:04:53 +01:00
Mike Jolley
9dfb91835e
Merge branch 'master' into update/gdpr-order-cleanup
2018-04-18 11:21:43 +01:00
claudiulodro
f9e45bea91
Bring up-to-date with master and resolve merge conflicts
2018-04-17 13:27:39 -07:00
Mike Jolley
314d949d2c
Background process to cleanup
2018-04-17 15:21:03 +01:00
Rodrigo Primo
ccf10f6ab2
Punt to WC version 3.5.0
2018-04-17 11:12:46 -03:00
Mike Jolley
93d20d9c93
Data removal handling
2018-04-13 18:03:02 +01:00
Mike Jolley
eb6d230d38
Export downloads and logs
2018-04-13 17:00:26 +01:00
Mike Jolley
965712a1d7
Data removal for accounts/guests
2018-04-13 15:35:03 +01:00
Mike Jolley
3f2d8e8eef
delete_by_user_id method for customer downloads
2018-04-13 15:07:58 +01:00
Mike Jolley
73709ee7cd
Slash meta values before updating the DB in the data store
2018-04-10 14:43:38 +01:00
Rodrigo Primo
a7d2c5dd6e
Merge branch 'master' into update/use-post-author-for-customer-id
2018-04-03 15:13:07 -03: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
6539b7913e
Merge branch 'master'
2018-03-19 18:05:36 +00: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