Commit Graph

2272 Commits

Author SHA1 Message Date
Kai Armstrong 4812248320 Sends proper HTTP Status Codes on die 2014-06-11 14:55:15 -05:00
claudiosmweb 9540fd9444 fixed some coding standards in includes/admin/meta-boxes/class-wc-meta-box-order-data.php 2014-06-11 16:50:15 -03:00
claudiosmweb 977751dd20 display the transaction id in the order data meta box 2014-06-11 16:37:00 -03:00
claudiosmweb 5e39d81acc fixed hard coded Edit string 2014-06-11 16:07:12 -03:00
claudiosmweb f1926834da fixed some coding standards in includes/admin/meta-boxes/views/html-order-fee.php 2014-06-11 16:06:31 -03:00
claudiosmweb 911b1699ee improved the tax name in order item fee 2014-06-11 16:03:07 -03:00
claudiosmweb eaf5a9e866 added some brackets 2014-06-11 15:47:33 -03:00
claudiosmweb b5ee32efd0 improved the test for get the term name 2014-06-11 15:46:41 -03:00
claudiosmweb 29305bd9ec fixed some coding standards in includes/admin/meta-boxes/views/html-order-item.php 2014-06-11 15:31:54 -03:00
claudiosmweb 7ee7d75ed4 improved the order items names when is attributes, closes #5551 2014-06-11 15:18:33 -03:00
claudiosmweb 2acf0a8c83 fixed two syntax error in paypal gateway class 2014-06-11 14:14:34 -03:00
Mike Jolley 80ba9aa9c9 woocommerce_order_add_fee 2014-06-11 16:53:49 +01:00
Mike Jolley c591a3fb54 Set correct post type 2014-06-11 16:11:28 +01:00
Coen Jacobs 6cae09335b Store PayPal transaction id through payment_complete method 2014-06-11 16:36:55 +02:00
Coen Jacobs 386751addf Support storing transaction id in payment_complete method 2014-06-11 16:36:32 +02:00
Mike Jolley ef3e728855 Setters + wc_create_order + wc_update_order for #4169 2014-06-11 15:10:03 +01:00
Bernat 4f61e1946f Update class-wc-query.php
Use 'term_id' instead of 'id' for the tax_query as described in WP codex: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
2014-06-10 17:22:01 +02:00
Manos Psychogyiopoulos 27a7dd0255 status report overrides table format
New tr for every extension being checked for overrides.
2014-06-09 16:57:02 +03:00
Mike Jolley a621288459 Fix address format in plain text email 2014-06-09 12:08:45 +01:00
Mike Jolley 77f71741b8 This should be static 2014-06-09 11:57:13 +01:00
Mike Jolley b20602a770 Merge pull request #5628 from tszming/fix-cached-widget
Add filter to allow override the cache widget id
2014-06-09 11:42:08 +01:00
Tamara Zuk 5dc1c8cf38 Remove ordering query args
If these are not removed right after use they will affect the remaining
queries on the page.
2014-06-09 04:15:46 -04:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Tsz Ming WONG 35159c50c8 Add filter to allow override the cache widget id 2014-06-07 00:34:12 +08:00
Mike Jolley eadf66a7d9 Merge pull request #5617 from enru/master
unslash order item meta key before updating in DB
2014-06-06 16:11:45 +01:00
Mike Jolley 5d8a1e03c0 Merge pull request #5610 from ragulka/checkout-wc-clean-fix
Check if posted data is_array before doing wc_clean in checkout
2014-06-06 16:09:02 +01:00
Mike Jolley 7aa053bdbd Merge pull request #5605 from ragulka/radio-field
Add radio type support to woocommerce_form_field
2014-06-06 16:08:25 +01:00
Mike Jolley f41febc42a Merge pull request #5598 from splashingpixels/add-filter
add filter for admin stock report products per page
2014-06-06 16:05:29 +01:00
Mike Jolley 32e77897cc Placeholder functions 2014-06-06 15:51:09 +01:00
Mike Jolley 2916c64370 Merge pull request #5618 from claudiosmweb/feature-translation-update-notice
Add a notice about available translation upgrades
2014-06-06 15:40:48 +01:00
toddlahman db896e316c Allow downloadable products URL to be relative 2014-06-04 22:02:32 -07:00
claudiosmweb c34cea6523 added a new option in system status to force the translations upgrade 2014-06-04 14:25:49 -03:00
claudiosmweb 1c128d8ebd added a notice to display messages about available translation upgrades 2014-06-04 13:01:38 -03:00
enru 23950bcf0d unslash order item meta key before updating in DB
To prevent nested slashes in DB when item meta key contains quotes.
This is in line with WordPress' behaviour - see update_meta() in wp-includes/meta.php
2014-06-04 15:09:01 +01:00
Mike Jolley 09c4e1c07a Merge pull request #5614 from mkayan-wakefly/master
RE issue: #5613 - Typo in error message
2014-06-04 11:31:19 +01:00
Mike Jolley ded4b7404d Admin changes for #5046
- Removed post type classes. Since they were always loaded, there was
no benefit having them split up. Combined meaning less hooked in
methods.
- Stopped loading some function files and sessions in the admin area.
They are not needed there.
- Made a few admin page classes static as they are stateless
2014-06-04 11:16:19 +01:00
Mike Jolley 7c5c113b61 Prevent sub pages of the shop page 404'ing with verbose page rules
Fixes #4621
2014-06-04 07:46:21 +01:00
Mike Jolley 8a6a195692 Merge branch 'post-statuses-for-orders' 2014-06-04 05:54:15 +01:00
mkayan-wakefly e6bfd393ac #5613 Typo in "don't ship to" error message
Typo in "don't ship to" country message: Issue #5613

