Coen Jacobs
2f3ed733fb
Merge pull request #4182 from thenbrent/is-purchasable-check
...
Check products are purchasable when restoring cart
2013-11-25 00:39:16 -08:00
Coen Jacobs
084ac253f9
Merge pull request #4181 from kloon/fix_order_item_meta_ajax
...
Fix ajax calls for adding and deleting order item meta from the backend.
2013-11-25 00:38:50 -08:00
Coen Jacobs
65a1ed1b98
Fixed typo as merged in #4190
2013-11-25 09:38:03 +01:00
Coen Jacobs
8978f75f36
Remove safety net for calling WC_Product directly #4194
2013-11-25 09:25:45 +01:00
Coen Jacobs
7b63c6ce49
Remove parameters from function as well #4194
2013-11-25 09:19:24 +01:00
Coen Jacobs
73215ba4e2
Remove 2.0 tax deprecated arguments #4194
2013-11-25 09:17:44 +01:00
Coen Jacobs
6acfff9879
Fixed field matching in setting up variations
2013-11-25 09:05:27 +01:00
Andrew Benbow
0f29761268
Bracing
2013-11-25 09:02:51 +01:00
Max Rice
72316d0b5f
Allow forwarded hosts for forced SSL
2013-11-24 22:39:23 -05:00
Coen Jacobs
8054316fa6
Merge pull request #4185 from maxrice/rest-api-fixes-issue-4055
...
Various fixes for REST API
2013-11-24 12:58:25 -08:00
Coen Jacobs
e9691eed7f
Merge pull request #4184 from maxrice/api-order-status-update-issue-4161
...
Implement order status update endpoint
2013-11-24 12:58:15 -08:00
Andrew Benbow
2d03022b76
Brace all the things
2013-11-24 10:24:12 +00:00
Max Rice
c00e2d0f8c
Add total customers count to sales report
...
Part of #4055
2013-11-23 17:27:24 -05:00
Max Rice
017e7cee1d
Add permissions for count endpoints
2013-11-23 17:11:16 -05:00
Max Rice
2af47c6699
Fix incorrect total results number for pagination headers
2013-11-23 16:37:28 -05:00
Max Rice
0be58b3390
Normalize response data types
...
Part of #4055
2013-11-23 16:36:56 -05:00
Max Rice
20fb7e771f
Add total sales property to products response
2013-11-23 15:17:14 -05:00
Max Rice
3bc8fae631
Remove PUT/DELETE endpoints
...
Will be implemented in 2.2
Part of #4055
2013-11-23 15:01:53 -05:00
Max Rice
a0cb0cbb4e
Remove schema link
2013-11-23 14:41:21 -05:00
Max Rice
3f07b8be77
Specify 2 decimal places for woocommerce_format_decimal()
...
Part of #4055
2013-11-23 14:40:31 -05:00
Max Rice
5bb8c9daef
Fix permissions typo
...
Part of #4055
2013-11-23 14:32:22 -05:00
Max Rice
1ce5a71f3d
Load admin profile class when editing a user
2013-11-23 13:41:10 -05:00
Max Rice
38be2ee7a4
Perform core authentication at 0 priority
...
Makes it easier for plugins to override the core API authentication
Part of #4055
2013-11-23 13:28:26 -05:00
Max Rice
a4b3860376
Add action for plugins to load other API resources
...
Part of #4055
2013-11-23 13:27:47 -05:00
Max Rice
deac0be31b
Implement order status update endpoint
...
Closes #4161
2013-11-23 12:59:21 -05:00
thenbrent
1ce5500b06
Add WC_Cart::get_cart_for_session()
2013-11-22 15:30:24 -08:00
thenbrent
bb14495064
Check products are purchasable when restoring cart
...
If WC_Product::is_purchasable() is only called when adding a product to the cart,
it's possible to purchase products that aren't purchasable (but were when they were
added to the cart).
2013-11-22 15:14:08 -08:00
Gerhard
bac3c81296
Fix ajax calls for adding and deleting order item meta from the backend.
2013-11-22 15:16:38 +02:00
Max Rice
d7c77d1ab7
API: Add XML generation
...
This commit completes the XML response handler and adjusts the output
format for all resources to include a top-level property that encloses
the response. This is more consistent with the multi-resource (e.g. GET
/orders) response.
Part of #4165
2013-11-22 03:41:32 -05:00
Coen Jacobs
f8ef3444b0
Fixed undefined esc_atr function error
2013-11-21 14:28:09 +01:00
Scott Basgaard
922fa990a5
esc_attr() all the things.
2013-11-20 20:11:59 +01:00
Scott Basgaard
de77ec07ea
esc_url() all the things.
2013-11-20 19:54:01 +01:00
Mike Jolley
3acfc07684
Fix user search and sanitize search strings
2013-11-20 17:30:49 +00:00
Mike Jolley
43807a0488
Accessing currency wrong
2013-11-20 17:25:48 +00:00
Mike Jolley
cc40557077
filter for cart fragment #4132
2013-11-20 16:31:28 +00:00
Mike Jolley
0dc0b9cbb0
Indenting fail.
2013-11-20 16:13:53 +00:00
Mike Jolley
7cb88db630
Merge pull request #4143 from mihaigrigori/master
...
Show order currency
2013-11-20 08:12:21 -08:00
Mike Jolley
03bda02144
Merge pull request #4147 from BFTrick/optimize-images
...
Optimizing Images
2013-11-20 06:35:26 -08:00
Mike Jolley
b3480fc60e
Merge pull request #4148 from scottbasgaard/master
...
Use remove_ordering_args() to remove order query filters instead of remo...
2013-11-20 06:35:03 -08:00
Mike Jolley
453942252e
Merge pull request #4151 from toddlahman/master
...
wc_ delimiter to identify start of uniquid
2013-11-20 06:34:40 -08:00
Mike Jolley
4a06538125
Merge pull request #4153 from kloon/tweak_formatted_price_filter
...
Add formatted_woocommerce_price filter.
2013-11-20 06:33:53 -08:00
Gerhard
970ae40004
Remove function and use global woocommerce_timezone_string function instead
2013-11-20 16:16:04 +02:00
Gerhard
475e9abe83
Add formatted_woocommerce_price filter.
2013-11-20 10:40:29 +02:00
toddlahman
0c07663b26
wc_ delimiter to identify start of uniquid
2013-11-20 00:03:49 -08:00
Gerhard
4afff14de1
Remove unused variable from function
2013-11-20 07:57:48 +02:00
Gerhard
df5929093d
REST API - Fix fatal error due to missing get_timezone function
2013-11-20 07:55:28 +02:00
Scott Basgaard
9409907ffa
Use remove_ordering_args() to remove order query filters instead of remove_product_query(). Most likely was a merge issue. Fixes #4142
2013-11-19 22:38:00 +01:00
Patrick Rauland
3fc598ff77
optimizing images
2013-11-19 12:59:01 -06:00
Mike Jolley
922406b67b
Merge pull request #4145 from scottbasgaard/master
...
woocommerce_json_search_products() is now a method of WC_AJAX. Use $this...
2013-11-19 09:06:31 -08:00
toddlahman
10273973d8
Methods called statically set to static
2013-11-19 08:26:18 -08:00
Coen Jacobs
6f1f946d02
Merge pull request #4144 from kloon/fix_api_user_profile_warning
...
Fix warning in new rest api key generation
2013-11-19 08:20:31 -08:00
Mike Jolley
459db7ec63
2.1 welcome screen Closes #4043
2013-11-19 16:18:47 +00:00
Scott Basgaard
f3b2854638
woocommerce_json_search_products() is now a method of WC_AJAX. Use $this->json_search_products() instead.
2013-11-19 14:44:28 +01:00
Gerhard
bb43d086c9
Fix warning in new rest api key generation
2013-11-19 15:18:25 +02:00
mihaigrigori
fac0bf69eb
Show order currency
...
- method to return the order currency
- allow 'currency' parameter for 'woocommerce_price'
2013-11-19 15:13:11 +02:00
Scott Basgaard
bee41fb7e5
woocommerce_get_refreshed_fragments() is no longer. Update where it was called to new Ajax class method.
2013-11-19 13:33:26 +01:00
James Koster
0257ce201a
wc messages #4042
2013-11-19 11:22:59 +00:00
James Koster
489bf34385
attributes table. closes #4118
2013-11-19 11:04:45 +00:00
Mike Jolley
8339354bc2
Merge pull request #4119 from kloon/feature_create_missing_pages_button
...
Add button on tools page to create missing pages
2013-11-19 01:46:22 -08:00
Coen Jacobs
792bb6e444
Merge pull request #4134 from scottbasgaard/master
...
Product->get_title() should be raw format by default. Pass at #4124
2013-11-19 01:02:18 -08:00
Coen Jacobs
ac59c59da7
wc_add_notice added extra parameter #4099
...
Thanks @thenbrent :)
2013-11-19 09:57:06 +01:00
Coen Jacobs
e41687ba4f
Merge pull request #4138 from woothemes/api-implementation
...
API implementation merge to master
2013-11-19 00:53:11 -08:00
Max Rice
ef22f03275
Add API key-specific permission check
...
Part of #4055
2013-11-19 03:04:00 -05:00
Max Rice
61fb0f760a
Update authentication to use new API key meta names
...
Part of #4055
2013-11-19 03:03:39 -05:00
Max Rice
f542ce87a1
Add key management UX
...
Part of #4055
2013-11-19 03:02:28 -05:00
Max Rice
001ce0fc3e
Add option to enable/disable API
...
Part of #4055
2013-11-19 03:01:46 -05:00
Max Rice
dcdca4d4d2
Remove API settings tab
...
Part of #4055
2013-11-19 03:01:14 -05:00
Max Rice
48e8363db0
Add meta to resource responses
...
Part of #4055
2013-11-18 22:58:10 -05:00
Max Rice
3130369325
Update filter_response_fields() to support sub-field inclusion
...
Part of #4055
2013-11-18 21:59:13 -05:00
Max Rice
490dc758a9
Update pagination args/headers
...
Part of #4055
2013-11-18 21:06:45 -05:00
Max Rice
87ff36db12
Properly handle datetimes
...
Part of #4055
2013-11-18 16:47:38 -05:00
Gerhard
02c62bd132
fix call to static method inside class
2013-11-18 21:59:10 +02:00
Gerhard
0e21a46cf4
make creat_pages static
2013-11-18 17:56:04 +02:00
Scott Basgaard
96fe4aae0b
Use wp_unslash() when displaying search string on orders.
2013-11-18 16:32:47 +01:00
Scott Basgaard
faf64a4d96
Product->get_title() should be raw format by default. Pass at #4124
2013-11-18 16:03:32 +01:00
Mike Jolley
d78b4287bf
shortcode_atts and show price - closes #4122
2013-11-18 14:37:27 +00:00
Mike Jolley
6ea8cad430
Related display fixes for attributes #4123
2013-11-18 14:11:40 +00:00
Mike Jolley
20bedea97b
Fix filters Closes #4123
2013-11-18 13:45:54 +00:00
Mike Jolley
26cf2e0669
Isset, not empty for 0 values. Closes #4127
2013-11-18 13:35:38 +00:00
Mike Jolley
434421aad7
Validation errors #4115
2013-11-18 12:53:45 +00:00
Mike Jolley
a957248a4d
woocommerce_product_gallery_attachment_ids filter Closes #4113
2013-11-18 12:40:58 +00:00
Mike Jolley
9eabb9a4fb
Fix yard conversion Closes #4129
...
@coenjacobs for .21
2013-11-18 12:31:55 +00:00
Mike Jolley
65561e2c61
WC()
2013-11-18 12:31:55 +00:00
Coen Jacobs
90008d7143
Merge remote-tracking branch 'thenbrent/new_notice_api'
...
Conflicts:
includes/shortcodes/class-wc-shortcode-cart.php
includes/wc-message-functions.php
woocommerce-ajax.php
2013-11-18 12:44:22 +01:00
Coen Jacobs
f0adcb65b7
Merge remote-tracking branch 'thenbrent/add_payment_method_issue_3396'
2013-11-18 12:33:23 +01:00
Mike Jolley
f6786ef6bf
Convert back to forward slashes in getcwd closes #4112 .
...
@tivnet, can you confirm? I don't have windows.
2013-11-18 11:20:39 +00:00
Max Rice
c1854b26b9
Implement GET /reports/sales endpoint
...
Part of #4055
2013-11-15 00:21:19 -05:00
Coen Jacobs
faaebab2ff
Always require braces (since yesterday ;) )
...
In order to comply to the new coding standards:
http://make.wordpress.org/core/2013/11/13/proposed-coding-standards-change-always-require-braces/
2013-11-14 20:31:08 +01:00
Gerhard
3607ecf285
Add button on tools page to create missing pages
2013-11-14 21:20:18 +02:00
Max Rice
5ab8e085ad
Update /coupons/code endpoint
...
Part of #4055
2013-11-14 13:56:05 -05:00
Max Rice
ec55e43c24
Update API index response
...
Part of #4055
2013-11-14 13:55:45 -05:00
Scott Basgaard
4bdfd78ac5
Avoid undefined variable notices when calculating totals and saving attributes via AJAX.
2013-11-14 19:40:15 +01:00
Scott Basgaard
9f7f36b232
Merge branch 'master' of github.com:woothemes/woocommerce
...
Conflicts:
woocommerce-ajax.php
2013-11-14 19:37:34 +01:00
Max Rice
709f0da16f
Improve response filters
...
Part of #4055
2013-11-14 12:48:20 -05:00
Max Rice
451bc07339
Tweak GET /order response
...
Part of #4055
2013-11-14 12:42:42 -05:00
Max Rice
674ea42012
Implement GET endpoint for products and reviews
...
Part of #4055
2013-11-14 12:40:35 -05:00
Mike Jolley
221a9d7350
Merge pull request #4111 from tivnet/master
...
Incorrect "Robots: none" tag?
2013-11-14 05:53:12 -08:00
Gregory K
eba9edb30b
Incorrect "Robots: none" tag?
...
https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
2013-11-14 07:40:33 -05:00
Mike Jolley
3d7df1bb85
Merge pull request #4108 from corsonr/master
...
Added Icelandic krona & Currency symbol
2013-11-14 04:28:31 -08:00
Mike Jolley
645ca3e834
WC_Ajax class for ajax events
2013-11-14 12:13:34 +00:00
Remi Corson
479153918e
Fixed incorrect Icelandic currency code
2013-11-14 11:44:58 +01:00
Remi Corson
84e8716844
Added Icelandic krona & Currency symbol
2013-11-14 11:42:05 +01:00
Remi Corson
55ccb4d428
Added Icelandic krona currency & currency code
2013-11-14 11:39:59 +01:00
Mike Jolley
d7ee32b18a
Consistant naming with core
2013-11-14 09:48:41 +00:00
Scott Basgaard
97fe6adaeb
It's possible there are no attributes. Let's check first to avoid undefined notices.
2013-11-13 21:15:30 -05:00
Scott Basgaard
5b5704d196
More undefined checks to avoid PHP notices in widgets.
2013-11-13 21:11:00 -05:00
Scott Basgaard
c36369010d
When adding new widget instance, use isset() to make sure setting key exists and avoid notices/warnings.
2013-11-13 21:03:46 -05:00
Scott Basgaard
eb91907db6
Make sure $matched is defined when calculating shipping totals and classes to avoid PHP variable undefined notices.
2013-11-13 20:53:31 -05:00
Scott Basgaard
f76a5edea8
Display message when tools options have been saved.
2013-11-13 20:36:27 -05:00
thenbrent
9e80672143
Use new notice template for Shipping Updated
...
For #4034
2013-11-13 16:20:27 -08:00
thenbrent
3c625eba5f
Use $messages variable for all notice templates
2013-11-13 16:19:59 -08:00
thenbrent
a7a7a8ee08
fixup! Store all notices in 'wc_notices' array
2013-11-13 16:19:27 -08:00
thenbrent
8dcf86335c
Introduce new wc_print_notice() function
2013-11-13 16:10:31 -08:00
thenbrent
3fa310969f
Introduce new wc_get_notices() function
...
To replace the deprecated Woocommerce->get_messages() and
Woocommerce->get_errors() functions
2013-11-13 16:09:28 -08:00
thenbrent
376c2f26ce
Store all notices in 'wc_notices' array
...
With 'error', 'success' & 'notice' array keys
2013-11-13 16:09:28 -08:00
thenbrent
41ba6578a0
Move notice templates into /notices/notice.php
2013-11-13 16:09:28 -08:00
Mike Jolley
02c47b2723
get_related wpdb query Closes #4086
2013-11-13 18:00:01 +00:00
Mike Jolley
2b57114a12
WC() > $woocommerce
2013-11-13 16:59:42 +00:00
Mike Jolley
197c0c76cc
Only unset cookie if it exists #3513
2013-11-13 14:55:15 +00:00
Mike Jolley
daea1e827c
Merge pull request #4094 from robdvr/master
...
Ability to add custom input classes
2013-11-13 04:18:19 -08:00
Mike Jolley
044f92fe41
Merge pull request #4096 from scottbasgaard/master
...
Use $_product object instead of undefined $product_id for downloadable p...
2013-11-13 04:15:22 -08:00
Mike Jolley
e9c38153e5
Merge pull request #4101 from franticpsyx/variation_is_visible
...
Fix invisible variations when get_price is filtered and set to (double) 0.
2013-11-13 04:15:04 -08:00
Mike Jolley
2c25568e21
Filter for adding login erorrs #4059
2013-11-13 12:12:27 +00:00
Mike Jolley
f1e6900359
Hooks before and after deleting order items #4059
2013-11-13 12:12:27 +00:00
Mike Jolley
b116d7619d
Ex tax calcs Closes #4100
2013-11-13 12:12:27 +00:00
Mike Jolley
dbdf66aec0
Multiselect
2013-11-13 12:12:26 +00:00
Manos Psychogyiopoulos
fd2a812e6d
Fix invisible when get_price is filtered and set to double 0.
2013-11-13 13:58:24 +02:00
thenbrent
2fcd615f88
Update calls to wc_print_messages() function
...
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent
e14e3842b0
Update calls to wc_error_count() function
...
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent
fe44f020e3
Update calls to wc_add_message() function
...
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent
0d45e19fcf
Update calls to wc_add_error() function
...
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent
f3b1679ae5
Introduce new wc_print_notices() function
...
To replace wc_print_messages() function.
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent
3707a9d017
Introduce wc_clear_notices() function
...
To replace wc_clear_messages() & wc_clear_errors() functions
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent
23cdafccd4
Introduce new wc_add_notice() function
...
To replace wc_add_message() & wc_add_error() functions.
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent
b3aad6f6fe
Introduce new wc_notice_count() function
...
To replace wc_message_count() & wc_error_count()
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent
c2646a7315
Rename message functions file for new notice API
...
Part of #4034
2013-11-12 20:59:04 -08:00
Scott Basgaard
8a45886a4c
Use $_product object instead of undefined $product_id for downloadable permissions. Fixes #4095
2013-11-12 23:37:39 -05:00
Rob Davarnia
f92f5bfe81
Ability to add custom input classes
2013-11-12 13:14:14 -08:00
Mike Jolley
f7c3362e8a
Update variations when the term slug changes Closes #4077
2013-11-12 20:25:26 +00:00
Mike Jolley
5bfffb8554
Merge pull request #4089 from scottbasgaard/master
...
Update tools wp_nonce_url() to correct page.
2013-11-12 11:02:36 -08:00
Mike Jolley
3fd02a57d0
Locales - store standardised values, and display using locale in admin #3862
2013-11-12 17:43:30 +00:00
Mike Jolley
6bcee46ffb
Convert float to string during update post meta #3862
2013-11-12 12:01:05 +00:00
Scott Basgaard
71c2012c1b
Add missing message when clearing sessions
...
All other actions add a message from tools
2013-11-11 13:48:36 -05:00
Scott Basgaard
c712e1414a
Update tools wp_nonce_url() to correct page.
2013-11-11 13:20:03 -05:00
Mike Jolley
7179417d0f
Better locale report #3862
2013-11-11 15:41:32 +00:00
Mike Jolley
70e2a05bd6
wpautop when displaying values #3926
2013-11-11 13:50:36 +00:00
Mike Jolley
5f62c532c3
Clean up formatting in admin - use autop #3926
2013-11-11 13:50:36 +00:00
Max Rice
00c65b9cc3
Add site timezone to API index
2013-11-10 19:30:59 -05:00
Max Rice
a13a95e452
Update API resource classes
...
Change method naming to snake_case and implement initial
`current_user_can()` permission checks
2013-11-10 19:29:36 -05:00
Max Rice
9c7791e3d8
urldecode parameters before passing to resource methods
2013-11-10 18:29:37 -05:00
Max Rice
1f5db98046
Add date created filtering to /customers endpoint
2013-11-10 18:28:58 -05:00
Max Rice
a909140cb1
Fix typo
2013-11-10 14:01:12 -05:00
Max Rice
23e6b22cfd
Rename API base resource class
2013-11-09 16:20:23 -05:00
claudiosmweb
e04dadd8d9
added rating meta box for comments, fix #4072
2013-11-08 17:19:42 -02:00
Mike Jolley
442f3b54cf
Use textarea for meta #3926
2013-11-08 17:03:46 +00:00
Mike Jolley
97bdb1555f
Sync only when needed
2013-11-08 16:02:03 +00:00
Mike Jolley
47fc9b2922
Merge pull request #4068 from BFTrick/sanitzie-admin-order-meta
...
Removing Extra Slashes When Order Meta is Saved in Admin
2013-11-08 07:58:25 -08:00
Mike Jolley
78832e7e79
woocommerce_is_filtered filter Closes #4078
2013-11-08 15:56:38 +00:00
Mike Jolley
98d247eb76
Rather than storing prices themselves, store the ID's of variations during price sync - output prices using variation tax class Closes #4032
2013-11-08 15:53:57 +00:00
Patrick Rauland
cc79155f0d
making the local pickup tooltip more descriptive
2013-11-08 07:10:43 -06:00
Mike Jolley
ff0fae0c1f
action, not filter
2013-11-07 09:53:28 +00:00
Patrick Rauland
3ba5aa3369
removing extra slashes when order meta is saved in admin
2013-11-06 10:30:36 -06:00
Max Rice
6c3eb169db
Define and use WC_API::VERSION constant for endpoint versioning
2013-11-06 01:56:38 -05:00
Max Rice
0a6b268024
Update core WC_API class to use new WC_API_Server class
2013-11-06 01:56:11 -05:00
Max Rice
c3fa52b0b5
Update API classes to use new WC_API_Server class
2013-11-06 01:54:19 -05:00
Max Rice
ed6de29bfc
Add new WC_API_Server class
...
Based on WP_JSON_Server, this class add response handling based on
endpoint suffixes (.json or .xml) or the ACCEPT header. It also removes
some unneeded functionality and renames filters so as to not conflict
with users who may have WP-API installed already. Finally, instead of
no authentication required by default, authentication is always
required unless specifically disabled via filters.
2013-11-06 01:53:07 -05:00
Max Rice
8637da63c0
Add REST API XML request/response handler stub
2013-11-06 01:49:51 -05:00
Max Rice
165d0e65ea
Add REST API JSON request/response handler
2013-11-06 01:49:37 -05:00
Max Rice
58c57eb6f1
Add REST API request/response interface
2013-11-06 01:49:08 -05:00
Max Rice
1625930482
Remove WP-API library
2013-11-06 01:24:06 -05:00
Max Rice
30300bb2a0
Add get_woocommerce_api_url() method
2013-11-06 01:23:19 -05:00
Brent Shepherd
3e08e29f9e
Use new notice API for "Add a Pay Method" notice
...
Part of #3396
2013-11-05 16:17:51 -08:00
Brent Shepherd
fe969d0903
Use wc_add_notice() when updating shipping costs
...
Fixes #4034
2013-11-05 16:17:51 -08:00
Brent Shepherd
9de928baf5
Add new notices API for blue info message
...
Part of #4034
2013-11-05 16:11:50 -08:00
Brent Shepherd
4a7f207eff
Use new ID for add pay method form
...
Part of #3396
2013-11-05 15:36:00 -08:00
Brent Shepherd
b69066405b
Move /add-payment-method/ endpoint to /my-account/
...
Part of #3396
2013-11-05 13:02:13 -08:00
thenbrent
09e182f358
Allow gateways to specify redirect URL
...
Part of #3396
2013-11-04 20:54:18 -08:00
Coen Jacobs
b9b9f3a49e
Fixed docs for enabled params (string, not bool), closes #4052
2013-11-04 11:29:20 +01:00
Coen Jacobs
c58621f3f8
Fixed docblock return type, closes #4057
2013-11-04 11:20:45 +01:00
Mike Jolley
e3a8b7dfdc
Merge pull request #4045 from scottbasgaard/master
...
Class name consistency for woocommerce_attributes > product_attributes. ...
2013-11-04 01:59:58 -08:00
Max Rice
e219585974
Add initial versions of REST API resource classes
2013-11-04 01:36:31 -05:00
Max Rice
27163ceec0
REST API base class tweaks
2013-11-04 01:36:16 -05:00
Max Rice
25407c284e
Trash posts by default instead of permanently deleting
2013-11-04 01:34:53 -05:00
Max Rice
2bb83bb1d8
Make WC_Comments::exclude_order_comments static
...
The WC_Comments class is an orphaned global so there's no way for other
code to access it in order to remove the `comment_clauses` filter. This
changes the add_filter and associated method to static so other code
can properly remove the filter for querying order notes
2013-11-04 01:34:21 -05:00
Max Rice
7caffcd8f2
Add REST API base class
2013-11-03 20:06:36 -05:00
Max Rice
45fa450760
Add REST API authentication class
2013-11-03 20:06:28 -05:00
thenbrent
e63021a2ca
Fix "non-static method called statically" notice
2013-11-03 16:54:07 -08:00
thenbrent
d9639947da
Filter gateways for add_payment_method form
...
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent
a1ca487e73
Add a notice that payment method has been added
...
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent
1e0cf3087e
Redirect to My Account page after adding method
...
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent
0e4cd125c5
Call add_payment_method_action()
...
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent
4f825eb36e
Only display add_payment_method() when logged in
...
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent
237b5778a3
Add add_payment_method_action() handler
...
Part of #3396
2013-11-03 16:53:24 -08:00
thenbrent
1bbe03d139
Add new /checkout/add-payment-method/ endpoint
...
Part of #3396
2013-11-03 16:53:14 -08:00
Max Rice
1d113b3e39
Add REST API endpoints/methods to WC API class
2013-11-03 19:29:45 -05:00
Max Rice
4cc1847a66
Remove unused WP_JSON_Posts class
2013-11-03 19:26:29 -05:00
Max Rice
4daaf22304
Add REST API settings stub
2013-11-03 18:55:34 -05:00
Max Rice
a4a8b5e5c0
Add required global functions for WP_JSON_Server class
2013-11-03 18:54:56 -05:00
Max Rice
65f48e8456
Modify WP_JSON_Server to allow authentication
2013-11-03 18:53:35 -05:00
Max Rice
a0ddef247d
Fix strict standards warning
2013-11-02 18:12:50 -04:00
Max Rice
f6ea020e8d
Add WP JSON API Library
2013-11-02 01:16:45 -04:00
thenbrent
dae90d0dd0
Fix use of __CLASS__ when not in class
2013-11-01 15:00:09 -07:00
Coen Jacobs
16162ca8db
We'll let autoload handle this file loading
...
Revert: 1428bf8f9c
2013-11-01 21:05:02 +01:00
Scott Basgaard
5b4ef0b8bd
Class name consistency for woocommerce_attributes > product_attributes. See #4019
2013-11-01 13:06:14 -04:00
Coen Jacobs
1428bf8f9c
Only load integration abstract when needed #3169
2013-11-01 17:39:33 +01:00
Coen Jacobs
ae64e20bb3
Take out default variations #3169
2013-11-01 17:33:33 +01:00
Mike Jolley
5faf171a48
Merge pull request #4030 from bernardpeh/woocommerce-dev
...
polish up attributes section confusing tips.
2013-11-01 08:47:04 -07:00
Mike Jolley
ab94de75d6
Merge pull request #4038 from emzo/widget-product-categories-orderby
...
Changed label of orderby setting in product category widget.
2013-11-01 07:02:38 -07:00
Mike Jolley
e9c130145a
Merge pull request #4031 from helgatheviking/sync/add-child-to-action
...
pass $children variable (variations) to the woocommerce_variable_product...
2013-11-01 07:01:28 -07:00
Emyr Thomas
ba3282c737
Changed label of orderby setting in product category widget.
2013-10-31 21:42:31 +00:00
Mike Jolley
19fcf30a66
Option to limit reviews to purchasers. Closes #4021
2013-10-31 17:37:36 +00:00
Mike Jolley
b4d1c764d5
Move average rating outside of hidden tab. Closes #3867 .
2013-10-31 16:26:20 +00:00
Mike Jolley
447b9d8b4f
Unlike the suggestion in #3965 , the HTML email preview should preview the layout only (selected colours etc). Content is irrelevant.
...
Closes #3965
2013-10-31 15:07:43 +00:00
Kathy Darling
b444b42275
pass $children variable (variations) to the woocommerce_variable_product_sync hook
2013-10-31 09:17:00 +01:00
Bernard Peh
f4291f9333
polish up attributes section confusing tips.
2013-10-31 17:14:35 +11:00
Mike Jolley
67c7671bb2
woocommerce_apply_base_tax_for_local_pickup when no methods are chosen yet
2013-10-30 15:30:20 +00:00
RistoNiinemets
ff26037372
replace function with new filter
2013-10-29 20:16:12 +02:00
RistoNiinemets
6a2972f5f3
Merge remote-tracking branch 'upstream/master'
2013-10-29 20:11:00 +02:00
Mike Jolley
95c0a67fdf
Merge pull request #4017 from scottbasgaard/master
...
Define line_subtotal and line_subtotal_tax to avoid PHP notice in cart.
2013-10-29 09:49:55 -07:00
Mike Jolley
c3232d613d
_woocommerce_term_recount
2013-10-29 11:29:21 +00:00
James Koster
dcf54c23bd
edit coupon icons and new version of WooCommerce icon font. #3585
2013-10-28 11:19:56 +00:00
James Koster
5aeaed888e
Add review form no longer opens in lightbox. closes #3804
2013-10-28 09:56:03 +00:00
James Koster
1fbb6249ff
Replaced → / ← on frontend with icons from our font. closes #4009
2013-10-28 09:45:59 +00:00
James Koster
e934947152
Remove placeholder polyfill. closes #4012
2013-10-28 09:03:03 +00:00
Scott Basgaard
a36c8d3b1f
Rename attributes class to woocommerce_attributes. Fixes #4019
...
.product_attributes should be .woocommerce_attributes
2013-10-26 21:38:03 +02:00
Scott Basgaard
ea03af2ee4
woocommerce_exclude_order_comments() is now exclude_order_comments()
2013-10-26 17:30:43 +02:00
Scott Basgaard
213525fc7c
Use global $current_user in my-account/edit address.
...
Avoid PHP notice for undefined variable.
2013-10-26 16:33:14 +02:00
Scott Basgaard
5676c8d919
Define line_subtotal and line_subtotal_tax to avoid PHP notice in cart.
2013-10-26 16:22:09 +02:00
RistoNiinemets
fcaaa129f2
use wooocommerce_locate_template
...
This allows woocommerce_locate_template filter to work on admin also
2013-10-26 13:32:38 +03:00
Mike Jolley
c7429357c7
Fix notices and rounding issues in orders
2013-10-25 20:02:21 +01:00
Mike Jolley
a099f3f37c
Put back old coupon storage logic so plugins can add amounts later than construct. Also streamlined get/set session data.
2013-10-25 19:28:09 +01:00
Mike Jolley
9416a4c8a2
Merge pull request #4007 from RistoNiinemets/ucfirst
...
change ucwords to ucfirst
2013-10-25 09:09:18 -07:00
RistoNiinemets
a96cb41c83
no dot use ucfirst nor ucwords for method title
2013-10-25 18:44:17 +03:00
Mike Jolley
8356cd301d
Merge pull request #4011 from scottbasgaard/master
...
Round product % price inc/dec in bulk edit. Resolves #4001
2013-10-25 08:14:23 -07:00
Mike Jolley
f742a91435
Rejig login form closes #4005
2013-10-25 16:10:13 +01:00
Scott Basgaard
242fc17090
Fix formatting.
2013-10-25 15:38:07 +02:00
Scott Basgaard
a85201ae2c
Don't forget to round with woocommerce_price_num_decimals option
2013-10-25 15:25:58 +02:00
Scott Basgaard
a3a1753c00
Round product % price inc/dec in bulk edit. Resolves #4001
2013-10-25 15:19:03 +02:00
Mike Jolley
dee6bba05c
Fix get_item_subtotal
2013-10-25 13:25:53 +01:00
Mike Jolley
e50067d68e
Merge branch 'tax-precision'
2013-10-25 12:15:48 +01:00
RistoNiinemets
ae00faecdd
change ucwords to ucfirst
2013-10-25 13:53:53 +03:00
Mike Jolley
e143d344e5
Constants
2013-10-24 19:36:22 +01:00
Mike Jolley
af6996866e
Rounded report
2013-10-24 19:22:22 +01:00
Mike Jolley
92fa4e379b
round tax reports
2013-10-24 16:19:28 +01:00
Mike Jolley
19c3ab7172
calc_tax functions
2013-10-24 16:16:39 +01:00
Mike Jolley
6d32dafa79
debug
2013-10-24 14:55:23 +01:00
Mike Jolley
e4ff61f475
You know when you've been benbowed
2013-10-24 14:53:01 +01:00
Mike Jolley
0d8d95e8e6
total calcs
2013-10-24 13:41:42 +01:00
Mike Jolley
51aba21d76
Rounding + precision for taxes. Store unrounded. Round down (for the moment) for taxes
2013-10-24 13:15:42 +01:00
Scott Basgaard
c93a11cff2
In System Status -> Templates make sure to look for template overrides in parent theme as well.
2013-10-24 14:05:13 +02:00
Mike Jolley
90ba359ef9
Uninstall option Closes #3968 . Change option for #3992
2013-10-23 17:21:03 +01:00
Mike Jolley
56714e1d62
Merge pull request #3992 from scottbasgaard/master
...
Add template debug mode option. First pass at #3941
2013-10-23 08:58:30 -07:00
Scott Basgaard
9c9bfe1f4c
Add template debug mode option. First pass at #3941
2013-10-23 17:52:58 +02:00
Scott Basgaard
90b503e2c6
Use minified quick-edit.js
2013-10-23 17:36:32 +02:00
Mike Jolley
f4d4a42ba7
Merge pull request #3944 from bernardpeh/woocommerce-master
...
allow other plugins to validate the passwd in the lost passwd page
2013-10-23 08:11:19 -07:00
Mike Jolley
7fb60ccc99
blogname is the actual option, but WP terminolgy in settings is "Site Title".
...
Closes #3952
2013-10-23 15:57:14 +01:00
Mike Jolley
8ce3b8dd57
Filters for shortcode tags
2013-10-23 14:55:18 +01:00
Mike Jolley
1b1332d278
Static shortcodes. Will allow plugins to add some alias with same methods.
2013-10-23 12:55:40 +01:00
Mike Jolley
22eaf33bfe
Filter links + woocommerce_enable_admin_help_tab
2013-10-22 18:20:33 +01:00
Mike Jolley
05d9c0e045
Rename menus, removed woocommerce_
2013-10-22 17:26:18 +01:00
Mike Jolley
1813c1d6d6
woocommerce_attributes > product_attributes
2013-10-22 16:46:59 +01:00
Mike Jolley
28f8d401d3
Fix term install Closes #3919
2013-10-22 16:34:23 +01:00
Mike Jolley
ff928714a2
Keep leading zeros. Closes #3930
2013-10-22 16:28:44 +01:00
Mike Jolley
cc46479487
Merge pull request #3973 from helgatheviking/fix/invalid-args-for-implode
...
cast $tabs['class'] as array
2013-10-22 08:23:56 -07:00
Mike Jolley
f22b7feb41
_woocommerce_term_recount
2013-10-22 16:20:40 +01:00
Mike Jolley
1d8d86a2e5
Coupon in admin bar new menu Closes #3974
2013-10-22 13:58:55 +01:00
Kathy Darling
cc50c0f3ef
cast $tabs['class'] as array
2013-10-21 22:13:52 +02:00
Mike Jolley
67e4f0731e
remove_ordering_args from .18
2013-10-21 13:05:34 +01:00
Mike Jolley
4625ba8a22
Merge pull request #3956 from atomworks/master
...
Fix: Download permissions not granted on order completion.
2013-10-21 04:44:34 -07:00
Mike Jolley
6eff61481f
Pass index to woocommerce_save_product_variation
2013-10-21 12:37:27 +01:00
Leonard
24c57f35fd
Fix: Download permissions not granted on order completion.
...
$downloads was being built from a function that tried to read from the permissions table and not from the correct post meta which it actually needed. This resulted in having to manually grant permissions for each order made.
Original symptom was download links not appearing on order completion screen or completion e-mail.
2013-10-19 13:56:57 +01:00
claudiosmweb
995b672c8a
refixed the BR postcode validation
2013-10-18 16:06:27 -03:00
claudiosmweb
91193c5dac
fixed the BR postcode validation
2013-10-18 16:03:27 -03:00
claudiosmweb
538d776d3f
fixed is_postcode method description
2013-10-18 15:58:51 -03:00
claudiosmweb
bb2cc2b035
added BR postcode validation
2013-10-18 15:56:36 -03:00
Mike Jolley
1c6e63fe0a
CH postcode validation
2013-10-18 19:19:29 +01:00
Mike Jolley
5d2e1ac031
Refactor coupon code so coupons get the actual discount amount, redone edit coupon screen with tabs, added coupon item limits which Closes #3902
2013-10-18 18:10:58 +01:00
Bernard Peh
943327dcb6
since we are running our own passwd reset facility, we should allow other plugins to validate the password before resetting it.
2013-10-18 12:24:06 +11:00
Mike Jolley
f56edb66e4
Unused vars Closes #3937
2013-10-17 15:32:45 +01:00
Mike Jolley
d27f8f4848
Wrap messages with WC div so they are styled
2013-10-17 15:29:53 +01:00
Mike Jolley
47df526518
Prepend main WC Session cookie with 'wp' so batcache doesn't cache pages, and set cookie only when cart has contents. #3513
2013-10-17 15:29:53 +01:00
Mike Jolley
b49f6fdaac
Merge pull request #3940 from scottbasgaard/master
...
Don't be so generous with this jQuery selector. Fixes #3933
2013-10-17 04:44:09 -07:00
Mike Jolley
a112cb1d7d
Consistant method names Closes #3901 , return doubles instead of number formatted strings.
2013-10-17 12:43:44 +01:00
Scott Basgaard
af76647116
[sale_products] has incorrect post_type. Fixes #3934
...
In 2.1, woocommerce_get_product_ids_on_sale() used 'product1' instead of 'product' for post_type.
2013-10-17 12:48:49 +02:00
Mike Jolley
2cd74e1acf
Remove filter fix from .17
2013-10-17 10:48:41 +01:00
Mike Jolley
3ccaae0962
Revert to previous logic, but fix tax total #3924
2013-10-16 18:06:14 +01:00
Mike Jolley
35ec4c9169
Sale products
2013-10-16 17:05:27 +01:00
Mike Jolley
c68e93457d
#3924
2013-10-16 15:37:24 +01:00
Mike Jolley
f24aaf18d0
Merge pull request #3936 from tivnet/master
...
get_product_subtotal() PHPDoc fix
2013-10-16 06:31:56 -07:00
Mike Jolley
5eafe2065b
ake shipping methods check if taxable, so when customer is VAT excempt taxes are not included in price. Closes #3888
2013-10-16 14:31:31 +01:00
Gregory K
5f65586167
get_product_subtotal() PHPDoc fix
2013-10-16 09:29:48 -04:00
Mike Jolley
0fec16516f
Merge pull request #3935 from tivnet/master
...
get_product_price() : PHPDoc fix
2013-10-16 06:14:50 -07:00
Mike Jolley
4cabf24422
needs_payment for 2.1 #3928
2013-10-16 14:14:15 +01:00
Gregory K
571500930f
get_product_price() : PHPDoc fix
2013-10-16 08:24:46 -04:00
Mike Jolley
9acec8d970
Merge pull request #3918 from scottbasgaard/master
...
Make sure grouped term exists before using it as an object.
2013-10-16 02:36:35 -07:00
Mike Jolley
44f50cb6cd
Code from .17 + readme
2013-10-16 10:28:24 +01:00
Lee Willis
1ab404e0e7
Fix is_order_received_page()
2013-10-15 21:59:29 +01:00
Mike Jolley
0f1a8001cf
Use subtotal for free shipping, remove unused min_amount from abstract #3924
2013-10-15 17:19:30 +01:00
Scott Basgaard
380faf0f21
More PHP notice/warnings data validation
...
Fixes PHP Notice: Undefined offset: X
2013-10-14 21:57:56 +02:00
Scott Basgaard
714cd36428
Make sure grouped term exists before using it as an object.
...
Fixes Trying to get property of non-object in… PHP notice.
2013-10-14 21:47:32 +02:00