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
Mike Jolley
b961d6fb74
Correctly exclude terms in wc_get_related_products
...
Fixes #14909
2017-05-08 14:15:16 +01:00
Claudio Sanches
63552c9757
Fixed conflict between global attributes and custom attributes.
...
Check if is a custom attribute before trying to get an ID from a global attribute.
2017-05-03 16:30:50 -03:00
Mike Jolley
8e624e6230
Filter invalid products before returning them for wc_get_products
...
Closes #14592
2017-04-25 14:03:30 +01:00
Claudio Sanches
0b60af0774
Merge pull request #14415 from woocommerce/fix/save-post-infinite-loops
...
Prevent infinite loops during save_post
2017-04-20 00:44:57 -03:00
Claudio Sanches
c90e71e890
Merge pull request #14509 from woocommerce/fix/14480
...
Only return product by SKU if published
2017-04-19 14:38:14 -03:00
Claudio Sanches
0d46a89f83
Check only if is not in trash
2017-04-19 14:27:19 -03:00
Mike Jolley
bdb01c4bea
is_existing_sku should check all post statuses except for trash
...
Fixes #14525
2017-04-19 11:32:49 +01:00
Claudio Sanches
f61646d1a2
Only return product by SKU if published
...
Fixes #14480
2017-04-18 21:32:52 -03:00
Mike Jolley
1f28b9d0b8
Other object types
2017-04-15 21:18:24 +01:00
Mike Jolley
27c9006f77
Product data store loop protection
2017-04-15 21:04:41 +01:00
Mike Jolley
21da0cf71f
Ensure name and file is set
2017-04-12 14:11:04 +01:00
Govind Kumar
2ea79cc5ed
Fixed issue #14124
2017-04-07 19:14:10 +05:30
Claudio Sanches
51c00cce09
Merge pull request #14099 from dixitadusara/issue-14089B
...
Modified suggestion of Invalid argument supplied for foreach ref #14089
2017-04-07 12:33:01 -03:00
Mike Jolley
4f412678bd
Ensure meta_value has valid keys in read_attributes
...
Fixes #14085
2017-04-07 10:59:59 +01:00
dixitadusara
e527b6608c
modified suggestion of Invalid argument supplied for foreach ref #14089
2017-04-07 15:27:52 +05:30
dixitadusara
3ba9063d3d
Invalid argument supplied for foreach - class-wc-product-data-store-cpt.php ref #14089
2017-04-07 13:24:34 +05:30
Justin Shreve
15bf1da7d5
Call save_meta_data before wp_update_post for data stores that use it, and refresh meta cache after.
2017-04-05 14:39:41 -07:00
Mike Jolley
8598f82c8a
If user can edit private products, search them
...
Fixes #13877
2017-04-03 12:04:59 +01:00
Mike Jolley
31cd2dcb90
Merge pull request #13853 from woocommerce/crud-security-hardening
...
CRUD security/hardening
2017-04-03 11:09:38 +01:00
Mike Jolley
8a201b64c5
Only set dates if set/not null
...
Fixes #13848
2017-03-31 12:38:18 +01:00
Mike Jolley
14802a0307
Remove double unserialization
2017-03-31 12:10:20 +01:00
Mike Jolley
399c141377
Fix slug updating in CRUD
...
Fixes #13824
2017-03-29 13:41:23 +01:00
Akeda Bagus
0b416439c8
Fixed all typos of all files in includes/ directory.
...
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell .
2017-03-29 00:58:51 +07:00
Mike Jolley
0ad1f6a63f
Merge pull request #13709 from woocommerce/fix-13708
...
Timezone/DST fixes
2017-03-24 10:25:08 +00:00
Mike Jolley
7e462b9cca
Data store date handling
2017-03-23 00:10:29 +00:00
Mike Jolley
3b35d95c6a
Use gmdate and GMT in data stores so times are not changed
2017-03-22 12:01:38 +00:00
Mike Jolley
c4c8edee5f
Remove order and product factory cache
2017-03-21 23:37:38 +00:00
Mike Jolley
9bcfcb82c5
Merge branch 'master' into remove-product-internal-meta-keys
...
# Conflicts:
# includes/data-stores/class-wc-product-data-store-cpt.php
2017-03-20 16:13:45 +00:00
Claudio Sanches
2d400bffd2
Remove post related internal post keys froom products
2017-03-17 17:37:38 -03:00
Claudio Sanches
1a87792109
Remove some product internal meta keys
2017-03-17 17:30:38 -03:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
9bee678819
API updates
2017-03-13 21:36:31 +00:00
Mike Jolley
1bac579df7
Date getters and setters
2017-03-13 19:52:44 +00:00
Mike Jolley
296daf19c2
Avoid wc_clean
...
Fixes #13464
2017-03-06 14:53:32 +00:00
Mike Jolley
8440083fef
Merge pull request #13443 from woocommerce/cache-groups
...
Standardize cache group names
2017-03-03 10:44:34 +00:00
Mike Jolley
1a8737fdeb
Standardize cache group names
2017-03-02 17:15:39 +00:00
Mike Jolley
fd07d06825
Update date created/modified if changed.
...
Fixes #13419
2017-03-02 16:46:59 +00:00
Mike Jolley
b69988fe39
Correct changes in variation data update and fix context
2017-02-16 16:07:11 +00:00
Mike Jolley
2f685691a4
Standardise update meta calls, and support forcing
...
Force allows create to make sure data is set regardless of whether it
was changed. This fixes product duplication.
Fixes #13199
2017-02-15 14:40:57 +00:00
Manos Psychogyiopoulos
821b360ac1
remove stray error_log
2017-02-14 18:26:40 +02:00
Manos Psychogyiopoulos
1895f65d2d
allow update_post_meta and handle_updated_props to be overriden
2017-02-14 18:14:37 +02:00
Mike Jolley
00cda91c73
Merge pull request #13164 from woocommerce/lazy-update-products-13157
...
Lazy update products
2017-02-13 17:24:51 +00:00
Mike Jolley
a20c0da580
syntax error
2017-02-11 15:50:21 +00:00
Mike Jolley
ca1d49b2b6
Conditional visibility and downloads
2017-02-11 15:35:20 +00:00
Mike Jolley
91ac4a2e56
Remove update_term_counts
...
This does not look to be necessary because we use wp_set_post_terms
which handles this for us. Seems to be inherited from legacy.
2017-02-11 15:27:52 +00:00
Mike Jolley
8494bf7bee
Conditonal post data saving
2017-02-11 15:26:13 +00:00
Mike Jolley
31d428131e
Imrpove checkout performance when updating product sales
2017-02-10 23:41:53 +00:00
Justin Shreve
8a6bae374f
Switch from get_the_title to the post objects post_title.
2017-02-09 08:43:48 -08:00
Justin Shreve
ae5293aeb9
Move the get type logic out of the product factories and into the data stores.
2017-02-08 11:18:39 -08:00
Claudiu Lodromanean
dce81b4d4e
Use store's decimal settings when figuring out what's a sale product
2017-02-08 09:04:13 -08:00
Claudiu Lodromanean
06c17d6be4
Add whitespace between parens
2017-02-07 13:57:01 -08:00
Claudiu Lodromanean
8ce5356943
13106 Dont round values in get_on_sale_products
2017-02-07 13:46:00 -08:00
Mike Jolley
5746c87580
Merge pull request #12968 from woocommerce/updated-props-action
...
Fire actions for updated props
2017-01-25 00:10:48 +00:00
Mike Jolley
90fd0da7d0
Fire actions for updated props
2017-01-24 21:38:02 +00:00
Brent Shepherd
56c427acba
Add WC_Product_Data_Store_CPT::read_extra_data()
...
So that a product's $extra_data can also be read by child classes of
WC_Product_Data_Store_CPT, like WC_Product_Variation_Data_Store_CPT,
without duplicating the code to read it.
2017-01-24 12:18:35 -08:00
Justin Shreve
1ab0b34926
Fix meta handling logic for update_post_meta: Only update keys that have changed or don't exist.
2017-01-23 12:20:29 -08:00
Manos Psychogyiopoulos
892d5da7e9
get prices in 'edit' context when updating meta
2017-01-16 17:33:30 +02:00
Mike Jolley
ba8f308100
Merge branch 'master' into orphan-variations-fix-12614
...
# Conflicts:
# includes/class-wc-post-data.php
2017-01-11 15:42:20 +00:00
Mike Jolley
b749b654bc
Fire action on type change
2017-01-11 11:48:31 +00:00
Justin Shreve
cddcb7841e
Check post type during read of coupons, posts, and products.
2017-01-10 14:43:33 -08:00
Manos Psychogyiopoulos
022fbe4183
add 'include' arg to wc_get_products
2017-01-09 14:10:47 +02:00
Mike Jolley
a46ddc5dd2
Merge branch 'pr/12710'
2017-01-03 11:24:41 +00:00
Mike Jolley
e149509f55
Products can have parents too
2017-01-03 11:24:36 +00:00
Manos Psychogyiopoulos
d250d3f149
distinguish between trash and delete object hooks
2016-12-30 00:22:12 +02:00
Manos Psychogyiopoulos
96d7272065
include parent if entering variation id and variations excluded
2016-12-28 16:44:57 +02:00
Manos Psychogyiopoulos
5fa4846f5e
fix inclusion of variation included in product search
2016-12-28 16:41:21 +02:00
Manos Psychogyiopoulos
ae9f4eacc4
fix get_post_parent fatal error
2016-12-27 10:34:32 +02:00
Mike Jolley
6858824de1
missing variable
2016-12-20 13:37:20 +00:00
Mike Jolley
2f9aeed248
Missing variable
2016-12-20 12:48:13 +00:00
Mike Jolley
c78e5cf2ec
Trigger actions after data is saved
...
#12648
2016-12-19 16:40:53 +00:00
Mike Jolley
95794b720c
Only set date_created if empty
...
Fixes #12579
2016-12-13 14:22:59 +00:00
Mike Jolley
1e80db6021
Force meta to be written on creation
...
#12567
2016-12-12 13:56:35 +00:00
Mike Jolley
0ce99fbdbb
Merge pull request #12558 from woocommerce/crud-reduce-queries
...
CRUD reduce queries
2016-12-10 12:35:45 +00:00
Mike Jolley
e0e0c9e832
Replace rating filters with taxonomy
2016-12-09 15:43:25 +00:00
Mike Jolley
5562cfc1f6
Lazy load product meta data
2016-12-09 12:18:21 +00:00
Mike Jolley
563dda505a
Use real cache keys
2016-12-08 17:57:07 +00:00
Mike Jolley
709d314ca7
Add caching to product factory
2016-12-08 17:17:23 +00:00
Mike Jolley
767a1e500e
Helper to get term ids
2016-12-08 17:01:39 +00:00
Mike Jolley
12608af03a
Sorting handling
2016-12-08 14:28:51 +00:00
Mike Jolley
56e9244b8b
Update vis during create
2016-12-08 12:38:30 +00:00
Mike Jolley
47fbae4d26
Product Visibility Taxonomies ( #12527 )
...
* Convert visibility and featured to taxonomy
* Comment
* Add missing tax_queries
* Only check SKU after read.
* Added visibility term for outofstock products to speed those queries up al
* wc_bool_to_string
2016-12-08 10:56:45 +00:00
Justin Shreve
f9891b1744
Pass product slug to wp_set_object_terms directly
2016-12-07 12:55:34 -08:00
Manos Psychogyiopoulos
08b81f73c6
add $product argument to `woocommerce_[variation_]set_stock_status` action
2016-11-28 19:03:33 +02:00
Mike Jolley
b9bb8eabba
Fix order item meta
2016-11-24 11:50:34 +00:00
Mike Jolley
885dad605a
Interface naming
2016-11-22 13:54:51 +00:00
Justin Shreve
174aa38be6
Start moving meta to normal stores, instead of a separate meta store.
2016-11-22 04:05:05 -08:00
Mike Jolley
32de28355a
Merge branch 'master' into order-data-store
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-order-data.php
2016-11-21 14:45:46 +00:00