Removing the word "to" from the error message indicating that a site doesn't ship to a certain country.

The function, shipping_to_prefix(), will handle insert the word "to".
Or, in the case of US, GB, and a few other countries, the words "to the".
2014-06-03 15:51:09 -04:00
mkayan-wakefly 32618c72b5 Update class-wc-checkout.php
Removing the word "to" from the error message indicating that a site doesn't ship to a certain country.

The function, shipping_to_prefix(), will handle insert the word "to".
Or, in the case of US, GB, and a few other countries, the words "to the".
2014-06-03 15:45:22 -04:00
Mike Jolley be4be147b9 Merge pull request #5604 from claudiosmweb/4844-fix-product-cat-url
Exclude the product_cat custom rewrites from the rewrite_rules_array
2014-06-03 14:46:25 +01:00
Mike Jolley 26668f49eb Merge pull request #5603 from claudiosmweb/5159-fix-product-attachment-url
Fix the product attachment urls when use n/%product_cat% as base url
2014-06-03 14:45:55 +01:00
Illimar Tambek 6302c0fb8a Check if posted data is_array before doing wc_clean in checkout 2014-06-03 14:16:19 +03:00
Mike Jolley 01810c3fce Check if wp_get_post_terms is empty before get_terms 2014-06-03 11:58:08 +01:00
Mike Jolley f30e95663b Prefixes for queries 2014-06-03 11:29:01 +01:00
Mike Jolley 9307fcf66b Internal wc- prefix and get_status filter 2014-06-03 11:04:56 +01:00
Illimar Tambek 516a8bcc8a Add radio type support to woocommerce_form_field 2014-06-03 13:04:06 +03:00
Mike Jolley 66f36d3f08 woocommerce_order_has_status filter 2014-06-03 10:47:16 +01:00
Mike Jolley 309f700283 has_status 2014-06-03 10:45:33 +01:00
claudiosmweb dfbe3e2e16 excluded the product_cat custom rewrites from the rewrite_rules_array, closes the #4844 2014-06-02 17:00:44 -03:00
claudiosmweb 6577d8086b fixed the product attachment urls when use n/%product_cat% as base url, closes #5159 2014-06-02 15:40:24 -03:00
Mike Jolley 4c18ab831a [2.1] Get terms doesn't support slugs #5490 2014-06-02 16:14:51 +01:00
Mike Jolley 22a37e860f [2.1] When linking variations, use slugs #5490 2014-06-02 15:28:00 +01:00
Mike Jolley fb570b2766 Merge pull request #5594 from claudiosmweb/fix-typo-1
Fix a typo with context in class-wc-install.php
2014-06-02 12:02:59 +01:00
Mike Jolley 6b35c59f5b Tweaked tax query to contain less subqueries 2014-06-02 11:55:36 +01:00
Mike Jolley 387cc973df Removes properties from customer class - these are all stored in _data! 2014-06-02 11:50:01 +01:00
splashingpixels 2757573bb2 add filter for admin stock report products per page 2014-05-31 13:45:47 -07:00
toddlahman fe43298021 Use wp_send_json() WordPress function for AJAX
The header(), json_encode(), and die(), functions are all executed with
a better logical routine that should provide consistent results.
2014-05-31 00:32:22 -07:00
Mike Jolley ce44a5445f Join errors 2014-05-30 18:29:53 +01:00
Mike Jolley 51201d0a6b Update script 2014-05-30 18:27:41 +01:00
Mike Jolley 9bc9b34cc8 Change order admin panel to new statuses 2014-05-30 17:47:00 +01:00
Mike Jolley e0a74fffc4 implement is_status() 2014-05-30 17:43:21 +01:00
Mike Jolley fca32a98de Implement is_status functions and update_status 2014-05-30 17:16:22 +01:00
Mike Jolley ae50495dfd Update API functions 2014-05-30 16:34:59 +01:00
Mike Jolley 05b9b8af4e get_status_name + my_orders 2014-05-30 16:29:44 +01:00
Mike Jolley 334acf42f5 Optimise customer list 2014-05-30 16:24:32 +01:00
Mike Jolley df9543000b Optimise report query 2014-05-30 16:22:32 +01:00
Mike Jolley 9f6871ad7d Optimise dashboard queries 2014-05-30 16:21:16 +01:00
Mike Jolley 543ed6f207 Optimise cart class 2014-05-30 16:17:51 +01:00
Mike Jolley 5af1c5ba59 Update checkout functions 2014-05-30 16:16:57 +01:00
Mike Jolley 2f374cf8b4 Optimize user functions 2014-05-30 16:14:24 +01:00
Mike Jolley 83b4845250 Optimise order functions for post statuses 2014-05-30 16:09:28 +01:00
Mike Jolley 55f087b20e wc_get_order_statuses function 2014-05-30 16:03:11 +01:00
Mike Jolley ba15dc1793 No longer need system status report on status 2014-05-30 15:58:09 +01:00
Mike Jolley 346b0deb31 no longer need to install shop order status terms 2014-05-30 15:57:28 +01:00
Mike Jolley a8811167f2 pending 2014-05-30 15:54:18 +01:00
Mike Jolley ea55a874db Failed status 2014-05-30 15:28:10 +01:00
Mike Jolley f506549264 Kill shop_order_status taxonomy 2014-05-30 15:27:17 +01:00
Mike Jolley 3e687d2a6e Get status and is_status helpers which compare against post_status 2014-05-30 15:26:28 +01:00
Mike Jolley 127bcc7d35 Register statuses for orders 2014-05-30 15:24:53 +01:00
Mike Jolley 6e3820b635 No need for status drop down 2014-05-30 15:24:34 +01:00
claudiosmweb 00262a19f2 fixed a typo with context in class-wc-install.php 2014-05-30 11:13:26 -03:00
Mike Jolley 098a6afbbf Fix state display Closes #5587 2014-05-30 13:33:09 +01:00
Mike Jolley f383710e38 Localize scripts only when needed Closes #4158 2014-05-30 12:01:01 +01:00
Mike Jolley b2ddcf29cf Set keys for find/replace to prevent duplicate keys
Fixes #5168
2014-05-30 10:42:47 +01:00
claudiosmweb 02b5f21168 fixed the language pack upgrader repository uri 2014-05-29 17:05:38 -03:00
Mike Jolley ec358fe8ed Merge pull request #5581 from claudiosmweb/feature-language-pack-upgrader
Introduces the Language Pack Upgrader
2014-05-29 16:36:07 +01:00
Mike Jolley 25795c1fba Merge pull request #5578 from claudiosmweb/feature-wc_get_log_file_path-function
Introduces the wc_get_log_file_path() function
2014-05-29 16:35:48 +01:00
Mike Jolley 4c0e7a13f7 Merge pull request #5572 from justinstern/master
Check for Existence of Cart Before Using
2014-05-29 16:33:33 +01:00
Patrick Rauland 1baaf9f754 capitalizing paraguayan guarani 2014-05-29 09:36:57 -05:00
Patrick Rauland 889e758b38 adding paraguayan currency. see #5568 2014-05-29 09:34:52 -05:00
Mike Jolley 59b98d7d7b Merge pull request #5586 from claudiosmweb/4870-feature-local-pickup-hide-shipping-address
Remove Shipping Address when the shipping method is Local Pickup
2014-05-29 09:23:27 +01:00
claudiosmweb 96ea1d8bc4 introduces the WC_Order::needs_shipping_address() method 2014-05-28 16:20:36 -03:00
Mike Jolley 978268dfa6 Merge pull request #5577 from claudiosmweb/improve-system-status-logs
Stop "no such file or directory" warnings
2014-05-28 19:32:39 +01:00
Mike Jolley 79a26d7f8e Merge pull request #5584 from claudiosmweb/4594-feature-customer-api-available-downloads
Add Customer API endpoint for get available downloads
2014-05-28 19:32:20 +01:00
Mike Jolley b2a35fd5cf Merge pull request #5582 from claudiosmweb/4857-feature-api-products-status-filter
Add post_status filter in WC API
2014-05-28 19:31:40 +01:00
claudiosmweb d2329914a6 created customer api endpoint to get the customer available downloads, closes #4594 2014-05-28 14:06:46 -03:00
claudiosmweb d0fac1f737 introduces the wc_get_customer_available_downloads() function 2014-05-28 14:05:19 -03:00
claudiosmweb a69e947c4d added post_status filter in WC API, closes #4857 2014-05-28 13:29:37 -03:00
Mike Jolley a723b4ed3c Subcategory query can now use parent = 0 without breaking
Closes #4644
2014-05-28 17:25:33 +01:00
claudiosmweb 62ed150782 created the language pack upgrader 2014-05-28 13:06:00 -03:00
Mike Jolley d88425f47e Load countries and states when needed rather than in the constructor. Closes #4158 2014-05-28 16:48:21 +01:00
Mike Jolley a9ff5afa01 Additional report filters Closes #4752 2014-05-28 15:19:16 +01:00
claudiosmweb 7ca27a8f80 introduces the wc_get_log_file_path() function 2014-05-28 11:08:33 -03:00
Mike Jolley e198ee517a Made stateless classes static to allow unhooking of hooks
Closes #5151
2014-05-28 14:52:50 +01:00
claudiosmweb ce867a4150 stopped "no such file or directory" warnings 2014-05-28 10:46:11 -03:00
Mike Jolley 35ecf85ff1 When getting grouped products, don't suppress filters
Closes #4661
2014-05-28 11:30:07 +01:00
Mike Jolley ce18293c9f 2 filters for drop down functions Closes #5161 2014-05-28 11:28:20 +01:00
Mike Jolley 1ed0938581 [2.2] Log changes Closes #4926
Added WC_LOG_DIR constant
Added log viewer
Changed default logging directory to 1 up from ABSPATH inside wc-logs
2014-05-28 11:12:38 +01:00
Mike Jolley 3fbd036b81 Merge pull request #5573 from claudiosmweb/5180-tax-validation
Add validation for country code in tax settings
2014-05-28 09:32:09 +01:00
claudiosmweb 9ea27fd416 fixed another variable overwritten in tax settings 2014-05-27 19:12:11 -03:00
claudiosmweb c4cb110af1 fixed a variable overwritten in tax settings 2014-05-27 19:08:18 -03:00
claudiosmweb 322c655e61 added validation for country code in tax settings, closes #5180 2014-05-27 19:03:21 -03:00
Mike Jolley b994536ef6 Merge pull request #5562 from coenjacobs/order-item-subtotal-hooks
Added  parameter to get line subtotal filters
2014-05-27 13:03:51 +01:00
Mike Jolley 84740c1449 Merge pull request #5560 from woothemes/remove-tinymce-button
Removed unused TinyMCE button
2014-05-27 13:02:02 +01:00
Mike Jolley 4d76f16098 Merge pull request #5559 from coenjacobs/refactor-get-avatar-url
Use regex instead of DOM module to get avatar URL
2014-05-27 13:01:34 +01:00
Mike Jolley fec7dd081d Merge pull request #5550 from PlacidBox/master
[2.1] Fixes performance degredation on large wp_options tables
2014-05-27 12:58:29 +01:00
Mike Jolley e11e05f1ef Merge pull request #5548 from BFTrick/danish-currency
[2.1] Fixing Danish Krone Symbol
2014-05-27 12:57:00 +01:00
Mike Jolley 17d17008bf Merge pull request #5546 from claudiosmweb/fix-little-typo
[2.1] Fix a little typo in add-ons page
2014-05-27 12:56:35 +01:00
Mike Jolley 4c508e9b0f Merge pull request #5541 from splashingpixels/revise-term-function
[2.1] revised wc_get_product_terms to allow override with args
2014-05-27 12:55:20 +01:00
Coen Jacobs 6ab76b7ab0 Added parameter to get line subtotal filters 2014-05-26 16:44:36 +02:00
Coen Jacobs 09a9463b0a Removed unused TinyMCE button 2014-05-26 16:17:56 +02:00
Coen Jacobs 3ae4e54b04 Empty return value should be null 2014-05-26 12:51:03 +02:00
Coen Jacobs cfd8600960 Use regex instead of DOM module to get avatar URL 2014-05-26 12:48:21 +02:00
toddlahman 969fd22849 Confirm buffer is not empty before erasing
Confirm file_exists before opening. For PHP 5.3 or earlier, check if
safe_mode is active to avoid errors.
2014-05-25 14:10:23 -07:00
Chris Broadbent ff0025a1f4 Fixes performance degredation on large wp_options tables 2014-05-24 14:04:49 +10:00
justinstern 88e82c5640 Check for Existence of Cart Before Using
check for the existence of the cart during the is_available() check
before getting the order total (which otherwise will result in a PHP
notice from the admin, etc)
2014-05-23 22:12:15 -04:00
Patrick Rauland 3b90a1d8c2 fixing danish krone symbol 2014-05-23 20:13:30 -05:00
claudiosmweb 240cad1c89 fixed a little typo in add-ons page 2014-05-23 09:54:26 -03:00
Mike Jolley 42f9eab1bc [2.1] Fix coupon limit checks and enhance to check ID by provided email (if logged out)
Fixes #5535
2014-05-22 16:23:01 +01:00
splashingpixels e508a668a3 revised wc_get_product_terms to allow override with args 2014-05-22 07:05:34 -07:00
Mike Jolley a1809f1e56 Tweak template loader to work with other WC product taxonomies.
Closes #5521
2014-05-22 10:59:48 +01:00
Mike Jolley b4b015d916 Merge pull request #4810 from vayurobins/master
Added description parameter to the woocommerce_form_field function
2014-05-22 10:20:44 +01:00
Mike Jolley 5a0d17d774 Merge pull request #5538 from kilbot/master
Update class-wc-api-orders.php
2014-05-22 10:16:57 +01:00
Mike Jolley 5e769e65e7 Merge pull request #4996 from robdvr/master
Ability to add custom quantity using shortcode
2014-05-22 10:16:20 +01:00
Mike Jolley e419477998 Merge pull request #5498 from splashingpixels/terms
[2.1.x] menu order terms were coming back empty fixes #5490
2014-05-22 10:04:23 +01:00
Mike Jolley e3b71ab3fc Merge pull request #5510 from woothemes/fix-addons-page
Addons page, reference new json API endpoint
2014-05-22 10:03:43 +01:00
Mike Jolley 4c2c02b9d4 Merge pull request #5489 from claudiosmweb/fix-welcome-screen-css
Fix the admin welcome screen CSS
2014-05-22 09:57:51 +01:00
Mike Jolley 77cf100819 Merge pull request #5503 from demon36/master
added egypptian currency
2014-05-22 09:57:04 +01:00
Mike Jolley b1c32f5724 Merge pull request #5508 from lukecarbis/issue-5506
Fix notice that occurs from external function call
2014-05-22 09:56:01 +01:00
Mike Jolley 6ff3d1e097 Merge pull request #5509 from y12studio/name-format-tw
Adjust the address format of Taiwan
2014-05-22 09:54:38 +01:00
Mike Jolley b4e218cb3f Merge pull request #5525 from lukecarbis/issue-5524
Issue 5524: Add $tax_rate_id to the added and updated action
2014-05-22 09:54:19 +01:00
Mike Jolley 795a58021c Merge pull request #5529 from woothemes/fix-layered-nav-notice
Prevent undefined notice for Layered Nav title
2014-05-22 09:53:41 +01:00
Mike Jolley 998e88ce46 Merge pull request #5530 from woothemes/add-context-params
Added product id parameter to related posts filters
2014-05-22 09:53:19 +01:00
Mike Jolley b8f93a6c93 Merge pull request #5532 from trsenna/master
fix for issue #5531
2014-05-22 09:51:59 +01:00
Mike Jolley 0e4527fd53 Merge pull request #5534 from woothemes/image-size-settings-respect-filters
[2.2] Disable image size settings if filters are being used
2014-05-22 09:50:35 +01:00
Paul Kilmurray b7a8a0bd20 Update class-wc-api-orders.php
The line_subtotal_tax should be included in the line_items. It doesn't seem to have a helper method like the others?
2014-05-22 13:34:39 +08:00
Coen Jacobs cc7adb4819 Disable image size settings if filters are being used 2014-05-21 16:28:36 +02:00
Thiago Senna 38d8253ab6 fix for Error rendering WooCommerce Shop as Front Page at Stargazer Parent Theme #5531 (indent with tab) 2014-05-21 10:30:51 -03:00
Thiago Senna 370d3e0348 fix for Error rendering WooCommerce Shop as Front Page at Stargazer Parent Theme #5531 2014-05-21 10:27:26 -03:00
Mike Jolley 0ae5385dce state_province is not required for mijireh any longer 2014-05-21 13:31:35 +01:00
Coen Jacobs 6aa9bcadab Added product id parameter to related posts filters 2014-05-21 11:35:54 +02:00
Coen Jacobs 2ed4aa26bd Prevent undefined notice for Layered Nav title 2014-05-21 11:26:20 +02:00
Luke Carbis 97fb685b2e Add $tax_rate_id to the added and updated actions
Resolves https://github.com/woothemes/woocommerce/issues/5524
2014-05-21 09:14:49 +10:00
Mike Jolley bbd7b16c17 Merge pull request #5507 from lukecarbis/issue-5505
Add action hooks when saving tax rates
2014-05-20 16:39:04 +01:00
Mike Jolley 6323f1c5c2 Stronger session ID generation 2014-05-20 11:08:31 +01:00
Mike Jolley 6e8e32256b Indentation 2014-05-20 11:08:09 +01:00
Mike Jolley 41eab15b13 Clear sessions after ordering/on logout 2014-05-20 10:01:26 +01:00
Gerhard 7886ad84bd Expire transient after a week 2014-05-19 14:11:18 +02:00
Gerhard 910f7802f4 Addons page, reference new json API endpoint 2014-05-19 13:53:15 +02:00
Y12STUDIO a6fc9920d7 Update the address format for Taiwan 2014-05-19 16:08:30 +08:00
Luke Carbis 97bf6053e3 Fix notice that occurs from external function call
Resolves https://github.com/woothemes/woocommerce/issues/5506.

