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