Justin Sternberg
37a387a391
Add the shortcode name param to the WC_Shipping_Legacy_Flat_Rate fee shortcode.
2017-01-03 13:12:00 -05:00
Justin Sternberg
6f5617eb2e
Add the shortcode name param to the fee shortcode.
...
Re: #11447 and #12741
2017-01-03 13:05:43 -05:00
Mike Jolley
fc867c1a58
Return current variations after API update/create
2017-01-03 16:53:49 +00:00
Mike Jolley
31ad64438f
Merge pull request #12737 from bekarice/2-7-undefined-index-fixes
...
Fixes undefined index notices with empty select2
2017-01-03 15:04:21 +00:00
Mike Jolley
2e1e7c0f93
Fix downloads remaining
...
Issues around ‘’ set (unlimited downloads) Fixes #12692
2017-01-03 15:03:55 +00:00
Beka Rice
b8c7d7e771
Fixes undefined index notices with empty select2
2017-01-03 09:16:58 -05: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
Mike Jolley
96876777ef
Merge pull request #12712 from Dartui/master
...
Added email ID to locate core template for email
2017-01-03 11:01:01 +00:00
Mike Jolley
3e10368ad6
Merge pull request #12720 from franticpsyx/delete-vs-trash-object-hooks
...
[2.7] Separate trash and delete CRUD object hooks
2017-01-03 11:00:34 +00:00
Claudio Sanches
c79b4f1fd5
Fixed case for #12645
2017-01-03 00:26:34 -02:00
Claudio Sanches
6d45e531fd
Merge pull request #12734 from corsonr/fix_wizard_tracking_name
...
Updated WooThemes to WooCommerce
2017-01-02 17:09:22 -02:00
corsonr
62c881b3c2
Updated WooThemes to WooCommerce
2017-01-02 17:56:19 +01:00
Jon Surrell
14e5bdcf91
Fix typos
2017-01-02 14:51:56 +01:00
Jon Surrell
4cfc6b4d04
Handle top and bottom bulk actions
2017-01-02 14:42:14 +01:00
Jon Surrell
b4b5c5124a
Refactor WC_Admin_Log_Table_List::prepare_items
...
Extract several methods to simplify structure and flow
2017-01-02 14:42:13 +01:00
akashsonic
202458a1f3
Dynamic add 2 attribute.
...
Add dynamic 2 attributes rows & cols in woocommerce_wp_textarea_input function. User can add dynamic this attributes in text-area field.
2017-01-02 18:01:52 +05:30
Manos Psychogyiopoulos
d250d3f149
distinguish between trash and delete object hooks
2016-12-30 00:22:12 +02:00
Jon Surrell
90ef632fa5
Colorize leveles in db log table
2016-12-29 12:03:59 +01:00
Jon Surrell
a33fac966d
Use plural in multiple log email
2016-12-29 11:58:43 +01:00
Jon Surrell
4cf86ef346
Use constants over settings to configure logger
...
Settings have been removed.
WC_LOG_THRESHOLD and WC_LOG_HANDLER constants have been added.
2016-12-29 11:58:43 +01:00
Jon Surrell
e4681d268b
Remove logging
2016-12-29 11:58:43 +01:00
Jon Surrell
269addd9f8
Rework db log table
...
Change tag from text search to select list.
Flatten and clean up query logic.
Add required methods for source <select>.
2016-12-29 11:58:43 +01:00
Jon Surrell
c633b07f73
Fix style
2016-12-29 11:58:43 +01:00
Jon Surrell
588b1c2267
Format date in log viewer table
2016-12-29 11:58:43 +01:00
Jon Surrell
fbd91fe376
Improve email handler subject
2016-12-29 11:58:43 +01:00
Jon Surrell
4b13e3b053
Do not deprecate WC_Logger::add
2016-12-29 11:58:43 +01:00
Jon Surrell
e4d5886427
Replace log `tag` with log `source`
2016-12-29 11:58:43 +01:00
Jon Surrell
03889f77cc
Update use of deprecated wc_get_log_file_path
2016-12-29 11:58:43 +01:00
Jon Surrell
088fc5cd68
Delay file log write when written too early
...
The function to look up log file paths depends on `wp_hash`, which is pluggable.
Log files cannot be found before `plugins_loaded` action. In case a log is
written to a file before `wp_hash` is available, cache and write on
`plugins_loaded` action.
2016-12-29 11:58:43 +01:00
Jon Surrell
5700043e6d
Deprecate wc_get_log_file_path
...
wc_get_log_file_path moves into `WC_Log_Handler_File` class as a static
method.
Update deprecations and version info.
2016-12-29 11:58:43 +01:00
Jon Surrell
feefabbdf0
Document _legacy context in WC_Log_Handler_File
2016-12-29 11:58:43 +01:00
Jon Surrell
665e8ccfc6
Improve doc comments and access.
2016-12-29 11:58:43 +01:00
Jon Surrell
f908a0181c
Improve deprecation messages for WC_Logger
...
clear and remove *do* have alternatives. They have essentially
been moved to the file handler.
2016-12-29 11:58:43 +01:00
Jon Surrell
6068f681d3
Use 'notice' as level for deprecated WC_Logger::add messages.
...
Notice is the default (and recommended) threshold for production sites. Using
info, which is below notice, would result in ::add messages to be filtered by
default. This would be a confusing experience for users calling the deprecated
function and expecting a log.
2016-12-29 11:58:43 +01:00
Jon Surrell
de076a313e
Fix settings log texts
...
Add 'woocommerce' to __ translated texts.
Improve texts.
2016-12-29 11:58:43 +01:00
Jon Surrell
d4e8bb82e6
Remove new handler arguments from `wc_register_default_log_handler`
2016-12-29 11:58:43 +01:00
Jon Surrell
970a33e182
Cleanup log list table view
...
Format log timestamp.
Add is_valid_level check to $_REQUEST level filter.
General cleanup: formatting, layout, commentary.
2016-12-29 11:58:43 +01:00
Jon Surrell
aee5917440
Change wc_safe_dump to wc_print_r
...
Match print_r arguments, this makes usage obvious.
2016-12-29 11:58:43 +01:00
Jon Surrell
2ae1bc1ab2
Protect methods
2016-12-29 11:58:43 +01:00
Jon Surrell
fe837c5113
Aggregate email handler messages (max: 1 email/request/handler)
...
Update emails accordingly.
Update email handler tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
acc98a1d6a
Mark WC_Log_Handler::format_entry abstract
2016-12-29 11:58:43 +01:00
Jon Surrell
5f24eca7e2
Add delete to db log viewer table
...
Clean up some nonce logic.
Use a single <form> containing log table.
2016-12-29 11:58:43 +01:00
Jon Surrell
9ba616b2c1
Return single instance from wc_get_logger
...
Remove class include from wc_get_logger (should be autoloaded).
Add tests for wc_get_logger.
2016-12-29 11:58:43 +01:00
Jonathan Surrell
4318b3aa53
Improve @return signature on WC_Log_Handler::handle
...
Make meaning of returned bool explicit.
Update WC_Log_Handler_Email::handle accordingly.
via https://github.com/woocommerce/woocommerce/pull/12575#pullrequestreview-12381573
2016-12-29 11:58:43 +01:00
Jon Surrell
81eaa5ae17
Make lot threshold strings translatable
2016-12-29 11:58:43 +01:00
Jon Surrell
080cf8e436
Store log levels as integer representations in database
...
This will allow indexed ordering by severity.
Add WC_Log_Levels::get_severity_level method to translate severity
integers to level strings. The inverse of WC_Log_Levels::get_level_severity.
Add context to tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
78e6cb31a7
Include WC_Log_Handler with other abstracts
2016-12-29 11:58:43 +01:00
Jon Surrell
825d9c9f82
Fix spelling
2016-12-29 11:58:43 +01:00
Jon Surrell
88836b9cca
Drop WP_DEBUG override threshold. Improve logger tests.
...
This may be unexpected behavior for a user, their level is overridden with no
way to change it. It also greatly complicates testing default thresholds.
Dependency on WC_Log_Handler_File has been removed from logger tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
2626c5b3af
Accept explicit handlers and threshold in WC_Logger
2016-12-29 11:58:43 +01:00
Jon Surrell
be38e8f2fe
Add log threshold setting to settings page
2016-12-29 11:58:43 +01:00
Jon Surrell
ffd0d380ee
Remove threshold logic from handlers.
...
Email handler implements threshold logic internally. Other handlers handle all logs received.
Handler constructors have changed.
2016-12-29 11:58:43 +01:00
Jon Surrell
2945b4755f
Add more information about log levels
2016-12-29 11:58:43 +01:00
Jon Surrell
85fa9df7fe
Drop "bubbling" support for logs
...
The concept of bubbling or consuming logs has little benefit for our use case.
Drop support for bubbling and simplify logging.
2016-12-29 11:58:43 +01:00
Jon Surrell
4f77954bc7
Move log levels to independent class
2016-12-29 11:58:43 +01:00
Jon Surrell
ae72ce24c4
Drop `var_dump` as safe dump alternative
...
var_dump does not support returning string representation.
2016-12-29 11:58:43 +01:00
Jon Surrell
d88ea4ecea
Spelling and doc fixes
2016-12-29 11:58:43 +01:00
Jon Surrell
0f13cca921
Use autoloader for log handlers
2016-12-29 11:58:43 +01:00
Jon Surrell
e2f76bcd54
Fix logs-db redirects
2016-12-29 11:58:42 +01:00
Jon Surrell
c633db9d65
Add woocommerce_default_log_handler setting
...
Adds configuration to settings page
Show status-logs page based on settings (unify logs & database logs)
Register default log handler by default
2016-12-29 11:58:42 +01:00
Jon Surrell
44ec07902d
Add confirmation to db log flush
2016-12-29 11:58:42 +01:00
Jon Surrell
9d80017308
Mark db handler add method as static
2016-12-29 11:58:42 +01:00
Jon Surrell
c945d727d5
Add log flushing to db log viewer
2016-12-29 11:58:42 +01:00
Jon Surrell
5e9d4189fb
Include missing 5 in log level severities
2016-12-29 11:58:42 +01:00
Jon Surrell
e42d2e61fd
Update print_r to use wc_safe_dump
2016-12-29 11:58:42 +01:00
Jon Surrell
691c35e97b
Update logger calls
2016-12-29 11:58:42 +01:00
Jon Surrell
66b0620f7c
remove print_r calls from paypal handler
2016-12-29 11:58:42 +01:00
Jon Surrell
96f9de2106
update paypal gateway logs
2016-12-29 11:58:42 +01:00
Jon Surrell
36201d38ec
Update paypal gateway log method
2016-12-29 11:58:42 +01:00
Jon Surrell
7a3c6bcc0c
Fix phpcs issues
2016-12-29 11:58:42 +01:00
Jon Surrell
915266f967
Add wc_safe_dump function
...
Some "safe" server configurations disable certain functions. `wc_safe_dump` attempts to
safely call a series of alternatives suitable for dumping an expression.
2016-12-29 11:58:42 +01:00
Jon Surrell
a0670cfae8
Add woocommerce_format_log_entry filter to base WC_Log_Handler class
2016-12-29 11:58:42 +01:00
Jon Surrell
2283956db6
Provide correct class name to woocommerce_log_handler_set_threshold filter
2016-12-29 11:58:42 +01:00
Jon Surrell
0c5634c99f
Version 1.0.0 for abstract wc log handler
2016-12-29 11:58:42 +01:00
Jon Surrell
d6a6b8771d
Add level views to db log table
2016-12-29 11:58:42 +01:00
Jon Surrell
30fdca65a9
Log viewer via html template
2016-12-29 11:58:42 +01:00
Jon Surrell
bc3f788507
Implements database log viewer
2016-12-29 11:58:42 +01:00
Jon Surrell
f761183363
Update @package for log handlers
2016-12-29 11:58:42 +01:00
Jon Surrell
5a9db9738f
Add DB log handler
2016-12-29 11:58:42 +01:00
Jon Surrell
09ea8b074e
Prefer PHP_EOL over "\n"
2016-12-29 11:58:42 +01:00
Jon Surrell
822981c009
Improve handle signature
...
The signature of WC_Log_Handler::handle mirrors log messages which is more intuitive.
Method docblocks have also been improved and are more complete.
2016-12-29 11:58:42 +01:00
Jon Surrell
e7d6a9a48b
Rotate logs
...
WC_Log_Handler_File now includes log rotation.
Add and improve tests.
2016-12-29 11:58:42 +01:00
Jon Surrell
2a6c95b490
Prevent possible undefined index warning
2016-12-29 11:58:42 +01:00
Jon Surrell
75c3e5e8c6
Fix phpcs warning
2016-12-29 11:58:42 +01:00
Jon Surrell
9adb64b6b9
Restore log deletion from admin log viewer page
...
WC_Logger no longer controls logging and has no knowledge of files.
Correctly handle `remove_log` action via file log handler.
2016-12-29 11:58:42 +01:00
Jon Surrell
b645fa06b7
Improve logic for legacy `->add` message formatting
...
Suggestion via https://github.com/woocommerce/woocommerce/pull/12340#discussion_r88318220
2016-12-29 11:58:42 +01:00
Jon Surrell
ad03597a3d
Simplify default log entry format
...
Remove punctuation. Space separate values:
TIMESTAMP LEVEL MESSAGE
2016-12-29 11:58:42 +01:00
Jon Surrell
611577320f
Include site name in log email message
...
Suggestion via https://github.com/woocommerce/woocommerce/pull/12340#discussion_r88213040
2016-12-29 11:58:42 +01:00
Jon Surrell
f0508a0fc6
Improve log email message format.
...
Suggestion via https://github.com/woocommerce/woocommerce/pull/12340#pullrequestreview-8895028
2016-12-29 11:58:42 +01:00
Jon Surrell
e4c08aa03a
Remove optional from required log handler context array
2016-12-29 11:58:42 +01:00
Jon Surrell
722b288b79
Remove _ from private/protected properties
2016-12-29 11:58:42 +01:00
Jon Surrell
fe02d44e31
Defauly log file level is DEBUG
2016-12-29 11:58:42 +01:00
Jon Surrell
b2935f35ed
Fix file handle regression
2016-12-29 11:58:42 +01:00
Jon Surrell
6ec75d8c2e
Change defualt log handler threshold to DEBUG following discussion with team members.
2016-12-29 11:58:42 +01:00
Jon Surrell
b5cebcab6c
Fix scrutinizer issues
2016-12-29 11:58:42 +01:00
Jon Surrell
d5d1ab16ea
Fix docblocks
2016-12-29 11:58:42 +01:00
Jon Surrell
c5c0563f7c
Restore deprecated functions WC_Logger::clear & WC_Logger::remove
...
Also updates clear test to supply required argument.
2016-12-29 11:58:42 +01:00
Jon Surrell
36873e5097
Provide basic messages for email log handler
2016-12-29 11:58:42 +01:00
Jon Surrell
479ef85cd8
Add email log handler
2016-12-29 11:58:42 +01:00
Jon Surrell
864e65de10
Remove redundant __constructor
2016-12-29 11:58:42 +01:00
Jon Surrell
4262a72af6
Use wp_parse_args for default args
2016-12-29 11:58:42 +01:00
Jon Surrell
9dc30a7203
Remove 2nd filter parameter that would never be called
2016-12-29 11:58:42 +01:00
Jon Surrell
44ea69c579
Adds tests for bubbling, etc.
...
Add tests teardown to cleanup log files
Fix errors in log handlers
2016-12-29 11:58:42 +01:00
Jon Surrell
0e0433195d
Add logic for log level filtering to `WC_Log_Handler`.
2016-12-29 11:58:42 +01:00
Jon Surrell
9a0efcfe55
Add abstract WC_Log_Handler class
...
Abstract base class is implemented with default formatting implementations.
`$timestamp` has been added to the `WC_Log_Handler::handle` implementation. This ensures all handlers are passed the same timestamp for the same message.
`_legacy` context has been added to `WC_Log_Handler_File` to ensure handle deprecated `WC_Logger::add` provides the same log entries as before.
Fix CS problems.
2016-12-29 11:58:42 +01:00
Jon Surrell
a2cce14711
Register file log handler by default
...
Add wc_register_file_log_handler function.
Calls add_filter with register function to include handler by default
2016-12-29 11:58:42 +01:00
Jon Surrell
d9dcabf8f2
WC_Logger registers and delegates logging to handlers
2016-12-29 11:58:42 +01:00
Jon Surrell
e922efb0f7
Extract file log handler
2016-12-29 11:58:42 +01:00
Krzysztof Grabania
3a54b24fa1
Added email ID to locate core template for email
...
This PR adds email id to `woocommerce_locate_core_template` filter. It would be useful for custom emails created by plugins, which have got default email templates.
2016-12-28 20:38:51 +01: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
b5c56737c5
merge branch 'master' into fix-product-search-get-post-parent-fatal-error
2016-12-27 10:57:52 +02:00
Manos Psychogyiopoulos
be436b629d
fix include field typo
2016-12-27 10:36:44 +02:00
Manos Psychogyiopoulos
ae9f4eacc4
fix get_post_parent fatal error
2016-12-27 10:34:32 +02:00
Claudio Sanches
539099c7d7
Include $endpoint in woocommerce_endpoint_X_title filter #12676
2016-12-25 20:43:25 -02:00
Mike Jolley
daea231ab7
Merge pull request #12666 from woocommerce/select2-4
...
Upgrade Select2 to V4
2016-12-24 14:40:09 +00:00
Mike Jolley
6b511e84be
Sorting
2016-12-23 15:14:27 +00:00
Mike Jolley
e9be3a425a
Handle search params in filters
...
Closes #12685
2016-12-23 14:45:58 +00:00
Mike Jolley
a3f8ffb101
Ensure price is set
2016-12-23 14:30:47 +00:00
Mike Jolley
a2a16a2ec0
Merge pull request #12683 from franticpsyx/shipping-rate-taxes-array-not-saved
...
[2.7] Shipping order item taxes array not saved on checkout
2016-12-23 14:19:43 +00:00
Mike Jolley
859727d462
Merge pull request #12678 from franticpsyx/rest-api-set-order-item-action
...
[2.7] Add 'woocommerce_rest_set_order_item' REST API hook
2016-12-23 14:18:31 +00:00
Mike Jolley
e8b1fe1bf2
Merge pull request #12679 from franticpsyx/rest-api-totals-excl-tax
...
[2.7] Calculate REST order item totals excluding tax if undefined (?)
2016-12-23 14:17:07 +00:00
Mike Jolley
377bbf7767
Merge branch 'master' into read-price-data-caching
2016-12-23 14:08:08 +00:00
Mike Jolley
ceee6c37ca
Change how non-crud props get stored
2016-12-23 14:06:51 +00:00
Mike Jolley
99527e8013
Merge pull request #12680 from franticpsyx/remaining-incorrect-inline-comments
...
[2.7] Remaining inline comments about pointers
2016-12-22 22:37:33 +00:00
Mike Jolley
364d4bd82c
Merge pull request #12675 from maciekkus/feature/make-tax-includes-text-consistient
...
Make 'includes tax' text wrapping with <small> tag consistient across order and cart table
2016-12-22 22:37:06 +00:00
Maciej Kuś
e5bae8b7af
space preserved before "included_tax" small element
2016-12-22 20:05:46 +01:00
Manos Psychogyiopoulos
d7afab3930
fix saving of shipping order item taxes on checkout
2016-12-22 20:49:42 +02:00
Manos Psychogyiopoulos
40bf6afc29
fix incorrect inline comments
...
Ref: 01aba1fd2b
2016-12-22 19:41:23 +02:00
Manos Psychogyiopoulos
42e09eac32
make rest api order item totals - always excl tax
2016-12-22 19:23:07 +02:00
Manos Psychogyiopoulos
0d6eae5fca
add 'woocommerce_rest_set_order_item' hook
2016-12-22 17:56:14 +02:00
Mike Jolley
01aba1fd2b
Incorrect inline comments
2016-12-22 15:06:10 +00:00
Mike Jolley
03b581f72e
Refunds API/get_data() missing ID
...
Fixes #12672
2016-12-22 14:52:37 +00:00
Mike Jolley
f3dc355632
Check post data is set
...
Closes #12670
2016-12-22 14:41:39 +00:00
Mike Jolley
8f49724b17
Merge pull request #12674 from franticpsyx/rest-api-set-order-item-meta
...
[2.7] REST order item meta not intercepted
2016-12-22 14:38:39 +00:00
Mike Jolley
8f43bb2a6c
Merge pull request #12676 from widoz/master
...
Move the 'woocommerce_endpoint_' . $endpoint . '_title' filter
2016-12-22 14:34:27 +00:00
Mike Jolley
6861131d8f
Fix version check
2016-12-22 14:30:47 +00:00
Mike Jolley
d5b346fc40
Variation specific backwards compatibility
2016-12-22 14:30:47 +00:00
Guido Scialfa
440d407ce5
Move the 'woocommerce_endpoint_' . $endpoint . '_title' filter outside of the default condition, let's filter the titles regardless of the endpoint
2016-12-22 15:25:22 +01:00
Mike Jolley
fd45160439
Merge pull request #12667 from franticpsyx/product-variation-hook-prefix
...
[2.7] Fix product variation hook prefix for consistency
2016-12-22 13:50:38 +00:00
Mike Jolley
c0dd1146ab
Merge pull request #12668 from franticpsyx/woocommerce-get-product-from-item-order-arg
...
[2.7] Use get_order instead of creating object in woocommerce_get_product_from_item args
2016-12-22 13:29:12 +00:00
Maciej Kuś
53c7c4025f
includes tax wrapping <small> consistient across order and cart table
2016-12-22 13:56:29 +01:00
Manos Psychogyiopoulos
dae45b8a29
fix paren position
2016-12-22 14:10:36 +02:00
Manos Psychogyiopoulos
6fc59cf2dc
set REST order item meta
2016-12-22 12:29:57 +02:00
Manos Psychogyiopoulos
02abc9b9eb
use get_order instead of creating new object when applying woocommerce_get_product_from_item
2016-12-21 21:01:47 +02:00
Manos Psychogyiopoulos
63a4cf41d0
fix product variation hook prefix for consistency
2016-12-21 18:06:42 +02:00
Mike Jolley
92968492a0
Customer search
2016-12-21 14:18:33 +00:00
Mike Jolley
96877dbb25
Fix product search inputs
2016-12-21 13:23:26 +00:00
Mike Jolley
56fef5b4f6
More styling settings tweaks
2016-12-21 11:36:48 +00:00
Manos Psychogyiopoulos
1b65b793d2
fix non-object error when clearing transients
2016-12-20 22:29:17 +02:00
Mike Jolley
badf8d7d55
Add select2 script and CSS
2016-12-20 16:45:22 +00:00
Mike Jolley
906499bbb8
woocommerce_ajax_get_customer_details filter and deprecation notice
...
Closes #12654
2016-12-20 16:02:38 +00:00
Mike Jolley
0c65505b1e
Merge pull request #12650 from franticpsyx/deprecate-order-item-qty
...
[2.7] Add backwards compatibility for old order item 'qty' field
2016-12-20 15:49:14 +00:00
Mike Jolley
c29d597986
Merge pull request #12649 from woocommerce/save-actions
...
Add actions for all object types
2016-12-20 15:44:51 +00:00
Mike Jolley
50b1a9d378
woocommerce_update_order
2016-12-20 15:44:37 +00:00
Mike Jolley
13086ba7cd
no class cost logic should only kick in if store has shipping classes.
2016-12-20 15:40:05 +00:00
Mike Jolley
d3709ce0ef
HTTP_X_COUNTRY_CODE
2016-12-20 15:24:30 +00:00
Mike Jolley
6858824de1
missing variable
2016-12-20 13:37:20 +00:00
Mike Jolley
0300464613
Use accounting.js in price slider widget
2016-12-20 13:11:09 +00:00
Mike Jolley
2f9aeed248
Missing variable
2016-12-20 12:48:13 +00:00
Mike Jolley
f67f013957
[2.6] VIP fallback
2016-12-20 11:37:36 +00:00
Mike Jolley
c4cf6ba740
[2.6] Change API fallbacks
2016-12-20 11:37:36 +00:00
Mike Jolley
2ebd83aa2d
Merge pull request #12653 from shivapoudel/blank-state-trash-btn
...
Hide "Empty Trash" button in blank state after removing all data
2016-12-20 11:09:52 +00:00
Mike Jolley
bc24a2e854
BW compat for variable naming
...
@webaware
2016-12-20 11:07:31 +00:00
Mike Jolley
23c500986e
Limit lengths of PayPal Args
2016-12-20 10:58:10 +00:00
Shiva Poudel
d20cdd2830
Hide "Empty Trash" button in blank slate after removing all data
2016-12-20 12:15:17 +05:45
Manos Psychogyiopoulos
e2651d730d
back compat for old order item 'qty' field
2016-12-20 01:06:39 +02:00
Mike Jolley
54ca822e57
Fix variable names
2016-12-19 17:13:25 +00:00
Mike Jolley
20680203bb
Add actions for all object types
2016-12-19 17:09:52 +00:00
Mike Jolley
c78e5cf2ec
Trigger actions after data is saved
...
#12648
2016-12-19 16:40:53 +00:00
Mike Jolley
1795a0f9c3
Remove virtual products from shipping packages
...
Closes #12628
2016-12-19 16:17:50 +00:00
Mike Jolley
a41f9d6ec4
Make sure shipping address is set if needed
2016-12-19 15:42:53 +00:00
Mike Jolley
e5c18fd6e4
Fix currency check unit tests
2016-12-19 15:11:25 +00:00
Mike Jolley
910d6d9900
Store custom checkout fields prefixed with shipping or billing in meta
...
Closes #12634
2016-12-19 14:51:56 +00:00
Mike Jolley
218689d9c3
woocommerce_order_data_store_cpt_get_orders_query
...
Closes #12643
2016-12-19 14:24:20 +00:00
Mike Jolley
b81b6c1a44
Create text terms if they do not exist
...
Closes #12631
2016-12-19 13:09:45 +00:00
Mike Jolley
51fc839515
Merge pull request #12645 from MA7/patch-1
...
Update wc-core-functions.php
2016-12-19 12:50:12 +00:00
Masoud Amini
7fac0156fe
Update wc-core-functions.php
2016-12-19 16:10:11 +03:30
Mike Jolley
3f7c1c7087
Fix email address field
...
Fixes #12642
2016-12-19 12:19:44 +00:00
Mike Jolley
587334a567
Merge branch 'pr/12639'
2016-12-19 11:59:17 +00:00
Mike Jolley
5ae62959d8
Notices
2016-12-19 11:59:10 +00:00
Mike Jolley
0246172806
Action comments
2016-12-19 11:58:00 +00:00
Mike Jolley
2e77e38d33
colour -> color
...
#12627
2016-12-19 11:41:48 +00:00
Manos Psychogyiopoulos
87bb9adf08
use CRUD to add line item meta
2016-12-19 13:27:32 +02:00
Mike Jolley
81f4cadf12
Merge pull request #12646 from franticpsyx/add-shipping-package-details-filter
...
Missing commit in #12632 - index package item names by cart item id
2016-12-19 11:23:52 +00:00
Mike Jolley
9617030610
Merge remote-tracking branch 'origin/master'
2016-12-19 11:23:03 +00:00
Mike Jolley
e974682218
Merge branch 'pr/12641'
2016-12-19 11:22:58 +00:00
Mike Jolley
5fc67bbd0c
Unset changes
2016-12-19 11:22:43 +00:00
Mike Jolley
c980817f6d
Merge pull request #12637 from franticpsyx/additional-information-tab-action
...
[2.7] Use 'woocommerce_product_additional_information' action to render attributes
2016-12-19 10:59:15 +00:00
Masoud Amini
72856b1b60
Update wc-core-functions.php
2016-12-19 14:23:56 +03:30
Manos Psychogyiopoulos
62ed6ee9d8
index package item names by cart item id
2016-12-19 12:52:02 +02:00
Manos Psychogyiopoulos
48bf909fa2
use getters/setters in order item offsetset/get
2016-12-18 20:31:52 +02:00
Manos Psychogyiopoulos
03fac5231f
set order item object as read after reading child class data
2016-12-18 20:04:14 +02:00
Manos Psychogyiopoulos
f0aa493a98
order id omitted from woocommerce_add_shipping_order_item args
2016-12-18 18:39:37 +02:00
Manos Psychogyiopoulos
7751264a2a
package not passed in woocommerce_add_shipping_order_item action
2016-12-18 18:36:04 +02:00
Manos Psychogyiopoulos
3a8eae195b
maintain order item meta action hooks
2016-12-18 18:13:11 +02:00
Manos Psychogyiopoulos
af3c24881d
render product attributes in 'woocommerce_product_additional_information' action
2016-12-18 00:53:45 +02:00
Manos Psychogyiopoulos
5bfe614668
add 'woocommerce_shipping_package_details_array' filter
2016-12-17 14:47:43 +02:00
Mike Jolley
a9a21bf9e0
Fix sale date series
...
Fixes #12609
2016-12-16 12:35:33 +00:00
Mike Jolley
d46d00bd08
Order numbers should be a string
...
Closes #12616
2016-12-16 11:49:00 +00:00
Mike Jolley
020a7b518f
Fix API set of reviews_allowed
...
#12618
2016-12-16 11:24:11 +00:00
Mike Jolley
758f3a21a4
Typo
2016-12-16 10:36:21 +00:00
pmaiorana
822c1353af
Removes the State/Province field for Kuwait and Lebanon
...
As noted in support ticket #507320 (and verified) neither Kuwait nor Lebanon have States/Provinces.
2016-12-15 16:34:43 -05:00
Claudio Sanches
0da2f70e13
Fixed coding standards
2016-12-15 15:11:08 -02:00
Claudio Sanches
485c89ee99
Fixed wrong textdomain
2016-12-15 14:44:43 -02:00
Mike Jolley
d52a126eb2
Remove bulk_action callback
2016-12-15 15:55:40 +00:00
Mike Jolley
61605e893b
Remove legacy code and add correct callback
...
#12476
2016-12-15 15:51:54 +00:00
Claudio Sanches
e5290fef79
Merge pull request #12604 from woocommerce/fix-12509
...
[2.6] [REST API] Throw exception when product image ID is not a valid attachment
2016-12-15 13:43:56 -02:00
Mike Jolley
cbc18258e6
Cast found posts to int
...
Fixes #12608
2016-12-15 15:24:35 +00:00
Mike Jolley
dcc47e395f
Add email for case #12603
...
Closes #12603
2016-12-15 15:21:53 +00:00
Mike Jolley
53436d2043
No need to update totals
...
#12237
2016-12-15 15:07:48 +00:00
Mike Jolley
cf0943fda9
Fix term sorting
...
Closes #12602
2016-12-15 14:09:01 +00:00
Mike Jolley
3c06dab0e8
Change action order to be compat with 2.6
...
Closes #12606
2016-12-15 13:08:25 +00:00
Mike Jolley
ad4704f02d
Variations script refactor from #12585
...
Applying this to master to match 2.6 PR
2016-12-15 12:58:41 +00:00
Mike Jolley
e1ec8fb9db
Merge pull request #12598 from woocommerce/percent-coupon-types
...
Merging percent based coupon types
2016-12-15 11:09:54 +00:00
Claudio Sanches
af52cf4f73
[2.6] [REST API] Throw exception when product image ID is not a valid attachment
2016-12-14 21:11:50 -02:00
Claudio Sanches
91d8230c5d
Merge pull request #12599 from woocommerce/bulk-labels
...
More explicit bulk price labels
2016-12-14 18:17:09 -02:00
Claudio Sanches
9d8b45087f
Merge pull request #12577 from woocommerce/checkout-locale-simplification
...
Add sort parameter to checkout fields to aid with sorting per locale.
2016-12-14 17:34:15 -02:00
Mike Jolley
66be50ba72
More explicit bulk price labels
2016-12-14 12:06:46 +00:00
Mike Jolley
7873a328ce
Rewrite should be false
...
Closes #12589
2016-12-14 11:28:26 +00:00
Mike Jolley
7806ac4edf
Missing data store
...
Fixes #12588
2016-12-14 11:26:21 +00:00
Mike Jolley
3e2a758c65
Fix meta data read
2016-12-14 11:23:17 +00:00
Mike Jolley
18920bd55e
Remove validate_cart_excluded_sale_items
2016-12-14 11:17:22 +00:00
Mike Jolley
b5f9d6b6eb
Merge percent and cart percent coupon types
2016-12-14 11:07:08 +00:00
Mike Jolley
f29288b542
Fix default attribute saving
2016-12-13 20:03:00 +00:00
Mike Jolley
b5da116ed9
Fix check in dad7dcbf4b
2016-12-13 18:54:06 +00:00
Mike Jolley
d32797b733
Handle BW compat priority.
2016-12-13 18:48:39 +00:00
Claudio Sanches
a9f8ccd77c
Merge pull request #12583 from woocommerce/cli-updates
...
Update CLI callback
2016-12-13 14:18:34 -02:00
Mike Jolley
95794b720c
Only set date_created if empty
...
Fixes #12579
2016-12-13 14:22:59 +00:00
Mike Jolley
d441e34ef5
Support template option
...
Closes #12544
2016-12-13 14:02:52 +00:00
Mike Jolley
9651a1d3fc
Update CLI callback
2016-12-13 13:38:20 +00:00
Mike Jolley
dad7dcbf4b
Check IPV6 support and add log
...
Closes #12580
2016-12-13 12:35:25 +00:00
Mike Jolley
6cf565c122
IDs for products were stored as strings in legacy
2016-12-12 15:29:53 +00:00
Mike Jolley
74f3972e26
Add sort parameter to checkout fields to aid with sorting per locale.
2016-12-12 15:23:28 +00:00
Mike Jolley
1e80db6021
Force meta to be written on creation
...
#12567
2016-12-12 13:56:35 +00:00
Mike Jolley
ecbf72632d
Unused code
2016-12-12 13:43:39 +00:00
Mike Jolley
2c6bef3ce1
Reverse query so missing stock status meta does not break sync
...
Fixes #12567
2016-12-12 13:37:51 +00:00
Mike Jolley
4d2364573c
Fix query spaces
2016-12-12 13:10:29 +00:00
Mike Jolley
0e72b87ca1
Allow comment editing.
...
Closes #12563
2016-12-12 13:00:08 +00:00
Mike Jolley
dcb5211adf
Clear woocommerce_plugin_background_installer event
2016-12-12 12:02:06 +00:00
Mike Jolley
306c4f8a2d
Merge pull request #12569 from webmandesign/patch-2
...
Fixing issue #12568
2016-12-12 11:20:16 +00:00
Mike Jolley
b463bcc4a0
Fix deprecated filter mapping
2016-12-12 10:58:27 +00:00
Oliver Juhas
6b5330e16e
Checking if we got the attachment post
...
Fixing issue #12568
2016-12-10 20:45:04 +01:00
Mike Jolley
df057abe88
Missing DISTINCT keyword
2016-12-10 12:51:15 +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
40ab84b372
Merge pull request #12552 from woocommerce/cli
...
WooCommerce CLI
2016-12-09 17:12:51 +00:00
Mike Jolley
8bd08e4c21
typos
2016-12-09 17:04:44 +00:00
Mike Jolley
36f7c3c810
woocommerce_paypal_line_item filter
...
Closes #12554
2016-12-09 16:59:29 +00:00
Mike Jolley
87579c013d
Fix attribute output
...
Closes #12556
2016-12-09 16:43:22 +00:00
Mike Jolley
240c599b9c
Base transient name on query args
...
Fixes #12557
2016-12-09 16:27:54 +00:00
Mike Jolley
0ac6c3b03f
Use IDs to reduce queries
2016-12-09 15:54:58 +00:00
Mike Jolley
e0e0c9e832
Replace rating filters with taxonomy
2016-12-09 15:43:25 +00:00
Mike Jolley
861f9e7a20
update_object_term_cache for cart items
2016-12-09 13:16:15 +00:00
Mike Jolley
5df70d8458
Merge pull request #12546 from woocommerce/paypal-image-url
...
Add image_url setting to PayPal Standard.
2016-12-09 12:59:59 +00:00
Mike Jolley
5562cfc1f6
Lazy load product meta data
2016-12-09 12:18:21 +00:00
Justin Shreve
ec30c308c3
Add CLI tests
2016-12-08 14:13:10 -08:00
Justin Shreve
da1e14c087
Add WC CLI commands powered by the REST API.
2016-12-08 10:59:07 -08: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
90ff6705be
Only validate attachment IDs when set after read
2016-12-08 16:08:10 +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
edfc54dff5
Add image_url setting to PayPal Standard.
2016-12-08 12:28:05 +00:00
Mike Jolley
43d018bb97
Attributes are non-hierarchical by default (parent is not supported)
...
Closes #12530
2016-12-08 11:23:24 +00:00
Mike Jolley
4bacbaf90c
Fix completed and paid date meta keys.
2016-12-08 11:19:32 +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
Mike Jolley
af3f735664
Merge pull request #12543 from woocommerce/tax-zip
...
Fix tax name typo and wrap with _escape.
2016-12-07 21:03:40 +00:00
Justin Shreve
f9891b1744
Pass product slug to wp_set_object_terms directly
2016-12-07 12:55:34 -08:00
Justin Shreve
63a29dd4db
Add 'locale' to list of customer meta keys, and update expected type for 'object' for gateways, products, and shipping zones to fix some API issues.
2016-12-07 12:23:23 -08:00
Justin Shreve
a315e174b7
Fix tax name typo and wrap with _escape.
2016-12-07 11:03:28 -08:00
Mike Jolley
5139c811d6
Merge pull request #12533 from woocommerce/rest-api-4.7
...
[2.6] API Fixes for 4.7
2016-12-07 18:51:47 +00:00
Mike Jolley
07932b4432
Merge pull request #12535 from woocommerce/fallbacks-for-endpoints
...
Fix lost password and account links
2016-12-07 18:18:40 +00:00
Mike Jolley
e8d119c42c
Feedback
2016-12-07 18:13:17 +00:00
Mike Jolley
a2263d2760
Type should be checked by name not slug
2016-12-07 18:08:59 +00:00
Mike Jolley
1ad852443b
Invalid type
2016-12-07 15:54:35 +00:00
Mike Jolley
7f234a0b63
Update array schema
2016-12-07 14:24:44 +00:00
Mike Jolley
cce08e6225
Indenting
2016-12-07 14:06:04 +00:00
Mike Jolley
9f85aa3869
Merge pull request #12489 from woocommerce/add/twenty-seventeen-support-new-method
...
Add/twenty seventeen support new method
2016-12-07 12:46:36 +00:00
Mike Jolley
6d908cfba2
Code cleanup and move class into subdirectory
2016-12-07 12:45:54 +00:00
Mike Jolley
d4fbda1d68
Put back array for arrays of objects
2016-12-07 12:20:56 +00:00
Mike Jolley
9a9d133fc3
Use correct endpoint for lost password link
2016-12-07 12:07:10 +00:00
Mike Jolley
fe9e89f3b7
wc_logout_url function
2016-12-07 12:04:44 +00:00
Mike Jolley
d9420e01d2
Fix themes_api fatal error
2016-12-07 11:37:00 +00:00
Mike Jolley
ba62599da0
Use objects, rather than arrays in schema when properties are defined
2016-12-07 11:36:46 +00:00
Mike Jolley
7583965af2
Use wp_list_sort vs _usort_terms_by_ID
...
Fixes #12525
2016-12-07 10:21:03 +00:00
Mike Jolley
3f1368153a
Merge pull request #12521 from woocommerce/plugins-url-assets-12477
...
Register scripts using plugins_url
2016-12-06 16:04:30 +00:00
James Koster
4daa5d133b
Add a utility function to check the active theme.
...
And check active theme before loading integration class
2016-12-06 12:14:00 +00:00
Mike Jolley
cb3b9fb02a
Merge branch 'pr/12510'
2016-12-06 11:52:23 +00:00
Mike Jolley
201f89b19a
Clean up template loader logic
2016-12-06 11:52:15 +00:00
Mike Jolley
ff05080208
Merge pull request #12462 from danielhuesken/fix_rest_setting_user_role
...
Set customer role for user if it not a customer on the current blog
2016-12-06 11:16:27 +00:00
Mike Jolley
070926f7e6
woocommerce_downloadable_file_hash filter
...
Closes #12444
2016-12-06 11:09:03 +00:00
Mike Jolley
7b739b9367
Register scripts using plugins_url
2016-12-05 18:34:30 +00:00
Mike Jolley
4bd05c7396
Combine 2 address loops
2016-12-05 16:08:51 +00:00
Mike Jolley
162aa986b6
Fix tests
2016-12-05 14:21:09 +00:00
Mike Jolley
4130ae0e1f
Merge pull request #12520 from woocommerce/feedback-12495
...
2.7 CRUD Feedback
2016-12-05 13:47:58 +00:00
Mike Jolley
ad7d8c14dc
Do not suffix when ranges are used.
2016-12-05 13:44:21 +00:00
Mike Jolley
1f04cf9dc0
Comment on has_all_attributes_set
2016-12-05 13:15:25 +00:00
Mike Jolley
2780688a70
wc_get_price_html_from_text
2016-12-05 13:13:30 +00:00
Mike Jolley
3975054acd
Reindex after clear.
2016-12-05 13:06:14 +00:00
Kalen Johnson
2d7e6e7206
Filter the template loader files
...
Over at Roots we've been working on implementing Laravel's Blade templating engine with the next release of the Sage theme. The filters for the template hierarchy coming in WP 4.7 are going to be very valuable. Looking to accomplish the same thing with 3rd party plugins as well.
A theme using a templating engine would still be able to filter the default templates such as `archive-product.php`, however keeping the functionality that including a `woocommerce.php` file would be nice to be able to use as well.
This PR I believe adds the ability to add a file similar to `woocommerce.php` while not allowing anyone to filter any of the extra functionality away from Woocommerce.
2016-12-03 10:16:18 -08:00
Mike Jolley
ba56274662
Move get_price_suffix back to main class
2016-12-02 17:02:06 +00:00
Mike Jolley
d67f17a789
Put get_availability functions back in main product classes.
2016-12-02 16:46:35 +00:00
Mike Jolley
6a50228cda
Merge pull request #12472 from woocommerce/refactor-checkout-class
...
Checkout Refactoring
2016-12-02 16:16:18 +00:00
Mike Jolley
3bf3422b5c
Feedback
2016-12-02 16:13:36 +00:00
Justin Shreve
877c4c52ce
Merge pull request #12499 from woocommerce/fix/catalog-visibility
...
Set featured status and catalog visibility when saving products.
2016-12-01 17:26:16 -08:00
Mike Jolley
a8f6fd88f4
Merge pull request #12488 from woocommerce/save-coupon-wp-error
...
When saving coupons, return wp_error if necessary
2016-12-01 16:21:23 +00:00
Justin Shreve
b5e9fc08fe
Set featured status and catalog visibility when saving products.
2016-11-30 10:20:18 -08:00
agrillo
328401271f
Fixed: if woocommerce_resend_order_emails_available hook return an empty array the optgroup label "Resend order emails" It is also printed
2016-11-30 11:32:38 +01:00
Justin Shreve
a94acad387
Fix title, enabled, and description updates for payment gateways. Add missing readonly on method title and description.
...
Bump WC version.
2016-11-29 11:57:56 -08:00
Justin Shreve
5d8ce22afe
When saving coupons, return wp_errors if an item cannot be created or updated.
2016-11-29 03:06:10 -08:00
Justin Shreve
ede9d181b6
Merge pull request #12480 from franticpsyx/variable-data-store-read_price_data-methods-missing-method-context
...
[2.7] Wrong use of 'view' context in WC_Product_Variable_Data_Store_CPT:: read_price_data
2016-11-28 10:50:22 -08:00
Manos Psychogyiopoulos
08b81f73c6
add $product argument to `woocommerce_[variation_]set_stock_status` action
2016-11-28 19:03:33 +02:00
James Koster
fee04b821c
add sidebar #12038
2016-11-28 12:11:19 +00:00
Manos Psychogyiopoulos
72c0877d82
switch variation price getters in WC_Product_Variable_Data_Store_CPT::read_price_data to 'edit' context
2016-11-28 13:54:35 +02:00
Manos Psychogyiopoulos
b10810824f
add 'id' to WC_Abstract_Legacy_Product __isset
2016-11-27 16:30:13 +02:00
Mike Jolley
56396d305e
Fix last name
2016-11-25 21:46:52 +00:00
Mike Jolley
348efad1ed
Fix customer notes
2016-11-25 21:46:45 +00:00
Mike Jolley
43d362d107
Tidy, refactor, and split up methods in checkout class
2016-11-25 21:46:34 +00:00
Mike Jolley
30539b6f5a
Update display name when saving customer
2016-11-25 20:16:19 +00:00
James Koster
70cee3d1ad
some basic shop page styling. #12038
2016-11-25 16:10:58 +00:00
James Koster
18349ddea1
Adds twenty seventeen stylesheet. #12038
2016-11-25 15:25:37 +00:00
James Koster
20507f0944
Adds a new class for 2017 integration, removes core wrappers, adds .scss file. #12038
2016-11-25 15:17:13 +00:00
Mike Jolley
169c70f447
Fix get_stock_amount
2016-11-25 14:48:20 +00:00
Mike Jolley
086d8bce1d
Fix is_callable
2016-11-25 14:48:20 +00:00
Mike Jolley
fb2804a5ab
Code comments
2016-11-25 14:48:20 +00:00
Claudio Sanches
2e76eff151
Merge pull request #12466 from woocommerce/fix/webhook-resource-delete
...
[2.6] Fixed when should deliver wp_trash_post
2016-11-25 12:03:11 -02:00
Matty
ff1442e9aa
Allow cross sells to be sold as variations
2016-11-25 13:17:09 +00:00
Mike Jolley
e3f19f85c6
Add readonly role field to API
...
Closes #12468 @claudiosanches
2016-11-25 13:04:21 +00:00
Mike Jolley
3610866bf9
Link variations to parent product page
2016-11-25 12:48:54 +00:00
Mike Jolley
52be22511c
Inline docs for #12409
2016-11-25 12:24:26 +00:00
James Koster
7f15372919
declare support and add wrappers. #12038
2016-11-25 11:57:42 +00:00
Mike Jolley
afe59f697d
Merge pull request #12441 from opportus/layered-nav-menu-dropdown-empty-count-fix
...
Layered Nav menu dropdown empty count fix
2016-11-25 11:47:44 +00:00
Mike Jolley
b620a8c8fb
Move paypal CMD to end of post vars.
2016-11-25 11:41:49 +00:00
Mike Jolley
eab41b37f7
Move location of billing email field to work with password managers.
...
Fixes #11016
2016-11-25 11:32:42 +00:00
Mike Jolley
f67ffe4d89
Merge pull request #12465 from woocommerce/crud-ajax-class
...
AJAX Class and other fixes
2016-11-25 10:44:20 +00:00
Mike Jolley
1a632cda1f
Missing space and incorrect comment
2016-11-25 10:43:56 +00:00
Mike Jolley
8d30e1d044
Correct title filter
2016-11-25 10:41:42 +00:00
Claudio Sanches
461e2486d2
[2.6] Fixed when should deliver wp_trash_post
2016-11-24 16:07:32 -02:00
Mike Jolley
9a1dd8d04b
Menu order
2016-11-24 17:50:24 +00:00
Claudio Sanches
1ed2f9d136
Fixed undefined index while saving coupons on admin screen
2016-11-24 15:43:01 -02:00
Mike Jolley
1749551021
Customer crud
2016-11-24 15:31:05 +00:00
Mike Jolley
12a216595a
CRUD ajax updates
2016-11-24 14:20:58 +00:00
Mike Jolley
9087a45f29
Remove attribute_ prefix rather than add so that get_attributes has better return values, and don't show duplicate data in cart.
2016-11-24 14:20:48 +00:00
Mike Jolley
6b8fc659bf
Put get_title back in main class
2016-11-24 14:19:52 +00:00
Daniel Hüsken
89026327b8
Set customer role for user if it not a customer on the current blog
2016-11-24 13:52:54 +01:00
Mike Jolley
ac62cffe16
Refactor ajax search for CRUD
2016-11-24 11:50:58 +00:00
Mike Jolley
b1e538c096
Make factory check type
2016-11-24 11:50:46 +00:00
Mike Jolley
b9bb8eabba
Fix order item meta
2016-11-24 11:50:34 +00:00
Mike Jolley
a0f08bb627
Merge pull request #12460 from davidlawson/master
...
Fixing incorrect prices around tax
2016-11-24 10:24:53 +00:00
Mike Jolley
badd63bdd9
Merge pull request #12448 from woocommerce/webhook-api-versions
...
Allow send webhook payload using legacy API v3 or WP REST API integration
2016-11-24 10:22:01 +00:00
Mike Jolley
f689635e4a
Merge pull request #12449 from woocommerce/update/wc-ajax-crud
...
CRUD: Add CRUD operations for ajax functions.
2016-11-24 10:21:22 +00:00
David Lawson
1d955938f2
Fixing incorrect prices around tax
...
Missing `!` when moving code from `abstract-wc-product.php`. See https://github.com/woocommerce/woocommerce/blob/release/2.6/includes/abstracts/abstract-wc-product.php#L869-L919
2016-11-24 21:19:21 +11:00
Kevin Killingsworth
0b9c2e2f15
CRUD: Add CRUD operations for ajax functions.
...
This commit changes post and post_meta calls to CRUD objects
throughout the wc-ajax server-side code.
It does not update the most complex functions that have inline SQL.
2016-11-23 15:35:48 -06:00
Mike Jolley
13289b7104
Fix order item meta
...
@justinshreve Noticed this wasn’t saving or loading correctly. Is this
the only missing piece?
2016-11-23 18:44:24 +00:00
Mike Jolley
350ccd008c
Correct autocomplete field
...
#11016
2016-11-23 18:43:38 +00:00
Mike Jolley
b2b42600cd
Merge pull request #12454 from woocommerce/deprecation-wrappers-12328
...
Deprecation wrappers
2016-11-23 17:42:45 +00:00
Mike Jolley
6dc6e43d08
Add replacement to log entry
2016-11-23 17:41:58 +00:00
Claudio Sanches
bf598d538f
Merge pull request #12453 from woocommerce/reports-12425
...
Reports 12425
2016-11-23 15:04:44 -02:00
Mike Jolley
4ca49ba999
Fix tests
2016-11-23 16:27:18 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Mike Jolley
87de7aab6f
Remove unused variation CRUD methods.
2016-11-23 15:59:39 +00:00
Mike Jolley
c8d1acb33e
Prevent tags breaking page layout
2016-11-23 15:49:35 +00:00
Mike Jolley
b1007c9d62
Fix order item meta saving
2016-11-23 15:37:34 +00:00
Mike Jolley
d846ca6311
Update parent meta too for refunds
2016-11-23 15:37:34 +00:00
Mike Jolley
2b1c762142
Set parent
2016-11-23 15:37:34 +00:00
Mike Jolley
f2ea71ea6f
Reports fixes
2016-11-23 15:36:52 +00:00
Mike Jolley
dcf39fc8cd
Fix order item meta saving
2016-11-23 15:10:18 +00:00
Claudio Sanches
bdb863cef1
Fixed method return value in write context
2016-11-23 12:41:40 -02:00
Mike Jolley
7ad640b567
Update parent meta too for refunds
2016-11-23 13:18:49 +00:00
Mike Jolley
d5f1472e75
Set parent
2016-11-23 13:11:51 +00:00
Claudio Sanches
8d19832937
Fixed coding standards
2016-11-22 23:47:13 -02:00
Claudio Sanches
92ad1b43b2
Updated webhook admin options
2016-11-22 23:08:22 -02:00
Claudio Sanches
5a0c815623
Allow set data using legacy API v3 and WP API integration in webhooks
2016-11-22 22:59:55 -02:00
Claudio Sanches
5d1c074998
Fixed headers response data
2016-11-22 22:48:31 -02:00
Claudio Sanches
a98c4b429f
Fixed broke webhooks pagination label
2016-11-22 22:48:00 -02:00
Claudio Sanches
7aafd6cce7
Set webhook API version in REST API
2016-11-22 22:01:16 -02:00
Claudio Sanches
4d85905c0b
Allow set webhook api version on admin
2016-11-22 21:58:36 -02:00
Claudio Sanches
30f1d0bf66
Allow set api version
2016-11-22 21:49:04 -02:00
Justin Shreve
90e93e1eba
Set a blank default name when displaying the shipping zone form, so the placeholder will be used instead.
2016-11-22 10:52:58 -08:00
opportus
4c8e694dce
Layered Nav menu dropdown empty count fix
2016-11-22 19:48:39 +01:00
Claudio Sanches
0f57fa0b50
Merge pull request #12436 from woocommerce/js-cookie-replacement
...
Replace jquery-cookie with js-cookie
2016-11-22 16:14:25 -02:00
Justin Shreve
2d5da279b6
Merge pull request #12435 from woocommerce/data-store-naming
...
Interface naming
2016-11-22 08:02:09 -08:00
Mike Jolley
3d8c6b8564
Merge pull request #12395 from opportus/layered-nav-hide-attributes
...
Layered nav widget with 'OR' behavior keep showing attributes applying to (0) products
2016-11-22 15:56:26 +00:00
Mike Jolley
deec278d4a
Only update menu order and display if set.
...
Closes #12411
2016-11-22 15:50:35 +00:00
Mike Jolley
bc1103b438
Missing key in download variation
2016-11-22 15:43:21 +00:00
Mike Jolley
b73bbabab6
Fix missing key variable
2016-11-22 15:41:37 +00:00
Mike Jolley
ca04ee8e9f
Replace
2016-11-22 15:09:37 +00:00
Mike Jolley
430a31a963
Add notice class to checkout message
...
Closes #12245
2016-11-22 14:21:21 +00:00
Mike Jolley
277d9db832
Fix coupon unit test
2016-11-22 13:59:08 +00:00
Mike Jolley
885dad605a
Interface naming
2016-11-22 13:54:51 +00:00
Justin Shreve
58b4cb9cf4
Make sure get_hook_prefix is present on all of our classes.
...
And fix up an exclude internal keys call for the customer data store.
2016-11-22 04:20:25 -08:00
Justin Shreve
0f335d7b60
Order item update store needs to extend the _WP class.
2016-11-22 04:07:46 -08:00
Justin Shreve
dd0a2317f1
Fix up data tests and some coding standards issues
2016-11-22 04:05:05 -08:00
Justin Shreve
0814c2c579
Fix product variations
2016-11-22 04:05:05 -08:00
Justin Shreve
174aa38be6
Start moving meta to normal stores, instead of a separate meta store.
2016-11-22 04:05:05 -08:00
Justin Shreve
a8fa6ea69e
Move loading meta data store out of constructor.
2016-11-22 04:03:57 -08:00
Justin Shreve
5c59bad9ca
Interface updates
2016-11-22 04:03:57 -08:00
Justin Shreve
f3140889d5
Move meta handling saving/getting logic to a data store, and fix cache handling for meta to reduce queries.
2016-11-22 04:03:57 -08:00
Justin Shreve
8d551c01e6
Merge pull request #12403 from woocommerce/order-item-data-store
...
Order Item Data Store
2016-11-22 03:39:53 -08:00
Justin Shreve
c83823b97c
Remove stray error_log
2016-11-22 03:39:26 -08:00
Mike Jolley
1715fbdfd2
Merge pull request #12427 from woocommerce/fix-backwards-compatibility-for-product-title
...
Fix get_post_data() backwards compatibility for variations
2016-11-22 11:24:34 +00:00
Mike Jolley
d87411285e
Merge pull request #12429 from dabernathy89/master
...
fix typo in get_variation_sale_price argument list
2016-11-22 10:53:10 +00:00
Mike Jolley
3b9934a2b1
Try catch and false for products
2016-11-22 10:46:19 +00:00
Daniel Abernathy
4a758ef5ca
fix typo in get_variation_sale_price argument list
2016-11-21 19:17:50 -06:00
Claudio Sanches
4f7290daa0
Fixed expected result from WC_Product::get_post_data for variations
2016-11-21 20:10:40 -02:00
Claudio Sanches
351f983e97
Stop use deprecated product->get_title() in coupons
2016-11-21 20:06:40 -02:00
Claudio Sanches
dd78bbd6ad
Keep backwards compatibility for variation title
2016-11-21 20:05:37 -02:00
Justin Shreve
84c24b99f8
Finish order item data store interface
2016-11-21 11:45:22 -08:00
Justin Shreve
9b08f4b32d
Move order-item-functions queries to a data store. Rebase & update to use download data store.
2016-11-21 11:38:07 -08:00
Justin Shreve
a7cb7e011c
Only return a fallback system when we are in the view context, so we don't overwrite.
2016-11-21 10:57:33 -08:00
Justin Shreve
afa294e70d
Fix legacy API issues
2016-11-21 10:57:33 -08:00
Justin Shreve
f15867bb67
Fix ajax actions for saving items, and misc issues.
2016-11-21 10:57:33 -08:00
Justin Shreve
34821b8c92
Add new files.
2016-11-21 10:57:33 -08:00
Justin Shreve
51a55b6782
Add interface, renaming main order item data store to abstract. Various fixes.
2016-11-21 10:57:33 -08:00
Justin Shreve
b20b3590c8
First pass at order items
2016-11-21 10:56:21 -08:00
Claudio Sanches
89e628f3d5
Merge pull request #12421 from woocommerce/fix-12416
...
Make sure attributes get a prefix when set
2016-11-21 15:18:11 -02:00
Claudio Sanches
ec56bd5015
Merge pull request #12386 from woocommerce/order-data-store
...
Order data stores
2016-11-21 15:14:22 -02:00
Mike Jolley
8cf3feaf82
No absint here
2016-11-21 16:55:36 +00:00
Mike Jolley
8466f4f79a
Feedback
2016-11-21 16:46:32 +00:00
Mike Jolley
a9b8d41500
Merge pull request #12407 from woocommerce/rest-api-crud-fixes
...
CRUD - Fixes and improviments for the REST API
2016-11-21 16:12:50 +00: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
Mike Jolley
edf973d35f
Feedback
2016-11-21 14:30:56 +00:00
Mike Jolley
1fdfd02766
Use extra_data
2016-11-21 14:20:29 +00:00
Mike Jolley
4bbe1d39dc
wc_get_object_terms should not return false.
...
Fixes that issue you mentioned on slack @justinshreve. cc
@claudiosanches
2016-11-21 14:16:57 +00:00
Mike Jolley
a6a420bc40
make sure attributes get a prefix
2016-11-21 13:14:14 +00:00
Mike Jolley
e36a85e5b1
Add to interface
2016-11-21 12:25:31 +00:00
Mike Jolley
73287b08a0
Move product query to store
...
Closes #12402
2016-11-21 12:25:00 +00:00
Mike Jolley
c89f2396ae
Fixes #12394
2016-11-21 12:16:15 +00:00
Mike Jolley
ea80897195
This is no longer needed #12272
2016-11-21 12:01:04 +00:00
Mike Jolley
2bcd3b9166
Improved layered nav counts on attribute archives.
...
Closes #12272
2016-11-21 11:50:40 +00:00
flemarie
07752c33bf
Update class-wc-countries.php
...
State is not exist for this country :
- French Guyanne : GF
- Reunion Island : RE
- Mayotte : YT
- Guadeloupe : GP
- Martinique : MQ
Thank you
2016-11-20 22:04:15 +04:00
Mike Jolley
b929916190
get_cart_total comment
2016-11-18 21:19:52 +00:00
Mike Jolley
c06c357399
Fix tests
2016-11-18 20:27:59 +00:00
Mike Jolley
b81bde4f5a
admin updates
2016-11-18 19:56:17 +00:00
Claudio Sanches
0806897fa8
Keep backwards compatibility while saving and displaying order custom addresses metadata on admin
2016-11-18 17:40:32 -02:00
Mike Jolley
b1565cf0d6
Download update routine and interface
2016-11-18 19:29:37 +00:00
Claudio Sanches
2739243587
Use wc_get_coupon_id_by_code() while querying coupons by code
2016-11-18 17:12:01 -02:00
Claudio Sanches
40c90ac2d0
Use ID to query coupons
2016-11-18 17:10:41 -02:00
Claudio Sanches
dd3a59d169
Return empty prices for deprecated cart_discount and order_discount in order legacy v1
2016-11-18 17:06:33 -02:00
Claudio Sanches
fdb0cf499f
Query coupons only by ID
2016-11-18 16:51:45 -02:00
Claudio Sanches
7a6bc5f9f5
Removed extra get_post() for orders
2016-11-18 16:46:59 -02:00
Claudio Sanches
a8a5763b47
Removed extra )
2016-11-18 16:39:31 -02:00
Claudio Sanches
073c924b98
Stop doing new queries only to get coupons gmt dates
2016-11-18 16:36:02 -02:00
Claudio Sanches
3074bd180f
Apply GMT date for legacy v1 customers endpoint
2016-11-18 16:34:30 -02:00
Claudio Sanches
359e0a5a56
Use GMT dates in legacy API
2016-11-18 16:33:16 -02:00
Claudio Sanches
526a46325f
Allow convert date to GMT in the legacy API
2016-11-18 16:13:46 -02:00
Mike Jolley
1b6d7acd24
Data store for downloads
2016-11-18 17:13:02 +00:00
Claudio Sanches
6d66391a68
Merge pull request #12388 from woocommerce/terms-performance
...
Optimize terms queries
2016-11-18 13:01:38 -02:00
Claudio Sanches
2a4aa26a31
Removed extra …
2016-11-18 12:19:44 -02:00
Claudio Sanches
a27ac728f3
Fixed undefined post
2016-11-18 12:17:29 -02:00
Mike Jolley
ac3be6ba50
Order stores complete
2016-11-18 14:07:21 +00:00
Mike Jolley
da2cc7144c
Merge pull request #12396 from woocommerce/update-customer-crud-endpoints
...
Apply Customer CRUD to legacy customer API endpoint
2016-11-18 12:35:24 +00:00
Mike Jolley
d6c5a725ad
Merge pull request #12397 from woocommerce/customer-crud-validation
...
Stop ignore the wc_create_new_customer() error messages
2016-11-18 12:34:08 +00:00
Claudio Sanches
7bf6fa0f11
Merge pull request #12391 from woocommerce/support-wp47-bulk-actions
...
Use new WP 4.7 bulk actions filters
2016-11-18 09:14:24 -02:00
Mike Jolley
5d9a9b4dec
Fix tests
2016-11-18 11:14:09 +00:00
Claudio Sanches
c0809d0b72
Fixed a typo and missing comma
2016-11-18 09:13:37 -02:00
Claudio Sanches
ebf1fb55f3
Merge pull request #12392 from woocommerce/remove-legacy-code
...
Remove legacy dependency code
2016-11-18 09:12:30 -02:00
Mike Jolley
7e977f60e2
Feedback
2016-11-18 10:13:54 +00:00
Claudio Sanches
65c9a1b26b
Fixed undefined method WC_Order_Item_Product::get_qty()
2016-11-18 06:08:00 -02:00
Claudio Sanches
714244faf0
Stop ignore the wc_create_new_customer() error messages
...
- Transform wc_create_new_customer() error message in exceptions
- Added new actions to match WC_Coupon_Data_Store_CPT and make easy to
use in webhooks
2016-11-18 05:53:18 -02:00
Claudio Sanches
91d6c74701
Apply Customer CRUD methods to update and create legacy API endpoints
2016-11-18 04:16:38 -02:00
Claudio Sanches
e032001953
Fixed undefined variable on update_customer_meta_fields()
2016-11-18 03:37:59 -02:00
Claudio Sanches
4fd47e1b02
Use wc_get_orders() to query customer orders
2016-11-17 22:11:05 -02:00
Claudio Sanches
aba4699ee2
Removed old get avatar method
2016-11-17 22:01:55 -02:00
Claudio Sanches
14996ef97a
Updated customer legacy API endpoints
2016-11-17 21:55:52 -02:00
opportus
42bb48abf1
layered nav OR hide attributes applying to 0 product
2016-11-17 23:33:24 +01:00
Claudio Sanches
375b6e9789
Remove legacy dependency code
2016-11-17 19:06:46 -02:00
Claudio Sanches
92c7cafff8
Use new WP 4.7 bulk actions filters, closes #12379
2016-11-17 18:57:48 -02:00
Claudio Sanches
f5a228509a
Fixed coding standards
2016-11-17 18:07:58 -02:00
Claudio Sanches
e1aeba9f21
Remove all wp_get_post_terms() and wp_get_object_terms() terms occurrences
2016-11-17 17:02:05 -02:00
Claudio Sanches
4c54143743
Created new helpers to prevent use non-cached functions to query terms
2016-11-17 17:00:56 -02:00
Mike Jolley
c933f82961
Refunds
2016-11-17 16:53:13 +00:00
Mike Jolley
792a92e166
Factory
2016-11-17 16:12:04 +00:00
Mike Jolley
8d6f236d47
Fix save
2016-11-17 16:02:09 +00:00
Mike Jolley
717f712b3d
save addresses
2016-11-17 15:32:52 +00:00
Mike Jolley
d88b512143
Setters
2016-11-17 15:17:23 +00:00
Mike Jolley
286cb2d1c8
get_address_prop for customers
2016-11-17 15:05:40 +00:00
Mike Jolley
87aadaa7cf
getters
2016-11-17 15:02:33 +00:00
Mike Jolley
52c866c57b
Main order interface
2016-11-17 14:37:29 +00:00
Mike Jolley
83813bb9bb
Interface
2016-11-17 13:18:24 +00:00
James Koster
1039babe2c
manual order creation - make address load/copy icons text links to improve usability. closes #12356
2016-11-17 12:38:15 +00:00
Mike Jolley
eafd7c9fa5
Use data store for methods
2016-11-17 12:34:39 +00:00
Mike Jolley
81a2d6345f
Setters
2016-11-17 11:26:24 +00:00
Mike Jolley
b37db6eb7b
Getters
2016-11-17 11:22:24 +00:00
Mike Jolley
d387afbba3
Added data store
2016-11-17 10:53:22 +00:00
Justin Shreve
151f39d559
Merge pull request #12374 from woocommerce/update/quick-and-bulk-edit-crud
...
Product quick and bulk edit.
2016-11-16 14:19:58 -08:00
Justin Shreve
20fca44334
Handle product quick and bulk edit.
2016-11-16 12:54:53 -08:00
Claudio Sanches
4a20b2a8a1
Merge pull request #12371 from woocommerce/product-visible-by-default
...
Make products visible by default
2016-11-16 18:27:34 -02:00
Claudio Sanches
003728ff11
Merge pull request #12319 from woocommerce/allow-password-strength-lost-pass-page
...
[2.6] Allow password strength meter in "Lost Password" page
2016-11-16 17:15:00 -02:00
Claudio Sanches
240e58ea31
Merge pull request #12368 from woocommerce/exclude-webhoook_delivery-from-count-comments
...
[2.6] Exclude webhook_delivery from wp_count_comments()
2016-11-16 17:11:24 -02:00
Claudio Sanches
c5a00a3120
Make products visible by default
2016-11-16 16:56:40 -02:00
Lee Willis
837007af83
Make docs for wc_get_products() match implementation
2016-11-16 13:24:01 -02:00
Mike Jolley
29ddaca8e8
Merge branch 'update/shipping-zone-data-store'
...
# Conflicts:
# includes/api/class-wc-rest-products-controller.php
# tests/unit-tests/product/data-store.php
2016-11-16 15:11:13 +00:00
Mike Jolley
ecc503c2c7
Merge branch 'product-crud-test-fixes'
...
# Conflicts:
# includes/class-wc-data-store.php
# woocommerce.php
2016-11-16 15:09:32 +00:00
Claudio Sanches
3b4be48a1c
[2.6] Exclude webhook_delivery from wp_count_comments(), closes #12344
2016-11-16 12:04:05 -02:00
Justin Shreve
85cfe59988
Fix product related tests after product CRUD merge
2016-11-16 05:18:03 -08:00
Justin Shreve
a6155c2d7c
Add zone_id to get_zones output for ajax.
2016-11-16 04:54:42 -08:00
Justin Shreve
421d0331b6
Make sure we don't try to ->read when creating a new shipping zone.
2016-11-16 04:54:42 -08:00
Justin Shreve
564098f26a
Handle feedback
2016-11-16 04:54:42 -08:00
Justin Shreve
23a325ca8d
Make sure we error out on read if a zone is not found.
2016-11-16 04:53:23 -08:00
Justin Shreve
6f51fce88b
A few coding standards fixes
2016-11-16 04:53:23 -08:00
Justin Shreve
735c1b7a14
Finish moving queries to the shipping zone data store, update usage of deprecated get_zone_id, legacy updates.
2016-11-16 04:53:23 -08:00
Justin Shreve
61d1b29789
Shipping Zone Data Store
2016-11-16 04:53:23 -08:00
Mike Jolley
76b32c9aa5
WIP - Product CRUD ( #12065 )
...
* Created function to get the catalog visibility options
* First methods for WP_Product crud
* Product set methods
* Fixed several erros while setting data
* First methods for WP_Product crud
* Product set methods
* Fixed several erros while setting data
* Hardcode the get_type per product class
* Initial look through getters and setters and abstract data
* Missing var
* Add related product functions and deprecate those in class.
* No need to exclude ID
* Fixed coding standards and improved the docblocks
* Get cached terms from wc_get_related_terms()
* Fixed wrong variable in wc_get_related_terms
* Use count() instead of sizeof()
* Sanitize ids later
* Remove unneeded comments
* wc_get_product_term_ids instead of related wording and use in other places.
get_the_terms is used here and also handles caching, something
wp_get_post_terms does not.
* Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it.
* Bump template version
* Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function
* Made abstract function useful
* External Product CRUD
* _virtual meta should be 'no', not taxable, in product unit test helper
* Grouped product class
* Tests
* Move children to meta and update test
* Use get_upsell_ids
* Spacing in query
* Moving and refactoring methods
* Availability html
* Tidy/add todos
* Rename method
* Put back review functions (still todo)
* missing $this
* get_price_including_tax/excluding_tax functions
* wc_get_price_to_display
* Price handling
* [Product CRUD] Variable (#12146 )
* [Product CRUD] Variable Products
* Handle PR feedback.
* [Product CRUD] Grouped Handling (#12151 )
* Handle grouped product saving
* Update routine
* [Product CRUD] Product crud terms (#12149 )
* Category and tag id handling
* Replace template functions
* Remove todo
* Handle default name in save function
* Product crud admin save routine (#12174 )
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Spacing
* Fix comment
* wc_implode_text_attributes helper function
* [Product CRUD] Product crud admin use getters (#12196 )
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Move settings into new files
* Refactor panels and use getters
* Use getters for variation panel
* Revert save variation changes for now
* Add todos
* Fix downloads
* REST API CRUD Updates
* Additional API updates/fixes. Added some todos
* Fix final failing tests and implementing setters/getters and attributes functionality.
* Fix comparison for is_on_sale and remove download_type from WC_Product.
* Add a wc_get_products wrapper.
* Remove the download type input from the product data metabox for downloadable products. (#12221 )
* [Product CRUD] Variations - setters, getters and admin. (#12228 )
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* Feedback fixes
* Implement CRUD in the legacy REST API
* Handle PR feedback
* [Product CRUD] Getter setter proxy methods (#12236 )
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* get_prop implementation in abstract and data classes
* Implement set_prop
* Change handling
* Array key exists
* set_object_read
* Use get_the_terms() instead of wp_get_post_terms()
wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.
get_the_terms() however can use data from the object cache if present.
* Allow WP_Query to preload post data, and meta in wc_get_products()
Allow WP_Query to bulk query for post data and meta if more than
just IDs are requested from wc_get_products(). Reduces query count
significantly.
* [Product CRUD] Variable, variation, notices, and stock handling (#12277 )
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
* First methods for WP_Product crud
* Product set methods
* Fixed several erros while setting data
* Hardcode the get_type per product class
* Initial look through getters and setters and abstract data
* Missing var
* Fixed coding standards and improved the docblocks
* Get cached terms from wc_get_related_terms()
* Fixed wrong variable in wc_get_related_terms
* Use count() instead of sizeof()
* Add related product functions and deprecate those in class.
* No need to exclude ID
* Sanitize ids later
* Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it.
* Remove unneeded comments
* wc_get_product_term_ids instead of related wording and use in other places.
get_the_terms is used here and also handles caching, something
wp_get_post_terms does not.
* Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function
* External Product CRUD
* _virtual meta should be 'no', not taxable, in product unit test helper
* Bump template version
* Made abstract function useful
* Grouped product class
* Tests
* Move children to meta and update test
* Use get_upsell_ids
* Spacing in query
* Moving and refactoring methods
* Availability html
* Tidy/add todos
* Rename method
* Put back review functions (still todo)
* missing $this
* get_price_including_tax/excluding_tax functions
* wc_get_price_to_display
* Price handling
* [Product CRUD] Variable (#12146 )
* [Product CRUD] Variable Products
* Handle PR feedback.
* [Product CRUD] Grouped Handling (#12151 )
* Handle grouped product saving
* Update routine
* [Product CRUD] Product crud terms (#12149 )
* Category and tag id handling
* Replace template functions
* Remove todo
* Handle default name in save function
* Product crud admin save routine (#12174 )
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Spacing
* Fix comment
* wc_implode_text_attributes helper function
* [Product CRUD] Product crud admin use getters (#12196 )
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Move settings into new files
* Refactor panels and use getters
* Use getters for variation panel
* Revert save variation changes for now
* Add todos
* Fix downloads
* REST API CRUD Updates
* Additional API updates/fixes. Added some todos
* Fix final failing tests and implementing setters/getters and attributes functionality.
* Fix comparison for is_on_sale and remove download_type from WC_Product.
* Add a wc_get_products wrapper.
* Remove the download type input from the product data metabox for downloadable products. (#12221 )
* [Product CRUD] Variations - setters, getters and admin. (#12228 )
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* Feedback fixes
* Implement CRUD in the legacy REST API
* Handle PR feedback
* [Product CRUD] Getter setter proxy methods (#12236 )
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* get_prop implementation in abstract and data classes
* Implement set_prop
* Change handling
* Array key exists
* set_object_read
* Use get_the_terms() instead of wp_get_post_terms()
wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.
get_the_terms() however can use data from the object cache if present.
* [Product CRUD] Variable, variation, notices, and stock handling (#12277 )
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
* Prevent notices
* Handle image_id from parent
* Fix error
* Remove _wc_save_product_price
* Remove todo
* Fixed wrong variation URLs
* Fixed undefined $image_id in WC_Product_Variation::get_image_id()
* Allow wc_rest_prepare_date_response() handle timestamps
* Updated get methods on REST API for variations
* Use variations CRUD to save variations metadata
* [Product CRUD] Abstract todos (#12305 )
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Revert "[Product CRUD] Abstract todos (#12305 )"
This reverts commit 9a6136fcf8
.
* Remove deprecated get_variation_id()
* New default attributes method
* [Product CRUD] Product Datastore (#12317 )
* Fix up tests in the product/* folder.
* Handle data store updates for grouped, variable, external, simple, and general data store updates for products.
* Variations & variable changes.
* Update -functions.php calls to use data store.
* Add an interface for the public product data store methods.
* Finished product factory tests
* Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods.
* Fix up delete in all versions of the api
* Handle feedback
* Match protected decloration to parent
* Product crud abstract todos (#12316 )
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Fix up store
* Fixed method returning in write context
* Fix error in variation admin
* Check for parent value - fixes tax class
* Remove old/complete todos
* Allow set tax class as "parent"
* Removed duplicated sync
* Fixed wrong variation URLs
* Fixed undefined $image_id in WC_Product_Variation::get_image_id()
* Allow wc_rest_prepare_date_response() handle timestamps
* Updated get methods on REST API for variations
* Use variations CRUD to save variations metadata
* Remove deprecated get_variation_id()
* New default attributes method
* Fixed method returning in write context
* Allow set tax class as "parent"
* Removed duplicated sync
* Fixed coding standards
* TODO is not accurate.
* Should pass WC_Product instancies to WC_Comments methods (#12327 )
* Use new method in abstract order class to prevent headers sent issue in tests
* Fixed variable description in REST API
* Updated how create initial product variation
* Fixed a few fatal errors and warnings in Products CRUD (#12329 )
* Fixed a few fatal errors and warnings in Products CRUD
* Fixed sync functions
* Add variations CRUD to legacy API (#12331 )
* Apply crud to variable products in legacy API v1
* New REST API do not need fallback for default attributes
* Apply variations CRUD to legacy API v2
* Legacy v2 - save default attributes
* Variations in legacy API v2 do not have descriptions
* Fixed legacy API v2 variations params
* Applied variations CRUD to legacy API v3
* Sync before save in legacy apis
* Punc
* Removed API todos
* Removed test
* Products endpoint tweaks (#12354 )
* Var type already normalized on CRUD
* Let Product CRUD handle with validation, sanitization and conditional checks
* Set downloads using WC_Product_Download
* Stop try catch exceptions more than one time
* Handle WC_Data_Exception in legacy API
* Complete remove products when fails on creating
* On creating I mean!
* Already have a method to complete delete products
* Fixed standards using WP CodeSniffer
* get_the_terms() returns false when empty
* get_manage_stock returns boolean
@claudiosanches
* Merge conflict
* Variations API endpoint fixes
* Product CRUD improvements (#12359 )
* args is not used any more - remove todo
* Added test for attributes
* wc_get_price_excluding_tax usage
* parent usage
* Fix rating counts
* Test fixes
* Cleanup after tests
* Make sure status transition code runs even during API calls, not just in admin.
* Default visibility
* Fix attribute setting in API
* Use get name instead of get title
* variation id usage
* Improved cross sell templates
* variation_data
* Grouped product sync
* Notices
* Sync is not needed in API
* Delete
* Rename interfaces
* Update counts in data store
2016-11-16 12:38:24 +00:00
Mike Jolley
af3496402d
Merge branch 'master' into product-crud
...
# Conflicts:
# includes/class-wc-data-store.php
# woocommerce.php
2016-11-16 12:37:57 +00:00
Mike Jolley
599a2ad296
Product CRUD improvements ( #12359 )
...
* args is not used any more - remove todo
* Added test for attributes
* wc_get_price_excluding_tax usage
* parent usage
* Fix rating counts
* Test fixes
* Cleanup after tests
* Make sure status transition code runs even during API calls, not just in admin.
* Default visibility
* Fix attribute setting in API
* Use get name instead of get title
* variation id usage
* Improved cross sell templates
* variation_data
* Grouped product sync
* Notices
* Sync is not needed in API
* Delete
* Rename interfaces
* Update counts in data store
2016-11-16 12:17:00 +00:00
Justin Shreve
e83ec0c235
Call apply_changes when updating and creating a coupon.
2016-11-15 15:25:36 -08:00
Justin Shreve
53524141b7
Fix up the other delete signatures.
2016-11-15 11:35:10 -08:00
Mike Jolley
eade55041c
Delete args
2016-11-15 18:11:25 +00:00
Mike Jolley
d8fcfcefb8
Variations API endpoint fixes
2016-11-15 12:51:26 +00:00
Mike Jolley
ef990355fd
Merge conflict
2016-11-15 11:52:29 +00:00
Mike Jolley
c18f6efeb4
Conflicts from master
2016-11-15 11:52:05 +00:00
Claudio Sanches
b1c32e5e50
Products endpoint tweaks ( #12354 )
...
* Var type already normalized on CRUD
* Let Product CRUD handle with validation, sanitization and conditional checks
* Set downloads using WC_Product_Download
* Stop try catch exceptions more than one time
* Handle WC_Data_Exception in legacy API
* Complete remove products when fails on creating
* On creating I mean!
* Already have a method to complete delete products
* Fixed standards using WP CodeSniffer
* get_the_terms() returns false when empty
* get_manage_stock returns boolean
@claudiosanches
2016-11-15 10:26:42 +00:00
Mike Jolley
dc60ea4c23
Merge branch 'master' into customer-data-store
...
# Conflicts:
# includes/class-wc-data-store.php
# woocommerce.php
2016-11-14 18:21:30 +00:00
Mike Jolley
cce4eef99d
Payment Token Data Store ( #12348 )
...
* Payment Token Data Store
* Handle feedback
* Rename interface file
2016-11-14 18:20:00 +00:00
Mike Jolley
00ed627b29
Data stores
2016-11-14 18:18:08 +00:00
Claudio Sanches
8650365e32
Removed test
2016-11-14 15:19:28 -02:00
Justin Shreve
d986d1bba1
Rename interface file
2016-11-14 09:13:55 -08:00
Justin Shreve
944e5d658b
Handle feedback
2016-11-14 09:08:46 -08:00
Claudio Sanches
657bd226f8
Removed API todos
2016-11-14 14:43:30 -02:00
Claudio Sanches
60f1fcf9e3
Merge pull request #12334 from sabbir1991/master
...
Fix toggle download and virtual in variation bulk action #12333
2016-11-14 14:11:30 -02:00
Justin Shreve
370166a6b0
Payment Token Data Store
2016-11-14 06:20:41 -08:00
Justin Shreve
b0f859f6a2
Merge pull request #12345 from woocommerce/remove/cli
...
Remove CLI
2016-11-14 03:44:02 -08:00
Justin Shreve
ad67277a9b
Blank file for wc-cli.php
2016-11-14 03:36:26 -08:00
Claudio Sanches
4827225454
Add variations CRUD to legacy API ( #12331 )
...
* Apply crud to variable products in legacy API v1
* New REST API do not need fallback for default attributes
* Apply variations CRUD to legacy API v2
* Legacy v2 - save default attributes
* Variations in legacy API v2 do not have descriptions
* Fixed legacy API v2 variations params
* Applied variations CRUD to legacy API v3
* Sync before save in legacy apis
* Punc
2016-11-14 11:31:52 +00:00
Claudio Sanches
6de7984f2d
Fixed a few fatal errors and warnings in Products CRUD ( #12329 )
...
* Fixed a few fatal errors and warnings in Products CRUD
* Fixed sync functions
2016-11-14 11:02:56 +00:00
Justin Shreve
365a834d92
Remove CLI from WooCommerce. Moving to a new package.
2016-11-14 02:42:40 -08:00
Justin Shreve
4b33f11bf2
Move queries from coupon-functions.php to the coupon data store.
2016-11-14 02:31:04 -08:00
Sabbir Ahmed
7cd5488f26
Fix toggle download and virtual in variation bulk action #12333
2016-11-13 11:45:12 +06:00
Claudio Sanches
83f74145ee
Updated how create initial product variation
2016-11-11 17:29:56 -02:00
Claudio Sanches
1f31de39d9
Fixed variable description in REST API
2016-11-11 16:36:58 -02:00
Mike Jolley
c4806e63d1
Use new method in abstract order class to prevent headers sent issue in tests
2016-11-11 18:30:18 +00:00
Claudio Sanches
096622c9e4
Should pass WC_Product instancies to WC_Comments methods ( #12327 )
2016-11-11 18:13:56 +00:00
Mike Jolley
bc9d2c72aa
TODO is not accurate.
2016-11-11 18:09:06 +00:00
Claudio Sanches
93ecafebec
[2.6] Allow password strength meter in Lost Password page, closes #12314
2016-11-11 15:21:06 -02:00
Claudio Sanches
3dfb4c98e3
Fixed coding standards
2016-11-11 15:19:40 -02:00
Claudio Sanches
cc109a7e0a
Removed duplicated sync
2016-11-11 14:58:03 -02:00
Claudio Sanches
518c3a3467
Allow set tax class as "parent"
2016-11-11 14:58:03 -02:00
Claudio Sanches
c8e34f3403
Fixed method returning in write context
2016-11-11 14:58:03 -02:00
Claudio Sanches
a17af7ad30
New default attributes method
2016-11-11 14:56:03 -02:00
Claudio Sanches
47e3f22810
Remove deprecated get_variation_id()
2016-11-11 14:56:03 -02:00
Claudio Sanches
5cab607be7
Use variations CRUD to save variations metadata
2016-11-11 14:56:03 -02:00
Claudio Sanches
9fd64f49e4
Updated get methods on REST API for variations
2016-11-11 14:56:02 -02:00
Claudio Sanches
4083f5b8d7
Allow wc_rest_prepare_date_response() handle timestamps
2016-11-11 14:56:02 -02:00
Claudio Sanches
57b75bb95d
Fixed undefined $image_id in WC_Product_Variation::get_image_id()
2016-11-11 14:56:02 -02:00
Claudio Sanches
d039e12f47
Fixed wrong variation URLs
2016-11-11 14:53:53 -02:00
Mike Jolley
3d58459246
Remove old/complete todos
2016-11-11 16:28:47 +00:00
Mike Jolley
4600ccd146
Check for parent value - fixes tax class
2016-11-11 16:22:51 +00:00