This checks to see if the `integrations` array has any values before getting it's current value.
2014-05-19 15:57:34 +10:00
Luke Carbis d4a38f0009 Add action hooks when saving tax rates
Resolves https://github.com/woothemes/woocommerce/issues/5505.

Add three actions when tax rates are saved:
* woocommerce_tax_rate_added
* woocommerce_tax_rate_updated
* woocommerce_tax_rate_deleted
2014-05-19 15:49:35 +10:00
demon36 d57ac66fce added egypptian currency
#5502
2014-05-18 14:30:37 -07:00
splashingpixels a0bc8820a3 menu order terms were coming back empty fixes #5490 2014-05-16 21:12:34 -07:00
claudiosmweb c09cd8ea4b fixed the admin welcome screen css 2014-05-15 17:42:04 -03:00
Mike Jolley 0a3d9b3949 Send IPN email notifications to new order email.
Closes #4696
2014-05-15 14:35:16 +01:00
Mike Jolley 455ef80ee7 Refactor country class get methods Closes #4692 2014-05-15 13:27:13 +01:00
Mike Jolley 08996096f2 Merge pull request #5033 from claudiosmweb/customers_api_4162
Customers API / Methods PUT/POST/DELETE
2014-05-15 12:58:23 +01:00
Mike Jolley ddafd636f2 Merge pull request #5044 from kloon/coupons_api_put_post_delete
Coupons API PUT POST DELETE
2014-05-15 12:57:08 +01:00
Mike Jolley 0dd8dcba2e Update label for force http option Closes #5474 2014-05-15 12:40:08 +01:00
Mike Jolley b7643e469b Merge pull request #4763 from claudiosmweb/remove_the_content_filter
Removed all the_content filter in favor to wpautop() and do_shortcode()
2014-05-15 10:52:26 +01:00
Mike Jolley 1b6e2a5980 Merge pull request #5125 from sparkweb/master
[2.2] REST API: Allow ordering on the resource level
2014-05-15 10:50:32 +01:00
Mike Jolley a7db292b39 Merge pull request #5481 from franticpsyx/fees
Add punctuation to fees.
2014-05-15 10:46:16 +01:00
Mike Jolley d4dfc467fe Merge pull request #5447 from ChuckMac/report_filter
[2.2] Add new 'wc_admin_reports_path' filter to reports
2014-05-15 10:46:07 +01:00
Mike Jolley 8ccfd3a2ae Merge pull request #4618 from leewillis77/add_user_id_to_packages
[2.2] Add user ID to shipping packages
2014-05-15 10:44:14 +01:00
Chuck Mac fa0b829b15 Add new 'wc_admin_reports_path' filter with name
Add $name to filter to be able to use the original passed value as well.
2014-05-14 19:54:45 -04:00
Manos Psychogyiopoulos 86b8e3e372 Add punctuation to fees 2014-05-14 18:22:55 +03:00
Andrew Benbow 919fc6ba9b Update class-wc-validation.php
Correct character 3 vaildation
2014-05-14 00:55:29 +01:00
Mike Jolley 77e5574b97 Merge pull request #5469 from claudiosmweb/normalize-woocommerce_email_attachments-filter-type
Normalize the woocommerce_email_attachments filter return type
2014-05-13 14:34:03 +01:00
claudiosmweb fcd0b03e7e normalized the woocommerce_email_attachments filter return type 2014-05-12 15:55:53 -03:00
Mike Jolley 4d2378087e Ensure _stock meta exists, or update will fail 2014-05-12 16:07:51 +01:00
Mike Jolley 70ef82a617 Add a tip for default selections, and use opt groups for the long bulk edit list 2014-05-12 15:39:13 +01:00
Mike Jolley 12d89fae87 Merge pull request #5458 from pippinsplugins/master
Update class-wc-meta-box-coupon-data.php
2014-05-12 14:43:24 +01:00
Mike Jolley d379b60720 Merge pull request #5466 from claudiosmweb/improve-ajax-class
Fix some coding standards in includes/class-wc-ajax.php
2014-05-12 14:32:03 +01:00
Mike Jolley a74f767bd6 Made wc_get_product_terms support custom menu_order by using get_terms and an include
Fixes #5455
2014-05-12 14:31:28 +01:00
claudiosmweb e65f41f014 fixed some coding standards in includes/class-wc-ajax.php 2014-05-12 10:04:36 -03:00
Mike Jolley aa24199d82 Merge pull request #5460 from claudiosmweb/fix-strict-standards-set-stock
Fix WC_Product_Variable::set_stock() compatibility with WC_Product::set_stock()
2014-05-12 12:39:45 +01:00
Mike Jolley d8020de76c Merge pull request #5464 from tamarazuk/master
Order Item Meta - Check if attribute term exists
2014-05-12 12:35:11 +01:00
Mike Jolley bcba8248b9 Fix notice when not scanning any files Closes #5465 2014-05-12 12:34:46 +01:00
Tamara Zuk 3ebd22b64a Check if term is returned before getting its name
Prevents a rare notice if the order item meta value is blank
2014-05-11 09:37:27 -04:00
claudiosmweb 05a6914ebc fixed WC_Product_Variable::set_stock() compatibility with WC_Product::set_stock() 2014-05-10 17:45:14 -03:00
Pippin Williamson 8d15d6dc6c Update class-wc-meta-box-coupon-data.php
Introduce `woocommerce_coupon_data_panels` action.

