Mike Jolley
1d9f71fee5
Wrap read with try catch block
2017-02-23 12:09:39 +00:00
Mike Jolley
4e7658a5ba
Fix duplication by passing through force
...
Fixes #13286
2017-02-22 13:15:33 +00:00
Mike Jolley
7aeb151bb6
Fix download count
2017-02-20 13:36:15 +00:00
Claudio Sanches
486a81bf12
Fixed coding standards
2017-02-17 16:10:15 -02:00
pierrebuet
15275130e2
Fix access expires not set ( #13227 )
...
* fix user id for download file
* fix access expires for download when not set
‚NULL‘ trigger a 0000-00-00 00:00:00
as date in the database column. In order to write a real Null to the
database, the quotations must be deleted
2017-02-17 15:04:21 +00:00
Mike Jolley
1348f6efd7
Merge branch 'master' into db-schema-tweaks
...
# Conflicts:
# includes/admin/class-wc-admin-duplicate-product.php
2017-02-16 16:33:20 +00:00
Mike Jolley
2505abeb21
Merge pull request #13202 from woocommerce/fix-13199
...
Duplicate products; fix variation creation and add actions
2017-02-16 16:18:53 +00:00
Mike Jolley
b69988fe39
Correct changes in variation data update and fix context
2017-02-16 16:07:11 +00:00
Mike Jolley
5309b4ca7d
woocommerce_delete_order_refund
2017-02-16 12:33:47 +00:00
Mike Jolley
f664fb955f
Refunds cannot be trashed
...
Avoid trashed status after deleting a refund.
Fixes #13200
2017-02-15 17:02:05 +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
Claudio Sanches
9012fead56
Merge pull request #13136 from woocommerce/improvement-12990
...
Add logic to variation title generation and remove redundant template info.
2017-02-14 19:15:48 -02: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
Akeda Bagus
840a4b18a6
Fix wrong meta key in recorded_coupon_usage_counts getter/setter.
...
Fixes #13183 .
Fixes #13182 .
2017-02-14 17:33:32 +07:00
Claudiu Lodromanean
3068d56bac
Remove unused variable
2017-02-13 14:19:26 -08:00
Claudiu Lodromanean
a8b491b55b
Handle product titles with no attributes
2017-02-13 11:45:25 -08: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
d080e135ee
Reduce `select *` usage
2017-02-13 12:58:42 +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
Claudiu Lodromanean
8a05f72f78
Minor clean-up
2017-02-10 14:35:26 -08:00
Claudiu Lodromanean
b6b3f0c217
Modify product title logic
2017-02-10 10:19:05 -08:00
Claudiu Lodromanean
e330ab4158
Pass product into filters
2017-02-09 14:05:40 -08:00
Claudiu Lodromanean
a3f9207839
Add logic to variation title generation
2017-02-09 14:03:00 -08:00
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