Commit Graph

704 Commits

Author SHA1 Message Date
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