If someone wants to add a new tab to the Coupons data meta box, they can use the `woocommerce_coupon_data_tabs` filter to register a new tab. These tabs accept a `target` key that lets you specify the `div` ID to reveal when the tab is clicked on. It turns out, however, that there is no way to actually add the `div` to the page, making the filter for custom tabs only good for removing tabs.
2014-05-10 11:48:37 -04:00
Chuck Mac 2de7df9425 Add new 'wc_admin_reports_path' filter to reports
Add filter to allow for changing of the report class files.

This will allow 3rd party plugins to use this function to extend the
reporting. Currently this can only include files in the woocommerce plugin
directory itself.
2014-05-08 12:34:30 -04:00
Mike Jolley 439ec0d4f6 Merge pull request #5425 from superdave2u/master
Updated the get_download_url() function - fixes #5424
2014-05-08 15:18:29 +01:00
Mike Jolley 4fa5ec8310 Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	includes/gateways/cod/class-wc-gateway-cod.php
2014-05-08 15:06:20 +01:00
Mike Jolley 1308662946 Option to toggle enable_for_virtual for COD, rather than just doing it.
Closes #5399
2014-05-08 15:05:34 +01:00
Mike Jolley a4b6c4eb4f Merge pull request #5415 from tamarazuk/patch-2
COD: no need to hide in admin
2014-05-08 15:04:55 +01:00
Mike Jolley 488f24f01b Prevent empty session data being stored until a cookie or session exists to retrieve it. 2014-05-08 10:36:19 +01:00
Mike Jolley ffb6dcee4a Brackets 2014-05-08 10:35:51 +01:00
Mike Jolley 53deeb4be5 Cleaned up logic in email_instructions functions for @splashingpixels 2014-05-07 15:54:22 +01:00
Mike Jolley 3670afdffb [2.2] get_user and get_user_id methods
Closes #5429
2014-05-07 15:11:34 +01:00
Mike Jolley 83f1236875 [2.2] Simplified attribute name sanitisation which maintains UTF8 char integrity.
Fixes #5434
2014-05-07 15:02:03 +01:00
toddlahman 912aca6907 Use WP SEO class method rather than deprecated fn
Notice: wpseo_get_value is deprecated since version WPSEO 1.5.0! Use
WPSEO_Meta::get_value() instead.
2014-05-07 03:40:21 -07:00
Tamara Zuk a9ebcdd8c6 COD: check if cart is available before checking if it needs shipping 2014-05-06 16:04:25 -04:00
Mike Jolley 9665239ba7 param comment Fixes #5408 2014-05-06 16:06:32 +01:00
Mike Jolley 18294e715d Trim commas and empty lines off address formats Fixes #5411 2014-05-06 16:04:11 +01:00
Mike Jolley 63fc4262b6 Merge pull request #5418 from tamarazuk/backorders_allowed
Introduce woocommerce_product_backorders_allowed filter
2014-05-06 15:09:56 +01:00
Mike Jolley 8c90915f09 Merge pull request #5413 from maxrice/fix-rest-api-order-response
Fix fee/coupon lines typo in REST API order response
2014-05-06 15:07:00 +01:00
Mike Jolley 32a770cf0e Merge pull request #5416 from bolderelements/patch-2
Update abstract-wc-shipping-method.php
2014-05-06 14:53:10 +01:00
Mike Jolley 0f81541870 Revise how variation attributes are deleted/updated
Prevents issues with WPE caching when you delete and then update right
after.
2014-05-06 10:47:23 +01:00
Mike Jolley ffa1db6ae6 Add $package to is_available shipping method hooks 2014-05-06 09:34:25 +01:00
Dave Mainville cabc84bf61 Closes #5424 2014-05-05 16:37:57 -04:00
Tamara Zuk 651f1ac96f Introduce woocommerce_product_backorders_allowed filter 2014-05-04 17:29:43 -04:00
bolderelements fb80f6ba09 Update abstract-wc-shipping-method.php
The order is backward so if you use the default 'is_available' function for your extensions, the 'excluding' option will always deny every country because this line returns an empty array.
2014-05-03 15:59:01 -04:00
tamarazuk ec1b16340b COD: no need to hide in admin
Also fixes a fatal error when WC()->payment_gateways()->get_available_payment_gateways() is called in the admin
2014-05-03 01:32:37 -04:00
Max Rice a007f2e8d7 Fix fee/coupon lines typo in REST API order response 2014-05-02 15:26:30 -04:00
Mike Jolley 72849cb4db Stop sending line items to Mijireh Fixes #5365
Like PayPal, Mijireh struggles with out prices including tax due to
rounding errors. Since the validation cannot be disabled, its better to
just send the order as 1 item. This will prevent rounding errors and
payment failures.

