Justin Shreve
8a6bae374f
Switch from get_the_title to the post objects post_title.
2017-02-09 08:43:48 -08:00
Claudio Sanches
094b86c92b
Merge pull request #13104 from woocommerce/fix-13015
...
Inherit shipping class id from parent
2017-02-09 13:37:54 -02:00
Claudio Sanches
e3b563c518
Merge pull request #13044 from woocommerce/crud-perf-tweaks
...
[2.7] CRUD performance improvements for emails
2017-02-09 13:25:29 -02:00
Mike Jolley
dcce2a4190
Change order of execution on checkout so shipping is required.
...
Closes #12992
2017-02-09 12:59:13 +00:00
Mike Jolley
7ff301e2ca
Merge branch 'master' into crud-perf-tweaks
...
# Conflicts:
# includes/data-stores/class-wc-order-item-data-store.php
2017-02-09 12:31:25 +00:00
Justin Shreve
65b99bf240
moved order item type check to order item data store
2017-02-08 11:42:36 -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
4525f91223
Merge pull request #13112 from woocommerce/fix-13106
...
Don't round values in get_on_sale_products
2017-02-08 10:14:52 -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
Mike Jolley
718149f1d4
Merge pull request #12999 from thenbrent/add_sort_variation_prices
...
Move price sorting into WC_Product_Variable::sort_variation_prices()
2017-02-08 10:29:30 +00: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
a4f87293ca
Inherit shipping class id from parent
2017-02-07 12:35:24 +00:00
Brent Shepherd
8431b2ac86
Remove 'edit' param on get_visible_children()
...
The WC_Product_Variable::get_visible_children() method accepts no parameters.
2017-02-03 14:53:03 -08:00
Mike Jolley
3529d7cafd
Cache items
2017-02-01 14:54:18 +01:00
Mike Jolley
31308403d4
Use variables to save values in item crud.
2017-02-01 10:53:53 +01:00
Mike Jolley
5a2b07763d
Update metadata directly
2017-02-01 02:03:18 +01:00
Mike Jolley
5e2f1de36b
get id once
2017-02-01 01:44:16 +01:00
Mike Jolley
2d013eb5be
Handle wp prefix in php
2017-02-01 01:43:52 +01:00
Mike Jolley
5b221b4ed0
Edit context
...
#12936
2017-01-31 17:26:49 +01:00
Mike Jolley
dee73d4056
Use edit context on load
...
Closes #12936
2017-01-31 09:39:19 +01:00
Mike Jolley
abe87d9bfa
Merge pull request #12967 from woocommerce/fix/variation-get-name
...
Clean up variation names.
2017-01-27 17:01:34 +00:00
Brent Shepherd
e7e434da4b
WC_Product_Variable::sort_variation_prices()
...
To keep variation sorting logic inside the variable product, and separate
from the database storage logic in WC_Product_Variable_Data_Store_CPT
2017-01-26 12:47:46 -08:00
Justin Shreve
7b1adfb98f
Bake out of get_title deprecation changes
2017-01-26 07:46:59 -08:00
Justin Shreve
32651f638c
When updating payment tokens, only update the props that have changed + fire off a hook of the changed props.
2017-01-25 11:05:54 -08:00
Justin Shreve
318046789c
Comment clarifying translation wrapper.
2017-01-25 10:40:14 -08:00
Justin Shreve
9889efec75
Catch Product # titles and remove error logs
2017-01-25 10:37:48 -08:00
Justin Shreve
f344143b63
Catch variation text and update
2017-01-25 10:27:28 -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
3afb00da06
Fixed Typo
2017-01-25 00:09:57 +00:00
Mike Jolley
ea817a5c88
Merge pull request #12970 from thenbrent/check_variation_post_type
...
Check post type during read of product variations
2017-01-25 00:08:54 +00:00
Mike Jolley
90fd0da7d0
Fire actions for updated props
2017-01-24 21:38:02 +00:00
Brent Shepherd
49095f0a6c
Check post type during read of product variations
...
Continuation of #12795
2017-01-24 12:28:02 -08:00
Brent Shepherd
f2cb083bd6
Read extra data for variation products
...
So that classes can extend WC_Product_Variation and use the existing
WC_Product_Variation_Data_Store_CPT class, rather than having to create
a new data store class to set the WC_Product_Variation::$extra_data
values.
2017-01-24 12:20:15 -08: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
2b464d2e52
Deprecate get_title and it's hook, use get_name instead and pull name from parent.
2017-01-24 12:10:36 -08:00
Justin Shreve
2cdf950963
Merge pull request #12950 from woocommerce/fix/meta-update
...
Data Stores & update_post_meta: Update changed & keys that don't exist.
2017-01-24 07:14:54 -08:00
Justin Shreve
711a381ff6
Remove error log
2017-01-23 13:16:49 -08:00
Justin Shreve
3d55efffac
Move order logic to wc-order
2017-01-23 13:08:55 -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
Brent Shepherd
1ac2c1a94f
Move price hash to separate function
...
So that it can be used by child classes without copy/pasting code.
2017-01-23 11:57:49 -08:00
Mike Jolley
1e9659b235
Merge pull request #12884 from kreamweb/master
...
Fix: usermeta table name, in a multisite the usermeta table is common…
2017-01-23 11:54:59 +00:00
Brent Shepherd
ff627b31f6
Make variable data store private methods protected
...
So they can be inherited by other variable product types, like
variable subscriptions.
2017-01-20 11:09:49 -08:00
Mike Jolley
fa9fed4e4d
Merge pull request #12908 from thenbrent/fix_refund_data_store_read
...
[2.7] Fix WC_Order_Refund_Data_Store_CPT::read() and Abstract_WC_Order_Data_Store_CPT's support for other custom order types
2017-01-20 10:44:18 +00:00
Mike Jolley
f44b4f6e9f
Merge pull request #12907 from thenbrent/get_order_count_param
...
[2.7] Fix name of get_order_count() param
2017-01-20 10:43:06 +00:00
Brent Shepherd
c8f003d5b0
Fix WC_Order_Refund_Data_Store_CPT::read()
...
Abstract_WC_Order_Data_Store_CPT::read() hardcoded its validation against
the 'shop_order' post type. However, custom order types created via the
wc_register_order_type() API can use different post types. For example,
refunds have the post type: 'shop_order_refund'.
This patch changes the Abstract_WC_Order_Data_Store_CPT::read() validation
to check that the post type is any of the registered order types.
This fixes refunds and 3rd party custom order types, like subscriptions.
2017-01-19 16:18:42 -08:00
Brent Shepherd
f9569df1ee
Fix naming of get_order_count() param
...
The parameter is actually an order status, not type.
2017-01-19 15:40:20 -08:00
Justin Shreve
98343ffe26
Fix docblocks and cast the order ID as int after our query.
2017-01-19 09:38:23 -08:00
Justin Shreve
a1446c9591
Add method for getting order id from order item id.
2017-01-19 09:30:19 -08:00
emanuela castorina
c4c78442cf
Fix: usermeta table name, in a multisite the usermeta table is common to all sites
2017-01-18 18:11:21 +01:00