Commit Graph

654 Commits

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