Prices excluding tax are unaffected.
2014-05-01 15:29:28 +01:00
Mike Jolley 173d483ac0 Add tool for disabling shipping rate cache for debug 2014-05-01 14:40:31 +01:00
Mike Jolley b7efaea79f Tidyup brackets 2014-05-01 14:40:31 +01:00
Mike Jolley 13caa07cc2 Sanitize, but decode. UTF-8 Friendly. Fixes #5401
Originally changed 34db5d68b6
2014-05-01 14:40:31 +01:00
Mike Jolley c9378cf092 Merge pull request #5402 from aMoniker/master
fix case-insensitive matching for coupon posts with uppercase chars
2014-05-01 12:23:04 +01:00
Nabil Kadimi 246b9ba1fa Make the welcome page RTL compatible. Fixes #5405 2014-05-01 09:50:19 +01:00
Jim Greenleaf 3b1f54f86c fix case-insensitive matching for coupon posts with uppercase chars 2014-04-30 23:29:29 -04:00
Coen Jacobs 34726ab6bc Merge branch '2.1'
Conflicts:
	i18n/languages/woocommerce-admin.pot
	i18n/languages/woocommerce.pot
	includes/admin/post-types/class-wc-admin-cpt-product.php
	includes/class-wc-form-handler.php
	package.json
	readme.txt
	woocommerce.php
