Claudiu Lodromanean
527fb42771
Refactor empty option check
2017-03-02 08:21:20 -08:00
Mike Jolley
5637f043e5
Fix term name in update function
...
Closes #13398
2017-03-02 15:59:22 +00:00
Mike Jolley
2e56114d8e
Fix styling of variation upsells
2017-03-02 15:33:08 +00:00
Mike Jolley
0dfab8326b
Backwards compatibility for woocommerce_upsell_display_args
2017-03-02 15:29:15 +00:00
Mike Jolley
793b2dfa69
woocommerce_upsells_total filter.
...
Closes #13436
2017-03-02 15:15:41 +00:00
Mike Jolley
c29f6bba50
Merge pull request #13408 from woocommerce/fix-13396
...
Better invalid data store handling
2017-03-02 12:46:51 +00:00
Claudiu Lodromanean
635f8c38a7
Dont render empty stock descriptions
2017-03-01 15:19:31 -08:00
Boro Sitnikovski
519e81ef59
Merge branch 'master' into fix/reintroduce-virtual-coupons
2017-03-02 00:09:03 +01:00
Claudiu Lodromanean
f7752fb9b7
Merge pull request #13413 from JeroenSormani/fix-set-bill-location
...
Set the $state default to '' to prevent warning
2017-03-01 14:18:02 -08:00
Boro Sitnikovski
428e32bfa9
Reintroduce virtual coupons by "un"deprecating the filter.
...
We also need to return to skip CRUD processing.
2017-03-01 22:49:21 +01:00
Justin Shreve
14b06ee323
Merge pull request #13423 from woocommerce/fix/rest-command-notice
...
Fix PHP notice that displays when running CLI commands that accept no ID arguments.
2017-03-01 13:38:11 -08:00
Justin Shreve
0a4c20183d
Merge pull request #13421 from woocommerce/fix/cli-version-target
...
Only target v2 of the WC REST API when generating CLI commands.
2017-03-01 13:34:59 -08:00
Justin Shreve
e8754eafcb
Fix the PHP notice that is displaying when running commands like shop_coupon list that accept no ID arguments.
2017-03-01 13:22:02 -08:00
Justin Shreve
9c8dd2d916
Only target v2 of the WC REST API when generating CLI commands.
2017-03-01 13:05:04 -08:00
JeroenSormani
d97ae5f9a6
Set the default to '' to prevent warning
2017-03-01 19:45:38 +01:00
Claudiu Lodromanean
e132dcba17
Dont save empty text attributes
2017-03-01 10:39:08 -08:00
JeroenSormani
d553b080de
Fix some docblock @param tags / remove a @access public
2017-03-01 18:44:11 +01:00
Claudiu Lodromanean
1eafb487d7
Allow invalid data store exceptions to bubble
2017-03-01 09:24:30 -08:00
Claudiu Lodromanean
65b98b77a3
Better class-enforcing checking
2017-03-01 08:58:03 -08:00
Mike Jolley
2dd8ec743a
Typo
2017-03-01 15:05:24 +00:00
Mike Jolley
3508578831
Merge pull request #13395 from woocommerce/optimise-cron-events
...
Email cron jobs - avoid storing full data objects
2017-02-28 21:31:25 +00:00
Mike Jolley
737c962e48
docblock
2017-02-28 21:16:58 +00:00
Mike Jolley
4f333d0e82
More efficient expand
2017-02-28 21:16:03 +00:00
Mike Jolley
fb576b015b
Email cron jobs - avoid storing full data objects
2017-02-28 20:35:52 +00:00
Michael Pretty
63dca2393c
Allow use of a specific instance of a data store
...
fixes #13393
2017-02-28 15:01:06 -05:00
Mike Jolley
6edd13579b
Update date paid if transitioning to payment complete status ( #13382 )
...
* Update date paid if the from status is unpaid, and the to status is ! unpaid
Closes #13376
* maybe_set_date_paid, maybe_set_date_completed and needs_processing helpers
Set paid is performed once only for BW compatibility with #13375
* Should use set_date_completed
* Docblock and params
2017-02-28 19:08:12 +00:00
Claudiu Lodromanean
5ac880347c
Merge pull request #13390 from woocommerce/video-updates
...
Video updates
2017-02-28 09:51:40 -08:00
Mike Jolley
432ca28398
Update cart discount for old orders ( #13384 )
...
* Total discount bw compat handling
Fixes #13383
* if
2017-02-28 17:49:54 +00:00
Claudiu Lodromanean
84091e5d4b
Whitespace tweak
2017-02-28 09:49:15 -08:00
Mike Jolley
7ab0b99afe
Merge pull request #13389 from woocommerce/fix-13388
...
Fix trashed variation cleanup
2017-02-28 17:45:02 +00:00
Ryan Ray
05a40d8df7
Merge branch 'master' into video-updates
2017-02-28 10:56:28 -05:00
Mike Jolley
41a4bdb181
Fix trashed variation cleanup
...
Fixes #13388
2017-02-28 15:38:11 +00:00
Mike Jolley
5236f48822
Merge pull request #13387 from woocommerce/checkout-styles
...
Checkout styles
2017-02-28 14:19:57 +00:00
Mike Jolley
3df175fbc5
Hide bacs if empty
2017-02-28 12:46:31 +00:00
Konstantinos Kouratoras
4d8714c50a
Fix a typo in help section
...
Fix `splease` typo in help section.
2017-02-28 13:24:30 +02:00
Mike Jolley
8b4625e02e
Legacy variation meta handling
2017-02-28 10:29:08 +00:00
Mike Jolley
fd94ce74bc
Rogue exit in data store
2017-02-28 00:53:41 +00:00
Mike Jolley
906bc70e74
Fix permalink base check
...
Closes #13374
2017-02-28 00:16:26 +00:00
Claudiu Lodromanean
4a4de2a951
Americanize some words
2017-02-27 14:59:37 -08:00
Mike Jolley
8cc23eacdf
Merge pull request #13369 from woocommerce/fix-order-refund-methods
...
Fix order refund methods
2017-02-27 18:02:22 +00:00
Mike Jolley
790dd57933
Apologise -> american english
...
Closes #13370
2017-02-27 17:39:08 +00:00
Mike Jolley
f2990b0c7d
Check we have a WC_Order during email events
2017-02-27 17:08:13 +00:00
Mike Jolley
f5a36778fd
Move refund/payment method code out of abstract
2017-02-27 17:06:09 +00:00
Mike Jolley
84a4c3415c
Handle auto drafts
...
Fixes #13361
2017-02-27 14:40:48 +00:00
Mike Jolley
194ed85d0e
Change title update logic to look at product version and prefix
...
Fixes #13363
2017-02-27 14:40:32 +00:00
Mike Jolley
5c06a6a591
Missing wc_format_localized_price
...
Fixes #13356
2017-02-27 13:39:35 +00:00
Mike Jolley
fce44e2271
Status filter adjustment #13357
2017-02-27 11:55:09 +00:00
Ryan Ray
024b77f088
Updated the embed code.
...
Added a few new videos.
Modified the videos to include more appropriate time stamps
2017-02-25 13:45:00 -05:00
Ryan Ray
b2107f1a62
Renaming what used to be WooCommerce 101 videos to the current Guided
...
Tour naming scheme.
2017-02-25 11:40:10 -05:00
Caleb Burks
e782760011
Clean up
...
These lines, so long ;p
2017-02-25 02:27:38 -06:00
Caleb Burks
21da6ee31c
Hide coupon free shipping conditionally
2017-02-25 02:16:30 -06:00
Claudio Sanches
1eccb65d85
Fixed coding standards
2017-02-24 17:30:41 -03:00
Claudio Sanches
572dd1c91e
Merge pull request #13346 from woocommerce/i18n-urls
...
Fixed confuse translatable URLs
2017-02-24 17:18:37 -03:00
Claudio Sanches
4eccbef6e1
Fixed infinite loop cause by duplicated hook names
2017-02-24 17:02:05 -03:00
Claudio Sanches
a4d2048755
Fixed confuse translatable URLs
2017-02-24 16:41:56 -03:00
Claudio Sanches
c90e0259f2
Merge pull request #13338 from woocommerce/fix-13337
...
Check isset in check_comment_rating
2017-02-24 16:15:30 -03:00
Claudio Sanches
d2ef02477a
Merge pull request #13341 from woocommerce/fix-13326
...
Make theme handling methods static
2017-02-24 16:11:26 -03:00
Claudio Sanches
6f434ee828
Make WC_Twenty_Seventeen::init() static
...
@mikejolley
2017-02-24 16:10:34 -03:00
Claudio Sanches
5383349a0a
Merge pull request #13339 from woocommerce/fix-13335
...
Edit context when duplicating skus
2017-02-24 16:07:17 -03:00
Claudio Sanches
bf51da64d7
Merge branch 'master' into fix-13335
2017-02-24 16:07:00 -03:00
Claudio Sanches
3e7e9dafb1
Allow wc_format_decimal() return negative values
2017-02-24 15:58:02 -03:00
Claudio Sanches
2dc3033c1e
Better fees description
2017-02-24 15:38:14 -03:00
Claudio Sanches
1fdcacc565
Stop remove negative fees
2017-02-24 15:31:51 -03:00
Claudio Sanches
9cb6549ea7
Merge pull request #13340 from woocommerce/fix-13331
...
JSON-LD
2017-02-24 15:10:23 -03:00
Mike Jolley
8ae66520e8
woocommerce_send_queued_transactional_email filter
...
Closes #13318
2017-02-24 13:16:41 +00:00
Mike Jolley
1aaefd9ed7
Make methods static
2017-02-24 12:41:15 +00:00
Mike Jolley
7739bca4fa
Skip replies unless they have a rating.
2017-02-24 12:34:09 +00:00
Mike Jolley
0de73ee4f9
Only show reviewRating when rating is set.
2017-02-24 12:32:39 +00:00
Mike Jolley
6bc97dce91
wc_product_force_unique_sku edit context
2017-02-24 11:43:58 +00:00
Mike Jolley
f9b17ea681
Use edit context when duplicating sku
2017-02-24 11:42:28 +00:00
Mike Jolley
bed9313fab
Check isset in check_comment_rating
2017-02-24 10:35:28 +00:00
Claudiu Lodromanean
eca9828d66
Merge pull request #13330 from woocommerce/fix-13322
...
Fixed wrong index for _wc_variation_file_hashes
2017-02-23 13:39:55 -08:00
Claudio Sanches
e0cffc0934
Merge pull request #13329 from woocommerce/fix-13320
...
Delete cached object when updating stock
2017-02-23 18:20:40 -03:00
Claudio Sanches
ad09c23d1f
Fixed wrong index for _wc_variation_file_hashes, closes #13322
2017-02-23 18:17:44 -03:00
Claudiu Lodromanean
07a021760a
13320 Delete cached object when updating stock
2017-02-23 12:56:34 -08:00
Claudio Sanches
b51a160369
Merge pull request #13311 from woocommerce/fix-13297
...
Wrap read with try catch block
2017-02-23 17:49:55 -03:00
Claudio Sanches
688f77b1c3
Merge pull request #13327 from woocommerce/fix-13321
...
Map legacy tax array keys
2017-02-23 17:03:33 -03:00
Claudiu Lodromanean
252c08b943
Map legacy tax array keys to CRUD
2017-02-23 11:14:42 -08:00
Mike Jolley
6aa9a3936c
Merge pull request #13324 from datafeedr/master
...
Removed duplicate $symbols array key
2017-02-23 18:11:33 +00:00
Mike Jolley
04aebd9fa7
Merge pull request #13306 from woocommerce/fix-13303
...
Fix multiple item additon to orders
2017-02-23 18:11:02 +00:00
Eric Busch
c7b623e36a
Removed duplicate $symbols array key
...
'MAD' key was used twice in the get_woocommerce_currency_symbol() function. Removed the 'MAD' key containing this value: 'د. م.'
2017-02-23 12:59:09 -05:00
Claudio Sanches
a5752f9710
Merge pull request #13319 from woocommerce/legacy-order-read
...
Fix legacy read methods
2017-02-23 13:42:46 -03:00
Claudio Sanches
c376173890
Merge pull request #13313 from woocommerce/fix-13264-2
...
Save existing rates rather than recreate all
2017-02-23 13:40:57 -03:00
Claudiu Lodromanean
330525eb47
Merge pull request #13317 from Chouby/deprecated_stock
...
Fix call to deprecated methods in ajax reduce/increase stock responses
2017-02-23 08:23:37 -08:00
Mike Jolley
a9e001026d
Fix legacy read methods
2017-02-23 16:19:19 +00:00
Claudio Sanches
9a666d23e1
Merge pull request #13310 from woocommerce/checkout-improvements
...
Checkout improvements and fixes
2017-02-23 13:15:06 -03:00
Claudio Sanches
b17c3c86c6
Merge pull request #13316 from woocommerce/fix-13314
...
Handle _no_shipping_class
2017-02-23 12:58:51 -03:00
Frédéric Demarle
c5247a8c4b
Fix call to deprecated methods in ajax reduce/increase stock responses
2017-02-23 16:54:04 +01:00
Mike Jolley
aaecd9e97c
Handle _no_shipping_class
2017-02-23 15:48:53 +00:00
Claudio Sanches
22bb3071df
Merge pull request #13305 from woocommerce/fix-13304
...
Fix unique sku function
2017-02-23 12:46:38 -03:00
Mike Jolley
c5697f2d59
Logic error with used id
2017-02-23 15:25:49 +00:00
Mike Jolley
134df2f4a0
Save existing rates rather than recreate all
...
Fixes #13264
2017-02-23 14:14:50 +00:00
Mike Jolley
6f02cda453
get_item_count_refunded should be positive
...
Closes #13307
2017-02-23 13:52:17 +00:00
Mike Jolley
1463d2a9ba
Merge pull request #13284 from woocommerce/fix-13275
...
Maintain support for non-prefixed item meta array access
2017-02-23 13:47:40 +00:00
Mike Jolley
7846def9b8
Use correct key to set/unset
2017-02-23 13:46:06 +00:00
Mike Jolley
1552ed8d6d
Merge pull request #13309 from maximus80/master
...
fix photoswipe template be always loaded, even if lightbox is disabled
2017-02-23 13:11:36 +00:00
Mike Jolley
34d03e524a
woocommerce_date_input_html_pattern filter
...
Closes #13289
2017-02-23 12:57:33 +00:00
Mike Jolley
d56d11f1aa
Use endpoint option in wc_get_endpoint_url
...
Fixes #13293
2017-02-23 12:37:41 +00:00
Mike Jolley
1d9f71fee5
Wrap read with try catch block
2017-02-23 12:09:39 +00:00
Mike Jolley
eb47dc7036
Improve validation event
2017-02-23 11:51:27 +00:00
Maximus80
3c2ac21294
fix photoswipe template be always loaded
2017-02-23 11:46:48 +01:00
Mike Jolley
f21997d661
Send items in one request rather than multiple requests
2017-02-23 10:19:32 +00:00
Mike Jolley
dec52e8be2
Fix multiple item additon
2017-02-23 10:19:15 +00:00
Mike Jolley
2f44e5769b
Don't adjust empty skus
2017-02-23 10:04:58 +00:00
Mike Jolley
4ff3c300ba
Merge pull request #13298 from woocommerce/localized-coupon-amount
...
Coupon amount should be localized
2017-02-23 09:42:33 +00:00
Claudio Sanches
53cf89f63a
Coupon amount should be localized
2017-02-22 18:58:32 -03:00
Claudio Sanches
c473190756
Merge pull request #13285 from woocommerce/fix-13273
...
Trash and post status for orders
2017-02-22 18:56:55 -03:00
Claudio Sanches
e42e2a3335
Replace woocommerce_coupon_code filter by wc_format_coupon_code()
2017-02-22 14:40:24 -03:00
Mike Jolley
b409c1edef
Use CRUD in coupons list
2017-02-22 17:29:59 +00:00
Mike Jolley
75928057ed
Merge pull request #13282 from woocommerce/fix-13274
...
Check if product is taxable before calculating coupon tax.
2017-02-22 16:18:56 +00:00
Mike Jolley
3af989fa1b
Merge pull request #13281 from woocommerce/fix-13265
...
Fix sale date field
2017-02-22 16:18:35 +00:00
Mike Jolley
4e7658a5ba
Fix duplication by passing through force
...
Fixes #13286
2017-02-22 13:15:33 +00:00
Mike Jolley
ded2accace
Allow trash status to be set/returned rather than pending
2017-02-22 11:53:47 +00:00
Mike Jolley
f80de0bc31
Use get_post_status directly in legacy code
...
Fixes #13273
2017-02-22 11:53:34 +00:00
Mike Jolley
729416a3b5
Non prefixed delete/set
2017-02-22 11:32:54 +00:00
Mike Jolley
a9562ba558
Maintain support for non-prefixed item meta array access
2017-02-22 11:30:17 +00:00
Mike Jolley
1098d49526
Check if product is taxable.
2017-02-22 10:41:39 +00:00
Mike Jolley
2ac125417f
Fix sale date field
2017-02-22 10:31:20 +00:00
Beka Rice
24b586c18f
Fixes coupon styles so admin CSS applies
2017-02-21 21:29:06 -05:00
Mike Jolley
af39a16434
Ensure date exists before setting
...
Fixes #13269
2017-02-21 20:50:52 +00:00
Mike Jolley
04955093d6
Use admin init hook
...
Closes #13248
2017-02-21 12:20:47 +00:00
Mike Jolley
02a57ab5cb
Merge pull request #13259 from thenbrent/access_data_store_consistently
...
Access data store consistently
2017-02-21 09:59:26 +00:00
Mike Jolley
b4bebfa218
Merge pull request #13258 from thenbrent/add_order_param
...
2.7: Pass $order to callbacks on checkout line item creation hooks
2017-02-21 09:58:35 +00:00
Mike Jolley
55ad57ff3a
Merge pull request #13253 from woocommerce/fix-13249
...
Order Item Tax set_rate fixes
2017-02-21 09:55:22 +00:00
Brent Shepherd
e01b3b2714
Pass $order on checkout line item hooks
...
Because otherwise, there is no way to find out what order the line
item is associated with as the order has not been saved, so does
not have an ID to set on the line item yet - $item->get_order_id()
will return 0.
2017-02-20 21:35:00 -08:00
Akeda Bagus
43a63985c6
Install pages action should return array instead of string.
...
Fixes #13256 .
2017-02-21 12:01:27 +07:00
Claudiu Lodromanean
376c069f47
Merge pull request #13250 from woocommerce/improvement-13240
...
Helpful notices when deleted items in re-order
2017-02-20 16:08:32 -08:00
Claudiu Lodromanean
56b065a782
Performance updates to order tax
2017-02-20 13:50:07 -08:00
Claudiu Lodromanean
b855003912
Might as well fix the compound too
2017-02-20 13:13:08 -08:00
Claudiu Lodromanean
79a65efa9c
Use get_rate_label for setting the rate label
2017-02-20 12:57:21 -08:00
Claudio Sanches
93dac70fc2
Merge pull request #13252 from woocommerce/fix-13244
...
Check the nicename, not the sanitized name
2017-02-20 16:52:39 -03:00
Mike Jolley
73c651f4d0
Check the nicename, not the sanitized name
2017-02-20 18:04:45 +00:00
Claudiu Lodromanean
078032f623
Handle deleted items in re-order
2017-02-20 09:29:19 -08:00
Claudio Sanches
12d2d6656e
Merge pull request #13246 from woocommerce/fix-13233
...
Reset columns when invalid
2017-02-20 12:28:50 -03:00
Claudio Sanches
88b38423f6
Merge pull request #13247 from woocommerce/fix-13243
...
Fix download count
2017-02-20 12:28:37 -03:00
Claudio Sanches
3939444454
Merge pull request #13242 from woocommerce/plain-text-data
...
Plain text emails and structured data
2017-02-20 12:22:42 -03:00
Mike Jolley
7aeb151bb6
Fix download count
2017-02-20 13:36:15 +00:00
Mike Jolley
35c3b829e4
Reset columns when invalid
2017-02-20 13:21:51 +00:00
Mike Jolley
ca55291263
Skip plain text
2017-02-20 12:04:53 +00:00
Mike Jolley
c2c7563dff
Merge pull request #13235 from Chouby/product_duplicate
...
Separate logic from action for product duplicate
2017-02-20 11:12:23 +00:00
Mike Jolley
4c75f2b7a2
Fix max value logic and -1 handling
...
Fixes #13237
2017-02-20 11:10:19 +00:00
Frédéric Demarle
048882f66d
Separate logic from action for product duplicate
2017-02-18 17:50:45 +01:00
Brent Shepherd
e427f90a24
Access data store consistently
...
WC_Data object's data store is accessed everywhere else directly
via $this->data_store. This patch uses that same approach here.
2017-02-17 10:25:27 -08:00
Claudio Sanches
486a81bf12
Fixed coding standards
2017-02-17 16:10:15 -02:00
Mike Jolley
48c93d5293
Fix variation max qty.
2017-02-17 16:37:40 +00:00
Mike Jolley
a5ddccf814
Merge pull request #13229 from woocommerce/remove-filter-for-v2
...
Allow filter query parameter only in REST API v1
2017-02-17 16:29:57 +00:00
Mike Jolley
88280d7756
Fix: Wrong product object
2017-02-17 16:28:11 +00:00
Mike Jolley
a0483a30dc
Clear children on stock update
...
Closes #13218
2017-02-17 16:25:45 +00:00
Claudio Sanches
542fea3d85
Merge pull request #13230 from woocommerce/quantity-actions-and-grouped-products
...
Quantity actions and grouped handling
2017-02-17 14:14:36 -02:00
Mike Jolley
1b268d2f63
use helpers
2017-02-17 15:52:47 +00:00
Mike Jolley
6201c7e22b
Add get_min_purchase_quantity and max helper
2017-02-17 15:52:39 +00:00
Claudio Sanches
0410518f31
Removed filter query param from products queries in REST API
2017-02-17 13:15:54 -02:00
Claudio Sanches
8db3f3eaf0
Allow filter query parameter only in v1
2017-02-17 13:13:17 -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
3a6b4ffb38
Doing it wrong notice when setting a negative fee in cart.
...
#13224
2017-02-17 12:28:18 +00:00
Kathy
c30b1c1bb3
Coupon tweaks ( #13222 )
...
* pass coupon to applied/removed JS trigger
* add coupon id and coupon object to action hooks in admin metabox
2017-02-17 11:58:15 +00:00
pierrebuet
f6c9dce9b4
fix user id for download file ( #13220 )
2017-02-17 11:55:11 +00:00
Mike Jolley
232162bbf0
Download BW compat
...
#13220
2017-02-17 11:54:50 +00:00
Claudio Sanches
b0e6a5ab5d
Get object again after saved
2017-02-17 01:46:42 -02:00
Claudio Sanches
a46aea1b77
Fixedd status
2017-02-17 01:17:52 -02:00
Claudio Sanches
58d90a2ee8
Added legacy classes
2017-02-17 00:27:40 -02:00
Claudio Sanches
6af3b2255e
Fixed default used_by
2017-02-17 00:10:46 -02:00
Claudio Sanches
ba7607fe00
Improved delete_item() for products and variations
2017-02-17 00:10:25 -02:00
Claudio Sanches
18dc63757b
BCheck if object exists
2017-02-17 00:09:46 -02:00
Claudio Sanches
94b0800735
Use CRUD Controller for product variations
2017-02-16 22:51:36 -02:00
Claudio Sanches
55977d03f3
Do not allow manipulate variations on products endpoint
2017-02-16 22:51:24 -02:00
Claudio Sanches
63cb7e7c27
Use CRUD Controller for products
2017-02-16 22:26:21 -02:00
Claudio Sanches
31f68377f9
Fixed docblock
2017-02-16 22:25:20 -02:00
Claudio Sanches
01a5296e7e
Fixed how CRUD delete items by REST API
2017-02-16 22:25:07 -02:00
Claudio Sanches
197d2eb98e
Use CRUD Controller for order refunds
2017-02-16 21:45:12 -02:00
Claudio Sanches
687433d5cc
Use CRUD Controller for orders
2017-02-16 21:15:34 -02:00
Claudio Sanches
34cf70407e
Use CRUD Controller for coupons
2017-02-16 20:31:36 -02:00
Claudio Sanches
d4ce22cb76
Created WC_REST_CRUD_Controller
2017-02-16 20:27:07 -02:00
Claudio Sanches
7a52ec465b
Fixed docblocks and removed dead variables
2017-02-16 18:05:06 -02:00
Mike Jolley
70d46fe008
Fix index checks
2017-02-16 16:45:50 +00:00
Mike Jolley
b37e4da43c
Move legacy classes to correct dir
2017-02-16 16:39:56 +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
dd3d46ccaf
Merge branch 'master' into includes
...
# Conflicts:
# includes/admin/class-wc-admin-duplicate-product.php
2017-02-16 16:28:46 +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
4271352502
Escaping dates and statuses
2017-02-16 15:59:28 +00:00
Claudio Sanches
9c15ca936b
Merge pull request #13206 from woocommerce/rest-api-v2
...
REST API v2
2017-02-16 12:53:46 -02:00
Mike Jolley
fadc0937c3
product category count fix
...
Fixes #13191
2017-02-16 12:57:48 +00:00
Mike Jolley
5309b4ca7d
woocommerce_delete_order_refund
2017-02-16 12:33:47 +00:00
Mike Jolley
244f075958
Fix preg match
...
Fixes #13205
2017-02-16 12:21:05 +00:00
Mike Jolley
bbf8e750ce
Tidy up includes
2017-02-16 11:46:01 +00:00
Mike Jolley
2afefcad90
Merge pull request #13203 from woocommerce/deprecated-hooks-tests
...
Deprecated hook handler unit tests
2017-02-16 11:01:45 +00:00
Mike Jolley
47078b4c15
Check product exists before getting permalink
...
Closes #13210
2017-02-16 10:38:14 +00:00
Mike Jolley
bf384d07be
use global in factory if no id is passed
...
Fixes #13211
2017-02-16 10:33:59 +00:00
Mike Jolley
1b2bdf7bfd
Merge pull request #13207 from duracelltomi/master
...
Adding WP filter to is_order_received_page()
2017-02-16 10:12:05 +00:00
Akeda Bagus
9ad529f170
Replaced deprecated woocommerce_format_decimal with wc_format_decimal.
...
Fixes #13208 .
2017-02-16 13:49:56 +07:00
Thomas Geiger
5f6295264d
Adding WP filter to is_order_received_page()
...
Many plugins and themes rely on is_order_received_page() to include special codes when the user places an order. Some plugins however alter the flow: Klarna checkout for example uses a completely custom checkout flow, some other plugins adds the option to the user to specify a WP page as "the" order received page instead of the WooCommerce default. All those plugins break codes where is_order_received_page() is being used.
2017-02-16 07:00:16 +01:00
Claudio Sanches
f08c10d068
Fixed and improved the variations endpoint
2017-02-16 03:07:51 -02:00
Claudio Sanches
e48243aa0b
No private methods in REST API
2017-02-16 02:30:04 -02:00
Claudio Sanches
666d1f3c06
Prevent PHP notices while saving meta_data without an id
2017-02-16 01:44:45 -02:00
Claudio Sanches
75b2661ba3
Fixed undefined $meta[id]
2017-02-16 01:42:47 -02:00
Claudio Sanches
036a2f6c92
Allow save meta data for products in v2
2017-02-16 01:39:30 -02:00
Claudio Sanches
d2818be2ba
Order refunds v1 and v2
2017-02-16 01:27:44 -02:00
Claudio Sanches
a19fa78cef
Fixed orders get_collection_params()
2017-02-16 01:10:41 -02:00
Claudio Sanches
5ebeafac33
Removed duplicated code
2017-02-16 01:09:36 -02:00
Claudio Sanches
eaf492a7f1
Fixed orders v2 schema
2017-02-16 01:08:02 -02:00
Claudio Sanches
503812971d
Fixed deprecated warnings in orders v1
2017-02-16 00:45:20 -02:00
Claudio Sanches
5c0046b325
Do not allow save meta_data in orders v1
2017-02-16 00:33:17 -02:00
Claudio Sanches
cc1992f1c8
Fixed item variation_id
2017-02-16 00:26:42 -02:00
Claudio Sanches
2d0a479750
Updated v1 methods
2017-02-16 00:22:15 -02:00
Claudiu Lodromanean
ca541f5704
Fix PHP 5.2 compat error
2017-02-15 13:18:46 -08:00
Claudiu Lodromanean
829fa246f2
Formatting
2017-02-15 12:13:29 -08:00
Claudiu Lodromanean
e8579c649c
Deprecated hook handler unit tests
2017-02-15 11:34:14 -08:00
Mike Jolley
9b7395705a
Fix checkout $order property
2017-02-15 17:07:03 +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
Claudiu Lodromanean
dda98da4ad
Merge pull request #13192 from woocommerce/deprecated-hooks
...
Deprecated hook handling
2017-02-15 08:40:16 -08:00
Mike Jolley
e07d9ad970
Actions and filters
...
Adds actions when duplicating things so objects can be changed, and
reinstates woocommerce_duplicate_product_exclude_meta which can unset
meta keys before save.
Closes #13180
2017-02-15 15:35:59 +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
7baaeaafd0
Public WC()->query->get_endpoints_mask() #13179
2017-02-15 12:30:23 -02:00
Claudio Sanches
bad93d4c86
Improved naming for meta_data in schema
2017-02-15 12:28:45 -02:00
Claudio Sanches
185b1929e2
Merge pull request #13179 from helgatheviking/filter_query_vars
...
add woocommerce_get_query_vars filter
2017-02-15 12:28:01 -02:00
Mike Jolley
1dfdecf9b7
Merge pull request #13198 from woocommerce/fix/notice-on-saving-order
...
Fix PHP notice when there are shipping taxes.
2017-02-15 14:20:39 +00:00
Boro Sitnikovski
5dd607023b
Fix PHP notice when there are shipping taxes.
2017-02-15 15:17:04 +01:00
Mike Jolley
019b2515b8
Merge pull request #13151 from thenbrent/reusable_checkout_line_item_creation
...
Make WC_Checkout line item creation methods reusable by 3rd party code
2017-02-15 13:11:41 +00:00
Mike Jolley
adb718b71e
Missing include
2017-02-15 11:45:07 +00:00
Mike Jolley
f4ab01d276
Reduce index sizes based on data
2017-02-15 11:36:41 +00:00
Mike Jolley
5f20f9a1f1
Fix tax rate country index
2017-02-15 11:17:33 +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
Claudiu Lodromanean
44af1237e5
Move things around for performance
2017-02-14 13:11:45 -08:00
Mike Jolley
e8628ab412
Merge pull request #13188 from Chouby/master
...
[2.7] Add filter woocommerce_duplicate_product_exclude_children back
2017-02-14 19:39:17 +00:00
Mike Jolley
0c7218047c
Fix error message
2017-02-14 19:31:14 +00:00
Mike Jolley
e0d1cfc7b0
Actions
2017-02-14 19:23:57 +00:00
Claudiu Lodromanean
749971759f
Reduce spacing back to original
2017-02-14 11:22:50 -08:00
Claudiu Lodromanean
332e79da8d
Re-approach attribute skipping in simpler, general purpose way
2017-02-14 11:20:20 -08:00
Mike Jolley
17e8ea8236
Filter hooks
2017-02-14 18:57:45 +00:00
Mike Jolley
7b0b1529bf
woocommerce_checkout_order_processed bw compat
2017-02-14 18:57:29 +00:00
Mike Jolley
6add2f9a64
WC_Deprecated_Hooks abstract
2017-02-14 18:56:09 +00:00
Mike Jolley
1a61f20785
Add actions to trigger legacy actions
2017-02-14 18:55:56 +00:00
Mike Jolley
c53d0cc89c
Correctly deprecate all methods and move action/filter code
2017-02-14 18:55:30 +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
Claudio Sanches
0dac5e596c
Included meeta data to products
2017-02-14 14:01:31 -02:00
Claudio Sanches
ad3716a49e
Fixed coupons schema
2017-02-14 13:59:22 -02:00
Frédéric Demarle
f502e306e6
Add filter woocommerce_duplicate_product_exclude_children back
2017-02-14 16:39:49 +01: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
ab1b3201e0
Update docblock
2017-02-13 13:54:52 -08:00
Claudiu Lodromanean
afcbd456c4
Skip attributes in get_formatted_meta_data a different way
2017-02-13 13:53:22 -08:00
Claudio Sanches
5365fec1b3
V1 and V2 for products endpoint
2017-02-13 19:44:27 -02:00
Claudiu Lodromanean
a8b491b55b
Handle product titles with no attributes
2017-02-13 11:45:25 -08:00
Kathy Darling
f29c51497e
add woocommerce_get_query_vars filter
2017-02-13 12:22:05 -06: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
ad442567d6
Remove isset rule
2017-02-13 14:39:00 +00:00
Mike Jolley
bdf567e90d
Adjust how product_type is deprecated
2017-02-13 14:31:43 +00:00
Mike Jolley
3157955414
Adjustments to schema
...
#13161
2017-02-13 14:04:33 +00:00
Mike Jolley
d080e135ee
Reduce `select *` usage
2017-02-13 12:58:42 +00:00
Jez McKean
b65e41206f
needs_shipping(): minor efficiency improvement
...
No need to check other products for whether they need shipping if we've already found one.
2017-02-13 12:28:50 +00:00
Mike Jolley
cfa3c34ada
bigint(20) replacement
...
Closes #13160
2017-02-13 11:49:30 +00:00
Mike Jolley
f7da2c615a
Remove location_type index
...
Closes #13162
2017-02-13 11:47:27 +00:00
Mike Jolley
8d13913e70
Avoid division by 0 in wc_get_loop_class
...
Closes #13159
2017-02-13 11:25:58 +00:00
Claudio Sanches
633ed64b02
Merge pull request #13156 from woocommerce/fix-12802
...
Improve checkout performance when updating product sales
2017-02-11 13:53:32 -02:00
Mike Jolley
a20c0da580
syntax error
2017-02-11 15:50:21 +00:00
Mike Jolley
6cf98a7e4d
Avoid read after updating meta in the database
...
@justinshreve Was there a reason this was added? I don’t see a reason
why it needs to be re-read if the array is up to date?
2017-02-11 15:45:13 +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
Claudio Sanches
d02d90c867
V1 and V2 for product taxonomies, reviews, reports, taxes and webhooks
2017-02-11 12:51:41 -02:00
Claudio Sanches
e9f2e75d53
Fixed coding standards and file header
2017-02-11 12:51:13 -02:00
Claudio Sanches
1b1b784cb4
Merge pull request #13158 from woocommerce/fix-13119
...
Only append tax price suffix if taxable
2017-02-11 12:08:11 -02:00
Mike Jolley
eb518ec06d
Only append tax price suffix if taxable
2017-02-11 00:08:49 +00:00
Mike Jolley
979e64c242
Merge pull request #13145 from woocommerce/fix/cli-id-docs
...
Fix CLI documentation for commands with multiple IDs.
2017-02-11 00:05:17 +00:00
Mike Jolley
31d428131e
Imrpove checkout performance when updating product sales
2017-02-10 23:41:53 +00:00
Claudio Sanches
190ebccd00
Fixed order notes
2017-02-10 21:34:01 -02:00
Claudio Sanches
7f82051dd9
Fixed returning values in write context
2017-02-10 21:32:40 -02:00
Claudio Sanches
ca67d448a2
Fixed doing it wrong notices
2017-02-10 21:11:56 -02:00
Claudiu Lodromanean
8a05f72f78
Minor clean-up
2017-02-10 14:35:26 -08:00
Claudiu Lodromanean
f362e0108e
Enable attribute suppression in wc_display_item_meta
2017-02-10 14:11:16 -08:00
Claudio Sanches
e84acf3ee4
Order notes v2
2017-02-10 18:31:29 -02:00
Claudio Sanches
e4b6c81f66
Customer downloads v2
2017-02-10 18:31:21 -02:00
Brent Shepherd
5d10c797d0
Make WC_Checkout line item creations reusable
...
By passing in dependencies, like cart items, fees, taxes or coupons,
as well as the cart to which they relate.
2017-02-10 12:03:32 -08:00
Claudiu Lodromanean
8d2fd29396
Don't rtlcss select2.css
2017-02-10 11:39:28 -08:00
Mike Jolley
d693863ad2
Merge pull request #13064 from thenbrent/variable_product_sync_filters
...
Modify variable product sync hooks
2017-02-10 18:40:48 +00:00
Brent Shepherd
5d560f380a
Remove 'woocommerce_variable_product_synced' hook
...
And add additional suggested alternatives to the deprecated
woocommerce_variable_product_sync hook.
2017-02-10 10:36:35 -08:00
Brent Shepherd
5dec55928b
Add 'woocommerce_variable_product_sync_data'
...
Renaming 'woocommerce_variable_product_sync_before_save'
2017-02-10 10:33:48 -08:00
Claudiu Lodromanean
b6b3f0c217
Modify product title logic
2017-02-10 10:19:05 -08:00
Mike Jolley
82d9abd4c5
Make sure enabled is checked by default
...
#13147
2017-02-10 17:43:32 +00:00
Claudio Sanches
b1b536b5d2
Give REST API authentication a lower priority
...
Bigger than add_filter( 'determine_current_user', 'wp_validate_auth_cookie' );
Smaller than add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20
);
This solve issues while trying to authenticate in a browser while logged
in.
Closes #13134
2017-02-10 15:35:52 -02:00
Justin Shreve
700026c2ab
Separate positional and assoc arguments.
2017-02-10 08:38:43 -08:00
Mike Jolley
b58e26b0ab
Backwards compatibility for triggers
...
Closes #13141
2017-02-10 13:09:37 +00:00
Mike Jolley
5349171083
This panel does not show in products anyway
...
Fixes #13133
2017-02-10 12:51:49 +00:00
Claudiu Lodromanean
ab8fb48bb4
Fix and standardize e-mail sending
2017-02-09 14:49:39 -08:00
Claudiu Lodromanean
21617f408d
Bring up to date with master
2017-02-09 14:06:49 -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
Claudio Sanches
ec8fe6e30d
[REST API] Implement CRUD to customers
2017-02-09 19:54:16 -02:00
Claudio Sanches
23fbc31dfb
[REST API v1] Implement CRUD to coupons
2017-02-09 19:22:19 -02:00
Claudio Sanches
5d87a28407
Restored shipping zones base controller
2017-02-09 18:46:57 -02:00
Claudio Sanches
88d2875514
Restored REST API v1
2017-02-09 18:40:35 -02:00
Claudio Sanches
4b156ab1ae
Merge old REST API branch
2017-02-09 18:19:56 -02:00
Claudio Sanches
feeb98e801
Merge pull request #13131 from woocommerce/cli-attrib
...
Restructure ID route code for the CLI & fix attribute term.
2017-02-09 18:14:19 -02:00
Justin Shreve
309d118287
Restructure ID route code for the CLI & make the attribute term command work.
2017-02-09 10:29:24 -08:00
Claudiu Lodromanean
3120a19dae
Switch isset back to array_key_exists to keep null-default props working
2017-02-09 10:13:44 -08:00
Justin Shreve
988175b746
Merge pull request #13127 from woocommerce/fix/product-data-store-title
...
Don't use get_the_title during product read
2017-02-09 10:08:51 -08:00
Claudio Sanches
c350ecfb99
Fixed PHP 5.2 fatal error, closes #13128
2017-02-09 15:27:26 -02:00
Claudio Sanches
4352484ed7
REST API v2
2017-02-09 15:06:13 -02:00