2014-04-30 14:30:42 +02:00
Mike Jolley ae50b3e4ce Remove title from product not purchasable message 2014-04-30 10:05:05 +01:00
Mike Jolley 55ad5bb0ad Remove title from product not purchasable message 2014-04-30 10:04:16 +01:00
Mike Jolley d20c0c30c2 Prevent duplicate admin menu items Closes #5380 2014-04-29 15:23:49 +01:00
Josh Eaton 082f9f647d Update comment to reflect that parameter template_name for wc_get/locate_template() only accepts strings
Fixes #5389
2014-04-29 15:23:41 +01:00
splashingpixels a1be23537a gateway COD added instructions to email closes #5385 2014-04-29 15:21:14 +01:00
tamarazuk f01e4d0820 Another action hook in Inventory product data tab
allow plugins to create a new options_group in this tab
2014-04-29 15:21:10 +01:00
tamarazuk 25b45ae8e3 Add action filter in inventory product data
Allows plugins to add meta fields after stock status/backorders even if woocommerce_manage_stock is turned off.
2014-04-29 15:21:06 +01:00
Mike Jolley 9aa0eb034c Update abstract docblock 2014-04-29 15:20:54 +01:00
Mike Jolley cb61f703e6 Don't sanitise rate ID - breaks utf8 chars
Fixes #5376
2014-04-29 15:20:49 +01:00
Mike Jolley 85ccd2a788 Added brackets 2014-04-29 15:20:46 +01:00
Mike Jolley 739e23ec20 1 filter rather than 2 Closes #5361 2014-04-29 15:20:42 +01:00
Mike Jolley 1f8da71703 Abstract product constructor
Check for numeric $product, and expand the checking to see if its
passed a post object. Fixes #5341
2014-04-29 15:20:13 +01:00
claudiosmweb 0cc98a740a improved the get_order_total() method 2014-04-29 15:17:53 +01:00
claudiosmweb aeecccce19 added method to check if order needs shipping in "pay for order" page 2014-04-29 15:17:49 +01:00
Mike Jolley 76df3d6e2c [2.2] Hide COD for virtual orders (no shipping) Closes #5369 2014-04-29 15:17:30 +01:00
claudiosmweb 67e29eade6 removed not defined $wp variable in favor to get_query_var() function 2014-04-29 15:16:08 +01:00
claudiosmweb 4f11effbcd updated the method to get the order id from "pay for order" page 2014-04-29 15:16:05 +01:00
claudiosmweb e24d6b247b updated the WC_Payment_Gateway class to set a maximum transaction amount, closes #5237 2014-04-29 15:16:02 +01:00
Mike Jolley 634a93a936 Ignore variation stock if disabled globally Closes #5370 2014-04-29 15:10:48 +01:00
Mike Jolley be360e3e02 Recount true when recounting terms Fixes #5320 2014-04-29 15:10:28 +01:00
Mike Jolley 45f9954c10 Let get_file get the first file if no ID is defined
#5296
2014-04-29 15:10:21 +01:00
Mike Jolley 01e10b75c8 Allow saving no downloads, if unset
#5296
2014-04-29 15:10:12 +01:00
Mike Jolley 005c24a7c9 Check has_file when sending order emails for downloadables
Fixes #5296
2014-04-29 15:09:28 +01:00
Mike Jolley afafc066eb typecast $used_by to array in case its not set. Closes #5350 2014-04-29 15:09:17 +01:00
Mike Jolley 9be6b3635c If billing email is not set and user ID is set, use email
Fixes #5356
2014-04-29 15:08:23 +01:00