Commit Graph

8502 Commits

Author SHA1 Message Date
Claudio Sanches 9c5cd0e525 [API] Accept dashes in products/sku endpoint, closes #8220 2015-05-25 10:22:59 -03:00
Claudio Sanches 70b33b7919 Merge pull request #8221 from shivapoudel/settings-api
Introduce get_field_key method
2015-05-25 09:55:45 -03:00
Shiva Poudel cadc1ab301 Add id for title
Fixes scrutinizer issues for not having param
2015-05-25 17:32:30 +05:45
Shiva Poudel 9a818503b9 Updated blockUI Version 2015-05-25 17:03:41 +05:45
Shiva Poudel 2871df7451 Move the validate checkbox method above select 2015-05-25 16:58:08 +05:45
Shiva Poudel 4d46b35590 Clean settings-api docblock 2015-05-25 16:56:44 +05:45
Shiva Poudel d90bb50c20 Use get_field_key for validate_*_field 2015-05-25 16:41:08 +05:45
Shiva Poudel 3b9124e0cf Use get_field_key for generate_*_html 2015-05-25 16:28:19 +05:45
Shiva Poudel 597b152407 Introduce get_field_key method for settings API 2015-05-25 16:18:28 +05:45
Mike Jolley b8bcd24edd [2.3] Combine transients for get_rating_count
@claudiosmweb
2015-05-25 02:00:20 +01:00
Mike Jolley 62c70603ec [2.3] When updating transients, clear previous version of transients
Closes #8131 @claudiosmweb
2015-05-25 01:48:17 +01:00
Mike Jolley 1b73322874 [2.3] Replace max_related_posts_query with wp_count_posts 2015-05-25 01:20:31 +01:00
JeroenSormani b95b22d144 Add wc_get_order() tests + Order helper class 2015-05-23 10:48:07 +02:00
Andrew Benbow 79d4d921fd Update html-admin-page-status-report.php 2015-05-23 07:22:12 +01:00
Andrew Benbow 54437afc5c Update html-admin-page-status-report.php 2015-05-22 19:33:59 +01:00
Claudio Sanches be0f93f112 [2.3] Fixed theme check notice for core supported themes, closes #8208 2015-05-22 13:52:18 -03:00
Fulvio Notarstefano c0dda8c582 Typos conditonal_includes -> conditional_includes
I believe you meant 'conditional' - I don't think it's referenced elsewhere so it should be safe to rename
2015-05-22 16:01:55 +02:00
Remi Corson 611765e0da added comparison with home url 2015-05-22 13:59:51 +02:00
mehulkaklotar 05d5b421d6 filter when cart item remove notice item title, issue : #8204 2015-05-22 14:15:11 +05:30
Remi Corson db0ee68886 Added visit store link in admin bar 2015-05-21 10:57:50 +02:00
Mike Jolley 779b53b2bc Merge pull request #8187 from lukasjuhas/master
#8186 memory exhausted problem fix
2015-05-20 13:48:01 -04:00
Claudio Sanches 95535ea47d Removed sslverify=false and used wp_safe_remote_post() in WC_Auth 2015-05-20 14:24:44 -03:00
Mike Jolley 2763175d3e [2.3] Bump prettyphoto version to prevent caching 2015-05-20 10:56:45 -04:00
James Koster 6389e5defa related products / upsets. closes #7873 2015-05-19 13:07:00 -04:00
Mike Jolley c01bc43369 Adjust #8165 to deal with 0 2015-05-19 12:53:03 -04:00
Claudio Sanches 79a5c2e98d Moved the order type verification to WC_Order_Factory::get_order() #8180 2015-05-19 13:51:04 -03:00
Mike Jolley 6bdd713112 return true if cats get displayed only
Closes #8172
2015-05-19 12:49:34 -04:00
Mike Jolley a08b2e5968 Loop over all posted attributes by referencing max posted key
Closes #8165
2015-05-19 12:46:32 -04:00
Claudio Sanches ece787686d Added order type validation in wc_get_order() function, closes #8180 2015-05-19 13:21:47 -03:00
Lukas Juhas 21bda86baa #8186 memory exhausted problem fix
#8186 issue
2015-05-19 17:16:41 +01:00
Mike Jolley 0b58a840e2 Merge pull request #8168 from Nikker/master
Added method to check if cart is empty
2015-05-19 11:41:48 -04:00
Claudio Sanches e106d57947 Merged #8021 2015-05-18 16:53:04 -03:00
Claudio Sanches db87add809 Updated the auth endpoint to works with the new woocommerce_api_keys database 2015-05-18 16:46:52 -03:00
Claudio Sanches 22bf7d5c81 Created bulk revoke keys 2015-05-18 16:12:47 -03:00
Claudio Sanches 1c6b91ca14 Improved webhooks nonces and actions 2015-05-18 16:01:51 -03:00
Claudio Sanches 772d45bd06 Added method to revoke api keys 2015-05-18 15:46:16 -03:00
Claudio Sanches c4d4a623b5 Improved the API Keys table list, added actions and fixed the links 2015-05-18 15:33:36 -03:00
Claudio Sanches 2f5df9c185 Added methods to generate and edit API keys 2015-05-18 15:23:05 -03:00
Claudio Sanches 961843780d Merge pull request #8182 from corsonr/filters_widget_tweak
Filters Widget hooks tweak
2015-05-18 11:06:36 -03:00
Matt Harrison b656ef904a minor grammar fix. "an SSL" to "a SSL" 2015-05-18 09:03:51 -04:00
Remi Corson aa2e51f205 tweaked hooks 2015-05-18 12:48:36 +02:00
Claudio Sanches c49ab520b8 Created page to edit and create keys 2015-05-16 00:09:29 -03:00
Claudio Sanches 2689d8b51e Created api keys table list 2015-05-15 23:03:24 -03:00
Claudio Sanches 84c937c011 Improved the woocommerce_api_keys table 2015-05-15 22:52:00 -03:00
Claudio Sanches 20906f2248 Fixed the authentication with the new woocommerce_api_keys table 2015-05-15 21:16:53 -03:00
Claudio Sanches bee1fba738 Added nonces field in woocommerce_api_keys table 2015-05-15 18:25:41 -03:00
Claudio Sanches 41e8f69a70 Fixed the woocommerce_api_keys name 2015-05-15 18:20:49 -03:00
Claudio Sanches c76c965b59 Removed user api keys options 2015-05-15 18:04:58 -03:00
Claudio Sanches 0ecfc26a84 Created new database for api_apps
@mikejolley
2015-05-15 17:57:18 -03:00
Claudio Sanches 572712cb52 Improved the access to the keys/apps section in api tab 2015-05-15 17:14:31 -03:00
Claudio Sanches eb6f25b47b Moved some webhooks admin methods from WC_Settings_Rest_API to WC_Admin_Webhooks class 2015-05-15 16:50:30 -03:00
Claudio Sanches 7b8a24924a Moved api settings to API tab 2015-05-15 16:35:50 -03:00
Claudio Sanches 0edbfeaa35 Created new Settings API tab and moved the old webhooks tab to API tab 2015-05-15 16:12:11 -03:00
Mike Jolley 126eb578aa Upgrade routine 2015-05-15 16:27:11 +01:00
Mike Jolley fd772e41fa Show non existing tables in system status report #8147 2015-05-15 15:19:39 +01:00
Mike Jolley cc213de455 Add note and system status link to PP settings
Closes #8158
2015-05-15 14:50:48 +01:00
Mike Jolley 0e72c5e699 Class tidy 2015-05-15 14:16:44 +01:00
Mike Jolley c1e3da8bcb Return real json response during checkout
Closes #8086
2015-05-15 13:51:51 +01:00
Mike Jolley bb77120619 Auto load customer details + tweak icons
Closes #8112
2015-05-15 12:52:25 +01:00
Nikki DelRosso 536d3096f2 Replaced missing end parenthesis 2015-05-14 14:37:17 -07:00
Nikki DelRosso 940c2369b0 Added method to check if cart is empty 2015-05-14 14:18:53 -07:00
roykho b812b2fd94 add dynamic variation description feature 2015-05-14 10:56:26 -07:00
Mike Jolley d53f78ed56 Styled auth and login endpoints 2015-05-14 16:58:34 +01:00
Mike Jolley 9a30f40d69 [2.3] Move action to prevent infinite recursion on login/restoring saved cart
Thanks @roykho. Follow up to #7852
2015-05-14 16:08:09 +01:00
Paul Kilmurray 27d50aef55 default properties for $order_fee class
The add_fee method on WC_Abstract_Order expects taxable, tax, tax_data
and tax_class properties to be present. The API ignores these
properties if taxable = false.
2015-05-14 16:10:56 +08:00
Mike Jolley 4311055aeb Send review moderation email to admin
Closes #8132
2015-05-13 15:47:32 +01:00
James Koster 0aef556a5c storefront prompt on add ons screen 2015-05-13 14:50:40 +01:00
Mike Jolley d19117a108 When paypal payment is on hold, reduce stock and empty cart.
Closes #8145
2015-05-13 14:28:17 +01:00
Mike Jolley 2a4f9f77db Throw API exception when order is invalid
Closes #8151 @claudiosmweb
2015-05-13 14:08:12 +01:00
matttallan 93d76e33f0 New order post type param: exclude_from_order_webhook
Allows others that are using custom order types to choose whether
webhooks for WC Orders should also be triggered.
More of a CPT approach than adding more hooks and filters :)
2015-05-12 14:01:23 +10:00
Claudio Sanches e6eaf11aa7 Fixed webhook filter name typo, closes #8135 2015-05-10 11:54:15 -03:00
Mike Jolley 02c346eb87 Filter before and after unsetting cart items
Closes #8110
2015-05-08 10:26:04 -07:00
Mike Jolley fa94a7c5e0 Merge pull request #8117 from SiR-DanieL/patch-1
Replace get_product_url with add_to_cart_url
2015-05-08 10:18:14 -07:00
Claudio Sanches b54a7a34a1 [API] Created bulk update/insert for coupons #7915 2015-05-07 13:13:41 -03:00
Claudio Sanches 05aad18c5e [API] Created bulk update/insert for customers #7915 2015-05-07 13:09:59 -03:00
Claudio Sanches 3a29a0b743 Fixed docblocks for WC_API_Orders:bulk() 2015-05-07 12:27:39 -03:00
Diego Zanella f375378f91 Refactored logic to allow altering PayPal refunds
* Replaced `wc_paypal_standard_refund_before` action with a more flexible `wc_paypal_standard_refund_args` filter.
2015-05-07 09:54:22 +01:00
Claudio Sanches 611cf9b521 [API] Created bulk update/insert for orders #7915 2015-05-06 18:41:48 -03:00
Claudio Sanches fd3c802516 Merge branch 'master' of github.com:woothemes/woocommerce 2015-05-06 18:18:22 -03:00
Claudio Sanches 431768df61 Improved the paypal logo for JP, closes #8119 2015-05-06 18:17:19 -03:00
Claudio Sanches 67fdba87eb Merge pull request #8121 from helgatheviking/master
change priority on custom email addresses in emails
2015-05-06 17:58:23 -03:00
Claudio Sanches 41e1ba2811 [2.3] [API] Fixed enable_html_description and enable_html_short_description for products endpoint, closes #8090 2015-05-06 14:28:57 -03:00
Claudio Sanches 08f8317554 [2.3] [API] Fixed start and end date for products, closes #8063 2015-05-06 13:55:40 -03:00
Kathy Darling bbf928ea9e change priority on custom email addresses in emails, so plugins can insert data between customer_details and addresses 2015-05-06 14:10:06 +02:00
Diego Zanella 23724bde07 Added new `wc_paypal_standard_refund_before` action
* The action will allow to intercept a refund just before it's placed, and to alter the parameters, if required.
2015-05-06 12:10:07 +01:00
Nicola Mustone fe6f680e44 replace get_product_url with add_to_cart_url 2015-05-05 16:18:01 +02:00
Mike Jolley af6998fe4d [2.3] Correct coupon % calc. Added inline note to prevent regression.
Closes #8074
2015-05-05 14:33:35 +01:00
Mike Jolley 48d071731a Set date after status
Closes #8078
2015-05-05 14:19:22 +01:00
Mike Jolley d1d5a489fc [2.3] Fix round_chart_totals to deal with arrays
Closes #8077
2015-05-05 13:55:56 +01:00
Mike Jolley 5a92126a39 Remove all sslverify false
Closes #8058 cc @claudiosmweb @roykho @barrykooij
2015-05-05 13:39:34 +01:00
Mike Jolley 7254e45edc Remove notice fade class Closes #8096 2015-05-05 13:28:08 +01:00
Claudio Sanches 31558ba8c8 Merge branch 'master' of github.com:woothemes/woocommerce 2015-05-05 09:01:55 -03:00
Claudio Sanches 8a9ab7ffea Fixed get_woocommerce_api_url() for the new API versions numbers and
fixed the tests

@mikejolley
2015-05-05 09:01:34 -03:00
Claudio Sanches e3782efbf5 Merge pull request #8001 from bordoni/feature/add_context_to_woocommerce_admin_order_item_headers_action
Admin Order Header lacks Variable for context
2015-05-05 08:56:39 -03:00
Claudio Sanches 89cd5ac32d Added esc_html() for #8075 2015-05-05 08:53:43 -03:00
Claudio Sanches 2c52e0e973 Fixed conflicts for #8075 2015-05-05 08:52:28 -03:00
Mike Jolley 5f67a63b43 woocommerce_paypal_refund_request filter
Closes #8111
2015-05-05 12:29:07 +01:00
Nicola Mustone 3288997f72 fix coupons amount 2015-05-04 17:19:34 +02:00
Gabor Javorszky fc66b8581a Adds a filter to webhook topic dropdown values
Fixes #8098
2015-05-02 02:31:24 +01:00
Mike Jolley 3e8ba7d591 Merge pull request #8062 from Victoor/master
Add order to woocommerce_get_return_url filter
2015-05-01 15:36:16 +01:00
Mike Jolley 1a2afc0bca Merge pull request #8083 from woothemes/avoid-multi-get-default-calls
Avoid making multiple get_default_* calls
2015-05-01 15:35:40 +01:00
Mike Jolley 0e66f85efe Merge pull request #8092 from roykho/paypal
log paypal standard transaction fees closes #8091
2015-05-01 15:34:32 +01:00
Mike Jolley 8bb7a8c934 [2.3] Move action to prevent infinite recursion on login/restoring saved cart
Thanks @roykho. Follow up to #7852
2015-05-01 15:33:24 +01:00
Mike Jolley 8a45f4030a Tweak shipping text 2015-05-01 15:26:00 +01:00
Mike Jolley 906940791a Merge branch 'variation-prices-sync' 2015-05-01 15:01:14 +01:00
Mike Jolley efb8be72c2 Round tax total 2015-05-01 14:57:56 +01:00
Mike Jolley 3b3845872f Change deprecated args
Closes #7210
2015-05-01 14:52:51 +01:00
Mike Jolley d6604cb668 Split order details into customer + item templates. Tidied up codebase/template based logic.
cc @jameskoster
2015-05-01 14:50:18 +01:00
Mike Jolley 77941a57c5 New way to gather item meta with bw compatibility on item meta class
#7210

This also includes a new template file for order item details.
@jameskoster Version bumping the order details template. Splitting it
up some more in next commit.
2015-05-01 12:42:29 +01:00
roykho c23b68dc93 revised to not hide meta and sanitize 2015-04-30 21:05:46 -07:00
roykho 7c074c75e2 log paypal standard transaction fees closes #8091 2015-04-30 20:29:02 -07:00
roykho 7eb7f7df30 fixed issue with bulk edit sale price saving as 0 when not entering any value fixes #8076 2015-04-30 15:49:22 -07:00
Mike Jolley 6c842458b4 fix result 2015-04-30 18:15:47 +01:00
Mike Jolley b5ec1d98a7 Error in installer 2015-04-30 14:03:31 +01:00
Mike Jolley c1d87f2350 Pointer tweaks 2015-04-30 13:34:51 +01:00
Mike Jolley 18d671731c Pointers 2015-04-30 13:30:03 +01:00
Gerhard 072b52c520 Avoid making multiple get_default_* calls after each other, just reuse the first calls data 2015-04-30 14:29:25 +02:00
roykho a23142423c fixed on password change, password 1 field can be skipped closes #8079 2015-04-29 22:07:34 -07:00
Peter d94b2c95fc Update class-wc-meta-box-order-data.php 2015-04-29 16:47:17 -04:00
Peter c8707a68c1 Update class-wc-meta-box-order-data.php
Set "Order" string to be retrieved from post type object singular name rather than being hard coded. Similar to side bar meta box titles.
2015-04-29 16:01:34 -04:00
Mike Jolley 7cf65a8760 View/add test product using API 2015-04-29 16:34:07 +01:00
roykho ae678b538c add filter for products widget args 2015-04-29 07:36:27 -07:00
Mike Jolley c9ce3baceb Load settings from DB in case of re-run 2015-04-29 14:55:12 +01:00
Mike Jolley 54fa1e34d3 Show notice when pages don't exist, and set gateway defaults 2015-04-29 13:21:01 +01:00
Mike Jolley b8dc089040 Check for language pack when updating WPLANG
@claudiosmweb
2015-04-29 13:05:02 +01:00
Mike Jolley 8b5c8182f4 Tweak template notice 2015-04-29 13:04:40 +01:00
Mike Jolley fedf3db92f Add filter to disable notices
Closes #8027
2015-04-29 12:21:48 +01:00
Mike Jolley 4f162d0326 Remove server locale from report 2015-04-29 12:16:54 +01:00
Mike Jolley 218fafe61c Only show notices to users who can manage_woocommerce
#8027
2015-04-29 12:08:15 +01:00
Mike Jolley c4df91eafb Remove frontend colors notice 2015-04-29 11:56:38 +01:00
Mike Jolley 13f6f09e9e Notice string tweaks 2015-04-29 11:55:32 +01:00
Mike Jolley fcf6e97f7c Small code tweaks 2015-04-29 11:32:03 +01:00
Mike Jolley e454c52e58 Optimise admin redirect function 2015-04-29 11:24:29 +01:00
Mike Jolley 7263a4ace2 woocommerce_enable_setup_wizard filter 2015-04-29 10:59:59 +01:00
Mike Jolley 4b92f642b3 Trigger wizard on install 2015-04-29 10:47:57 +01:00
Illimar Tambek 3e9c56a5ca Pass current variation to woocommerce_hide_invisible_variations filter 2015-04-29 12:16:58 +03:00
Claudio Sanches 0a3fc7673e [API] Fixed the returned status when delete a product attribute 2015-04-28 15:56:28 -03:00
Claudio Sanches 8d339a7022 Stop yoda! 2015-04-28 15:10:29 -03:00
Claudio Sanches c0a8e4d87e [2.3] Error prevention for WC_Admin::admin_footer_text(), closes #8057 2015-04-28 11:06:40 -03:00
Mike Jolley 300528e823 Tracking opt in/out 2015-04-28 14:50:48 +01:00
Víctor Falcón 226d940e72 Add order to woocommerce_get_return_url filter 2015-04-28 14:48:39 +02:00
Mike Jolley 75f23606d7 Class cleanup 2015-04-28 13:27:56 +01:00
Mike Jolley 5466f0edeb Move into separate class 2015-04-28 13:19:16 +01:00
Mike Jolley 3f484b69b6 Ready step 2015-04-28 12:48:01 +01:00
Claudio Sanches 679a548bc1 Merge branch 'master' of github.com:woothemes/woocommerce 2015-04-27 18:13:19 -03:00
Claudio Sanches 4441436618 [2.3] Fixed system report in WordPress 2.4 with emojis
@mikejolley
2015-04-27 18:12:46 -03:00
Claudio Sanches 62c58360c2 Merge pull request #8054 from slobodan/wc-checkout-doc
Fixes WC_Checkout class name in header comment block
2015-04-27 17:50:54 -03:00
Claudio Sanches dd8b2f6007 [API] Deprecated the products/sku/<sku> endpoint, closes #7592 2015-04-27 17:49:35 -03:00
Claudio Sanches e1f7f5bb01 Improved the system status to have a section only for API 2015-04-27 17:00:55 -03:00
Slobodan Manic f1927c8c40 Fixes WC_Checkout class name in header comment block 2015-04-27 21:57:16 +02:00
Claudio Sanches c37c1bd9fa [API] Updated the version to 2.1.0 2015-04-27 16:50:07 -03:00
Claudio Sanches fcf03a4ac1 Merge pull request #8053 from woothemes/api-product-attributes
[API] Product attributes endpoints, closes #8031
2015-04-27 16:35:09 -03:00
Claudio Sanches 83b570e3e1 [API] Created method to delete product attributes 2015-04-27 16:33:47 -03:00
Claudio Sanches bda53f75af [API] Created method to edit product attributes 2015-04-27 16:14:31 -03:00
Ninos Ego 4bdaff52cb Remove unnecessary global variable
`$post` is not needed there.
2015-04-27 18:41:15 +02:00
Claudio Sanches 2e56790122 [2.3] Fixed the sort order dropdown items when create new product attributes 2015-04-27 13:08:53 -03:00
Claudio Sanches 212ebe486d [API] Created method to create product attributes 2015-04-27 13:06:42 -03:00
Claudio Sanches 1b176c73e3 Created wc_check_if_attribute_name_is_reserved() function 2015-04-27 13:06:28 -03:00
Mike Jolley 1276d4521d Reorder pages 2015-04-27 16:51:52 +01:00
Mike Jolley c8bd46501e US tax rates step 2015-04-27 16:33:52 +01:00
Claudio Sanches 611ffff0a5 Created wc_get_attribute_types() and deprecated the woocommerce_admin_attribute_types action 2015-04-27 12:31:34 -03:00
Claudio Sanches 00f9c6f1ca [API] Created WC_API_Products::get_product_attribute() method 2015-04-27 11:58:58 -03:00
Claudio Sanches aa2d5835e4 [API] Created WC_API_Products::get_product_attributes() method 2015-04-27 11:47:17 -03:00
Claudio Sanches 298d5e90ed [2.3] Fixed paypal about URL for Switzerland #8030 2015-04-27 10:37:35 -03:00
Mike Jolley cb8332cffc shipping 2015-04-27 13:56:30 +01:00
Mike Jolley 17f1536ed3 Merge pull request #8035 from bdokimakis/master
Fix for #8034
2015-04-27 11:21:58 +01:00
Mike Jolley d3415f2414 [2.3] Remove submitdiv and fix post status
Closes #8039
2015-04-27 11:13:49 +01:00
Ibrahim 7b513ec35c Error message not formatted
The error message that is displayed when adding a reserved term for attribute is not formatted. Hence the user sees %s in his error message.
2015-04-26 11:24:25 +05:30
Claudio Sanches 98b1845b68 [2.3] [API] Fixed save downloadable files for product variations, closes #8037 2015-04-25 12:19:30 -03:00
Byron Dokimakis 17af14ef9a Fix for #8034 2015-04-25 02:14:44 +03:00
Claudio Sanches bcfdbcdd0a [API] Improved WC_API_Products::bulk() #7915 2015-04-24 18:43:33 -03:00
Claudio Sanches abf1d90d9b Merge pull request #7922 from Nils-Fredrik/master
Allow bulk updates / inserts of products according to #7915
2015-04-24 17:12:53 -03:00
Claudio Sanches af9c5f948b [API] Improved the WC_API_Products::get_product_orders() method #8019 2015-04-24 17:04:13 -03:00
Claudio Sanches cccc7b9b98 Merge pull request #8019 from cklosowski/issue/7285
Product's Orders API Endpoint, closes #7285
2015-04-24 16:42:24 -03:00
Claudio Sanches 4a83200a81 Fixed coding standards 2015-04-24 15:53:54 -03:00
Claudio Sanches d5524a62bf [API] Removed test in WC_API_Orders::set_line_item() 2015-04-24 15:53:39 -03:00
Mike Jolley 6c8cc42876 Revise reports #8028 2015-04-24 15:58:13 +01:00
Claudio Sanches ed919ae2f5 [2.3] Fixed paypal about URL for Malta, closes #8030 2015-04-24 10:41:13 -03:00
Mike Jolley 4ab4865ac6 [2.3] Fix stock report pagination. Closes #8023 2015-04-24 12:01:49 +01:00
Mike Jolley 5beeb578a2 Select 'parent' tax class as default for new variations
Closes #8017
2015-04-24 11:05:14 +01:00
Claudio Sanches e7d6cf22d0 Fixed the auth validation 2015-04-23 17:51:49 -03:00
Claudio Sanches 75ee806a00 Created WC_Auth::auth_endpoint() method 2015-04-23 17:48:56 -03:00
Claudio Sanches e79dfec3b0 Improved the auth urls validation 2015-04-23 17:45:38 -03:00
Claudio Sanches d0d3aae8c1 Improved the WC_Auth::make_validation() method 2015-04-23 17:43:38 -03:00
Claudio Sanches 5d90975392 Allow versions in the URL 2015-04-23 16:58:15 -03:00
Claudio Sanches a1a929757b Improved the wc-auth/authorize endpoint 2015-04-23 16:46:28 -03:00
Claudio Sanches 3df93e7004 Created final authentication flow 2015-04-23 16:37:59 -03:00
Mike Jolley 7e304fd4f9 [2.3][api] Prevent variable overwrite in save_product_meta
Closes #8011
2015-04-23 16:45:51 +01:00
investonline_joost eed9332adf Bugfix: The old regex rule selects more then the unknown/unhandled entities. Plain-text email are missing content because the text is stripped out. 2015-04-23 15:55:29 +02:00
Mike Jolley 8731c5b0d2 [2.3] Send back to same status when bulk editing
Fixes #7998
2015-04-23 13:50:40 +01:00
Mike Jolley 30d2ab8af8 Avoid setting is_customer_note when 0
Closes #7995
2015-04-23 11:50:09 +01:00
Mike Jolley 9f57025a1e Remove unnecessary stock notice
Closes #7990
2015-04-23 11:04:16 +01:00
Mike Jolley f5aac69b17 Merge pull request #8007 from MindyPostoff/master
Clarify "Enable COD for virtual orders"
2015-04-23 10:56:27 +01:00
Mike Jolley a2a0e6f10d [2.3] Refund reporting Fixes #8010
- Prevents the refund amount being SUMed and multiplied by the number
of items
- Does LEFT join on qty, so refunds are reported if not done directly
on the line
2015-04-23 10:19:43 +01:00
Claudio Sanches eb3366dc08 Added callback_url and create validation method 2015-04-22 18:12:40 -03:00
Claudio Sanches c972c0029d Created authentication flow 2015-04-22 17:48:39 -03:00
MindyPostoff 7418fd6c8d Update class-wc-gateway-cod.php
Prevent confusion that "Enable COD for virtual orders" will actually enable the payment method
2015-04-22 16:41:51 -04:00
Claudio Sanches a6afac4516 Added content to grant access template 2015-04-22 17:21:42 -03:00
Claudio Sanches 8cfa3eed75 Added validation for the auth params 2015-04-22 17:02:15 -03:00
Claudio Sanches a989184135 Created initial auth templates 2015-04-22 12:27:12 -03:00
Mike Jolley 030ac9c50e HTML for shipping and tax options 2015-04-22 15:30:50 +01:00
Gustavo Bordoni 22393df867 The woocommerce_admin_order_item_headers action lacks a variable for context 2015-04-21 23:13:55 -03:00
Mike Jolley 9f792244b4 Pages step 2015-04-20 16:31:54 +01:00
Mike Jolley 4119ae0d7f Tweak wc_add_to_cart_message #7976 2015-04-20 12:29:04 +01:00
Mike Jolley 31104f6903 Change how wc_format_list_of_items is translated and contructed
Closes #7976
2015-04-20 12:29:04 +01:00
Mike Jolley 9debd84a7f Merge pull request #7978 from InoPlugs/patch-3
[2.3] Update abstract-wc-order.php
2015-04-20 11:12:25 +01:00
Mike Jolley a74b1a3103 Merge pull request #7971 from Spreeuw/master
Make get_shipping_to_display compatible with refunds
2015-04-20 11:10:40 +01:00
roykho 30111dd988 check to make sure wp_query object is not null before calling function that depends on it fixes #7981 2015-04-19 16:46:04 -07:00
InoPlugs Webdesign 520282ff16 Update abstract-wc-order.php
Using a wrong key name -> 'cart_discount_tax' is calculated wrong a few lines below (= $cart_subtotal_tax)
2015-04-18 14:44:39 +02:00
Claudio Sanches db23f5faa0 Create initial WC_Auth class and endpoint 2015-04-17 17:41:25 -03:00
Mike Jolley c8467b143a [2.3] Use exclusive price and exclusive subtotal to work out % of discount 2015-04-17 20:42:18 +01:00
Claudio Sanches 3e99768047 [API] Added product_url and button_text for external products, closes #7974 2015-04-17 15:50:18 -03:00
Mike Jolley d8ee1b6005 Locale setup 2015-04-17 14:56:34 +01:00
Spreeuw 1e2d0775c4 tax text for negative shipping (refunds) 2015-04-17 12:45:32 +02:00
Spreeuw 3f0b589797 Make get_shipping_to_display compatible with refunds 2015-04-17 12:38:08 +02:00
Mike Jolley 467a269175 Only set author for user added notes so system notes can be distinguished 2015-04-17 11:23:09 +01:00
Chris Klosowski d26265f885 Allowing filters to be applied #7285 2015-04-16 13:32:35 -07:00
Claudio Sanches 7ab0d01aa2 [API] Fixed create order method 2015-04-16 15:26:54 -03:00
Mike Jolley 8666e0fe3c Added the basics and general look and feel 2015-04-15 16:34:03 +01:00
Claudio Sanches a344fae67f Improved simplify commerce for free subscriptions 2015-04-15 09:55:35 -03:00
Claudio Sanches 8914594534 Fixed the simplify subscription payment when is a free trial 2015-04-15 09:48:56 -03:00
Gregory Karpinsky 91246f86b1 Check for non-existing attribute ID
If get_row returns `null`, should not continue. Avoid "not an object" errors on the following lines, and potential data corruption after submitting form with non-existing ID.
2015-04-14 23:59:53 -04:00
nickrouty 0f88f6386b Verify order was found
Verify the order was found before evaluating the user_id on the $order object. Would previously throw an error if attempting to view an invalid order number.
2015-04-14 15:16:34 -07:00
Mike Jolley 1e06f82f59 Merge pull request #7948 from dangh/master
Cannot remove shipping class at quick edit
2015-04-14 12:02:17 +01:00
Mike Jolley d133d35e27 Fix conflict 2015-04-14 11:27:30 +01:00
Mike Jolley 38f8c5fd0b Round values in category report
Closes #7949
2015-04-14 10:51:20 +01:00
Mike Jolley 809573af41 [2.3] Coupon product id and category id checks should run for all coupon types
Closes #7936
2015-04-14 10:21:52 +01:00
Mike Jolley 49cbe2cd9a If taxes based on base location, we don't need a customer address
Closes #7890
2015-04-14 10:08:29 +01:00
Claudio Sanches c06b6f13e3 [API] Improved the error messages when sent a empty object, closes #7914 2015-04-13 13:06:19 -03:00
Claudio Sanches aa9c3a1087 Merge pull request #7901 from roykho/flatrate
fixed flatrate per item and per class if no additional costs added, it doesn't correctly fallback to base cost closes #7851
2015-04-13 12:48:55 -03:00
Claudio Sanches 5a765aa4ef Merge pull request #7920 from SiR-DanieL/patch-4
Remove null parents from the featured IDs array
2015-04-13 12:46:14 -03:00
Claudio Sanches 1dadbb2842 Fixed coding standards for #7879 2015-04-13 12:37:22 -03:00
Claudio Sanches 08c8fad1fc Fixed standards for #7842 2015-04-13 12:31:18 -03:00
Mike Jolley 9f65d2a1fc Added priorities for shipping methods to give more control over defaults.
Closes #7871
2015-04-13 15:32:57 +01:00
Claudio Sanches 14ed7137d2 Fixed subscription free trial period for simplify commerce 2015-04-13 10:46:11 -03:00
Mike Jolley 0a25580f15 Generic product loop method for shortcodes
#7260
2015-04-13 12:48:40 +01:00
DangH 3c9bc90bcc Cannot remove shipping class at quick edit 2015-04-13 18:01:37 +07:00
Mike Jolley 80b6c6ca3f Merge pull request #7908 from SiR-DanieL/patch-2
Conditions improvement
2015-04-13 10:54:49 +01:00
Mike Jolley b82339a4cb Merge pull request #7925 from dominic-p/order-meta-undefined-key
Prevent notices if variation_id isn't set
2015-04-13 10:53:49 +01:00
Mike Jolley e6de50f556 Merge pull request #7842 from nathanielks/hotfix/coupon-meta-box-products-error
Check if product is object before adding to array.
2015-04-13 10:48:09 +01:00
Mike Jolley 259b8b3be7 Merge pull request #7933 from woothemes/price-filter-widget-pagination
Ensure $wp->request has a trailing slash to avoid pagination issues.
2015-04-13 09:38:18 +01:00
Mike Jolley ddb6c585bc Merge pull request #7862 from javorszky/download_perm
Add null date check for download permissions
2015-04-13 09:37:55 +01:00
Mike Jolley cd96ce9042 Merge pull request #7934 from ChromeOrange/master
Update class-wc-gateway-paypal-request.php
2015-04-13 09:35:41 +01:00
Andrew Benbow 196448dc0b Update class-wc-gateway-paypal-request.php 2015-04-11 16:14:27 +01:00
Mike Jolley ec4a61d6e2 Only run wc_page_endpoint_title on frontend
Closes #7881
2015-04-10 16:20:36 +01:00
Mike Jolley 7846513382 deprecate woocommerce_product_reviews_tab
Closes #7877
2015-04-10 16:07:33 +01:00
Andrew Benbow 45c76cd0cb Update class-wc-gateway-paypal-request.php 2015-04-10 15:47:28 +01:00
Mike Jolley 2e2ec824f0 Set field required class
Fixes #7859
2015-04-10 15:43:39 +01:00
Mike Jolley 36a49f87c2 Improve save_attributes ajax function to correctly save text attributes.
Closes #7832
2015-04-10 14:50:23 +01:00
Gerhard c18c873b99 Ensure $wp->request has a trailing slash to avoid pagination issues. 2015-04-10 15:34:09 +02:00
Mike Jolley 12dde04e16 wc_product_cat_class functions
Closes #7923
2015-04-10 13:17:30 +01:00
Mike Jolley 2d99e060a1 Merge branch 'discount-rounding-mode' 2015-04-10 11:06:53 +01:00
Mike Jolley 2ddd07b252 FIx fixed product discount 2015-04-10 10:55:40 +01:00
Mike Jolley 5b1ea0dea1 Remove comments 2015-04-10 10:44:13 +01:00
Mike Jolley 68194bf0ed Round discount totals 2015-04-10 10:28:46 +01:00
Mike Jolley ed6fe062a7 Merge pull request #7931 from woothemes/fix/api-check_permission
[2.3] Check for edit_post cap if the post type is revision
2015-04-10 10:14:19 +01:00
Barry Kooij 4650c2300a Simply deny all access to revisions 2015-04-10 11:03:45 +02:00
Barry Kooij 64c79ffe1e Check for edit_post cap if the post type is revision 2015-04-10 10:32:20 +02:00
Dominic be8e61161b Prevent notices if variation_id isn't set
It's a minor thing, but I have ran into circumstances where the `$item`
array doesn't have the `variation_id` set (namely after importing data
using another plugin). This tweak checks for the `variation_id` without
throwing a notice if the array key isn't defined.
2015-04-09 16:15:28 -07:00
nils-fredrik@maksimer.no 73cce9f15b Allow bulk updates / inserts of products according to #7915. 2015-04-09 22:48:51 +02:00
Nicola Mustone 2fa4333ad7 remove 0 values from featured array 2015-04-09 16:48:26 +02:00
Nicola Mustone 8046aa58a2 missing {} 2015-04-09 16:34:33 +02:00
James Koster 56b1699e14 placeholder. closes #7885 2015-04-09 15:17:59 +01:00
James Koster aad06e7f1c [2.3] cart totals hooked into action 2015-04-09 15:15:37 +01:00
Mike Jolley 1f3365f206 Prevent infinite recursion by calling get_cart_from_session once
Closes #7852

A check was aded to prevent get_cart() usage before wp_loaded so all WC
components have a chance to load prior to the cart.

This should solve the edge-case recursion bug by first checking if the
woocommerce_cart_loaded_from_session action has already run. This is
triggered when loading the cart for the first time.
2015-04-09 12:49:20 +01:00
Mike Jolley 0cff7e57cd Run ajax events during template_redirect
Found cases where if you used get_posts during parse_query, you would
get infinite loops.
2015-04-09 12:47:37 +01:00
Mike Jolley a6692c4722 Clarify delete message
Closes #7917
2015-04-09 12:05:07 +01:00
Mike Jolley 33d94aaea4 [2.3] Use single logging method for paypal classes
Closes #7801
2015-04-09 12:00:42 +01:00
Mike Jolley c8c276d058 Show .org plugin version
Closes #7866 Fixes #7863
2015-04-09 11:26:56 +01:00
Nicola Mustone c8687d35d8 methods don't return anything 2015-04-08 16:28:06 +02:00
Nicola Mustone 5e758bb8f9 conditions improvement 2015-04-08 14:34:50 +02:00
Mike Jolley 204c65ca6a Merge pull request #7836 from aelia-co/master
Added support for JOIN types in WC_Admin_Report
2015-04-08 12:11:04 +01:00
Mike Jolley 44a6952e16 Merge pull request #7331 from shivapoudel/bulk-message
Bulk message
2015-04-08 12:10:56 +01:00
Mike Jolley 50575c2355 Merge pull request #7872 from WPprodigy/patch-1
Enhanced Error Message
2015-04-08 11:55:24 +01:00
Mike Jolley 26e7a5c705 Merge pull request #7865 from SiR-DanieL/scrutinizer-issues
Fix scrutinizer issues
2015-04-08 11:53:44 +01:00
James Koster cd20ce6789 variation images. closes #7844 2015-04-08 10:19:23 +01:00
James Koster f6346c705c Merge pull request #7889 from shivapoudel/tweak-backbone-modal
Tweak backbone modal
2015-04-08 10:02:42 +01:00
roykho 96ca19d170 fixed flatrate per item and per class if no additional costs added, it doesn't correctly fallback to base cost closes #7851 2015-04-07 07:23:00 -07:00
Barry Kooij 99f5aa0dfa Merge pull request #7879 from dannyvankooten/master
Changing all inefficient selectors of $('body') to $(document.body), whi...
2015-04-07 16:09:00 +02:00
shivapoudel 227c83a084 Use of <button> instead of <a> for modal-close
This was the clone of themes.php modal close button
2015-04-04 13:57:20 +05:45
shivapoudel 29f584ba98 Fix - Unusual slightly dark box on the backdrop of modal right side 2015-04-04 13:51:10 +05:45
Claudio Sanches 2fb06e4c29 [API] Fixed the position type for attributes and images 2015-04-03 15:01:41 -03:00
Danny van Kooten 88f2e690bb Changing all inefficient selectors of $('body') to $(document.body), which is about 80% faster (and even more on mobile, see https://jsperf.com/jquery-body-vs-document-body-selector/2 ). 2015-04-03 14:21:47 +02:00
Caleb Burks 3728f8b001 Enhanced Error Message
As pointed out by jnachtigall (https://github.com/woothemes/woocommerce/issues/7870), this could help customers who may have accidentally mis-typed the coupon.
2015-04-01 16:56:10 -07:00
James Koster 944723d7ac tel input #7827 2015-04-01 17:36:58 +01:00
Nicola Mustone d2d2bf60b0 revert typecasting format 2015-04-01 17:28:51 +02:00
Mike Jolley 5bce366d40 Merge pull request #7749 from javorszky/download-filter
Adds filter to download permissions results
2015-04-01 16:27:07 +01:00
Nicola Mustone 765b1e2e7d wrong var 2015-04-01 15:35:53 +02:00
Nicola Mustone 85fd634861 fix scrutinizer issues 2015-04-01 15:33:56 +02:00
Mike Jolley c19f2e573e [2.3] Only automatically cancel orders created via checkout + allow post_parent to be set 2015-04-01 14:21:10 +01:00
Gabor Javorszky 5f8f1fc10f Add null date check for download permissions
Fixes #7861

* implements check if `access_expiry` is 0 epoch

Sadly there's no way to circumvent WordPress's sanitization without using raw query in `WC_Meta_Box_Order_Downloads::save`, but it's a lot easier to check for 0 epoch.
2015-04-01 01:04:22 +02:00
Nicola Mustone b6991d869a typo 2015-03-31 17:22:21 +02:00
Mike Jolley 06f2ac2f09 [2.3] Remove rounding from shipping cost to greater precision with taxes 2015-03-31 13:59:17 +01:00
Claudio Sanches e196ab49f4 Merge pull request #7856 from kilbot/master
Use wc_stock_amount format function in REST API orders output
2015-03-31 09:58:00 -03:00
Mike Jolley c410771de2 [2.3] Calculate taxes should save _line_tax_data 2015-03-31 13:21:10 +01:00
Mike Jolley 20850bc742 Fix last_month logic which breaks in feb 2015-03-31 13:13:16 +01:00
Mike Jolley b603bde738 [2.3] Respect show_in_admin_all_list 2015-03-31 13:13:16 +01:00
Paul Kilmurray c8d52c7c2d Use wc_stock_amount format function
This allows the REST API to honour the `woocommerce_stock_amount` filter, eg: for decimal quantity values
2015-03-31 18:36:27 +08:00
Gabor Javorszky e76749de03 Adds filter to download permissions results
The justification for this filter is that Subscriptions will be saving download permissions on the subscription itself, not the original order. This filter would allow us in the future to remove the entry for a file for the original order if the same file has a subscription associated with it.
2015-03-30 14:19:47 +02:00
Mike Jolley 36a916ff2f Merge pull request #7772 from SiR-DanieL/patch-7
Added REST API version in system status
2015-03-30 10:34:27 +01:00
Mike Jolley c6dae2b286 Merge pull request #7834 from SiR-DanieL/scrutinizer-issues
Small tweaks and style fixes
2015-03-30 10:33:27 +01:00
Nathaniel Schweinberg 7de9f02574 fixed variable typo 2015-03-28 09:28:31 -05:00
Nathaniel Schweinberg 9c9b494d0f Check if product is object before adding to array. Prevents non-object fatal errors 2015-03-28 09:09:43 -05:00
Diego Zanella d420fcca29 Merge remote-tracking branch 'upstream/master' 2015-03-27 18:09:58 +00:00
Diego Zanella 76a0ef1e9f Improved handling of JOIN clauses
* Refactored report logic to allow developers to specify the type of JOIN to use when fetching report data. Ref https://github.com/woothemes/woocommerce/issues/7818.
2015-03-27 17:02:14 +00:00
Nicola Mustone 95cdb0390f fix related products error 2015-03-27 17:52:21 +01:00
Nicola Mustone 15ef65ea54 split WC_Customer constructor 2015-03-27 17:43:04 +01:00
Nicola Mustone 214a0b669f splitted get_related for complexity 2015-03-27 17:28:26 +01:00
Nicola Mustone dedd92d4e6 wrong comments 2015-03-27 17:11:25 +01:00
Nicola Mustone 1275346360 typo 2015-03-27 17:10:00 +01:00
Nicola Mustone 4867d635c0 fix save_template code 2015-03-27 16:59:25 +01:00
Nicola Mustone 0466fcb4e2 split process_admin_options for WC_Email 2015-03-27 16:51:30 +01:00
Mike Jolley 65bc9db763 Tweak get_coupon() method
Closes #7830
2015-03-27 15:36:53 +00:00
Nicola Mustone d2af01df5b scrutinizer suggested tweaks 2015-03-27 16:15:40 +01:00
Mike Jolley f23f1bbd27 format values to prevent issues due to floats
Closes #7822
2015-03-27 15:15:00 +00:00
Mike Jolley f55e7d6969 wc_customer_bought_product transient
Closes #7322
2015-03-27 13:17:54 +00:00
Mike Jolley 97c1a32aa7 Small improvement to #7322 2015-03-27 13:08:27 +00:00
Mike Jolley 7bbd0261d7 Show full category hierarchy in permalinks.
Closes #6158
2015-03-27 13:08:27 +00:00
James Koster 33a3940501 email input 2015-03-27 11:49:36 +00:00
Mike Jolley 23932dbfca Default calculate_taxes to base
Closes #7765
2015-03-27 10:42:26 +00:00
Chris Klosowski cd9360420f Clearning up DocBlock and passing #7285 2015-03-26 13:56:37 -07:00
Chris Klosowski 8455d5cbd1 First pass at Product's orders endpoint #7285 2015-03-26 13:53:20 -07:00
Mike Jolley 302fca886c ID needs to be part of transient 2015-03-25 16:27:11 +00:00
Mike Jolley 8cb2ca86d7 Store variation ID in transient 2015-03-25 16:23:19 +00:00
Mike Jolley c76a08aad2 woocommerce_variation_prices filter 2015-03-25 15:48:51 +00:00
Mike Jolley 01c13a52cd Fix price/sale price listings 2015-03-25 15:23:28 +00:00
Mike Jolley 99fcb77262 woocommerce_get_variation_prices_hash array 2015-03-25 14:52:33 +00:00
Mike Jolley 0ab0a12156 _has_multiple_variation_tax_rates no longer needed 2015-03-25 13:37:11 +00:00
Mike Jolley 9f50d41b97 New approach to getting min/max variation prices using transients
New method will get all prices and store in array format. Cached based
on user location (tax) and product transient hash.

Fixes #6504
2015-03-25 13:35:49 +00:00
Mike Jolley 9638d16d82 Define update file 2015-03-25 11:11:08 +00:00
Mike Jolley db8fb5afbe missing semicolon 2015-03-25 11:10:36 +00:00
Claudio Sanches d08e099bfc [API] List only approved comments in products reviews, closes #7809 2015-03-24 14:38:08 -03:00
Mike Jolley ca934ba0d9 Add get methods for length, width, height and add filters
Closes #7617
2015-03-24 16:52:26 +00:00
Mike Jolley 557a304326 Merge branch 'coupon-calc' 2015-03-24 15:52:38 +00:00
Mike Jolley aed8ae36cf woocommerce_calc_discounts_sequentially option to keep backwards compatible 2015-03-24 15:51:53 +00:00
Mike Jolley b35e7f7d4a Cast product IDs to int when adding to cart
Closes #7245
2015-03-24 12:56:13 +00:00
Mike Jolley 5e538b88e7 Use undiscounted price for coupons 2015-03-24 12:55:28 +00:00
Mike Jolley a49ac39519 Tweak note wording for clarity
Closes #7239
2015-03-24 11:27:33 +00:00
Mike Jolley 77e7de0ef7 Add note about #7555
Closes #7555
2015-03-24 10:28:53 +00:00
Claudio Sanches 931679bc82 Fixed the _wc_file_urls sanitization 2015-03-23 11:43:34 -03:00
Claudio Sanches 1600bcdae3 Fixed coding standards for #7793 2015-03-23 11:41:37 -03:00
Claudio Sanches b3492c310d Merge pull request #7793 from Nils-Fredrik/master
[API] Query products by SKU #7592
2015-03-23 11:39:32 -03:00
Mike Jolley 70bf6fc842 [2.3] prices_include_tax boolean fix
Closes #7788
2015-03-23 13:35:40 +00:00
Mike Jolley a2353ca8ff Merge pull request #7798 from nguyenvanduocit/master
Add $the_order to woocommerce_order_class filter
2015-03-23 13:13:41 +00:00
Mike Jolley 2726c270b8 Merge pull request #7785 from SiR-DanieL/refund-mail
Added customer order refunded email
2015-03-23 13:07:23 +00:00
Mike Jolley ea910f7d4f Merge branch 'wc-ajax-endpoint' 2015-03-23 12:53:53 +00:00
Nguyễn Văn Được 3b3c6754cb Add $the_order to woocommerce_order_class filter
My be developer using another class to wrap the order. and in this case, the value of $classname allway is false. Send $the_order to filter is the solution.
2015-03-23 15:22:02 +07:00
nils-fredrik@maksimer.no 686c40919b Fix for #7592
Added sku filter to the /products endpoint. 

Will let you search for products by sku without using the
/products/sku/<sku> endpoint. Its now possible to search for product
skus with specialchars like / and -.
2015-03-21 18:53:00 +01:00
Nicola Mustone 00d8b11a3f version 2.4.0 2015-03-20 17:55:50 +01:00
Nicola Mustone f82f3572c4 again coding standards 2015-03-20 16:37:57 +01:00
Nicola Mustone 38afee0d12 conding standards 2015-03-20 16:37:16 +01:00
Nicola Mustone c593e4ca50 added customer order refunded email 2015-03-20 16:31:31 +01:00
Mike Jolley 17fb3874e6 [2.3] Ensure coupon taxes are reset when calculating totals.
Fixes #7780
2015-03-20 15:03:50 +00:00
Mike Jolley 17ca08c020 add endpoints on install 2015-03-20 14:20:12 +00:00
Mike Jolley 94335db2a6 Support default permalinks 2015-03-20 13:10:47 +00:00
Mike Jolley b729480838 Prevent cart hash becoming invalidated due to product/post data 2015-03-20 13:00:05 +00:00
James Koster 6209b6d212 Merge pull request #7725 from shivapoudel/html-notice
Tweaks admin notices view pages
2015-03-20 12:35:43 +00:00
Mike Jolley 21c5513526 Added endpoint for faster ajax requests 2015-03-20 12:28:26 +00:00
Mike Jolley f04ebeb78e has_enough_stock - use get_stock_quantity
Closes #7779
2015-03-20 10:40:53 +00:00
Diego Zanella 7f525c30ce Modified PayPal Standard gateway to make it easier to extend
* Replaced all "private" properties and methods with "protected" ones. This will make it easier to extend the gateway classes, without having an impact on its normal usage.
2015-03-19 18:26:28 +00:00
Nicola Mustone dc841aba66 added REST API version in system status 2015-03-19 17:11:06 +01:00
shivapoudel 9cc91c36c6 Capitalize first character of some notice buttons 2015-03-19 02:24:30 +05:45
Claudio Sanches 79760fa5ea Merge pull request #7758 from helpforfitness/create_order_with_product_sku
[API] Added products to an order by SKU
2015-03-18 09:20:21 -03:00
Claudio Sanches edcc265fdb Merge pull request #7350 from forsvunnet/filter-unique-check
Added apply_filters to the wc_product_has_unique_sku function #7320
2015-03-18 09:12:48 -03:00
Guillermo Gette 49f84a7bc6 get product_id using wc_get_product_id_by_sku 2015-03-18 23:11:28 +11:00
Guillermo Gette 122cca701b removed wc_get_product_by_sku 2015-03-18 23:09:38 +11:00
Guillermo Gette b8578c044d Merge branch 'master' of github.com:woothemes/woocommerce into create_order_with_product_sku 2015-03-18 23:06:02 +11:00
Mike Jolley a017ebfff2 [2.3] Chile address format
Closes #7754
2015-03-18 11:35:20 +00:00
Mike Jolley 36dc8b0eb8 Merge pull request #7136 from roykho/product-shortcode
allow product_page shortcode to accept variation skus and pre-selected o...
2015-03-18 11:17:30 +00:00
Mike Jolley c9ee2bb929 Merge pull request #7723 from roykho/attribute-labels
remove attribute label formatting and allow users to decide the formatti...
2015-03-18 11:10:32 +00:00
Mike Jolley 74d46dcc1e Merge pull request #7455 from bryceadams/patch-7433
Proposed solution for api all order status counts
2015-03-18 10:57:34 +00:00
Mike Jolley 744ba86189 Merge pull request #7753 from Nils-Fredrik/master
Fix for #7752
2015-03-18 10:47:25 +00:00
Mike Jolley 485571f274 Merge pull request #7719 from SiR-DanieL/patch-5
Added woocommerce_after_dashboard_status_widget
2015-03-18 10:40:34 +00:00
Mike Jolley aa7067e84c Merge pull request #7345 from shivapoudel/conditional-functions
Refactor the WC Conditional function coding standard
2015-03-18 10:32:31 +00:00
nils-fredrik@maksimer.no 8e18937305 Fix for #7752
Use error code from WP_Error when wc_create_new_customer() fails.
2015-03-18 00:20:35 +01:00
nils-fredrik@maksimer.no 07f7db297f Fix for #7752
wc_create_new_customer() returns identifying error codes for
identifiable errors.
2015-03-18 00:18:52 +01:00
shivapoudel 1adde0a265 Fix - name definition for woocommerce_wp_select 2015-03-17 23:40:07 +05:45
Claudio Sanches f058d43556 Allowed paths for file url, closes #7746 2015-03-17 14:20:51 -03:00
Claudio Sanches 4f7e59e743 Sanitize html classe in wc_body_class for #7735 2015-03-17 13:39:44 -03:00
Mike Jolley 193e3d167f Merge remote-tracking branch 'origin/master'
Conflicts:
	readme.txt
2015-03-17 15:34:59 +00:00
Mike Jolley 88be174037 [2.3] Support price filter min or max only.
Closes #7743
2015-03-17 15:34:15 +00:00
Mike Jolley e95d68117a Merge pull request #7734 from woothemes/7733-allow-saving-empty-download-expiry-date
[2.3] Allow saving of empty download expiry date on orders
2015-03-17 14:47:28 +00:00
Mike Jolley ec6fe19db1 Allow name definition in woocommerce_wp_select 2015-03-17 14:44:02 +00:00
Mike Jolley bf8f7ba248 Merge pull request #7735 from jackgregory/patch-1
Include endpoints in body class filter
2015-03-17 14:36:48 +00:00
Claudio Sanches 618f70ffdf [API] Fixed the stock management for variations, closes #7698 2015-03-16 15:13:07 -03:00
Claudio Sanches 6ce7288814 [API] Delete product attachments when the product fails, closes #7731 2015-03-16 14:54:38 -03:00
Jack Gregory d262c44534 Include endpoints in body class filter 2015-03-16 13:26:22 +00:00
Jack Gregory 27bbcb88a7 Include endpoints in body class filter 2015-03-16 13:09:13 +00:00
James Koster 90a78780be state placeholders. closes #7729 2015-03-16 12:56:22 +00:00
Gerhard 0e8ef24003 Allow saving of empty download expiry date, closes #773 2015-03-16 14:53:59 +02:00
Mike Jolley 70d125ae96 [2.3] Fix - get_total_discount() function with certain tax setups.
Revised how discounts/discount taxes are stored for consistency. Always
store ex. tax to make data retrieval easier, and to ensure totals are
correct after settings changes. Backwards compatibility maintained
through use of order versioning.

#7728
2015-03-16 12:17:09 +00:00
shivapoudel 9952d7faf2 Apply 'Hide This Notice' for skip buttons if message is suitable xD 2015-03-14 05:41:55 +05:45
shivapoudel 79caf69ed7 Tweaks admin notices view pages 2015-03-14 05:33:15 +05:45
roykho 4c868e9a19 remove attribute label formatting and allow users to decide the formatting 2015-03-13 15:41:12 -07:00
Remi Corson fd80f61609 fix variable product docs URL 2015-03-13 17:51:50 +01:00
Mike Jolley e81d2182f5 Sanitize tax_rate_id when saving taxes in the backend to prevent potential SQL injection. 2015-03-13 12:44:04 +00:00
Nicola Mustone 03daf7126b added action woocommerce_after_dashboard_status_widget 2015-03-13 12:07:39 +01:00
Mike Jolley e2f214b868 Remove space 2015-03-13 10:44:10 +00:00
Mike Jolley efb0b7f72f Fix query redirects
Fixes #7703
2015-03-13 10:33:38 +00:00
Mike Jolley 019e0b8728 Switch to jquery/maxcdn version of jquery smoothness theme
Fixes #7717
2015-03-13 10:20:37 +00:00
Mike Jolley d49b5eb182 pass args to order amount filters
Closes #7718
2015-03-13 10:03:08 +00:00
Mike Jolley 6165d509c7 Use debug option, not testmode
Fixes #7696
2015-03-13 09:38:09 +00:00
Mike Jolley 6447d4081f Prevent notice
Closes #7705
Fixes #7704
2015-03-13 09:25:24 +00:00
Mike Jolley 10c047d38a Send back correct slug after adding term
Fixes #7685
2015-03-13 09:21:55 +00:00
Mike Jolley c44100f9e7 wc_sanitize_tooltip 2015-03-13 09:14:28 +00:00
Gerhard c3a9c027b9 Reverse html encoding and pass through strip tags as tiptip runs encoded html, avoids xss 2015-03-13 08:35:33 +02:00
matttallan 4d0e0b71f3 Rollback WCAPI create_order if exception is thrown after wc_create_order
When you use the api to create an order and specify an method_id for
the payment details, but no method_title. You recieve a WP_Error as the
response but a pending order of $0 is still created.
2015-03-13 16:02:42 +10:00
Claudio Sanches a66d627c70 Improved the wc_get_product_id_by_sku() function for #7695 2015-03-12 17:59:52 -03:00
Claudio Sanches 607d5e9964 Merge pull request #7709 from Nils-Fredrik/master
Loock just for product and product_variation in wc_get_product_id_by_sku(), closes #7695
2015-03-12 17:56:58 -03:00
nils-fredrik@maksimer.no c0ebb7d0ad Fix for #7695
Will now only return posts of type product and product_variation.
2015-03-12 21:52:22 +01:00
Sam Bohler 91e313b924 Fixed DocBlock annotations 2015-03-12 16:39:47 -04:00
Guillermo Gette e9d20c9f66 update set_line_item to let you set items by sku 2015-03-12 22:52:37 +11:00
Guillermo Gette eae8c6b8e5 add function wc_get_product_by_sku 2015-03-12 22:52:13 +11:00
Mike Jolley ec4d3efb6f Merge pull request #7689 from woothemes/memcache-install-welcome-redirect
Memcache welcome page redirect issue
2015-03-12 11:37:02 +00:00
Brent Shepherd 028cea41d3 Make sure Simplify customer ID is set on renewals
So that if the renewal is for a failed payment, the the new value is set
on the renewal order's `'_simplify_customer_id'` post meta value and can
be copied back to the original order in `update_failing_payment_method()`.
2015-03-11 14:50:25 -07:00
Brent Shepherd 6d339241a2 Catch exception on renewal payment with Simplify 2015-03-11 14:49:57 -07:00
Mike Jolley 5bcfcf51ff Increase wc_get_weight precision. 2015-03-11 10:45:14 +00:00
Gerhard c9d4655ef1 When running update_option it does not always clear memcache, a workaround is to run delete_option and then add_option instead. 2015-03-11 12:26:51 +02:00
Mike Jolley 8554796c4b Show calculate total when shipping is needed, but shipping is hidden.
Closes #7650
2015-03-10 16:57:43 +00:00
Mike Jolley 0ed3ce9023 Revert "Merge remote-tracking branch 'origin/shipping-costs'"
This reverts commit acc239cd1c, reversing
changes made to b0e0bdcfad.
2015-03-10 16:43:02 +00:00
Mike Jolley acc239cd1c Merge remote-tracking branch 'origin/shipping-costs' 2015-03-10 16:33:55 +00:00
Mike Jolley b0e0bdcfad Do not enforce rating in admin
Closes #7679
2015-03-10 11:01:59 +00:00
Tamara Zuk 4e36efe3af Missing argument on `woocommerce_product_is_on_sale` grouped product filter
Avoids a “missing argument” warning
2015-03-09 17:28:37 -04:00
Barry Kooij b5d64ba932 Decimal Precision can now be set in all orders API calls.
Fixes #7652
2015-03-09 19:07:02 +01:00
Barry Kooij 44d8bee22c Use round instead of number_format 2015-03-09 18:10:49 +01:00
Barry Kooij 650e17c971 Merge branch 'master' of github.com:woothemes/woocommerce
Conflicts:
	readme.txt
2015-03-09 18:08:53 +01:00
Barry Kooij 245a2cf4e7 Added the option to not round the line total. 2015-03-09 18:06:31 +01:00
Mike Jolley 40f8ed5140 Merge remote-tracking branch 'origin/master'
Conflicts:
	readme.txt
2015-03-09 17:05:43 +00:00
Mike Jolley 457050ae9d Improved coupon percent calculation for fixed discounts.
Closes #7669
2015-03-09 17:05:09 +00:00
Barry Kooij 0bb4655da8 Merge branch 'master' of github.com:woothemes/woocommerce 2015-03-09 17:09:17 +01:00
Barry Kooij e99bcc7f77 API: reports/sales now also returns total refunds.
Fixes #7262
2015-03-09 17:09:07 +01:00
James Koster cafe0927f5 count styles in widgets. closes #7677
make category / layered nav list styles and markup consistent with core
post category widget.
2015-03-09 16:06:48 +00:00
Mike Jolley 4171a20e29 Order again with custom attributes.
Fixes #7601
2015-03-09 15:50:13 +00:00
Mike Jolley 01ee531136 Same as #7662 for backend 2015-03-09 13:48:47 +00:00
Mike Jolley 3fc7a0ae65 Allow wc_attribute_label to support product-level attribute names.
Closes #7662
2015-03-09 13:40:07 +00:00
Mike Jolley 5cbd02fef2 Improved message when variation attributes are missing.
Closes #7670
2015-03-09 13:14:05 +00:00
Barry Kooij ca6e9a7371 Merge branch 'master' of github.com:woothemes/woocommerce 2015-03-09 13:19:10 +01:00
Barry Kooij 9c430f5a6a Warn users about unmaintained PHP version on status page. 2015-03-09 13:18:54 +01:00
Mike Jolley 09bee8ccb2 woocommerce_format_content filter
Closes #7663
2015-03-09 11:47:05 +00:00
Mike Jolley 66e6c682ed Only run save_category_fields for product_cat taxonomy.
Closes #7665
2015-03-09 11:29:14 +00:00
Mike Jolley fa0be55b01 transient cache dashboard reports
Closes #7641
2015-03-09 11:07:49 +00:00
Mike Jolley 899952e478 woocommerce_get_breadcrumb filter in class
Closes #7644
2015-03-09 10:17:39 +00:00
Mike Jolley 1a51989420 Merge pull request #7648 from justinstern/master
Skip coupon notices if there's no message
2015-03-09 10:05:25 +00:00
Mike Jolley 1975d6dc13 Merge pull request #7656 from tivnet/patch-5
get_the_title( $shop_page ) instead of $shop_page->post_title
2015-03-09 10:02:22 +00:00
Mike Jolley 40c86a9e4a Merge pull request #7660 from shivapoudel/system-status
Tweaks for System status
2015-03-09 09:38:19 +00:00
Max Rice 7a4360eaf5 Catch Emogrifier Exceptions
Emogrifier throws various exceptions for invalid input, etc. that
currently are not caught anywhere, causing fatal errors or unexpected
behaviors in other plugins. This commit fixes that by catching all
exceptions and logging them.
2015-03-08 19:45:05 -04:00
shivapoudel 3b0bd8bdc6 Visit Plugin homepage in new tab 2015-03-07 09:14:49 +05:45
shivapoudel 58b6b54e77 Fix the large gap in System Status -> Server Environment after [?] 2015-03-07 09:03:14 +05:45
shivapoudel a56b93a143 Tweaks for System Status 2015-03-07 09:01:08 +05:45
Tamara Zuk d4b08daa64 Avoid 'division by zero' warnings
SHA 85befad283 does not avoid these
warnings if `$inc_tax` is `false`.
2015-03-06 17:46:31 -05:00
Gregory Karpinsky 9b28fa95c1 get_the_title( $shop_page ) instead of $shop_page->post_title
to apply filters
2015-03-06 15:11:23 -05:00
justinstern 809f4be1a3 get_coupon_error vs get_coupon_message 2015-03-06 11:36:34 -05:00
Mike Jolley 2fb7f20633 Merge pull request #7647 from thenbrent/order_notes_by_id
Order "Order Notes" on Edit Order screen by ID
2015-03-06 14:48:14 +00:00
Mike Jolley 568a0fe4fa Tweak international delivery
Fixes #7651
2015-03-06 14:45:04 +00:00
Mike Jolley af2407a089 Move default customer location to general settings tab. 2015-03-06 14:45:04 +00:00
Barry Kooij c45c4fd1a2 optimize PR#7605 2015-03-06 15:06:24 +01:00
James Koster c9fff65365 shipping costs. #7650 2015-03-06 13:23:18 +00:00
Barry Kooij 31f414ecb4 Merge branch 'raw-cancel-order-url' of git://github.com/tamarazuk/woocommerce into tamarazuk-raw-cancel-order-url 2015-03-06 13:44:52 +01:00
Mike Jolley 66e6366be0 Shipping calculator - Made state/postcode respect country locale like checkout.
Fixes #7637
2015-03-06 12:37:21 +00:00
Mike Jolley 9f269f765d Load persistent cart when empty, and Prevent cart being cleared when accessing the login page.
Closes #7636
2015-03-06 12:02:02 +00:00
Claudio Sabatini f21ff35f8c Update class-wc-query
Added option that control if prices include tax for filtering
2015-03-06 11:32:30 +01:00
Claudio Sabatini 5aff801219 Update class-wc-widget-price
workaround to fix when prices are without taxes and display should include it
2015-03-06 11:30:08 +01:00
claudiosan b7d98bf53a Update class-wc-query - Filter prices when tax not included
Fixing filter price widget when prices are without taxes
2015-03-06 10:59:02 +01:00
justinstern 9f3ae48b8f Skip coupon notices if there's no message
Handy for defining programmatic coupons to apply cart discounts, when
you wouldn't necessarily want to have a notice displayed
2015-03-06 00:36:01 -05:00
Claudio Sanches 25944c9086 Fixed the WC_Countries::get_formatted_address() default args
@mikejolley
2015-03-06 00:05:40 -03:00
Brent Shepherd 32cd95cc80 Order "Order Notes" on Edit Order screen by ID
So that insertion order is preserved in case multiple comments were inserted within
the same second of each other.
2015-03-05 15:49:45 -08:00
Dean Taylor a841817b6a Fix "Undefined index: test_ipn" PHP notice 2015-03-05 22:58:22 +00:00
Mike Jolley 7fa0ee5004 split_shared_term handling 2015-03-05 11:27:58 +00:00
Mike Jolley c8b664ff47 Exclude total sales from duplication Closes #7631 2015-03-05 10:03:36 +00:00
Mike Jolley 4d8d4310bf Tidyup #7627 2015-03-05 09:20:24 +00:00
Rasmus 13f6e442df Fix missing fields in get_formatted_address
Fixes missing fields in get_formatted_address in WC_Countries so it doesn't throw a notice about undefined variable when argument is missing.
2015-03-04 15:02:35 +01:00
Mike Jolley 830fba3e41 Merge pull request #7625 from SiR-DanieL/patch-6
Added order count functions
2015-03-04 13:18:41 +00:00
Nicola Mustone 95f581452f removed useless functions 2015-03-04 11:35:25 +01:00
Mike Jolley 123ae9cd5a Merge pull request #7620 from SiR-DanieL/patch-5
Welcome page tweaks
2015-03-04 10:28:26 +00:00
Mike Jolley d4ccca7f3d Merge pull request #7618 from SiR-DanieL/patch-4
Replace int cast with absint
2015-03-04 10:27:37 +00:00
Mike Jolley 5146d582cb Just some braces 2015-03-04 10:25:08 +00:00
Nicola Mustone ed67650c36 added order count functions 2015-03-04 09:51:06 +01:00
Nicola Mustone f7577c5097 missing "WooCommerce" and update version 2015-03-03 19:05:55 +01:00
Nicola Mustone 147ccf3ef8 replace int cast with absint 2015-03-03 17:36:47 +01:00
Mike Jolley c0e5d6a959 Set placeholder for selects and ensure set if the first option is blank 2015-03-03 11:43:41 +00:00
Mike Jolley 6658c88adc Add args to correct scripts
Fixes #7610. @claudiosmweb
2015-03-03 10:58:10 +00:00
Mike Jolley 3d2ee4f54a Merge pull request #7567 from tamarazuk/system-status-fatal-fix
System Status: Fix fatal error when `$response` is not an object
2015-03-03 10:04:20 +00:00
Tamara Zuk 5d4a57d8e2 System Status: Use is_wp_error() instead of is_object()
thanks @claudiosmweb!
2015-03-03 02:07:39 -05:00
Tamara Zuk 0e4cea8e85 Introduce `WC_Order::get_cancel_order_url_raw()` method 2015-03-03 02:01:17 -05:00
Claudio Sanches 12d381da2e Improved the WC_Language_Pack_Upgrader::has_available_update() 2015-03-02 13:49:59 -03:00
Claudio Sanches 3db16ae606 Prevent translation update message for en_US, closes #7599 2015-03-02 13:49:27 -03:00
Claudio Sanches f2fc3b151f Merge pull request #7562 from tjuris/get-related-terms-filters
Apply filters to product/tag terms when querying related products
2015-03-02 10:39:31 -03:00
Mike Jolley 9865e5f11e urlencode coupon Closes #7572 2015-03-02 12:03:31 +00:00
Mike Jolley 154e289b08 Fix unclosed div element Closes #7575 2015-03-02 11:58:13 +00:00
Tanel Jüris fe60425eeb Rename filter prefix from wc_ to woocommerce_ 2015-03-02 12:09:24 +02:00
Mike Jolley 7d23acf381 Merge pull request #7597 from woothemes/hotfix-partial-refunds-rounding
Pass max_refund through wc_format_decimal
2015-03-02 10:03:50 +00:00
Mike Jolley d98569327d Check payment title exists before output. 2015-03-02 10:03:30 +00:00
Mike Jolley b8e01fdfdd Remove unused defaults Closes #7573 2015-03-02 10:03:30 +00:00
Mike Jolley 92b15933ab Merge pull request #7574 from WillBrubaker/master
Filter the default attribute availability
2015-03-02 10:02:09 +00:00
Mike Jolley a7be0d5b8a Merge pull request #7385 from RistoNiinemets/form-field
Form field args and type filters
2015-03-02 09:56:08 +00:00
Mike Jolley 8a42ed06f1 Merge pull request #7552 from NickIvanter/patch-6
Allow custom CSS classes to be specified for [product] shortcode
2015-03-02 09:55:49 +00:00
Gerhard 368bfd97d1 Pass max_refund through wc_format_decimal 2015-03-02 11:54:43 +02:00
Claudio Sanches c4e1602406 Merge branch 'master' of github.com:woothemes/woocommerce 2015-02-27 13:33:05 -03:00
Claudio Sanches d0c71bd46e Fixe the admin access for subscsribers and customers 2015-02-27 13:32:47 -03:00
Will de6c986953 Filter the default attribute availability 2015-02-26 11:23:19 -05:00
Barry Kooij ffc436957b Removed double @property comment 2015-02-26 17:14:06 +01:00
Nicola Mustone 0fc973b5aa undefined wc_error_count fix 2015-02-26 16:18:11 +01:00
Mike Jolley 66e13a9927 Filter object 2015-02-26 11:59:50 +00:00
Tamara Zuk 3525b0f193 Append status codes to wp_remote_post and wp_remote_get notes 2015-02-26 02:05:01 -05:00
Tamara Zuk 8e4259b915 System Status: Fix fatal error when `$response` is not an object 2015-02-26 01:50:42 -05:00
Tanel Jüris d9a568bbea Apply filters to product/tag terms when querying related products 2015-02-25 16:02:31 +02:00
Claudio Sanches 37882756d3 Fixed HTML entities for up-sells and cross-sells fields, closes #7553 2015-02-25 10:27:53 -03:00
Nick Ivanter a1c9bac225 Allow custom CSS classes to be specified for [product] shortcode
This change allows custom CSS classes to be added to the output generated by the [product] shortcode. This is useful, for instance, when embedding a product into a regular post as an advertisement. With custom CSS classes, you can style it to be left or right aligned, floating, etc.
2015-02-24 23:32:35 +03:00
Mike Jolley 2006c7217e Add reports menu item if user can access reports but not the main WC section.
Closes #7528
2015-02-24 12:29:03 +00:00
Mike Jolley ba582c307b Dashboard - use same query as reports Closes #7529 2015-02-24 12:18:56 +00:00
Mike Jolley 26487a5734 Fix - Settings API - allow multiselect fields to be emptied.
Closes #7542
2015-02-24 12:12:42 +00:00
Mike Jolley d435eedbef woocommerce_cart_totals_order_total_html
Closes #7544
2015-02-24 12:05:32 +00:00
Mike Jolley d9455994c8 Use 30 days instead of year for transients to avoid bugs in memcache plugins.
Closes #7520
2015-02-24 12:02:56 +00:00
Claudio Sanches cb780bb3fd Merge branch 'master' of github.com:woothemes/woocommerce 2015-02-23 15:24:40 -03:00
Claudio Sanches 742a48c3eb Fixed the json_search_products when the product title is numeric
@mikejolley
2015-02-23 15:23:53 -03:00
Mike Jolley 4c411a69e7 * Fix - Saving an order needs to save the discount amount ex. tax like
the cart.
* Tweak - Show discounts inc. tax when showing order totals inc. tax.

Closes #7532

@barrykooij @claudiosmweb How does this look? Looks like we were saving
order discounts inconsistent with the cart/checkout
2015-02-23 17:39:57 +00:00
roykho c9a84030bb add hook to system status report so 3rd party items can display debug info there 2015-02-23 07:07:14 -08:00
Mike Jolley 2ffcc65cd5 Remove mapping for get_product_search_form filter 2015-02-23 11:45:47 +00:00
Mike Jolley 2657ed251c Adjust syntax 2015-02-23 11:45:34 +00:00
Mike Jolley df710c2705 Merge pull request #7515 from jamesgol/dirtysession
Mark session clean after commiting data
2015-02-23 11:06:50 +00:00
Mike Jolley 5d715a4c0b Merge pull request #7521 from pjv/fix-BadMethodCallException
fix BadMethodCallException
2015-02-23 11:06:00 +00:00
Mike Jolley 68fd1589c7 Merge pull request #7511 from piotr-szczygiel/product-categoty-shortcode-hook
Product categoty shortcode hook
2015-02-23 11:04:44 +00:00
pjv 1cdc3174ca fix BadMethodCallException
receiving lines like this in the php error log:

Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function get_formatted_name() on a non-object (boolean)' in /var/www/example.com/htdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:484\nStack trace:\n#0 /var/www/example.com/htdocs/wp-admin/includes/template.php(1044): WC_Meta_Box_Product_Data::output()\n#1 /var/www/example.com/htdocs/wp-admin/edit-form-advanced.php(600): do_meta_boxes()\n#2 /var/www/example.com/htdocs/wp-admin/post.php(209): include()\n#3 {main}

The error resulted in a WSOD when trying to edit some products.
2015-02-22 09:01:37 -07:00
James Golovich 44d2552798 Mark session clean after commiting data
If someone is calling save_data() manually in addition to WooCommerce calling it the data is saved twice regardless of
any new data.
2015-02-20 23:55:24 -08:00
Claudio Sanches b25e51dbe6 Merge pull request #7514 from prowp/patch-1
Allow filter for breadcrumb terms
2015-02-20 23:25:37 -02:00
John Russell 112a01e54d Altered naming convention 2015-02-20 18:17:03 -07:00
Claudio Sanches 0148a1bd86 [API] Fixed the variable product managing_stock variable, closes #7513 2015-02-20 23:01:26 -02:00
John Russell f9db9eac77 Allow filter for breadcrumb terms
In some cases we may want to specify a primary term for breadcrumbs. This change would allow that to be done via a filter.
2015-02-20 17:57:25 -07:00
Piotr Szczygiel ac7348d69d added 'before' hook as well 2015-02-20 21:32:13 +01:00
Piotr Szczygiel 996f915919 Merge remote-tracking branch 'origin/master' into product-categoty-shortcode-hook 2015-02-20 21:30:25 +01:00
Mike Jolley 6c9562112f Fix Related post offset. 2015-02-20 16:17:45 +00:00
Mike Jolley 321d38be0a Round report values.
Closes #7505
2015-02-20 12:27:55 +00:00
Mike Jolley 2a90208f93 Cross/up-sells should not search variations.
Closes #7502
2015-02-20 12:12:03 +00:00
Piotr Szczygiel d7d9395476 Added action hook into product_category shortcode 2015-02-19 21:43:46 +01:00
Mike Jolley 8a40778046 Merge pull request #7496 from SiR-DanieL/patch-1
Fix missing downloads
2015-02-19 16:24:18 +00:00
Mike Jolley 09676934d6 Fix address formatting and improve email appearance
Fixes #7484
2015-02-19 13:57:22 +00:00
Nicola Mustone 40a7605c99 fix missing downloads 2015-02-19 14:42:24 +01:00
Claudio Sanches 966ca94e41 Fixed non-ASCII variation names in WC_AJAX::json_search_products(), closes #7490 2015-02-19 11:21:02 -02:00
Claudio Sanches d0aafd1f0b [API] Fixed undefined messages when edit a product 2015-02-19 10:48:21 -02:00
Mike Jolley 2caf287258 Tweak rating prompt text on click, and change once rated
@bftrick This is to keep the .org folk happy and look less spammy :)
2015-02-19 11:38:35 +00:00
Mike Jolley 049abcfdd3 Show random tweet
Closes #7481
2015-02-19 11:16:24 +00:00
Mike Jolley 82ac0fc11e Detect shortcodes when saving URLs.
Fixes #7474
2015-02-19 11:05:04 +00:00
Mike Jolley d944b43845 Merge pull request #7489 from roykho/taxes
fix taxes save issue when page is paginated
2015-02-19 10:43:42 +00:00
Mike Jolley 5d61028317 Unhook wc_page_endpoint_title after it is ran once (main page title).
Fixes #7488
2015-02-19 10:37:59 +00:00
roykho af940dcf72 fix taxes save issue when page is paginated 2015-02-18 22:52:34 -08:00
Claudio Sanches 517a447743 Fixed some issues for scrutinizer 2015-02-18 16:09:02 -02:00
Claudio Sanches 1a45a447b0 Fixed the true-null-false case 2015-02-18 15:34:03 -02:00
Magnus Jepson ded1cf76e0 Fix sales report description
Net Sales report tooltip description was misleading by “excluding
refunds”
2015-02-18 18:19:10 +01:00
Claudio Sanches 6c7a22b910 Removed admin message from user profile pages, closes #7478 2015-02-18 15:06:11 -02:00
Claudio Sanches 69f44e1d4f Changed get_bloginfo("title") to get_bloginfo("name") 2015-02-18 13:47:30 -02:00
Claudio Sanches 0979fc475a Merge pull request #7466 from qTranslate-Team/master
replace get_bloginfo('name') with get_bloginfo('name', 'display')
2015-02-18 13:44:49 -02:00
Mike Jolley fb5290db2e Fix breadcrumb on shop page 2015-02-18 12:53:39 +00:00
Mike Jolley 470b259a8a Don't download GeoIP Database until geolocation option is enabled in settings. 2015-02-18 12:53:24 +00:00
Mike Jolley b6e7e4e8ad Improve category coupon message.
Closes #7463
2015-02-18 11:17:58 +00:00
Gerhard 7beb159927 Remove posts join from wc_get_customer_available_downloads, speeds query up by 50% 2015-02-18 12:04:19 +02:00
John Clause 6c9f863c04 replaced get_bloginfo('name') with get_bloginfo('name','display') 2015-02-17 20:56:18 -07:00
Claudio Sanches 28bf06b702 Improved the woocommerce_email_get_option filter, closes #7464 2015-02-18 00:28:26 -02:00
Claudio Sanches c97dffcc66 Improved the WC_Admin::admin_footer_text(), closes #7461 2015-02-17 16:24:11 -02:00
Mike Jolley 81b7ed934e Call Logger before logging errors 2015-02-17 16:20:26 +00:00
Mike Jolley d1c19d5782 Check for GZIP support 2015-02-17 16:19:33 +00:00
Mike Jolley 217c3a49ff If logged in, populate customer data from user meta.
Closes #7459
2015-02-17 15:47:28 +00:00
Mike Jolley 5ec61e3acd Tweak transient welcome redirect 2015-02-17 15:24:12 +00:00
Mike Jolley 4feb5fbda9 Restock after refund is successful Closes #7449 2015-02-17 14:56:22 +00:00
Mike Jolley 8126b7ef58 When purchasing multiple downloadable products (same item), multiply download limit by qty purchased.
Closes #7451
2015-02-17 14:03:44 +00:00
Bryce a0b50541cc Proposed solution for api all order status counts
I’m not sure if this is the best way or if it needs work. What do you
think @maxrice @claudiosmweb?

With `status` set to `any`, it returns:

```
stdClass Object
(
    [count] => stdClass Object
        (
            [pending] => 0
            [processing] => 2042
            [on-hold] => 4
            [completed] => 2993
            [cancelled] => 13
            [refunded] => 0
            [failed] => 4
        )

)
```

If not `any, same as before.

Closes #7433
2015-02-17 13:27:38 +07:00
Mike Jolley 44cf2c2b70 Filter before max_related_posts 2015-02-16 16:48:11 +00:00
Mike Jolley bd11f51d04 Double shop page in breadcrumb and white space issues.
Fixes #7432
2015-02-16 16:21:48 +00:00
Mike Jolley ac8d97ab54 No need to add double quotes here Closes #7447 2015-02-16 14:33:12 +00:00
Mike Jolley 7899dd95d6 Run File URLs through esc_url_raw instead of wc_clean to preserve spaces.
Closes #7442
2015-02-16 14:23:13 +00:00
Mike Jolley 7902522e96 Merge pull request #7424 from roykho/placeholder-image
fix string array conversion notice when passing array to get_image metho...
2015-02-16 14:00:41 +00:00
Mike Jolley 8bdd4fc283 Run item meta label through wc_attribute_label() in admin order page.
Closes #7420
2015-02-16 13:49:44 +00:00
Mike Jolley a668b87801 Merge pull request #7446 from SiR-DanieL/patch-6
Added target _blank to the template structure doc link
2015-02-16 13:17:28 +00:00
Mike Jolley 5c1a0d92e8 Related posts - replace ORDER BY RAND() with random offset.
Closes #7436
2015-02-16 13:16:18 +00:00
Nicola Mustone 1f0fe09910 Added target _blank to the template structure doc link 2015-02-16 13:55:28 +01:00
Mike Jolley e58e9cb426 Merge pull request #7444 from SiR-DanieL/patch-6
Target _blank on Theme integration guide
2015-02-16 12:46:48 +00:00
Mike Jolley 969e2d3b18 Stock status when updating out of stock product.
Fixes #7402
2015-02-16 12:14:10 +00:00
Mike Jolley f5e73d792d Fix error when no product is chosen for report.
Fixes #7427
2015-02-16 11:53:37 +00:00
Mike Jolley cdcd38ebb9 API total_tax should include shipping tax 2015-02-16 11:48:26 +00:00
Nicola Mustone fe0cbd505c target _blank on Theme integration guide 2015-02-16 12:41:21 +01:00
Mike Jolley fcbd5c4292 Merge branch 'reports-api-fixes' 2015-02-16 11:35:10 +00:00
Mike Jolley 542dfe7ce4 Add additional error handling to remove_item handler
Closes #7415
2015-02-16 11:31:38 +00:00
Mike Jolley ab1e2b1597 Merge pull request #7418 from tamarazuk/register_post_status_fix
Register shop_order post statuses earlier
2015-02-16 11:14:00 +00:00
Mike Jolley e307786f5e Merge pull request #7438 from paulwilde/upstream
Introduce wc_get_page_permalink
2015-02-16 11:13:02 +00:00
Mike Jolley 226ffb7985 Merge pull request #7441 from karpstrucking/master
Fixes issue #7440
2015-02-16 10:44:47 +00:00
Mike Jolley e1cb2c454b Remove ip-api at their request Closes #7443 2015-02-16 10:25:13 +00:00
Lucas Karpiuk fc11849054 Fixes issue #7440 2015-02-15 15:36:18 -05:00
Paul Wilde c913316f8b Introduce wc_get_page_permalink. 2015-02-15 19:13:22 +00:00
Dean Taylor 1b38e46fd5 Fix deprecated notice for WP_User->id usage
Fix E_USER_NOTICE WP_User->id was called with an argument that is deprecated since version 2.1! Use WP_User->ID instead
2015-02-15 19:02:27 +00:00
roykho c7ae9c092f fix string array conversion notice when passing array to get_image method 2015-02-13 17:18:07 -08:00
Mike Jolley 8409d67602 Share data between sales by date report and API.
Also ensures data is consistent. #7416
2015-02-13 21:25:59 +00:00
Tamara Zuk e44d0e60db Register shop_order post statuses earlier
Registering the post statuses on `init` with a priority of 10 is too
late for some uses. Particularly if you are using `WP_Query` on `init`,
WP core will not add the `post_status` where clause if the custom post
statuses are not registered yet.

I ran into this issue on a site using `ALTERNATE_WP_CRON` which runs
`wp_cron()` on `init` with a default priority of `10`. It appears that
this may fix #7408 as well.
2015-02-13 15:08:15 -05:00
Claudio Sanches e770d1a2e5 Fixed extra spaces 2015-02-13 17:14:12 -02:00
Claudio Sanches 74d8d4ed61 Fixed the PayPal URL for ZA, closes #7417 2015-02-13 16:02:00 -02:00
Mike Jolley 35a3de03d5 Move WC_Email docblock and add class exists check
Closes #7399
2015-02-13 16:54:15 +00:00
Claudio Sanches 1bdf6170ae Merge pull request #7414 from woothemes/tracker-intervals
Improvements in tracker intervals
2015-02-13 13:41:52 -02:00
Gerhard d7629fef33 Update comment 2015-02-13 17:32:17 +02:00
Gerhard 3493a55653 Update time before send, make post non blocking, always update last sent. 2015-02-13 17:29:24 +02:00
Mike Jolley 733339b681 Revert "Autoloader tweaks"
This reverts commit d84a0e9ec5.
2015-02-13 15:21:01 +00:00
Mike Jolley d84a0e9ec5 Autoloader tweaks 2015-02-13 15:18:26 +00:00
Claudio Sanches eff087f5ab Merge pull request #7413 from woothemes/plain-text-email
Check support for DOMDocument, closes #7404
2015-02-13 12:55:39 -02:00
Claudio Sanches 94e1a4bf6a Just check for DOMDocument 2015-02-13 12:54:10 -02:00
Mike Jolley 765dcd174b Tweak text in frontend colors notice 2015-02-13 14:53:22 +00:00
Mike Jolley 7599747628 Check for empty path in autoloader 2015-02-13 14:49:44 +00:00
Claudio Sanches 4065f56376 Improved the description for DOMDocument in system status 2015-02-13 12:47:56 -02:00
Claudio Sanches 3a85b8cf95 Fixed a typo 2015-02-13 12:44:47 -02:00
Claudio Sanches 7714901fd5 Added DOMDocument item in system status 2015-02-13 12:43:30 -02:00
Claudio Sanches e778d26764 Created a method to test if have an inline css parser 2015-02-13 12:22:53 -02:00
Claudio Sanches 5d80f3e5cd Use plain text emails when dont have support for DOMDocument class 2015-02-13 12:16:58 -02:00
Mike Jolley 6679f4822f Set attribute 'query_var' true when public.
Closes #7401
2015-02-13 14:06:20 +00:00
Claudio Sanches 0c6e079690 Simplify commerce default payment mode as standard 2015-02-13 12:04:05 -02:00
Mike Jolley 2f2acc6964 Update dashboard report to show gross, after refunds 2015-02-13 13:53:03 +00:00
Mike Jolley 50322801e5 Sales by date handling for refunds
- Exclude refunds from gross/net
- Correct order counts
- Display refunded order and item count, plot after refunds
- Combine query functions for legend and main chart
2015-02-13 13:42:09 +00:00
Mike Jolley 55969390f0 Taxes by date handling for partial and full refunds 2015-02-13 13:42:09 +00:00
Mike Jolley 8f5ac9417c Taxes by code handling for partial and full refunds 2015-02-13 13:42:09 +00:00
Mike Jolley 857a78c2fc Include posts without parent in join so combinations of orders + refunds can be queried at the same time 2015-02-13 13:42:09 +00:00
Claudio Sanches 2dbfadd9fa Improved the WC_Geo_IP removing some not useful const and vars 2015-02-13 10:28:51 -02:00
Nicola Mustone ca3deba1c7 getting wrong ID 2015-02-13 11:00:41 +01:00
Mike Jolley f0d0fa9394 Auto-generation of slug when adding new attribute. 2015-02-12 23:25:10 +00:00
Mike Jolley 323faed337 Taxes by code - include refunds Closes #7397 2015-02-12 22:58:19 +00:00
Mike Jolley 62cb430eaa Run coupon codes through html_entity_decode.
Closes #7395
2015-02-12 22:50:22 +00:00
Mike Jolley e99b3a9bf8 limit_usage_to_x_items option in coupons.
Closes #7396
2015-02-12 22:39:40 +00:00
Claudio Sanches 5772356eb2 Re-added the woocommerce_breadcrumb_home_url filter 2015-02-12 18:34:40 -02:00
Mike Jolley c71bff2844 Only apply product/cat coupon checks for cart to cart coupons.
Closes #7389
2015-02-12 16:15:28 +00:00
Mike Jolley 0ef336d97c Change hooks used to output post columns - fixes columns after quick edit. 2015-02-12 14:26:00 +00:00
Mike Jolley 61ef1662b2 Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	readme.txt
2015-02-12 13:20:56 +00:00
Mike Jolley 2347af7e73 Typo in get_from_name method.
Closes #7388
2015-02-12 13:20:23 +00:00
Claudio Sanches 07537878f0 Fixed the indentation in includes/libraries/class-emogrifier.php 2015-02-12 09:42:15 -02:00
Claudio Sanches 455b27e125 Added alternative to mb_convert_encoding in Emogrifier, closes #7378 2015-02-12 09:40:41 -02:00
Claudio Sanches 1845049665 Revert "Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib" 2015-02-12 09:36:12 -02:00
Mike Jolley 16e14914d8 Enqueue tracking js when needed only 2015-02-12 11:35:12 +00:00
Mike Jolley 1eb29d0acf Merge pull request #7386 from woothemes/tracking-duplicate-optins
Tracking duplicate optins
2015-02-12 11:30:14 +00:00
Mike Jolley 891016df28 Merge pull request #7379 from a3rev/master
Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib
2015-02-12 11:09:45 +00:00
Mike Jolley 2a472e64e8 Only run the uninstaller if the "Uninstall on Delete" option is checked in system status. 2015-02-12 11:09:13 +00:00
Mike Jolley 8aa0e5ea24 Potential notice with preg_match wildcard search, if used incorrectly. 2015-02-12 10:53:53 +00:00
Risto Niinemets ccba4cf6e8 wrong filter arguments order 2015-02-12 12:42:43 +02:00
Gerhard f0dbb72437 Add 10min buffer to override tracking calls. 2015-02-12 11:58:04 +02:00
Risto Niinemets 54e84cf235 run all fields through filter 2015-02-12 11:54:29 +02:00
Risto Niinemets 1cda103591 add filter woocommerce_form_field_args 2015-02-12 11:50:17 +02:00
Gerhard 1ac68adf20 Hide the tracker notice once clicked to avoid double clicks. 2015-02-12 11:41:04 +02:00
a3rev 0137249175 Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib 2015-02-12 12:38:50 +07:00
Mike Jolley 77716b1c1f attribute_public option. 2015-02-12 00:31:32 +00:00
Mike Jolley 30abed2f9e Merge pull request #7375 from tamarazuk/rating-count-fix
Fix average product rating when ratings are not required
2015-02-12 00:04:26 +00:00
Mike Jolley 518cca7326 WC_TEMPLATE_DEBUG_MODE in admin.
Fixes #7336
2015-02-11 23:32:27 +00:00
Mike Jolley d2040eca4d When updating shipping in cart, keep shipping calculator in DOM. 2015-02-11 23:25:31 +00:00
Mike Jolley 1f9b9c0ae0 When ratings are required for reviews, ensure validation is performed if the rating element is removed from DOM.
Closes #7371
2015-02-11 23:06:18 +00:00
Tamara Zuk 7eaae2d561 Fix average product rating when ratings are not required
If ratings are not required, the total rating count was counting all
reviews which skewed the average rating. In other words, reviews with
no rating were counted as a “zero” rating in the average rating
calculation. This bug was introduced in
83a457b29c which provided a fix for #6839.

This change introduces a new product method `get_review_count()` which
can be used to accurately calculate the total number of reviews for a
product. Some instances of `get_rating_count()` were replaced with
`get_review_count()` where appropriate. Additionally, the
`single-product/rating.php` template was adjusted to display the
correct number of customer reviews and ratings in rich snippets. I’ve
also included the `bestRating` rich snippet detailed
[here](http://schema.org/AggregateRating). The version number was
adjusted to 2.3.2 on that template as I think this is a larger change.
2015-02-11 17:55:16 -05:00
Mike Jolley bce209c21d Flat rate extra costs when costs are an array. 2015-02-11 22:24:13 +00:00
Mike Jolley afff86c033 Pass correct shipping cost to PayPal. 2015-02-11 22:17:58 +00:00
Mike Jolley 43c24feffd Item meta removal query in order class. 2015-02-11 22:14:24 +00:00
Claudio Sanches 3593df34b3 Merge pull request #7367 from woothemes/wc-geo-ip
WC_Geo_IP class
2015-02-11 16:04:56 -02:00
Claudio Sanches caed859f99 Removed the old geoip class 2015-02-11 16:03:54 -02:00
Mike Jolley f57b26cbe6 is_available() check in local pickup. 2015-02-11 18:02:44 +00:00
Claudio Sanches 3a9e459b2c Created WC_Geo_IP_Record class 2015-02-11 15:57:16 -02:00
Claudio Sanches 5389dc3812 Created WC_Geo_IP class 2015-02-11 15:51:50 -02:00
Mike Jolley bcb3e82567 Merge pull request #7366 from pbogdan/fix-wc-cart-tax-back-compat
Fix backward compatibility for $tax intance variable of WC_Cart.
2015-02-11 17:46:23 +00:00
Mike Jolley 7c28ea2e2d Merge pull request #7364 from SiR-DanieL/patch-4
Target _blank to the Storefront read more button
2015-02-11 17:23:04 +00:00
Mike Jolley 334ee4c108 Fix - [products] ids and sku args.
Closes #7365
2015-02-11 17:21:53 +00:00
Nicola Mustone 78bd357f56 missing _e 2015-02-11 18:15:00 +01:00
Nicola Mustone 5cab9f5f2a escape & 2015-02-11 18:14:03 +01:00
Nicola Mustone 2e6b571f09 added target _blank to the Storefront read more button 2015-02-11 18:12:18 +01:00
Piotr Bogdan 9d75ad17e8 Fix backward compatibility for WC_Cart::$tax. 2015-02-11 17:06:17 +00:00
Mike Jolley 44aa8339b2 Fix - attribute_public notice before DB upgrade. 2015-02-11 17:01:14 +00:00
Mike Jolley 4c7297c3b1 Merge pull request #7363 from tamarazuk/master
[2.3] Avoid a notice if select has no options
2015-02-11 16:50:51 +00:00
Mike Jolley c46f7f236d When the geolocation database cannot download, ensure the correct method is used to log the error. 2015-02-11 16:47:52 +00:00
Tamara Zuk bd8a57eb32 Avoid a fatal error if select has no options 2015-02-11 11:30:52 -05:00
Mike Jolley bc2af10cc6 Update languages and geolocation when installed 2015-02-11 14:38:55 +00:00
Barry Kooij 14598bfd40 Typos 2015-02-11 15:16:36 +01:00
Barry Kooij 6cd77ea3b1 Typo fix 2015-02-11 15:14:42 +01:00
Mike Jolley 9afa2848d7 woocommerce_remove_cart_item_from_session with $key and $values
@helgatheviking

$this isn’t needed - WC()->cart to access cart class.
2015-02-11 12:30:54 +00:00
Claudio Sanches 050286add6 Updated the changelog for 1452bde 2015-02-11 10:13:36 -02:00
Guillermo Gette a95591502e #7359 filter api results by a list of ids 2015-02-11 22:51:56 +11:00
Mike Jolley b7750e6e6b Merge pull request #7358 from helgatheviking/fix/action-on-remove-from-cart-session
trigger an action if an item is dropped from the cart session
2015-02-11 11:26:02 +00:00
Mike Jolley 19b6350afc Changelog code should ignore WC core 2015-02-11 11:21:31 +00:00
Kathy Darling 39fcc19ff6 trigger an action if an item is dropped from the cart session 2015-02-11 12:12:27 +01:00
Mike Jolley 124dac4a24 Merge pull request #7355 from woothemes/better-ip-check
Better proxy server support for get_ip_address
2015-02-11 10:41:44 +00:00
Gerhard 2339f5aee9 Better proxy server support for get_ip_address 2015-02-11 12:07:12 +02:00
Brent Shepherd f1fa927f57 Fix WC_Order::payment_complete() on back-end
SHA: c038001eab changed `WC_Abstract_Order::payment_complete()` to use
WC()->session->set( 'order_awaiting_payment' ) instead of
`WC()->session->order_awaiting_payment`, but `WC()->session` is only
set on front-end requests, meaning any extension that tries to complete
payment on an order from the back-end would cause a fatal error.
2015-02-10 16:55:47 -08:00
Eivin Landa 69aba6055a Added apply_filters to the wc_product_has_unique_sku function #7320 2015-02-10 19:54:31 +01:00
Mike Jolley 3a4e9c0d7f Report should include refunded status orders
Fixes #7343
2015-02-10 18:24:46 +00:00
Claudio Sanches 7fd1c539a7 Merge branch 'master' of github.com:woothemes/woocommerce 2015-02-10 14:44:40 -02:00
Claudio Sanches 22c4f02bbf Used filtered comment for woocommerce_new_customer_note action, closes #7349 2015-02-10 14:44:28 -02:00
Claudio Sanches 9f7683e81b Merge pull request #7348 from RistoNiinemets/master
add input_class to all form field types
2015-02-10 14:38:36 -02:00
Claudio Sanches 736ed330c8 Fixed a typo in the frontend colors notice 2015-02-10 14:08:05 -02:00
Claudio Sanches af99be8ffc Improved the tracking notice 2015-02-10 14:01:51 -02:00
Risto Niinemets 215bb8841d add input_class to all form field types 2015-02-10 17:41:34 +02:00
Claudio Sanches 0558c3c286 Added woocommerce_product_get_rating_html filter for WC_Product class, closes #7337 2015-02-10 13:01:04 -02:00
Claudio Sanches edac0b00c7 Fixed the remote post and get messages in status report 2015-02-10 12:16:25 -02:00
Claudio Sanches 6ca681ce86 Added new filters to help translation plugins, closes #7338 2015-02-10 10:51:44 -02:00
Mike Jolley 840efcaa00 is_on_sale should compare type Fixes #7344 2015-02-10 12:34:53 +00:00
Mike Jolley d93d00271d Use WP hook so we have access to query vars
Fixes #7341
2015-02-10 12:23:15 +00:00
Mike Jolley 78be4ad128 Upgrade routine for woocommerce_default_customer_address
Closes #7334
2015-02-10 11:49:09 +00:00
Mike Jolley 893babaaef woocommerce_product_get_weight filter Closes #7319 2015-02-10 11:18:38 +00:00
shivapoudel 20c5774e70 Refactor the WC Conditional function coding standard 2015-02-10 16:42:33 +05:45
James Collins 7e20fb9a3d Use wc_clean to trim and sanitize external IP
As per suggestion from @claudiosmweb, wc_clean() is more full featured than trim().

See #7335
2015-02-10 07:54:26 +08:00
James Collins 9c79a18edd Merge branch 'master' into geolocation-external-ip-fix 2015-02-10 07:40:32 +08:00
James Collins b5cc22e8f5 Geolocation: strip whitespace when obtaining external IP
The "ip.appspot" service returns an IP address plus a  new line character in its response.

An example response from "ip.appspot" is:

```123.123.123.123\n```

This fix strip whitespace from the response before proceeding.
2015-02-09 14:00:05 +08:00
James Collins 0bbb4464ab Fix 2 undefined index notices when editing/saving a product
Fixes:

Notice: Undefined index: upsell_ids in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 1202
Call Stack
#	Time	Memory	Function	Location
1	0.0110	486692	{main}( )	../post.php:0
2	4.7790	60047856	edit_post( ??? )	../post.php:229
3	4.7917	60075016	wp_update_post( ???, ??? )	../post.php:321
4	4.7930	60089156	wp_insert_post( ???, ??? )	../post.php:3572
5	4.9212	60223012	do_action( ???, ???, ???, ??? )	../post.php:3499
6	4.9213	60224380	call_user_func_array ( ???, ??? )	../plugin.php:496
7	4.9213	60224412	WC_Admin_Meta_Boxes->save_meta_boxes( ???, ??? )	../plugin.php:0
8	7.2460	60224516	do_action( ???, ???, ??? )	../class-wc-admin-meta-boxes.php:207
9	7.2539	60199340	call_user_func_array ( ???, ??? )	../plugin.php:496
10	7.2890	60735660	WC_Meta_Box_Product_Data::save( ???, ??? )	../plugin.php:0

( ! ) Notice: Undefined index: crosssell_ids in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 1203
Call Stack
#	Time	Memory	Function	Location
1	0.0110	486692	{main}( )	../post.php:0
2	4.7790	60047856	edit_post( ??? )	../post.php:229
3	4.7917	60075016	wp_update_post( ???, ??? )	../post.php:321
4	4.7930	60089156	wp_insert_post( ???, ??? )	../post.php:3572
5	4.9212	60223012	do_action( ???, ???, ???, ??? )	../post.php:3499
6	4.9213	60224380	call_user_func_array ( ???, ??? )	../plugin.php:496
7	4.9213	60224412	WC_Admin_Meta_Boxes->save_meta_boxes( ???, ??? )	../plugin.php:0
8	7.2460	60224516	do_action( ???, ???, ??? )	../class-wc-admin-meta-boxes.php:207
9	7.2539	60199340	call_user_func_array ( ???, ??? )	../plugin.php:496
10	7.2890	60735660	WC_Meta_Box_Product_Data::save( ???, ??? )	../plugin.php:0
2015-02-09 11:51:33 +08:00
shivapoudel 85976ddcfb Comment for Meta-Box Class 2015-02-08 21:32:47 +05:45
shivapoudel cdce6835f5 Comment for Disable Auto Save 2015-02-08 21:30:08 +05:45
shivapoudel 8db46ced4d Clean docblock statement for bulk messages 2015-02-08 20:30:19 +05:45
shivapoudel 7fad3e9428 Move the {post|bulk_post}_updated_messages methods to top 2015-02-08 20:27:48 +05:45
shivapoudel 99ae5c6a53 Specify custom bulk actions messages for a post type 2015-02-08 20:25:19 +05:45
Bryce deb4acd5a2 Return (first) role of user in customer API endpoint 2015-02-07 13:08:48 +07:00
Mike Jolley 0939cf0e01 Fix product cats notice Closes #7298 2015-02-05 11:36:33 +00:00
Mike Jolley f5ff10711d Merge pull request #7297 from shivapoudel/docblocks
Docblocks Fixes
2015-02-05 11:23:06 +00:00
Claudio Sanches 1a38cecb8c Merge pull request #7305 from bryceadams/patch-7302
Fix notice when invalid order id / email used
2015-02-05 06:49:20 -02:00
Claudio Sanches 0749fe752d Merge pull request #7304 from bryceadams/patch-7301
Fix fatal error on /my-account/view-order/ endpoint
2015-02-05 06:48:37 -02:00
Claudio Sanches 00916b9e29 Merge pull request #7303 from mattallan/matt/wc-api-orders-tweaks
WC_API_Orders: pass data var to new wrappable api function.
2015-02-05 06:46:34 -02:00
Bryce d36af4b721 Fix notice when invalid order id / email used
We also need to check if the $order object exists. Closes #7302
2015-02-05 13:03:13 +07:00
Bryce 888622a621 Fix fatal error on /my-account/view-order/ endpoint
When no order number is set this causes a fatal error. This check for
the $order object should be sufficient.

Closes #7301
2015-02-05 12:55:33 +07:00
matttallan 6531eb0373 pass data var to wrappable api function. 2015-02-05 15:43:05 +10:00
shivapoudel dcdf00e06f Cleanup WC_Admin_Permalink_Settings 2015-02-04 22:12:06 +05:45
shivapoudel d6b44d9369 Docblocks cleanup for WC_Post_types 2015-02-04 21:59:14 +05:45
shivapoudel fa6a99bd1d Docblocks cleanup for WC_Frontend_Scripts 2015-02-04 21:52:33 +05:45
shivapoudel cb57c7e709 Docblocks cleanup for WC_Comments 2015-02-04 21:44:42 +05:45
Mike Jolley 782aa34808 Merge pull request #7291 from bryceadams/patch-7289
Allow people to override roles when querying customers API
2015-02-04 15:20:48 +00:00
Mike Jolley 7795f69f51 Update wording to include refunds
Closes #7290
2015-02-04 15:14:02 +00:00
Mike Jolley 3154b08d3e Replace CDN select2 with local copy
Closes #7287
2015-02-04 15:00:14 +00:00
Mike Jolley 2a877eb562 Do a db query to flush spent and count which may be incorrect/outdated
Closes #7286
2015-02-04 14:22:15 +00:00
Mike Jolley 3691a8fdfb Fix thumbnail notice
Closes #7292
2015-02-04 14:04:02 +00:00
Mike Jolley 5bb4b7739f Fix IDS param Closes #7288 2015-02-04 12:44:30 +00:00
Bryce 1e9349a585 Remove $wpdb and $blog_id 2015-02-04 19:33:25 +07:00
Bryce d0e0a6be6b Change so only single role can be set in role param 2015-02-04 19:31:14 +07:00
Bryce 0f927acdd3 Allow people to override roles when querying customers API
Just fixing core
and closes #7289
2015-02-04 18:59:25 +07:00
Mike Jolley 6af80f8e60 Merge pull request #7280 from mattallan/matt/wc-api-orders-tweaks
Some more tweaks to WC API Orders
2015-02-04 11:46:33 +00:00
Mike Jolley 7b294c7cbf Prevent meta boxes being saved multiple times 2015-02-04 11:35:02 +00:00
matttallan e5c3385d3b Change private wc-api method to protected.
Mainly so that it can be used in the new Subscriptions API :)
2015-02-04 11:38:38 +10:00
matttallan f3fbbdeecc Use validate_request() to avoid duplicate code. 2015-02-04 11:38:36 +10:00
matttallan cd085f2adc add an overrideable function to a create custom post.
Especially handy for WC Subscriptions seeing as they extend the Abstract
Order Class.
2015-02-04 11:16:11 +10:00
matttallan c2520a528b changes to avoid writing duplicated code 2015-02-04 09:59:02 +10:00
Mike Jolley b2e979640c Removed unused vars 2015-02-03 16:24:01 +00:00
Mike Jolley ffd512a55e Why assign $the_product to itself? 2015-02-03 16:14:56 +00:00
Mike Jolley 037242a9a2 More docblock tweaks 2015-02-03 16:03:28 +00:00
Mike Jolley 55baf7b60a Missing properties 2015-02-03 15:55:51 +00:00
Mike Jolley 35f006d282 This can return a bool 2015-02-03 15:55:40 +00:00
Mike Jolley 9bc1b09fc5 Undefined and dead variables in checkout class 2015-02-03 15:27:40 +00:00
Mike Jolley 0300ce2768 Undefined and dead variables in cart class 2015-02-03 15:23:25 +00:00
Mike Jolley 133e85560f Dead var 2015-02-03 15:08:54 +00:00
Mike Jolley 27a7a58e8c Can return wp_error 2015-02-03 15:08:36 +00:00
Mike Jolley c01fe87d69 Cast to array 2015-02-03 15:06:15 +00:00
Mike Jolley 74abdf27c9 Cast to array 2015-02-03 15:06:08 +00:00
Mike Jolley 03cf7fa572 Fix potential notice 2015-02-03 14:57:04 +00:00
Mike Jolley 2809986fcf Dead var 2015-02-03 14:56:01 +00:00
Mike Jolley c814a9fa23 docblock corrections 2015-02-03 14:44:57 +00:00
Mike Jolley 1ef8a24ec9 These should be default_attr, not attribute 2015-02-03 14:44:57 +00:00
Mike Jolley 84fad56258 No return needed 2015-02-03 14:44:57 +00:00
Mike Jolley f032a9c7dd Missing props 2015-02-03 14:44:57 +00:00
Mike Jolley caff5c3a66 Remove dead var api_class 2015-02-03 14:44:57 +00:00
Mike Jolley 10a819bd45 Use coupon_amount in api 2015-02-03 14:44:57 +00:00
Scrutinizer Auto-Fixer de06d17c6d Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-02-03 14:32:10 +00:00
Mike Jolley a54b9c61e2 Define coupon magic props 2015-02-03 14:20:46 +00:00
Mike Jolley 81515fddbe Incorrect api docblock 2015-02-03 14:17:49 +00:00
Mike Jolley 4c3a58c957 Undefined product_ids_titles 2015-02-03 14:12:48 +00:00
Mike Jolley fc826de960 Dead vars in category report 2015-02-03 14:12:04 +00:00
Mike Jolley ff2b0db69b Undefined var customers 2015-02-03 14:10:03 +00:00
Mike Jolley 7acfc0b7f2 Dead var 2015-02-03 14:09:54 +00:00
Mike Jolley 7694f8039c Dead vars when saving variations 2015-02-03 14:08:43 +00:00
Mike Jolley f93e027b09 validate_multiselect_field had dead var 2015-02-03 14:05:09 +00:00
Mike Jolley 447ee6e7bb Docblocks 2015-02-03 14:02:38 +00:00
Mike Jolley c11d283ddc Still trying to get scruit to pick up these variables. Testing a few variations. 2015-02-03 13:49:04 +00:00
Mike Jolley f711ef32ce Missing bracket in previous commit #copypastefail 2015-02-03 13:16:41 +00:00
Mike Jolley 7c019c0c50 More docblocks; the check for WP_POST isn't needed as the second case (isset) runs regardless and is true for posts 2015-02-03 13:13:07 +00:00
Mike Jolley c038001eab Docblocks for order/product 2015-02-03 12:57:08 +00:00
Mike Jolley dc5b8d9710 @var 2015-02-03 12:28:15 +00:00
Mike Jolley 52c84f407c Fix download save after adding with ajax 2015-02-03 10:57:43 +00:00
Mike Jolley 086d0195ce Download should expire at midnight Fixes #7269 2015-02-03 10:57:43 +00:00
Mike Jolley d68dc3c6e0 Merge pull request #7272 from bryceadams/patch-7270
Fix 5.2 func_args issue
2015-02-03 10:22:07 +00:00
Mike Jolley d46158cc8a Merge pull request #7271 from michaeltieso/patch-1
Customer New Account message clarification
2015-02-03 10:06:52 +00:00
Bryce e6038486d9 Fix 5.2 func_args issue 2015-02-03 11:06:50 +07:00
Claudio Sanches 566f1ea7b6 Make possible to show log by URL
@mikejolley
2015-02-02 21:58:25 -02:00
Michael Tieso 933fe5ff57 Customer New Account message clarification
Suggestion for clarification that this goes to the customer, not admin.
2015-02-02 15:41:12 -08:00
Mike Jolley cac9035c6f Updated jquery-payment lib 2015-02-02 16:20:03 +00:00
Mike Jolley 31806595f4 Merge pull request #7268 from franticpsyx/remove_restore_hooks
[2.3] Allow extensions to add support for the remove/restore cart item functionality
2015-02-02 15:07:06 +00:00
Mike Jolley 1785d48096 Update rating text
Based on feedback from Marina and James, cc @bftrick
2015-02-02 14:53:13 +00:00
Mike Jolley 16eb1facd9 Add link to payment_status_canceled_reversal Closes #7267 2015-02-02 14:49:30 +00:00
Mike Jolley d0daa1ecee Tweak reset_admin_notices to add, not remove, notices
Fixes #7254
2015-02-02 14:40:11 +00:00
Manos Psychogyiopoulos f8567680da added remove/restore cart item hooks 2015-02-02 16:01:43 +02:00
Mike Jolley 35b09bf282 Merge pull request #7266 from woothemes/hotfix-tracker-updates
Tracker Tweaks
2015-02-02 12:48:20 +00:00
Gerhard 28385b8868 Update usage tracking notice link 2015-02-02 14:40:52 +02:00
Mike Jolley e810672430 Remove reference to deprecated property
Closes #7249
Closes #7248
2015-02-02 12:38:37 +00:00
Gerhard f5bdcecf0b Add WC version to tracking data. 2015-02-02 14:37:00 +02:00
Mike Jolley 370ccc95c3 Merge pull request #7259 from bryceadams/patch-7258
Extra currency options for API
2015-02-02 12:32:42 +00:00
Jack Gregory 836a87d6e7 Add hook to admin product advanced data 2015-02-01 15:17:07 +00:00
Bryce 0d656dfa23 fix spacing 2015-02-01 14:24:29 +07:00
Bryce a582481c13 Extra currency options for API
* `currency_position`
* `thousand_separator`
* `decimal_separator`
2015-02-01 14:22:41 +07:00
Tamara Zuk c1100fbce5 Reviews meta box: avoid undefined index notice
Avoids a notice when updating some Product Reviews Pro review types
2015-01-31 14:05:51 -05:00
msdesign21 2e76a58385 Update html-notice-template-check.php
Would also be nice to include a direct link when we mention the System Status report. Wasn't sure the best way to do that.
2015-01-30 15:34:25 -05:00
Claudio Sanches 05a011376d Updated the api docs url 2015-01-30 13:32:23 -02:00
Mike Jolley 6bc269858a tweak docblock 2015-01-30 14:30:10 +00:00
Mike Jolley a3e323f4e0 Define vars passed to addons view 2015-01-30 14:21:49 +00:00
Claudio Sanches d6023818fd Fixed the increase and decreate of coupons usage count 2015-01-30 12:14:34 -02:00
Mike Jolley d6ee40191c Split webhooks column_default into multiple columns 2015-01-30 13:57:45 +00:00
Claudio Sanches a87f852122 Make it easy to find all orders that use a coupon #6925 2015-01-30 11:47:32 -02:00
Barry Kooij e41841cee3 Round net_sales in API to 2 decimals 2015-01-30 14:33:13 +01:00
Barry Kooij 7a92094b72 Added net_sales to API reports response. 2015-01-30 14:29:10 +01:00
Barry Kooij 5435c16a3b API code standards 2015-01-30 14:28:53 +01:00
Barry Kooij 746a46778d Fixed sales data in API so it matches the WC reports page.
Fixes #7233
2015-01-30 14:28:35 +01:00
Claudio Sanches 242dbe1bc0 [API] product visible by default 2015-01-30 11:08:17 -02:00
Claudio Sanches 129f78a761 Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-30 11:01:08 -02:00
Claudio Sanches ce569c153b [API] Set default product visibility 2015-01-30 11:00:57 -02:00
Mike Jolley 9f8a7d1199 Remove datepicker icon's and use focus event 2015-01-30 12:54:33 +00:00
Claudio Sanches 1a3617c55b Improved the select fields in webhooks ui 2015-01-30 10:31:43 -02:00
Bryce 171f189f70 Update URL to link to review form
Closes #7243
2015-01-30 18:26:01 +07:00
Claudio Sanches def250e912 Display taxes labels in order totals when order has refunded, closes #7229 2015-01-29 18:50:08 -02:00
Claudio Sanches d3ac28fbb3 Check if product is published, closes #7220 2015-01-29 16:30:07 -02:00
Claudio Sanches afb19715d4 Prevented XSS in urls 2015-01-29 12:33:06 -02:00
Claudio Sanches 7890095ba0 Fixed the webhooks topic saving, closes #7236 2015-01-29 11:11:35 -02:00
Claudio Sanches 7eb3ec9a4a Admin footer text improvements #7234
@BFTrick @mikejolley
2015-01-29 10:41:39 -02:00
Claudio Sanches 85adccb416 Merge pull request #7234 from BFTrick/iss-7213
Adding Please Rate Our Plugin Footer Text
2015-01-29 10:37:28 -02:00
Claudio Sanches f7e24c0b77 Fixed more typos 2015-01-29 01:31:03 -02:00
Claudio Sanches 80b70c79f1 Fixed a typo in status report 2015-01-29 00:54:46 -02:00
Patrick Rauland e7224cdc1d using wc_get_screen_ids instead of manually typing them out. see #7213 2015-01-28 17:20:38 -07:00
Patrick Rauland ee11ac6080 adding please rate our plugin footer text. closes #7213 2015-01-28 17:13:13 -07:00
Mike Jolley c2c1e733ba Typo #7216 2015-01-28 21:03:09 +00:00
Mike Jolley 15fa903537 install() is triggered after includes, so these includes are not needed 2015-01-28 19:46:09 +00:00
Brent Shepherd 3702b77c74 Fix "Undefined variable: identity_token"
And make sure the identify token is passed to `WC_Gateway_Paypal_PDT_Handler`
2015-01-28 10:59:48 -08:00
Mike Jolley 725d5e28d8 Additional tweaks to @b2c573ed8a04a8d425a73e018a450179514cbdc7
- Load API with other includes
- Register activation hook early
- Include autoloader early

cc @claudiosmweb
2015-01-28 17:50:58 +00:00
Mike Jolley f3cc45cfa9 Grammar corrections
Closes #7216
2015-01-28 17:15:48 +00:00
Mike Jolley 8a42b1c211 Revert earlier change where PayPal IPN was on or off depending on PDT.
Because IPN is used for future events such as refunds it should not be
disabled. @claudiosmweb
2015-01-28 17:15:48 +00:00
Claudio Sanches a723cfb256 Fix the cleanup of reviews transients, closes #7214
@mikejolley

Please enter the commit message for your changes. Lines starting
2015-01-28 15:09:37 -02:00
Brent Shepherd 3a1dc68ff9 Fix typo 2015-01-27 14:42:36 -08:00
Brent Shepherd 60a161aa93 Fix session expired notice on checkout 2015-01-27 14:14:17 -08:00
Mike Jolley 59359ef9b4 Try catch block in add_to_cart to allow plugins to abort the add to cart event
cc @claudiosmweb @barrykooij
2015-01-27 16:02:57 +00:00
Mike Jolley 2e38fc9041 Removed ID check - $the_coupon->is_valid() checks for existance 2015-01-27 12:11:58 +00:00
Claudio Sanches 5f63425e0a [API] Fixed the deleted type for refunds 2015-01-26 19:39:33 -02:00
Claudio Sanches cd88ac0d72 [API] Fixed the refunds returned data 2015-01-26 19:24:54 -02:00
Claudio Sanches c995f23354 Fixed WC_Abstract_Order coupon methods
@mikejolley
2015-01-26 16:48:03 -02:00
Claudio Sanches 8ff08e70af Fixed the WC_Abstract_Order::get_user_id() return type and fixed the orders customer_id 2015-01-26 14:41:19 -02:00
Claudio Sanches 4774646a0e [API] Removed cart_discount, we have now only total_discount 2015-01-26 14:24:59 -02:00
Mike Jolley 0f5c6c4219 Add error handler/debug info in checkout ajax #7176 2015-01-26 14:24:03 +00:00
Mike Jolley 54e025939b Use get_post_status to avoid out of date order data.
Partly related to #7208
2015-01-26 13:07:29 +00:00
Mike Jolley 7e1ca1d3a3 Option to choose EITHER PDT or IPN
Closes #7208
2015-01-26 12:58:33 +00:00
Mike Jolley 0b252d03f4 Added conditional to unset session itself
Closes #7182
2015-01-26 11:42:24 +00:00
Mike Jolley 2a95402d22 Merge pull request #7201 from thenbrent/fix_wc_product__isset
[2.3] Do not set WC_Product property when calling __get()
2015-01-26 11:38:21 +00:00
Jason Conroy eae7bde755 Allow devs to filter is_checkout()
This is useful for extensions like WooCommerce One Page Checkout where the "checkout" may not be the default one used by WooCommerce core.
2015-01-24 21:35:35 +11:00
Brent Shepherd 95d87e28d6 Do not set property when calling __get()
SHA: 100b95a tweaked the `__get()` magic method in `WC_Product` to:
 * only call `get_post_meta()` once; and
 * set `$this->$key` to save the overhead of calling `__get()` every
   time that property needs to be accessed.

However, in the process, it also set an empty value (`''`) - the default
return value of `get_post_meta()` for every single value accessed on
the product object, meaning that any calls to `isset()` after attempting
to get that value would return `true`, even if `metadata_exists()` for
that property would return false (and no value is set in memory).
2015-01-23 15:01:10 -08:00
Claudio Sanches 177bcbe7d5 Removed unused code 2015-01-23 16:34:43 -02:00
Claudio Sanches 04c584ccf6 Added properties docs for abstract product class 2015-01-23 15:51:33 -02:00
Claudio Sanches 560d7d24ee Fixed the tracking opt-out 2015-01-23 15:20:09 -02:00
Mike Jolley e52611bbc3 Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	includes/class-wc-tracker.php
2015-01-23 16:38:44 +00:00
Mike Jolley 5ffaf97397 Only load tracking during cron and move notices to notices class 2015-01-23 16:36:52 +00:00
Claudio Sanches a1462ccf26 Merge pull request #7198 from splashingpixels/theme-support-notice
fixed theme-support notice closes #7196
2015-01-23 14:32:51 -02:00
Claudio Sanches 71558c449f Improved the WC_Tracker::get_theme_info() version compare 2015-01-23 14:29:10 -02:00
Claudio Sanches b1c5e19d56 Improved the system status report script 2015-01-23 14:19:06 -02:00
splashingpixels 6c61bf8c4c fixed theme-support notice closes #7196 2015-01-23 08:15:31 -08:00
Mike Jolley a9103ad01a Opt-in tracking: move link out of localisation 2015-01-23 15:37:53 +00:00
Gerhard d09df4fc0f Merge branch '6711-opt-in-tracking' 2015-01-23 17:31:01 +02:00
Gerhard 8610ca6aef Merge branch 'master' into 6711-opt-in-tracking
Conflicts:
	includes/admin/class-wc-admin-status.php
2015-01-23 17:30:11 +02:00
Gerhard afca781480 Add link to tracking doc. 2015-01-23 17:15:55 +02:00
Scrutinizer Auto-Fixer 19f660171e Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-01-23 14:37:20 +00:00
Mike Jolley 7f2a943075 Docblocks 2015-01-23 14:35:17 +00:00
Mike Jolley 8db443799b Remove void/access public docblocks 2015-01-23 14:01:00 +00:00
Mike Jolley 1163e2af0b Leave session data alone before calculation #7182 2015-01-23 13:58:38 +00:00
Claudio Sanches 9f4e3ed409 Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-23 11:49:00 -02:00
Claudio Sanches f0c63b1fee Restore all items from session, closes #7180 2015-01-23 11:48:49 -02:00
Mike Jolley 09ae877b96 defined check 2015-01-23 13:29:23 +00:00
Mike Jolley 2d707689d9 Add transient cache to webhooks Closes #7184 2015-01-23 13:28:30 +00:00
Mike Jolley b289c9446c WC_INSTALLING constant - don't create options for any gateways/shipping methods during install. 2015-01-23 13:05:38 +00:00
Claudio Sanches 517fe717dd Fixed chmod 2015-01-23 10:59:41 -02:00
Claudio Sanches da16c4ac29 Improved emogrifier emogrify() 2015-01-23 10:46:06 -02:00
Claudio Sanches ea908283a3 Make emogrifier works with PHP 5.2, closes #7179 2015-01-23 10:41:15 -02:00
Mike Jolley 586025b17e Ensure settings are installed for all sections and subsections
Fixes #7181
2015-01-23 12:36:22 +00:00
Mike Jolley 2584041700 wc_price enhancements
- Renamed some 2.3 methods for consistency
- Allow more args to be passed to wc_price to control output
- Filter wc_price args which Closes #7188
- wc_get_price_decimal_separator function
- wc_get_price_thousand_separator function
- wc_get_price_decimals function
2015-01-23 11:50:32 +00:00
Mike Jolley 186f223d92 Fix indents in #7174 2015-01-23 11:17:27 +00:00
Mike Jolley 69bf2afda9 Merge pull request #7174 from aelia-co/master
Added/altered product filters to make them work consistently
2015-01-23 11:16:27 +00:00
Mike Jolley 5695f514ed get_session_data() check to see if user has session before getting option
Closes #7185
2015-01-23 11:14:30 +00:00
Mike Jolley e8d47748ea Session handler doc blocks 2015-01-23 11:14:30 +00:00
Gerhard b4997a7da4 Update tracker notice message. 2015-01-23 12:27:19 +02:00
Gerhard efb15ab1c4 Adjust user agent string 2015-01-23 09:15:16 +02:00
Gerhard 4e8b7327ca Switch to https for encryption. 2015-01-23 09:13:07 +02:00
Claudio Sanches eb68b1d688 [API] Fixed the products reviews ID type 2015-01-22 22:04:03 -02:00
Claudio Sanches 78fe840499 [API] Fixed the properties for save downloadable files in products endpoint #5942 2015-01-22 19:20:05 -02:00
Claudio Sanches 3561c63ec1 [API] Fixed the default_attributes name and prevent errors with the old param 2015-01-22 18:49:09 -02:00
Claudio Sanches bfb5329a55 [API] Fixed the WC_API_Products::get_attribute_taxonomy_by_slug() 2015-01-22 18:38:39 -02:00
Claudio Sanches ece4f00a71 [API] Prevent "PHP Notice: Trying to get property of non-object" errors 2015-01-22 17:22:21 -02:00
Diego Zanella dbeeb6d7b5 Fixed bug in is_on_sale() method 2015-01-22 16:05:59 +00:00
Mike Jolley 6b39849be2 Functions: wc_price_decimal_separator, wc_price_thousand_separator with defaults.
Closes #7167
2015-01-22 16:05:47 +00:00
Claudio Sanches 1dafa5d3cd [API] Fixed the download limit and expiry to accept empty string as unlimited/never value 2015-01-22 11:15:52 -02:00
Diego Zanella 04bf4fecd2 Added/altered product filters to make them work consistently
* WC_Product_Variable::get_variation_regular_price() now always calls the "woocommerce_get_variation_regular_price" filter (removed early exit).
* WC_Product_Variable::get_variation_sale_price() now always calls the "woocommerce_get_variation_sale_price" filter (removed early exit).
* WC_Product_Variable::is_on_sale() now calls the "woocommerce_product_is_on_sale" filter.
* WC_Product_Grouped::is_on_sale() now calls the "woocommerce_product_is_on_sale" filter.
2015-01-22 13:02:43 +00:00
James Koster 44fd8f69cf child theme context. closes #7173 2015-01-22 10:36:15 +00:00
Claudio Sanches bdf88d2323 [API] Allow edit the comment status in products endpoint using the reviews_allowed param 2015-01-21 21:09:08 -02:00
Claudio Sanches ffbafbf652 Prevent errors in webhook log display 2015-01-21 14:25:33 -02:00
Mike Jolley e3b360c138 Tweak to process_reset_password 2015-01-21 14:59:44 +00:00
Mike Jolley 204d1ae166 2 empties as PHP < 5.5 doens't like the join 2015-01-21 14:25:59 +00:00
Mike Jolley 064f2ebe17 Fix multiple product section in coupon section. Fixes #7170 2015-01-21 14:24:39 +00:00
Mike Jolley 10dac6fedd process_lost_password/process_reset_password 2015-01-21 14:15:52 +00:00
Claudio Sanches ec6039794a [API] Fixed the datetime format for WC_API_Customers::get_customer_downloads() 2015-01-21 10:38:33 -02:00
Claudio Sanches de4d70d16a Fixed the product_id type in wc_get_customer_available_downloads() 2015-01-21 10:21:42 -02:00
Claudio Sanches 5a8ecf3947 Merge pull request #7168 from woothemes/utm-links
Storefront Notice Fixes
2015-01-21 09:10:20 -02:00
Mike Jolley 59b902b50d Refactor menu_highlight 2015-01-21 11:06:55 +00:00
Gerhard d2b6673eef Add utm params to the storefront link 2015-01-21 07:33:22 +02:00
Gerhard 07d728f851 Link to storefront and not hightwind in theme search. 2015-01-21 07:25:01 +02:00
Claudio Sanches 4e2ae38233 [API] Fixed the expiry date when create a new coupon 2015-01-20 17:57:27 -02:00
Claudio Sanches 183d6ce62c [API] Fixed create coupon attributes 2015-01-20 17:03:21 -02:00
Mike Jolley 51c6f7f670 Clean up process_registration() 2015-01-20 16:05:08 +00:00
Mike Jolley 2d8f021cc7 Optimise the admin notices class.
@claudiosmweb
2015-01-20 15:23:34 +00:00
Mike Jolley 91de767442 Product constructor setting post incorrectly 2015-01-20 14:00:30 +00:00
Mike Jolley 22f68af061 These should be arrays 2015-01-20 13:50:25 +00:00
Mike Jolley 5404006b29 MAP Url method 2015-01-20 13:31:02 +00:00
Mike Jolley de4129f9b2 WP_POST docs 2015-01-20 13:20:22 +00:00
Mike Jolley 5ab35bf212 Protected variables 2015-01-20 13:01:19 +00:00
Mike Jolley baea8f9ad4 Product class properties 2015-01-20 13:00:56 +00:00
Mike Jolley 803066d6a6 There is no content_type 2015-01-20 12:49:09 +00:00
Mike Jolley b941636068 Deprecate unused and pointless get_billing_address() get_shipping_address() methods
@claudiosmweb
2015-01-20 12:39:21 +00:00
Mike Jolley df66e0bcc8 Docblocks and code fixes in order class 2015-01-20 12:34:40 +00:00
Mike Jolley 2e624995b4 More magic properties and variable declarations in order class 2015-01-20 12:07:33 +00:00
Mike Jolley 2693e110c6 Correct @var syntax. 2015-01-20 11:35:59 +00:00
Mike Jolley ea13b90340 Define magic properties for address data 2015-01-20 11:23:17 +00:00
Mike Jolley c0bea39c95 Seeing if magic properties are recognised 2015-01-20 11:06:15 +00:00
Mike Jolley 562743e847 Another @var declaration 2015-01-20 10:52:08 +00:00
Mike Jolley 0e4026941b Move $current_tab to where used 2015-01-20 10:41:26 +00:00
Mike Jolley 0e9bb50aae Docblock experiments continued... 2015-01-20 10:29:54 +00:00
Mike Jolley bc45f7755f Testing to see if scruitinizer recognises docblock 2015-01-20 10:01:28 +00:00
Mike Jolley 8e9539b0c2 scrutinizer issues in sales-by-category report 2015-01-20 09:53:33 +00:00
Mike Jolley a494bf84de Check if already set before setting in WC_Session.
Prevents unintended dirty sessions. Fixes #6846
2015-01-20 09:46:57 +00:00
Mike Jolley 7f2a6b5e41 Fix pagination by preventing old query args from being re-added to the link
Fixes #7164
2015-01-20 09:43:56 +00:00
Mike Jolley 0b393b7e82 Add comment #7163 2015-01-20 09:43:56 +00:00
Mike Jolley 0539431dd9 Merge pull request #7165 from maxrice/tweak-avatar-comment-types
Support avatars for the `review` comment type
2015-01-20 08:45:06 +00:00
Max Rice 96bc2ff25e Support avatars for the `review` comment type 2015-01-20 00:26:33 -05:00
Brent Shepherd f9f3054c22 Restore $theorder
SHA: 74ba11c189 removed instantiation of `$theorder` global in `WC_Meta_Box_Order_Actions::output()`
as it was mistaken for unused code. However, some callbacks attached to hooks in that function may
actually rely on that global to determine if actions should be displayed for certain orders.
2015-01-19 17:12:26 -08:00
Claudio Sanches ab3553a6fd Select2 translatable, closes #7159 2015-01-19 17:31:22 -02:00
Claudio Sanches 18b55a429e [API] Added price_num_decimals to the index, closes #7149 2015-01-19 16:09:44 -02:00
splashingpixels 0b53ceef7a sanitize user inputs 2015-01-19 09:07:57 -08:00
splashingpixels 3c625f1ad4 support for multiple shortcode on same page when using variation skus 2015-01-19 08:54:28 -08:00
Mike Jolley f75a5d3a83 Merge pull request #7153 from helgatheviking/fix/php-notice-on-parse-query
changes tax_query to false for downloadable and virtual product filters
2015-01-19 14:51:23 +00:00
Mike Jolley 3716329b16 Prevent error when user does not exist 2015-01-19 14:50:06 +00:00
Mike Jolley 0d64e3854d Add tooltips for manual and auto refunds Closes #7117 2015-01-19 14:50:06 +00:00
Mike Jolley a9301323b5 Merge pull request #7113 from grey-rsi/master
add filters in admin reports
2015-01-19 14:05:58 +00:00
Kathy Darling 631099d6b2 changes tax_query to false for downloadable and virtual product filters. fixes #7152 2015-01-19 14:39:59 +01:00
Claudio Sanches 505501912f Fixed "PHP Notice: Undefined variable: metabox_class" error for non-taxonomy attributes 2015-01-19 11:38:47 -02:00
Claudio Sanches 07e6996bf1 [API] Fixed the default attributes saving 2015-01-19 11:33:33 -02:00
Mike Jolley 33e046a4d0 Use WC_Cache_Helper to expire shipping cache on setting save, and transient clear
Closes #7151
2015-01-19 13:19:44 +00:00
Claudio Sanches 847720fe68 [API] Fixed attributes save for variations in products endpoint 2015-01-19 11:11:30 -02:00
Claudio Sanches b6925d49ef [API] Fixed errors when the description and short_description is empty in products endpoint 2015-01-19 10:52:44 -02:00
Mike Jolley 20a2b2d079 API: Product Prices should use store precision settings.
Fixes #7149
2015-01-19 11:35:12 +00:00
Mike Jolley 3590bfb198 Standard tax class is empty. Fixes #7142 2015-01-19 11:30:30 +00:00
Mike Jolley ee8b3f22c3 Return WP_USER from check_password_reset_key
Closes #7134
2015-01-19 10:53:33 +00:00
Mike Jolley 53f32416c5 Ensure product exists before is_visible check
Closes #7146
2015-01-19 10:43:43 +00:00
Mike Jolley bbfe9f273b Merge pull request #7148 from SiR-DanieL/patch-3
Clearer coupon option description
2015-01-19 10:05:41 +00:00
Nicola Mustone 47b0c4cb97 clearer coupon option description 2015-01-19 09:18:44 +01:00
Max Rice 2d974987dc Check strings using hash_equals
time-constant string comparison to prevent timing attacks
2015-01-19 00:34:09 -05:00
Max Rice 512d77fb4c code standards 2015-01-19 00:33:38 -05:00
Max Rice 1f62a53e0e Add hash_equals() function 2015-01-19 00:11:41 -05:00
Claudio Sanches b896c5063f Stop erros when the user does not exist in wc_customer_bought_product() function, closes #7145 2015-01-19 00:25:32 -02:00
shivapoudel 16047b7808 Added Nepal(NP) country locale used by the checkout 2015-01-19 00:45:19 +05:45
shivapoudel 5ce1e1e8a6 Refactor WC_Countries Class 2015-01-19 00:44:17 +05:45
splashingpixels 017e93241e allow product_page shortcode to accept variation skus and pre-selected on page load ref #5866 2015-01-16 21:01:05 -08:00
Mike Jolley 36841589cf Merge pull request #7123 from splashingpixels/variation-price-issue
correctly display FREE if all prices are zero ref #6929
2015-01-16 16:14:02 +00:00
splashingpixels eee5d16844 changed comparison type to non strict in case a string is passed 2015-01-16 06:52:49 -08:00
Claudio Sanches bd468b7ac1 Fixed a typo 2015-01-16 10:47:29 -02:00
Claudio Sanches 7062bbcd1a Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-16 10:32:53 -02:00
Claudio Sanches f39c76beaa Created the wc_format_content() function, closes #7126 2015-01-16 10:32:41 -02:00
splashingpixels 187f6729e9 correctly display FREE if all prices are zero ref #6929 2015-01-15 20:19:33 -08:00
Brent Shepherd ed0593fc4a Set variable product virtual/downloadable property
Based on whether all children are virtual/downloadable.

Fixes #7072.
2015-01-15 17:06:09 -08:00
Claudio Sanches a82aa2bd13 Fixed refund amount when product dont have taxes 2015-01-15 16:57:33 -02:00
Claudio Sanches b3d6f6358e Fixed the selected attributes in product variations panel, closes #7115 2015-01-15 16:01:55 -02:00
Mike Jolley 5612d54058 Refactor attribute save code 2015-01-15 16:32:13 +00:00
Mike Jolley 5b7d03271e Pass reference to extract 2015-01-15 16:32:13 +00:00
Mike Jolley d37e6d424a Set $loop = 0; 2015-01-15 16:32:13 +00:00
Mike Jolley a52f94fb42 $order_taxes check 2015-01-15 15:19:19 +00:00
Mike Jolley fef41c149c @uses WP_POST 2015-01-15 15:03:12 +00:00
Mike Jolley dc902ecfed form_fields docblock 2015-01-15 15:03:12 +00:00
Claudio Sanches eda9eb07d4 Fixed quick/bulk edit product weight placeholders 2015-01-15 11:47:20 -02:00
Sergey cb3ede640d remove do_action 2015-01-15 15:13:12 +02:00
Claudio Sanches 26ea24ae4c Removed useless data-tip in webhooks save button 2015-01-15 09:44:29 -02:00
Claudio Sanches eeea3f0146 Fixed a typo in webhooks table list 2015-01-15 09:35:13 -02:00
Claudio Sanches 6ed21bb0cc Removed ilegal brackets from context/msgctxt 2015-01-15 09:22:32 -02:00
Mike Jolley c8699f6f76 Don't fire deprecated notice during ajax events
Closes #7110
2015-01-15 10:47:19 +00:00
matttallan 5265e432b3 Change wc-api-order private methods to protected. 2015-01-15 11:28:07 +10:00
Claudio Sanches b174d7c179 Stopped error when users use the woocommerce_enqueue_styles filter in the wrong way #7104 2015-01-14 12:32:34 -02:00
Claudio Sanches 8928029ecb Updated the docblocks in class-wc-cart.php 2015-01-14 10:40:35 -02:00
Claudio Sanches 0b4074cf22 Merge pull request #7103 from woothemes/cart-undo
Cart undo
2015-01-14 10:38:31 -02:00
Mike Jolley 298ddb19ad Save removed items to session 2015-01-14 12:36:03 +00:00
Claudio Sanches 11150a54c5 Fixed a typo 2015-01-14 10:24:01 -02:00
Claudio Sanches b232e99034 Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-14 10:17:22 -02:00
Mike Jolley e1c54687ac Minor issues with variables 2015-01-14 12:17:19 +00:00
Claudio Sanches 6b8ce0c3fd Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-14 10:17:10 -02:00
Mike Jolley 206a650488 Tidy variation output 2015-01-14 12:17:09 +00:00
Claudio Sanches ebf5763fd6 Added message about WooCommerce Colors plugin, closes #7099 2015-01-14 10:17:03 -02:00
Mike Jolley 8d8e57cbf5 Use @var to define vars passed in 2015-01-14 11:46:03 +00:00
Mike Jolley 32f2a44091 define @global 2015-01-14 11:32:00 +00:00
Mike Jolley d70912c891 Define: $net_order_amounts 2015-01-14 11:28:00 +00:00
Mike Jolley fcebc3b781 Missing Brackets in cart class 2015-01-14 11:16:21 +00:00
Claudio Sanches 9c52a70597 Fixed webhooks status description 2015-01-13 22:09:54 -02:00
Claudio Sanches 8e417f7c0f Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-13 17:55:55 -02:00
Claudio Sanches b55ecea6ba Used wp_unslash() instead of stripslashes_deep()
The WordPress documentation recommends:

"This should be used to remove slashes from data passed to core API that expects data to be unslashed. Use this instead of stripslashes_deep()."
2015-01-13 17:54:10 -02:00
MindyPostoff 72118fb28e Update class-wc-email-customer-completed-order.php 2015-01-13 13:44:35 -05:00
Claudio Sanches 3ddcc68a19 includes/admin/meta-boxes/class-wc-meta-box-webhook-data.php
Removed old webhook file
2015-01-13 16:32:54 -02:00
Claudio Sanches 64f1f7f919 Fixed textdomains 2015-01-13 15:39:26 -02:00
Mike Jolley 04cb8c90c8 contributors 2015-01-13 16:16:01 +00:00
Mike Jolley 45b4364d90 Welcome page update Closes #7089 2015-01-13 16:12:54 +00:00
Mike Jolley 147258d5b8 Fix cart coupon on-sale checks for variations.
Closes #7078
2015-01-13 16:12:54 +00:00
Claudio Sanches 46769e89e2 Fixed doc comments for products api class 2015-01-13 13:44:30 -02:00
Claudio Sanches 22da603567 Simplify commerce hosted payments feature 2015-01-13 13:40:43 -02:00
Claudio Sanches ecf7bd9f9a [API] Show and use slug for attributes in products endpoint, closes #6537 2015-01-13 13:24:28 -02:00
Claudio Sanches 2d768f9553 Stop "Undefined variable: thepostid" error when add a new attribute 2015-01-13 13:09:43 -02:00
Sergey b3e9b1e6d8 add do_action in wc_price function and filters in admin reports 2015-01-13 15:34:48 +02:00
Mike Jolley 4785684b92 Prices include tax require taxes enabled. 2015-01-13 12:54:31 +00:00
Mike Jolley 03043a7c02 Expiry date along with download details
Closes #7096
2015-01-13 12:29:37 +00:00
Mike Jolley 550e569a29 Tweak placement and styling of view link. #7065 2015-01-13 12:27:07 +00:00
Mike Jolley 9b8c23e2bd Merge pull request #7065 from pagelines/master
Link to find all customers orders from order page.
2015-01-13 12:16:51 +00:00
Bryce f3328ac601 Shows VN postcode field and moves before city
Closes #7094
2015-01-13 10:18:48 +07:00
Claudio Sanches 20470db763 Add select2 to State/Country user meta fields in admin profile #6359 2015-01-12 17:15:37 -02:00
Claudio Sanches 3cddfb44e9 Improved the woocommerce_api_query_args filter #7081 2015-01-12 16:46:30 -02:00
Claudio Sanches 695b04be61 Fixed conflits 2015-01-12 16:02:46 -02:00
Claudio Sanches 8e28c17c66 Merge pull request #7091 from woothemes/chosen-to-select2
Chosen to select2
2015-01-12 15:47:31 -02:00
Claudio Sanches 9a6dc0bf41 Added select2 for all settings fields 2015-01-12 15:45:47 -02:00
Mike Jolley 4769d27415 Added missing global $wpdb; 2015-01-12 17:18:17 +00:00
Claudio Sanches 017831f1c6 Fixed the backbone modal 2015-01-12 15:11:01 -02:00
Mike Jolley 2c32f6cdd0 Add functions to get money spent/order count for customers and fix in API Closes #7083 2015-01-12 17:09:46 +00:00
Mike Jolley 643892bd33 modify_user_query use 24 hour date format.
Closes #7082
2015-01-12 17:09:46 +00:00
Mike Jolley 2a5fdb0eac Merge pull request #7086 from ChromeOrange/master
Update abstract-wc-order.php
2015-01-12 16:46:08 +00:00
Mike Jolley 8110a8376b Upsells and cross sells select2 2015-01-12 16:39:49 +00:00
Mike Jolley 50c6e1e4a0 select2 settings 2015-01-12 16:29:01 +00:00
Mike Jolley 0fdd24c526 Select2 frontend 2015-01-12 16:16:13 +00:00
Claudio Sanches 4be3c9831e Added the woocommerce_api_query_args filter, closes #7081 2015-01-12 13:59:27 -02:00
Claudio Sanches 60b23e6f6f Merge branch 'chosen-to-select2' of github.com:woothemes/woocommerce into chosen-to-select2 2015-01-12 13:48:43 -02:00
Mike Jolley 9852d9c6ec Order data JS select2 + refactor 2015-01-12 15:43:13 +00:00
Claudio Sanches 0376da2ea9 Added hosted payments support for pre-orders and subscriptions 2015-01-12 11:43:27 -02:00
Mike Jolley 2e82cbb311 Customer ajax searches 2015-01-12 13:04:19 +00:00
Andrew Benbow fa8aeb605c Update abstract-wc-order.php 2015-01-12 12:34:53 +00:00
Mike Jolley 1fa26f1f6e Product searches select2 2015-01-12 11:56:44 +00:00
Claudio Sanches b7eafa1c49 Added the new redirect-url param in the simplify commerce button 2015-01-12 09:53:19 -02:00
Nicola Mustone f00cd875f1 Typo 2015-01-12 12:31:42 +01:00
Claudio Sanches f3e5c03b38 Repositioned the "move to trash" and "save" buttons 2015-01-12 09:27:09 -02:00
Claudio Sanches 56c49daea8 Added empty trash action 2015-01-09 23:03:22 -02:00
Claudio Sanches 052380e191 Added webhooks search field 2015-01-09 22:41:33 -02:00
Claudio Sanches 9fa5ad756e Fixed a typo 2015-01-09 22:25:04 -02:00
Claudio Sanches 572d451aa6 Created webhooks bulk actions 2015-01-09 22:08:45 -02:00
Claudio Sanches c71869cd6e Added method to create webhooks on settings page 2015-01-09 16:21:19 -02:00
Claudio Sanches 2626275782 Edit and deleted webhooks 2015-01-09 15:42:01 -02:00
Mike Jolley 4b7f97c1de Attributes 2015-01-09 16:53:47 +00:00
Mike Jolley 5f5d8076d4 sales by cat select2 2015-01-09 16:43:35 +00:00
Mike Jolley f18b2c6c93 Added and enqueued select2 to admin 2015-01-09 16:39:10 +00:00
pilyounghur b97453b4a1 wc API - enable html tags for description
use API , enable html tags description and short_description
before : strip all tags , change : user selectable html tags.
2015-01-09 21:12:47 +09:00
Simon 42c570114c Add some spaces. 2015-01-08 18:55:26 +00:00
Claudio Sanches ba538ec36c Disabled the shop_webhook show_ui option 2015-01-08 16:38:30 -02:00
Claudio Sanches 03193b867b Creted new webhooks edit interface 2015-01-08 16:34:30 -02:00
Simon 4003acd1e6 Link to find all customers orders from order page.
Moved to master branch as instructed.
Added check to only display if valid customer.
Removed pointless ?><?php
2015-01-08 16:57:40 +00:00
Mike Jolley 64901d82e5 Clear order transients when trashing posts. Closes #7052 2015-01-08 15:48:01 +00:00
justinstern 072e722406 Support gateway objects in the $load_gateways array
Rather than requiring $load_gateways to be the string class names of the
payment gateways to load, support client code returning the actual
gateway instance from the 'woocommerce_payment_gateways' filter.  This
affords much more fine grained control over how, when, and how often, a
payment gateway is instantiated
2015-01-07 21:11:24 -05:00
Claudio Sanches 3228fc0e67 Initial remove and restore cart methods 2015-01-07 16:52:17 -02:00
James Koster 9cf1a8e7e8 is_sold_individually() tweak. closes #7041 2015-01-07 10:03:49 +00:00
Hector Tolmo 6f4f289c7e Update class-wc-countries.php
State = Region validate Chile line 667 and postcode null
2015-01-06 22:24:23 -03:00
Claudio Sanches a4dcc9261e Hide the old webhooks menu 2015-01-06 22:08:24 -02:00
Claudio Sanches baca07f9d2 Added webhooks table list views 2015-01-06 22:02:33 -02:00
Claudio Sanches 22ac725ec1 Removed not useful global vars 2015-01-06 17:39:34 -02:00
Claudio Sanches 842d26bc24 Removed old webhook post type actions 2015-01-06 17:29:49 -02:00
Claudio Sanches 3c038e613f Created initial webhooks table list in settings page 2015-01-06 17:24:32 -02:00
Mike Jolley 054d499636 Made checkout JS more modular 2015-01-06 17:49:22 +00:00
Mike Jolley d663a7a72e If using multisite, check user resetting password belongs to the current site
Closes #6725
2015-01-06 14:08:43 +00:00
Mike Jolley 06ab96f39e Added net sales to sales by date report
Closes #7039
2015-01-06 13:27:44 +00:00
Mike Jolley 00238bc25b has_notice should return bool 2015-01-06 11:29:40 +00:00
Mike Jolley 744b667ff5 Warnings if notice functions called too early Closes #7050 2015-01-06 11:11:13 +00:00
Mike Jolley fb8f5fc750 Add notice when calling get_cart() before wp_loaded with fallback
#6873
2015-01-06 11:11:13 +00:00
Claudio Sanches 60694ff30d Merge pull request #7051 from corsonr/report_status_docs_link
Add link to docs in status report
2015-01-06 09:08:47 -02:00
Mike Jolley 2fe06c6cb1 Merge branch 'upgrade-routine'
Closes #6918
2015-01-06 10:54:07 +00:00
Remi Corson ecfb86a3f2 added link to docs in status report 2015-01-06 11:39:16 +01:00
Claudio Sanches 4f3326fe86 [API] Refactored the products endpoint to use the WC_API_Exception class #6138 2015-01-05 17:26:24 -02:00
Claudio Sanches d71e135c27 [API] Refactored the webhooks endpoint to use the WC_API_Exception class #6138 2015-01-05 16:52:52 -02:00
Claudio Sanches e14a5b0624 [API] Refactored the orders endpoint to use the WC_API_Exception class #6138 2015-01-05 16:40:38 -02:00
Claudio Sanches a74efe61a9 [API] dont count coupons if the user dont have permissions 2015-01-05 16:40:27 -02:00
Claudio Sanches 678f5e67a0 [API] Refactored the customers endpoint to use the WC_API_Exception class #6138 2015-01-05 16:06:52 -02:00
Claudio Sanches 466158a0b9 Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-05 15:42:37 -02:00
Claudio Sanches a96815ced9 [API] Refactored the coupons endpoint to use the WC_API_Exception class #6138 2015-01-05 15:42:25 -02:00
Claudio Sanches d880ee390b Fixed some coding standards in orders api class 2015-01-05 15:41:14 -02:00
Mike Jolley 6e5ec55374 Option for get_european_union_countries() to return eu_vat countries 2015-01-05 17:29:01 +00:00
Mike Jolley 5c86e962e8 Hide restock checkbox until qty is input Closes #6937 2015-01-05 17:19:18 +00:00
Claudio Sanches 010e8ff763 Fixed the breadcrumbs class to works with attachments 2015-01-05 14:19:00 -02:00
Mike Jolley ca29deead9 Error codes for create order function
Closes #6952
2015-01-05 15:45:11 +00:00
Claudio Sanches d1f9cbfcf2 Merge pull request #6954 from SiR-DanieL/patch-2
Introduced woocommerce_get_product_attributes filter
2015-01-05 13:39:25 -02:00
Claudio Sanches 85d2e60767 Merge pull request #7042 from krautnerds/rest-fix-pagination-headers-customers
Rest 1.0/2.0 Customers - Fix missing output of pagination headers
2015-01-05 13:27:38 -02:00
Mike Jolley d1fd2b3612 Fix zero-rated tax display and ensure tax_id is not empty when saving taxes
Closes #7040
2015-01-05 15:13:49 +00:00
Mike Jolley 1c696a10d3 Dev - Moved WC_Cart::get_cart_from_session() to a later hook (was init, now wp_loaded).
Closes #6873
2015-01-05 14:43:04 +00:00
Claudio Sanches 116e1130ae [API] Fixed "Undefined index: limit" in customers endpoint 2015-01-05 12:36:50 -02:00
Claudio Sanches 1206e72504 Merge pull request #7012 from bhubbard/master
Added support for several Jetpack Features
2015-01-05 12:17:30 -02:00
Mike Jolley cab9e14fcd Use number format instead of round in get_item_subtotal()
Closes #6913
2015-01-05 11:42:10 +00:00
Mike Jolley 9299f3e0b2 Check remote_addr is set 2015-01-05 10:57:21 +00:00
Mike Jolley f847b92a0f Merge branch 'wc-geolocation' 2015-01-05 10:18:25 +00:00
Claudio Sanches fc967d38f9 Merge pull request #7037 from maxrice/fix-issue-6910
Fix updating order paid status via REST API
2015-01-04 11:33:43 -02:00
Florian Ludwig 436570091b REST 1.0: Fix pagination headers for Customers 2015-01-04 02:07:11 +01:00
Florian Ludwig 9bbc9789ce REST: Fix pagination headers for Customers response 2015-01-04 02:05:23 +01:00
Mike Jolley b26ba4b9e4 Made system status export useful for English support people
Closes #7020
2015-01-03 17:45:02 +00:00
Mike Jolley 395107fc72 MC (monaco) and IM (isle of man, part of UK) also use VAT.
Closes #7013
2015-01-03 16:48:29 +00:00
Max Rice 641a3aae42 [#6910] Fix strict check for boolean 2015-01-02 14:30:47 -05:00
Claudio Sanches e53a6f5e57 Fixed variation fields when use "Link all variations" button 2015-01-02 15:07:31 -02:00
shivapoudel 39bf306f1a Fix add tax backbone modal backdrop issue 2015-01-02 20:00:21 +05:45
shivapoudel eab3a23b14 Fix missing icon for add tax backbone modal 2015-01-02 19:56:59 +05:45
Claudio Sanches 794621e3ba Improved the close button in backbone modal #7016 2015-01-02 11:58:57 -02:00
Claudio Sanches 157dde6695 Improved the description of count option of product categories widget 2015-01-02 11:08:38 -02:00
Claudio Sanches b4cc3cfcd5 Improved the widget title 2015-01-02 11:05:06 -02:00
Claudio Sanches 37ea5ee65a Fixed email styles for multipart emails, closes #7033 2015-01-02 10:55:47 -02:00
Claudio Sanches 0accdf6f10 Set order status to refunded when completely refunded, closes #6981 2015-01-02 10:43:47 -02:00
splashingpixels 0923d31de2 use proper label tags for generate api key setting field 2015-01-01 13:33:08 -08:00
Mike Jolley 5ee068071f Support HTTP_CF_IPCOUNTRY 2015-01-01 12:43:49 +00:00
Mike Jolley 932263cf0a Check for geoiprecord class 2015-01-01 12:41:04 +00:00
Mike Jolley 7ef8f4d156 Invalidate unknown product transients Closes #6815 2014-12-30 15:27:08 +00:00
Mike Jolley 4a57cd3f7d 'Free' for variable products without a range of prices. Closes #6929 2014-12-30 15:13:34 +00:00
Mike Jolley 3698eab0ae Made dashboard sales report match monthly sales report Closes #6871 2014-12-30 15:08:06 +00:00
Mike Jolley bee8b1fbfa Merge pull request #6985 from theportlandcompany/master
Using post_status of 'any' causes a conflict with the WP Invoice Plugin ...
2014-12-30 14:48:28 +00:00
Mike Jolley d09353c689 Merge pull request #7021 from bryceadams/patch-7019
Add filter 'woocommerce_grouped_children_args'
2014-12-30 14:47:39 +00:00
Mike Jolley caac9768a7 Added more fallbacks for API geoIP 2014-12-30 11:11:17 +00:00
Bryce d8c49cb988 Fix brackets 2014-12-29 21:48:26 +07:00
Bryce ca5416217c Add check for my account page too 2014-12-29 21:46:03 +07:00
Bryce ebf3ab5cc6 New `is_view_order_page` conditional function
Returns true when on the `my-account/view-order/` page
2014-12-29 15:31:18 +07:00
Bryce 7670a08ff4 Add filter 'woocommerce_grouped_children_args'
Allows people to filter the grouped product children, like changing the
order that the children products are displayed in, etc.
2014-12-29 13:13:26 +07:00
James Koster 773c87d254 Merge pull request #7006 from corsonr/welcome_screen_fix
Fix cart icon alignment on welcome page
2014-12-27 12:42:01 +00:00
Brandon Hubbard 018e56e957 Fixed Comment 2014-12-26 11:43:12 -08:00
Brandon Hubbard 79ba6bc31e Added support for several Jetpack Features
* Added support for publicize and markdown editor for products
* Added support for product results in Omniseaarch
https://www.evernote.com/shard/s1/sh/f47adc63-2aa5-4f5e-9f0d-71a34dd145f
6/03b99171ff6e6fddabcea387f2db02f6
2014-12-26 09:44:38 -08:00
Mike Jolley 896ccb1b88 Force taxes to display/calculate for customer location 2014-12-23 22:07:27 +00:00
Mike Jolley 4e8e90a8de Support dev environment 2014-12-23 22:03:10 +00:00
Mike Jolley f820905327 Handle geolocation option 2014-12-23 18:50:05 +00:00
Mike Jolley bba6ca2007 Maxmind Geolocation library 2014-12-23 18:49:55 +00:00
Mike Jolley ef3ad7d99f Setup cron jobs 2014-12-23 18:49:43 +00:00
Mike Jolley f561aa4224 Geolocation class 2014-12-23 18:49:37 +00:00
Mike Jolley 6800ee0ec3 Base vs default 2014-12-23 17:34:05 +00:00
Mike Jolley 34413a1dd7 Core methods for getting locations 2014-12-23 17:33:51 +00:00
Mike Jolley d908093eac Made function names make more sense (customer location vs base locations) 2014-12-23 17:33:33 +00:00
Mike Jolley 5b31745061 Add geolocation option for default address 2014-12-23 17:33:10 +00:00
Claudio Sanches 5ce07351a1 Merge branch 'master' of github.com:woothemes/woocommerce 2014-12-23 14:12:22 -02:00
Claudio Sanches 28d960d5bb Added variable_pricing class/wrap for variable price fields, closes #7008 2014-12-23 14:12:12 -02:00
Remi Corson 3f882480e8 fix cart icon alignment 2014-12-23 16:04:46 +01:00
Nicola Mustone d6bf1e81f9 added variation ID in order stock notes 2014-12-23 12:01:11 +01:00
boohoogal d3cdc5d795 Fixed parse error #6998 2014-12-22 23:40:27 +00:00
Mike Jolley 22cc1fb0c7 Add attributes with ajax and don't load all attributes at once.
Significantly improves performance with many attributes in admin.
Closes #6852 cc @claudiosmweb
2014-12-22 14:16:15 +00:00
Mike Jolley 8df8c9b482 Make 'public', and rewrite, optional for attributes
#6852
2014-12-22 14:16:15 +00:00
Claudio Sanches e7f0233c8e Merge pull request #6992 from bryceadams/patch-6991
Check we're on the correct post type before editing columns
2014-12-22 00:01:39 -02:00
Mike Jolley e6fd9f2288 Merge pull request #6990 from boohoogal/page_breadcrumbs_fix
Fix for breadcrumbs for pages #6989
2014-12-22 00:55:52 +00:00
Bryce 75c40366bc destroy the global! 2014-12-21 22:43:38 +07:00
Claudio Sanches 389a829474 Fixed meta_query for shortcodes, closes #6960 2014-12-21 13:31:27 -02:00
Bryce 41de9936fe Check we're on the correct post type before editing columns
Closes #6991
2014-12-21 12:48:30 +07:00
boohoogal efee85557c Fix for breadcrumbs for pages #6989 2014-12-21 05:21:19 +00:00
Mike Jolley a79bedc945 Merge pull request #6947 from juangadiel/master
Update class-wc-checkout.php fixes issue #6940
2014-12-21 00:36:04 +00:00
Juan Gadiel Rosado Colon de1466779b Fixes issue #6940
Check if the cart needs shipping before updating the user shipping address. This fixes the issue (#6940) of the shipping address being updated with the user billing address when purchasing a virtual product.
2014-12-20 20:29:09 -04:00
Mike Jolley bb6b7c5489 Merge pull request #6967 from BFTrick/issue-6965
Adding Email Styles Back to Email Preview. Fixes #6965
2014-12-21 00:20:46 +00:00
Spencer Hill d8c8d37fd6 Using post_status of 'any' causes a conflict with the WP Invoice Plugin by Usability Dynamics resulting in the Select Box for Variable Subscriptions - when the WooCommerce Variable Subscriptons Plugin is installed and activated - not functioning and returning an error to the user on the front end. Since it's filtering out the Trash status, and others, anyway when being displayed on the front end we found that setting the post_status to publish resolved the issue and doesn't appear to have adverse affects elsewhere. 2014-12-19 13:21:15 -08:00
Rtransat d53210dfbf Fix label "for" attribute for products_categories 2014-12-19 17:15:24 +01:00
Claudio Sanches 7e780a64b1 Introduces the woocommerce_restock_refunded_item and woocommerce_order_refunded actions, closes #6922 2014-12-19 10:29:47 -02:00
tc33 fb51984a6b Fixes #6979 by fetching attribute slugs instead of names. 2014-12-18 20:09:07 +00:00
Claudio Sanches d821dbf88e [API] Fixed the individual_use, enable_free_shipping and exclude_sale_items params for coupons endpoint 2014-12-18 15:01:54 -02:00
Claudio Sanches c32b40ac10 Changed the position of the webhook menu 2014-12-17 16:33:51 -02:00
Claudio Sanches 690b04b29a Improved the webhook meta boxes 2014-12-17 16:20:37 -02:00
Claudio Sanches d84e1bae10 Merge pull request #6970 from woothemes/webhooks-ui
Webhooks ui, closes #6912
2014-12-17 16:08:43 -02:00
Claudio Sanches 67f90fbb87 Created webhook logs meta box 2014-12-17 15:50:19 -02:00
Claudio Sanches 9b9243fb92 Validated webhook delivery_url and topic 2014-12-17 10:45:20 -02:00
Claudio Sanches 6ccf391168 Improved the webhook data class and send a webhook ping when create a new 2014-12-17 10:42:39 -02:00
Claudio Sanches 5b318b1d2a Added the wc_is_webhook_valid_topic() and wc_is_valid_url() conditional functions 2014-12-17 10:16:14 -02:00
Claudio Sanches d1bed7bef9 Changed the shop_webhook postupdated messages 2014-12-17 09:45:59 -02:00
Claudio Sanches 429c91708b Improved the WC_Meta_Box_Webhook_Data:save() method 2014-12-17 09:29:43 -02:00
Claudio Sanches b8e842d2ee Fixed WC_Webhook::enqueue() [2] 2014-12-17 01:48:29 -02:00
Claudio Sanches e0ad955afe Fixed WC_Webhook::enqueue() 2014-12-17 01:44:35 -02:00
Claudio Sanches 509147b105 Created webhook actions meta box 2014-12-16 20:18:06 -02:00
Claudio Sanches 4c47def638 Stop hook webhooks when is not configured the hooks and delivery URL 2014-12-16 20:16:38 -02:00
Claudio Sanches 9f83541d9f Added webhook meta box js 2014-12-16 19:07:48 -02:00
Claudio Sanches 1fae690e68 Added methods to save and display the webhook data meta box 2014-12-16 19:07:28 -02:00
Claudio Sanches 802ebdee38 Added URL data_type for woocommerce_wp_text_input() 2014-12-16 19:06:47 -02:00
Claudio Sanches 10b2b6bccc Removed support for title in webhooks 2014-12-16 19:05:53 -02:00
Claudio Sanches 4d3673c4c2 Created webhook data meta box class 2014-12-16 19:05:03 -02:00
Claudio Sanches b247997bd2 Created method to get the webhook statuses 2014-12-16 18:54:48 -02:00
Patrick Rauland d8ff34710d adding email styles back to email preview. closes #6965 2014-12-16 11:32:54 -07:00
Claudio Sanches 8180de7fec Created the WC_Webhook::get_i18n_status() method 2014-12-16 15:29:37 -02:00
Claudio Sanches 481aee3969 Fixed dead variable in my account shortcode class 2014-12-16 10:10:25 -02:00
Claudio Sanches 5a14f0f3fe Merge pull request #6963 from bryceadams/patch-6962
Removal of old PHP class var use
2014-12-16 09:49:14 -02:00
Bryce 19d06c3d5b remove var keyword in WC_Product_Cat_List_Walker 2014-12-16 18:45:02 +07:00
Bryce ee8125d97c remove var keyword in WC_Product_Cat_Dropdown_Walker 2014-12-16 18:43:58 +07:00
James Koster 0c95d76c45 Storefront banner on add-ons. closes #6923 2014-12-16 11:43:26 +00:00
Bryce a5d51d040e remove var keyword in WC_Shipping_International_Delivery 2014-12-16 18:43:05 +07:00
Bryce 96ba418d5c remove var keyword in WC_Email_Customer_Reset_Password 2014-12-16 18:40:51 +07:00
Bryce 6af72ecb3d remove var keyword in some email classes 2014-12-16 18:40:21 +07:00
Bryce f428da3a01 remove var keyword in WC_Email_Customer_Invoice 2014-12-16 18:39:23 +07:00
Bryce 1c31af94f5 remove var keyword in WC_Shipping_Method 2014-12-16 18:38:58 +07:00
Bryce e2443c9d4c remove var keyword in WC_Shipping 2014-12-16 18:37:58 +07:00
Bryce 40b0d8d003 remove var keyword in WC_Integrations 2014-12-16 18:36:26 +07:00
Claudio Sanches 4150b03ea0 Fixed the stock status in quick and bulk edit 2014-12-15 20:03:50 -02:00
Claudio Sanches 1198a1dba2 Improved the Webhooks columns/table list 2014-12-15 18:49:18 -02:00
Claudio Sanches 2aeee0169a Display Webhooks menu when the WC API is activated 2014-12-15 17:28:58 -02:00
Nicola Mustone 7cec3c9f0b introduced woocommerce_get_product_attributes filter 2014-12-15 14:40:23 +01:00
thenbrent e1560bc9c6 Remove mention of after tax discounts in comments
Related to #6830
2014-12-15 15:27:10 +10:00
thenbrent a94cf06e4b Deprecated notice for WC_Cart->discount_total
Related to #6830
2014-12-15 15:25:53 +10:00
juangadiel ca1b9c334c Update class-wc-checkout.php fixes issue #6940
Check if the cart needs shipping before updating the user shipping address. This fixes the issue (#6940) of the shipping address being updated with the user billing address when purchasing a virtual product.
2014-12-12 17:18:16 -04:00
Mike Jolley 8434463694 Tweak skip button to make it less clickable 2014-12-12 17:03:11 +00:00
Mike Jolley c929b35f4f $discount_total deprecated to prevent errors. 2014-12-12 16:39:24 +00:00
Claudio Sanches c0e01e88dc Fixed the force http option on customizer screen, closes #6809 2014-12-12 11:15:38 -02:00
Claudio Sanches 24cfef046e Fixed the email settings save method 2014-12-12 10:48:55 -02:00
Claudio Sanches 32e30ed877 Improved the purchased items on order screen 2014-12-12 10:03:11 -02:00
Claudio Sanches 264a347fb5 Registre support for twenty fifteen 2014-12-12 09:49:54 -02:00
Claudio Sanches 7cf69a337b Updated the hosted payments option description on simplify commerce gateway 2014-12-12 01:56:28 -02:00
Claudio Sanches 48bf608120 [API] Improved the params in orders api actions 2014-12-12 01:22:42 -02:00
Mike Jolley 100b95ae4f Tweak the get magic method in product class 2014-12-11 14:54:56 +00:00
Claudio Sanches 051d3078ad [API] Prevented errors with deleted products in the orders endpoint, closes #6813 2014-12-11 10:54:07 -02:00
Barry Kooij 3f0a8be3d2 Merge branch 'master' into enhancement/checkout-order-review-error-handling 2014-12-11 12:10:53 +01:00
Mike Jolley 65dbab486c [2.2] Don't force tax_rate_id to an integer. Allow strings.
Used in Taxamo extension.
2014-12-11 11:06:01 +00:00
Brent Shepherd 1e8f25defa Use wc_get_order() not new WC_Order()
Because an order might be a custom order type
2014-12-10 18:46:32 -08:00
Brent Shepherd 40de60ea3e Give child class access to billing/shipping fields
So that custom order types can extend `WC_Meta_Box_Order_Data` for their
own purposes without having to redefine all the billing/shipping fields
2014-12-10 18:46:32 -08:00
thenbrent e4b104d153 Use order type's singular label for meta box names 2014-12-10 18:46:32 -08:00
Brent Shepherd 1f2375f7e4 Make no order notes label more generic
To account for it being displayed on custom order type Add/Edit screens
where the order type is not referred to as an 'Order' (e.g. a 'Subscription',
'Refund' or 'Pre-order').
2014-12-10 18:46:32 -08:00
Brent Shepherd ac42a29520 Delete order items for custom order types 2014-12-10 18:46:32 -08:00
Brent Shepherd 2eca3fd765 Apply request filters for custom order types 2014-12-10 18:46:32 -08:00
Brent Shepherd a141c79d10 Change insert button label for custom order types 2014-12-10 18:46:32 -08:00
Brent Shepherd 3fd9bc9027 Display order filters for custom order types
That declare they are using order-meta-boxes (and therefore, are assumed
to be exposing the Edit Order interface and a list table)
2014-12-10 18:46:32 -08:00
Brent Shepherd b0c2f05a6a Use post type label for "Save Order" button
To improve compatibility with custom order types

Conflicts:
	includes/admin/meta-boxes/class-wc-meta-box-order-actions.php
2014-12-10 18:46:15 -08:00
Claudio Sanches 53b1c66427 [API] Added parent_id in products endpoint, closes #6786 2014-12-10 16:28:30 -02:00
Claudio Sanches a579ce4578 Merge pull request #6894 from franticpsyx/add_shop_prices_in_variation_data_array
Add display_prices in available_variations array
2014-12-10 15:52:57 -02:00
Claudio Sanches a5d70fa24c Fixed API products when save multiple images from the media library, closes #6792 2014-12-10 15:23:36 -02:00
Claudio Sanches cb7cd8f765 Fixed the process order status method in simplify commerce 2014-12-10 15:04:57 -02:00
Mike Jolley fd15ac4c64 Allow a cancelled order to be marked paid, if there is a payment delay
Closes #6810
2014-12-10 16:54:08 +00:00
Mike Jolley 0e3cb2498e set timezone_name_from_abbr 3rd arg to 0
Closes #6897
2014-12-10 16:46:25 +00:00
Claudio Sanches e8a347ed18 Created the simplify commerce hosted payments return handler 2014-12-10 10:07:45 -02:00
Claudio Sanches 1da03a170c Created initial simplify commerce hosted payments flow and options 2014-12-09 17:11:55 -02:00
Mike Jolley 5aa058249c Allow plugins to filter the taxable location
Passes tax_class so we can workaround mixed carts and EU VAT.
cc @barrykooij
2014-12-09 16:41:30 +00:00
James Koster 316b43f770 coupons. closes #6836 2014-12-09 16:06:34 +00:00
Gerhard af1e4d794f Alignment. 2014-12-09 15:09:39 +02:00
Gerhard 20ad987274 Define WooCommerce core settings to track. 2014-12-09 15:05:32 +02:00
Gerhard 9fff6eb8c2 Update some docblocks 2014-12-09 15:02:02 +02:00
Mike Jolley 317808a219 [2.2] If order_item_type is not set, don't query it in reports class 2014-12-09 12:59:01 +00:00
Mike Jolley 76ec750dbb [2.2] remove_taxes needs to clear line_tax_data 2014-12-09 12:58:25 +00:00
Claudio Sanches ec30dab6c4 Improved the colorpicker field 2014-12-09 10:10:59 -02:00
Claudio Sanches 5ea4e1b0a7 Created new colorpicker settings api field 2014-12-09 10:07:29 -02:00
Mike Jolley 76898699cd Clarify variable comment #6830 2014-12-09 11:00:41 +00:00
Mike Jolley caec42dc13 Merge pull request #6917 from webaware/cleanup-sessions-escape-for-like
Escape `_` in LIKE to allow index search
2014-12-09 10:47:19 +00:00
Mike Jolley ba4fc09eeb Merge pull request #6920 from SiR-DanieL/patch-2
Fix possible notice with taxes
2014-12-09 10:44:48 +00:00
Mike Jolley 56e0e0dc55 Add special wc_query variable when querying products. #6444 2014-12-09 10:21:50 +00:00
Mike Jolley 95a504cf84 Fix admin term output
Resolves an issue decoding foreign chars caused by #6555
Fixes #6550
2014-12-09 09:54:42 +00:00
Nicola Mustone 7ebd7399cb Fix possible notice 2014-12-09 10:14:25 +01:00
Mike Jolley e6b94e486b Leave postcode before city swapping to JS
Fixes #6842
2014-12-09 09:07:28 +00:00
Mike Jolley 2f66bbd8c0 woocommerce_price_filter_meta_keys filter to allow plugins to define min/max meta keys that require searching
Closes #6492
2014-12-09 08:33:33 +00:00
Ross McKay 648040d458 Don't return option_value from cleanup_sessions() query, no longer required 2014-12-09 08:16:40 +11:00
Ross McKay d37d58d19f Escape `_` in LIKE to allow index search
Also filters for expired sessions in DB, not PHP.
Fixes #6916
2014-12-09 08:07:12 +11:00
Mike Jolley b470e64b61 Error in previous commit. 2014-12-08 12:34:42 +00:00
Mike Jolley 80d08787a8 Correctly save custom address fields in admin 2014-12-08 12:30:11 +00:00
Mike Jolley 2874ef9947 Merge pull request #6909 from webaware/cleanup-sessions-cached
Delete cached sessions when clearing expired sessions
2014-12-08 07:47:10 +00:00
splashingpixels 25b6377298 ajaxified coupon removal on checkout page for better UX closes #6881 2014-12-07 22:15:03 -08:00
Ross McKay ee0cbb27c6 only delete sessions from object cache if using persistent object cache 2014-12-08 09:04:55 +11:00
Ross McKay 95a25d3023 Delete cached sessions when clearing expired sessions
Fixes #6907
2014-12-06 18:43:56 +11:00
Mike Jolley caee0cd679 Fix timezone_name_from_abbr unit test 2014-12-05 14:21:05 +00:00
Mike Jolley cf694bcae6 Merge pull request #6875 from tamarazuk/limit-order-action
Execute `woocommerce_order_action_{$action}` only once
2014-12-05 14:04:47 +00:00
Mike Jolley 6da8be66a6 Merge pull request #6905 from SiR-DanieL/patch-2
Clickable item name in orders table
2014-12-05 14:04:16 +00:00
Mike Jolley e13c01e7f4 Adjust wc_timezone_string to use is_dst and return the timezone when not false. Only fallback to UTC when needed.
Fixes #6897
2014-12-05 14:01:08 +00:00
Mike Jolley 508bfd5c06 Merge branch 'breadcrumbs-class'
Adds endpoint page titles for #5522
Fixes link back to endpoint pages and closes #6638
Avoids need for breadcrumb fix which closes #6834
Removes the need and closes #6834
Fixes #6840
2014-12-05 13:42:19 +00:00
Nicola Mustone e59070ab01 clickable item name in orders table 2014-12-04 16:57:12 +01:00
Claudio Sanches 256216e13d Fixed the wc_update_new_customer_past_orders() function, closes #6903
get_post_status() returns post status (string) or false (bool) on failure.
2014-12-04 11:09:37 -02:00
Barry Kooij 438988d9c7 Added the possibility to display notices and/or force reload on order review. 2014-12-04 09:40:49 +01:00
Mike Jolley 6a45f8f196 Merge branch 'master' of https://github.com/woothemes/woocommerce 2014-12-03 12:33:19 +00:00
Mike Jolley eba8206540 Merge branch 'tax-coupon-handling' Closes #6830
Conflicts:
	assets/js/admin/meta-boxes-order.min.js
	includes/api/class-wc-api-coupons.php
	includes/class-wc-cart.php
	templates/checkout/review-order.php
2014-12-03 12:33:15 +00:00
Claudio Sanches 8fac703f97 Added missing textdomain
cc @bryceadams #fail
2014-12-03 10:30:32 -02:00
Manos Psychogyiopoulos 4b04701cc8 add display_prices in variation data
The commit introduces 3 changes:
1. It adds 2 extra fields to the available_variations array,
display_price and display_regular_price, to be used by extensions in
cases like
https://github.com/woothemes/woocommerce-product-addons/issues/19
2. Introduces a get_display_price() function in WC_Product to retrieve
product prices incl or excl tax relative to the
woocommerce_tax_display_shop setting.
3. Fixes a minor issue where passing a 0 price to
get_price_including_tax() or get_price_excluding_tax() results in a
wrong output.
2014-12-03 11:28:04 +02:00
Bryce 80ccc7b09d Add help tip for schedule sales info
Closes #6863
2014-12-03 13:20:24 +07:00
Claudio Sanches 951c70de7e Allows custom directory for email templates
cc @SiR-DanieL
2014-12-03 01:30:28 -02:00
Nicola Mustone 6b03da033d Introduced woocommerce_delete_from_theme_folder filter 2014-12-03 00:52:08 +01:00
Nicola Mustone fcc072abcc Added trim to avoid errors 2014-12-03 00:40:44 +01:00
Nicola Mustone d1ce8c00ac Introduced filter woocommerce_copy_to_theme_folder 2014-12-03 00:36:26 +01:00
James Koster 7bd6b7d009 remove frontend dashicons, tweak loader 2014-12-02 21:19:03 +00:00
Barry Kooij 36c98dae6d Merge branch 'master' of github.com:woothemes/woocommerce 2014-12-02 12:58:00 +01:00
Barry Kooij f105664805 Introduced 'woocommerce_ajax_calc_line_taxes' filter. 2014-12-02 12:57:53 +01:00
Barry Kooij b79a98bc87 Introduced 'woocommerce_find_rates' filter. 2014-12-02 12:57:01 +01:00
Mike Jolley 11af24902b [2.2] Ensure float is safely converted to string 2014-12-02 11:20:07 +00:00
Mike Jolley b852904e37 Merge pull request #6890 from bryceadams/patch-6888
Add style field to woocommerce_wp_xxxxx_input
2014-12-02 10:06:23 +00:00
antoscarface 78047959f4 Moved do action of 'woocommerce_admin_css' to avoid possible add action from debug plugin as "Debug Bar" and "Debug Bar Slow Actions"
See screen: http://d.pr/i/1fYX1/7ZiItezr
2014-12-02 10:26:17 +01:00
Bryce f8d4fe64ad Fix annoying white space 2014-12-02 13:50:17 +07:00
Bryce cd76ae82e7 Add style field to woocommerce_wp_xxxxx_input
Closes #6888
2014-12-02 13:48:06 +07:00
claudiosmweb 676549b4ab Fixed docblock for WC_Product::get_categories() 2014-12-01 22:09:42 -02:00
claudiosmweb 5d9a1ad908 Merge branch 'master' of github.com:woothemes/woocommerce 2014-12-01 21:56:45 -02:00
claudiosmweb 3ce620e4f3 Removed eXtremeGoHorse practices from WC_AJAX::calc_line_taxes() and wc_save_order_items()
cc @barrykooij
2014-12-01 21:55:48 -02:00
Barry Kooij e1b81b3a23 Introduced 'woocommerce_reports_taxes_tax_rate' and 'woocommerce_reports_taxes_rate' filters. 2014-12-01 13:36:50 +01:00
claudiosmweb 780aca38a6 Fixed checkbox label in woocommerce_form_field() function, closes #6880 2014-12-01 10:13:41 -02:00
Gerhard 6f62e17fd0 Use get_bloginfo so it does not output. 2014-12-01 13:50:18 +02:00
Gerhard f90cf15adf Use correct theme_data variable. 2014-12-01 13:43:48 +02:00
Gerhard 77a09e3f85 Update to new tracker domain. 2014-12-01 13:28:18 +02:00
Claudio Sanches 8de9492199 Merge pull request #6876 from tamarazuk/coding-standards-part-2
Code Standards Part 2
2014-11-30 12:14:33 -02:00
Barry Kooij 4c2adfda62 Doc return type update. 2014-11-30 14:16:40 +01:00
Tamara Zuk af442599b1 Code Standards: Finish up admin includes
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`

@see http://make.wordpress.org/core/handbook/coding-standards/php/

@see part 1: #6157
2014-11-30 01:52:32 -05:00
Tamara Zuk f63c5e8c8f Execute `woocommerce_order_action_{$action}` only once
Prevents a “Maximum function nesting level reached” fatal error in
certain cases.

Since this ends up running on `’save_post’`, updating something like
the order status while hooked onto to
`woocommerce_order_action_{$action}` causes a fun recursion :)
2014-11-30 00:14:22 -05:00
Barry Kooij 23b38f9490 Typos 2014-11-29 12:35:36 +01:00
Barry Kooij 0ccf153227 Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-29 12:33:43 +01:00
Barry Kooij 21b7fe60f6 Codestandards 2014-11-29 12:33:36 +01:00
claudiosmweb 80ea5420c3 [API] Fixed the action parameters in the methods to create and edit orders, closes #6845 2014-11-28 10:22:35 -02:00
Claudio Sanches 8e929c1ee8 Merge pull request #6859 from SiR-DanieL/master
Edit link for WC Pages
2014-11-28 09:40:32 -02:00
Claudio Sanches 1afa04e7f6 Merge pull request #6857 from splashingpixels/product-gallery-images
undefined index when product image gallery side meta box is removed fixe...
2014-11-28 09:40:10 -02:00
Nicola Mustone c25b86e0ae Edit link for WC Pages 2014-11-28 09:06:15 +01:00
Bryce 0967525a72 Bit of code formatting 2014-11-28 14:21:01 +07:00
Bryce 5e0cbb4676 Add stupidtable.min.js 2014-11-28 14:17:58 +07:00
splashingpixels 13ad1100c5 undefined index when product image gallery side meta box is removed fixes 6855 2014-11-27 20:42:58 -08:00
Barry Kooij c2321aeb94 Code standards. 2014-11-27 22:38:36 +01:00
Barry Kooij d990daed57 Typo. 2014-11-27 22:36:46 +01:00
claudiosmweb b6cd6b8735 Fixed some coding standards 2014-11-27 15:29:52 -02:00
shivapoudel 84bc7a2339 Cleanup for WC_Admin_Attributes Class 2014-11-27 22:34:19 +05:45
shivapoudel 3aa67ac352 Fixes attribute menu highlight, closes #6849 2014-11-27 22:32:11 +05:45
Mike Jolley 2c1c9896c5 Remove remove_variation and replace with remove_variations 2014-11-27 15:44:51 +00:00
Mike Jolley 44af56ff75 Simplify feature_product() 2014-11-27 15:40:39 +00:00
Mike Jolley e3c1ebc927 Simplify mark_order_status() 2014-11-27 15:37:42 +00:00
Mike Jolley 3415b5d7c0 In the cart, add variation selected data to the permalink.
Closes #6060
2014-11-27 15:04:24 +00:00
Mike Jolley 2cfaead676 Added numeric sort for attributes. Closes #5978 2014-11-27 14:49:02 +00:00
claudiosmweb fb955e8a40 [API] Added error message when try search a product with a invalid SKU 2014-11-27 10:52:24 -02:00
claudiosmweb 553fe744cf [API] Created a route to get products by SKU, closes #6847 2014-11-27 10:34:55 -02:00
claudiosmweb 15996a1dee Created the wc_get_product_id_by_sku() function 2014-11-27 10:31:56 -02:00
Claudio Sanches 7a62f75eca Revert "Look up product by sku" 2014-11-27 10:06:28 -02:00
Mike Jolley 2c6debf1f4 Merge pull request #6850 from bryceadams/patch-6839
improve get_rating_count() for rating-less reviews
2014-11-27 11:07:30 +00:00
Mike Jolley d8c6d3b9c3 Merge pull request #6847 from harrisonde/sku
Look up product by sku
2014-11-27 11:04:26 +00:00
Mike Jolley 48ffa859cf Merge pull request #6837 from ragulka/email-settings-action-hooks
Introduce email settings action hooks
2014-11-27 11:01:31 +00:00
Mike Jolley 251160d512 Added 'top freebies' to product report.
Closes #5596
2014-11-27 10:36:21 +00:00
Mike Jolley 6df4c143cc Adjust total for partially refunded order totals
Closes #6666
2014-11-27 10:04:18 +00:00
Gerhard 70297b8973 Track server related info. 2014-11-27 10:13:16 +02:00
Gerhard 4aadc76e3d Add WordPress tracking data. 2014-11-27 10:00:20 +02:00
Gerhard 522416f698 Change succesfull reset message. 2014-11-27 09:46:11 +02:00
Gerhard 69553d53ab Add button to tools page to reset usage settings. 2014-11-27 09:43:43 +02:00
Bryce 83a457b29c improve get_rating_count() for rating-less reviews
Should close #6839.

According to `woocommerce_enable_review_rating` &
`woocommerce_review_rating_required`, it will do a different DB query,
so that when reviews without ratings are allowed, it will do a query
that counts those comments as reviews.
2014-11-27 14:32:09 +07:00
Gerhard 144c683d7b Extend theme info to include child theme and wc support. 2014-11-27 09:07:31 +02:00
Gerhard c4b4071649 Change general to settings to reflect it better. 2014-11-27 08:56:35 +02:00
Gerhard d1c58cc276 Update docblock param reference. 2014-11-27 08:55:40 +02:00
Gerhard 8bb21d4dbc Add check to send method to ensure customer subscribed. 2014-11-27 08:55:06 +02:00
Gerhard d2da65e399 Fix extra array wrap in theme info function. 2014-11-27 08:43:03 +02:00
Gerhard 9213138a93 Add filter to tracking data so extensions can extend. 2014-11-27 08:12:17 +02:00
Harrison DeStefano 7c42b66a02 product by sku 2014-11-26 15:51:04 -05:00
Gerhard b7d2f88161 Wrap up send_tracking_data function. 2014-11-26 21:46:16 +02:00
Gerhard a33400db9f Add tracker class to includes. 2014-11-26 21:36:14 +02:00
Gerhard 0faa686176 Opt-in and Opt-out admin notice and actions. 2014-11-26 21:10:42 +02:00
Gerhard e58c47b5b3 Use get_option( 'admin_email' ) instead. 2014-11-26 20:40:09 +02:00
Nicola Mustone b074f63a7e Typo itme -> item 2014-11-26 19:07:13 +01:00
Mike Jolley 5f77ee752e Merge pull request #6814 from bryceadams/patch-6026
#6026 - Introduction of Sort Code 'locale' for BACS
2014-11-26 16:23:40 +00:00
Bryce 8f89ef9c0b Remove locales with 'Sort Code'
Wrong swamp
2014-11-26 23:03:48 +07:00
Mike Jolley 4bc63de72a Added 'stupidtable' script to allow order item sorting on the order screen (by name, cost, qty).
Closes #5998
2014-11-26 15:37:06 +00:00
Mike Jolley 2e398a3a79 Decoupled the order summary and payments area. Both are updated independently via ajax fragments and can be moved around via actions. TEMPLATES OVERRIDING THESE TEMPLATES WILL NEED TO UPDATE THEIR FILES.
Closes #5781
Closes #6570
2014-11-26 14:19:53 +00:00
Gerhard 9d667ba81b Add WC_Tracker class with tracking data functionality. 2014-11-26 16:03:34 +02:00
Mike Jolley 3904035003 Disable already added attributes #6189 2014-11-26 11:35:07 +00:00
Mike Jolley 06129f60cd Message when updating attributes #6189 2014-11-26 11:14:08 +00:00
Mike Jolley d9f26e7848 Remove troublesome 'featured image' text replacement
Little gain in keeping this - not worth the overhead. Closes #6451
2014-11-26 11:03:39 +00:00
Mike Jolley c3fb83d443 Append query string when removing item from cart to bust cache
Closes #6544
2014-11-26 10:56:51 +00:00
Mike Jolley 67d899da3a Restore __Get and move template debug mode to template functions 2014-11-26 00:03:00 +00:00
Mike Jolley 626d7f4256 Moved email methods to emails class 2014-11-26 00:03:00 +00:00
Mike Jolley 0d4d6fdcaf WC class cleanup 2014-11-26 00:03:00 +00:00
Mike Jolley 1993509e07 Removed unused variables from emails class, including content_type 2014-11-26 00:03:00 +00:00
Mike Jolley 206496b584 Split up WC_Product_Factory methods 2014-11-26 00:03:00 +00:00
Illimar Tambek 2752e0c61d Correct hook name: `woocommerce_email_settings_before` 2014-11-26 00:28:23 +02:00
Mike Jolley ce1d59c7ba Merge pull request #6838 from khag7/master
Corrected the docblock descriptions for two "send email" classes
2014-11-25 17:09:54 +00:00
Mike Jolley dbcc8430e9 Installer tweaks + unit tests closes #6356 2014-11-25 17:09:24 +00:00
khag7 bf15b5e351 Corrected the docblock description for the order cancellation email class
This email is sent when an order is cancelled, not when a new order is paid for.
2014-11-25 11:23:00 -05:00
khag7 067d62541e Corrected the docblock description
This is an email sent to the customer, not the admin.
2014-11-25 11:15:53 -05:00
Illimar Tambek 88c4c2394f Introduce email settings action hooks 2014-11-25 16:59:29 +02:00
claudiosmweb ce721fc86f [API] Fixed the coupons expiry_date format with POST and PUT, closes #6829 2014-11-25 12:44:33 -02:00
claudiosmweb c73bcb614e API - deletes the product when fails to create, closes #6801 2014-11-25 12:10:12 -02:00
Mike Jolley 3c82331a8b Store discount 'tax' to show discounts on prices including tax more accuratly
Also deprecated some functions named after having 2 levels of discounts.
2014-11-25 13:05:03 +00:00
Mike Jolley 4a8c541fbf Remove 'order' discounts from classes 2014-11-25 11:05:14 +00:00
Mike Jolley 1f3adbd0c2 esc_html for the term name 2014-11-25 10:38:54 +00:00
Mike Jolley 549d7ab2c0 Removed 'apply before tax' options for coupons - this should be the default core behaviour 2014-11-24 17:24:25 +00:00
Mike Jolley f90c146d01 Give product gallery low priority
Closes #5976
2014-11-24 15:29:37 +00:00
Mike Jolley 3a927d62dd Add tip to reports
Closes #5729
2014-11-24 15:18:41 +00:00
Mike Jolley fe6d52b705 Final tax class unit tests
Closes #6357
2014-11-24 14:57:11 +00:00
Bryce 3fd7997413 Move locale to new method in BACS gateway 2014-11-24 21:26:33 +07:00
Mike Jolley 802e807319 Limit length of password when creating web hook 2014-11-24 13:52:13 +00:00
claudiosmweb 2c48a87086 Fixed WC API Coupons params, closes #6828 2014-11-24 10:37:38 -02:00
Barry Kooij 4ed7de31ca Merge pull request #6820 from ryanr14/typo-fix
Spelling correction - insursion to insertion
2014-11-21 22:48:24 +01:00
Ryan Ray cc5be422cc Spelling correction - insursion to insertion 2014-11-21 16:46:33 -05:00
Barry Kooij 4dd60d42c7 Docblock fixes 2014-11-21 22:40:42 +01:00
Barry Kooij 47cc448028 Added correct docblock. 2014-11-21 22:34:30 +01:00
Barry Kooij 4b539e7a9a Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-21 22:31:17 +01:00
Barry Kooij 6ebadd572a Added correct docblock. 2014-11-21 22:31:09 +01:00
Michael Tieso 70d5fc834a Spelling correction - calculdate to calculate 2014-11-21 13:26:32 -08:00
Barry Kooij f8a161c406 Documentation improvement. 2014-11-21 22:16:15 +01:00
Barry Kooij ae1ed2b7f6 Added missing param docblock. 2014-11-21 22:14:13 +01:00
Barry Kooij b131f250b6 Added missing docblock return statement. 2014-11-21 22:12:37 +01:00
Barry Kooij 64227fe9d8 Added missing docblock 2014-11-21 22:12:03 +01:00
Barry Kooij 33b53c30b5 Updated docblock and added return statement. 2014-11-21 22:09:46 +01:00
Mike Jolley f1f92e120d Merge pull request #6799 from bryceadams/patch-4459
#4459 - Add filters for product_list_widget before / after
2014-11-21 17:29:01 +00:00
Bryce e93c32565c merge changes 2014-11-22 00:09:11 +07:00
Mike Jolley 40e0fe7a4e Merge pull request #6811 from bryceadams/patch-5537
#5537 - Fix bulk edit overlap, bulkedit improvements
2014-11-21 16:40:28 +00:00
Mike Jolley d55b57dc8a Merge pull request #6812 from woothemes/remove-order-items-query-speed
Change remove_order_items subqueries to inner joins.
2014-11-21 16:40:06 +00:00
Mike Jolley b2f91a4a14 Merge pull request #6794 from franticpsyx/issue-5661-amendments
woocommerce_variation_is_visible/is_active filter args
2014-11-21 16:35:48 +00:00
Mike Jolley 8b4332a037 Refactors to shipping tax rate methods 2014-11-21 13:06:33 +00:00
Mike Jolley b440a6a165 Split find_rates method 2014-11-21 13:06:33 +00:00
Bryce 7abd1358fc Fix whitespace 2014-11-21 16:13:03 +07:00
Bryce 6dad8fdc59 #6026 - Introduction of Sort Code 'locale' for BACS
In the admin, it will use the store’s base country to determine the
term for ‘Sort Code’.

In the front-end, it will use the customer’s billing country to
determine the term for ‘Sort Code’.

In all cases, if a locale does not have a sortcode label set, it will
use ‘Sort Code’.

**Locales have been added for:**
* AU
* CA
* IE
* IN
* IT
* NZ
* SE
* US
* GB
* ZA

But may need adjusting based on user feedback.
2014-11-21 16:10:12 +07:00
Gerhard fa42c9d397 Change remove_order_items subqueries to inner joins.
Closes #6804
Hat tip Jason @ WPEngine
2014-11-21 09:18:31 +02:00
Bryce bad3b31a18 #5537 - Fix bulk edit overlap, bulkedit improvements 2014-11-21 13:37:14 +07:00
Bryce a6c88c9104 Only enqueue/localize on profile page 2014-11-21 12:42:32 +07:00
Mike Jolley 665d2aa8a3 combine city and postcode save logic 2014-11-20 21:02:10 +00:00
Mike Jolley dd53f8e730 Move widget registration to own function/file - avoid register_widget in class files 2014-11-20 20:56:24 +00:00
Mike Jolley f088f81dcf Optimise tax rate importer and use same code as tax settings class 2014-11-20 18:41:51 +00:00
Mike Jolley add83a75dc Tax rate importer parse error 2014-11-20 17:09:07 +00:00
Mike Jolley 1ec8dabf8a Added method for expanding postcode ranges 2014-11-20 17:08:17 +00:00
Mike Jolley 97d241c33c Moved delete tax rate rule 2014-11-20 15:46:07 +00:00
Mike Jolley 7472a722b2 Corrected format_ methods 2014-11-20 15:43:40 +00:00
Mike Jolley db13b2224f Fix refund class 2014-11-20 15:03:46 +00:00
Mike Jolley ce1a9b84c7 Redo construct and move settings/html to separate files 2014-11-20 15:03:45 +00:00
Mike Jolley 7df9f20e18 Merge pull request #6798 from bryceadams/patch-2906
#2906 - Set reviews count in tab to only count actual reviews
2014-11-20 12:16:02 +00:00
Mike Jolley 4fd8cd63cb Split up save_tax_rates() method 2014-11-20 11:11:08 +00:00
Bryce 333e4dd2fe Remove previously added filter, not necessary 2014-11-20 16:43:48 +07:00
Bryce 8b1cc5f902 #5850 - Add QR code to API credentials
This uses https://github.com/jeromeetienne/jquery-qrcode for generating
the QR code.

This is what it looks like:

![see screen shot](http://cld.wthms.co/11wpb+)

It’s small, **but**, it scans perfectly without any issues.
2014-11-20 15:46:46 +07:00
Bryce bd96565eeb #4459 - Add filters for product_list_widget before / after
2 new filters introduced:

* `woocommerce_before_widget_product_list`
* `woocommerce_after_widget_product_list`
2014-11-20 12:57:39 +07:00
Bryce 985df5bca4 #2906 - Set reviews count in tab to only count actual reviews
Nested comments shouldn’t be treated as reviews. This addresses that by
using `$product->get_rating_count()` to determine the correct number of
reviews, instead of get_comments_number.

It can be filtered using the new `woocommerce_product_reviews_count`
filter.
2014-11-20 12:39:07 +07:00
claudiosmweb b4e544e5dc Fixed coding styles and docblocks 2014-11-20 00:14:06 -02:00
claudiosmweb 6d4650dd7b Declared all Settings API variables 2014-11-19 23:11:08 -02:00
Mike Jolley c70c232e2c Optimised save tax rate logic 2014-11-20 00:51:06 +00:00
claudiosmweb 8eeb6fc204 Removed more some unused code 2014-11-19 22:43:09 -02:00
claudiosmweb 45ddc1d26e Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-19 21:36:53 -02:00
claudiosmweb 74ba11c189 Removed some unused code 2014-11-19 21:36:47 -02:00
Mike Jolley 2b645ed293 Moved if statement in flat rate shipping 2014-11-19 23:28:23 +00:00
claudiosmweb d4c480a6ea Fixed process_refund() docblock 2014-11-19 21:14:28 -02:00
Mike Jolley e630e64cb7 Flat rate shipping tweaks + inline instructions 2014-11-19 22:22:35 +00:00
claudiosmweb 9b16425142 Fixed some coding style issues 2014-11-19 17:01:06 -02:00
claudiosmweb 59c8f9440e Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-19 16:57:33 -02:00
claudiosmweb 744f80e0c6 Fixed password reset handler 2014-11-19 16:57:26 -02:00
Mike Jolley ef7693cb4b valid_response method 2014-11-19 18:26:29 +00:00
Mike Jolley 263134d395 ob_clean and header is unnecessary - default is 200 2014-11-19 18:26:29 +00:00
claudiosmweb e87aefc8e0 Fixed missing initial $query = array() 2014-11-19 16:26:10 -02:00
Mike Jolley 82f381df67 WC_Autoloader class 2014-11-19 18:08:38 +00:00
Mike Jolley d3dc8be3ec Undo commit which autoloaded widgets
Since they are loaded every time with core, it doesn’t make sense to
autoload them.
2014-11-19 18:08:38 +00:00
Manos Psychogyiopoulos 0b275de06a Issue 5661: filter params 2014-11-19 19:46:05 +02:00
Mike Jolley 1e217758fc Fix IPN response 2014-11-19 15:00:05 +00:00
Mike Jolley ca37524fe6 woocommerce_get_paypal_order filter
@thenbrent this should cover subscriptions needs
2014-11-19 15:00:05 +00:00
Mike Jolley 0ad1e05e23 Split PayPal class into separate classes for IPN and PDT and refund handling 2014-11-19 15:00:05 +00:00
Mike Jolley 2190405d61 Merge pull request #6791 from ragulka/dry-status-actions
DRY status actions, support custom status handling
2014-11-19 14:37:48 +00:00
Illimar Tambek e41368c99a DRY up order status bulk actions 2014-11-19 14:26:27 +02:00
Illimar Tambek d510372d64 DRY up mark_order_{$status} 2014-11-19 14:13:24 +02:00
claudiosmweb dbcf4de41f Fixed WC_Cart::get_cart_item() return type 2014-11-19 09:46:40 -02:00
Claudio Sanches c7dc0947c4 Merge pull request #6788 from SiR-DanieL/undo_cart
Undo cart removal
2014-11-19 09:31:09 -02:00
Nicola Mustone 37ea3faf0a Added missing get_cart_item 2014-11-18 20:48:45 +01:00
Mike Jolley 83cd831e1a can_refund_order/limit_string_length methods 2014-11-18 16:53:03 +00:00
claudiosmweb f34cead914 Removed old code in favor of wc_tax_enabled() and wc_prices_include_tax() 2014-11-18 14:45:29 -02:00
Mike Jolley b3782fa1a5 Removing Mijireh from core 2.3 2014-11-18 16:37:43 +00:00
Nicola Mustone 5d30109ab6 Handle cart item undo 2014-11-18 17:31:06 +01:00
Nicola Mustone 7eecb87d34 Added get_undo_url 2014-11-18 17:30:52 +01:00
Mike Jolley 003094c9c3 Ensure remaining hashes are translated Closes #6518 2014-11-18 16:29:21 +00:00
Mike Jolley ed1ff0f48c WooConf is over 2014-11-18 16:26:12 +00:00
Mike Jolley e7fc5520a8 Merge pull request #6776 from axisthemes/welcome
Welcome Page Cleanup
2014-11-18 16:25:44 +00:00
Mike Jolley e476a3f76b Merge pull request #6785 from SiR-DanieL/make_clickable
Automatically creates clickable links in item metas
2014-11-18 16:21:29 +00:00
Mike Jolley 4c5b7a3c06 Remove updates, 1.4, 1.5 2014-11-18 16:18:48 +00:00
Mike Jolley 387296a807 More PayPal line item tweaks 2014-11-18 16:13:41 +00:00
Mike Jolley 898c989753 wc_tax_enabled() and wc_prices_include_tax() methods 2014-11-18 16:13:41 +00:00
claudiosmweb da43955416 Introduces the wc_get_default_location() function 2014-11-18 12:56:13 -02:00
claudiosmweb 771f25d7b7 Improved the WC_Customer class, removed dead variables, removed duplicated code and added new docblocks 2014-11-18 12:32:48 -02:00
Mike Jolley a39353fc73 Split up line item methods in paypal 2014-11-18 13:46:55 +00:00
Mike Jolley e68353da63 Use one variable for endpoint in paypal 2014-11-18 13:46:55 +00:00
Mike Jolley 2e9f02932d Simplify get_icon() method 2014-11-18 13:46:55 +00:00
Mike Jolley 74b93b8c67 Moved paypal settings to file 2014-11-18 13:46:55 +00:00
Mike Jolley dc3aca2d06 Simplify logging and get_paypal_order(). Removes < 2 bw compat
@thenbrent this removes the old IPN handling legacy code. Is this
something that may affect subscriptions? I believe that IPN code was
for WC < 2.0 when we used to send back a string/integer in ‘custom’
2014-11-18 13:46:55 +00:00
claudiosmweb 6acfd3e2a7 Created WC_Customer::get_default_location() for avoid duplicate code 2014-11-18 11:32:44 -02:00
Nicola Mustone 913cc42c06 Fixes https://github.com/woothemes/woocommerce-product-addons/issues/24 2014-11-18 14:22:21 +01:00
Nicola Mustone 22a32ae9c8 Fixes #6555 2014-11-18 14:20:47 +01:00
claudiosmweb 6077a10e44 Removed some dead variables 2014-11-18 10:42:54 -02:00
shivapoudel 78f9759e1c Some modification for theme-support notice 2014-11-18 17:22:15 +05:45
shivapoudel 36e74b3b0d Some curley braces 2014-11-17 22:59:49 +05:45
Mike Jolley a0bf72f7b5 Bulk edit sales schedule on variations
Closes #6300
2014-11-17 16:50:25 +00:00
shivapoudel d688a37f54 Some mistake revoked 2014-11-17 22:34:27 +05:45
shivapoudel 4341174927 Merge remote-tracking branch 'upstream/master' into welcome 2014-11-17 22:30:52 +05:45
shivapoudel 3d4954a3e1 Some gap added intensionally ;) 2014-11-17 22:27:39 +05:45
Mike Jolley e6a5825f8c Some shipping class tidyup 2014-11-17 16:30:18 +00:00
shivapoudel 85440b5927 use of final class helper function 2014-11-17 22:03:15 +05:45
shivapoudel 61dfac7ccd Unused var if needed in future we can use WC_PLUGIN_BASENAME constant 2014-11-17 21:44:32 +05:45
shivapoudel 5b0be2f102 Cleanup for the WC_Admin_Welcome Class 2014-11-17 21:41:36 +05:45
Mike Jolley 82145be444 Merge pull request #6773 from axisthemes/menu-order
Simplify the condition for custom menu order
2014-11-17 14:31:37 +00:00
Mike Jolley c6362051eb Merge pull request #6765 from bryceadams/master
Add placeholder attribute for settings API #6764
2014-11-17 14:29:05 +00:00
shivapoudel 825d56f8ba Modified since current_user_can() returns boolean ;) 2014-11-17 20:00:01 +05:45
Mike Jolley 65ace6818b Merge pull request #6757 from tamarazuk/master
Introduce `woocommerce_product_is_on_sale` filter
2014-11-17 14:11:59 +00:00
shivapoudel 891d3a4573 Simplify the condition for custom menu order :) 2014-11-17 15:21:47 +05:45
Bryce 71909a7c72 Update default for 'Default Product Sorting' option 2014-11-17 15:37:02 +07:00
Bryce 295fed6467 Add placeholder attribute for settings API #6764 2014-11-16 14:49:43 +07:00
claudiosmweb 03c16229e0 Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-14 23:15:16 -02:00
claudiosmweb 24e17e36d3 Preventing errors when adding a widget using the WP Customize
Fixed coding standards and used methods from WC_Widget for start and end the widget
2014-11-14 23:12:59 -02:00
Tamara Zuk 20655d367d Introduce `woocommerce_product_is_on_sale` filter
This filter is useful for extensions like Measurement Price Calculator
which alter the product price quite a bit, but would still like the
sale badge to appear :)

Current workaround is to use three filters ( `woocommerce_get_price`,
`woocommerce_get_regular_price`, and `woocommerce_get_sale_price` )
which most extension may be using already, but not all need/want to
alter these prices.
2014-11-14 18:00:03 -05:00
Mike Jolley 537233efcc Split is_valid() into separate methods 2014-11-14 17:18:02 +00:00
Mike Jolley f600c5ec05 Limit coupons to X needs to persist across lines during calc
Fixes #6745
2014-11-14 16:38:33 +00:00
Mike Jolley 1d3b8db754 Move formatting logic 2014-11-14 16:22:01 +00:00
Mike Jolley 668e5ffb5c Some refactoring of the coupon class to load data with less code 2014-11-14 16:22:01 +00:00
claudiosmweb a91dd8b516 Fixed missing comma
@mikejolley
2014-11-14 12:09:02 -02:00
Mike Jolley 4b5d22b8e8 Format totals to 2dp when doing paypal checks Closes #6678 2014-11-14 13:17:17 +00:00
Mike Jolley 9701dad114 API - set_fee should support tax_data
Closes #6719 cc @maxrice
2014-11-14 13:14:48 +00:00
Mike Jolley 2e2ce3c286 [2.2] During refunds, correctly set shipping tax totals
Fixes #6691
2014-11-14 12:52:43 +00:00
claudiosmweb 8413d68de6 Added Simplify Commerce minified js file 2014-11-14 09:58:21 -02:00
claudiosmweb c683720b02 Removed old ajax_loader_url param from all js files 2014-11-14 09:52:44 -02:00
James Koster c187c002be mar icons stuff 2014-11-14 09:59:12 +00:00
James Koster c28e7821d5 add dependency to dashicons. 2014-11-14 09:49:59 +00:00
James Koster d765c3138c dashicons for loader and arrows. 2014-11-14 09:47:45 +00:00
James Koster 30a5c4bfdb bye bye ajax loader gif. 2014-11-13 18:28:15 +00:00
Mike Jolley 9abbf4cef8 Fix coupons by date queries to prevent inflated results
Closes #6742
2014-11-13 17:25:45 +00:00
Mike Jolley 2b4f68cf33 Merge pull request #6746 from ThomasSultana/master
#6740 Expose Previous Item Quantity
2014-11-13 08:49:22 -08:00
Mike Jolley 4c8a3eaba5 Merge pull request #6738 from bryceadams/master
Add script_debug $suffix for admin settings.js
2014-11-13 08:43:51 -08:00
Mike Jolley 4a6dc10300 Merge pull request #6741 from ragulka/meta-box-field-attributes
Custom attributes for select, checkbox and textareas
2014-11-13 08:43:38 -08:00
Mike Jolley ea335e5e61 missing colon in wc-emails class 2014-11-13 14:02:06 +00:00
Mike Jolley 7c666852c7 If totals mismatch in paypal, don't send line items 2014-11-13 13:41:51 +00:00
Illimar Tambek a7a913ab09 Custom attributes for select, checkbox and textareas 2014-11-13 13:26:52 +02:00
ThomasSultana d3542a2192 #6740 Expose Previous Item Quantity
woocommerce_after_cart_item_quantity_update will now also pass the old quantity. #6740
2014-11-13 12:11:24 +01:00
Bryce d717eed3ad Add script_debug $suffix for admin settings.js 2014-11-13 15:57:09 +07:00
James Koster 452cb56cd9 layered nav count markup matches product/post categories. #5606 2014-11-13 08:30:10 +00:00
claudiosmweb 75c28e715f fixed the deprecated filters 2014-11-12 22:57:45 -02:00
claudiosmweb bac2af461a Improved the WC_Emails::order_meta() method
Deprecated the woocommerce_email_order_meta_keys filter in favor to woocommerce_email_order_meta_fields

Now we can filter and work with the data without worrying about translations.

cc: @mikejolley @helgatheviking
2014-11-12 22:53:36 -02:00
claudiosmweb 7200b449dc Fixed the labels in customer details 2014-11-12 22:33:47 -02:00
Kathy Darling cfeeb7e9c6 Merge branch 'email_customer_details_hook_backup' into email_customer_details_hook_2
Conflicts:
	includes/class-wc-emails.php
2014-11-13 00:32:15 +01:00
Kathy Darling 520cb4e385 change array to account for localization per @claudiosmweb 2014-11-12 20:44:11 +01:00
Mike Jolley ca6885c4a3 Merge pull request #6731 from SiR-DanieL/patch-2
Hide order again button
2014-11-12 09:06:29 -08:00
Mike Jolley 622c031f05 Merge pull request #6733 from SiR-DanieL/patch-3
Improved Shop Page Display option
2014-11-12 09:05:54 -08:00
Mike Jolley ccdacb76b7 Fire all form handlers priority 20
Closes #6706
2014-11-12 16:43:29 +00:00
Mike Jolley a1c04670bc End output buffering even if buffers are empty.
Closes #6659
2014-11-12 16:15:47 +00:00
Mike Jolley 18ebded7c5 Make check_cart_items consistantly placed
Closes #6708
2014-11-12 15:47:27 +00:00
Mike Jolley 4b2ab00be3 Order again button template file
Closes #6664
2014-11-12 15:33:00 +00:00
Mike Jolley 3ccd54f268 English version of Taiwan address format
Closes #6651
2014-11-12 15:28:33 +00:00
Mike Jolley 87c417e56a When bulk editing variable products, set the stock status for non-stock managed variations
Fixes #6661
2014-11-12 15:15:05 +00:00
Mike Jolley bb1564d6c4 Incorrect variable
#6626 cc @claudiosmweb
2014-11-12 14:50:01 +00:00
Mike Jolley aaca944a85 API - Variation handling for stock data
Closes #6626 cc @claudiosmweb
2014-11-12 14:21:29 +00:00
Nicola Mustone fc2429549e Improved Shop Page Display option
I tweaked the text of the second option in Shop Page Display because i guess it confuse users that only read "Show subcategories". What about main categories?

I'd like to change also "Show both" to "Show all". What do you think?
2014-11-12 15:01:17 +01:00
James Koster 6a0fe9974f reports print styles. closes #4544 2014-11-12 12:53:57 +00:00
Nicola Mustone be59e9f80b Hide order again button
Hide "Order again" button if the user is not logged in.
2014-11-12 11:44:26 +01:00
Marin Atanasov 5ad973eac2 fixing small typo 2014-11-11 22:52:45 +02:00
Marin Atanasov 7c5be1ebde fixing small typo 2014-11-11 22:32:06 +02:00
Mike Jolley a076c5a69d get_product in product factory should return passed in object if its a product already
Fixes #6726
2014-11-11 16:24:22 +00:00
Mike Jolley 9e53b3fb33 Clear shipping transient on save
Closes #6723
2014-11-11 16:22:29 +00:00
James Koster 57809bc017 coding standards 2014-11-11 15:47:14 +00:00
Mike Jolley d58400399a Fix wildcard search and optimise local delivery + pickup Closes #6676 2014-11-11 15:46:57 +00:00
James Koster ecb5c77eae coding standards 2014-11-11 14:40:13 +00:00
James Koster 0321fc79d1 yoda 2014-11-11 14:31:27 +00:00
James Koster 7fd28c1295 order. #6639 2014-11-11 14:29:54 +00:00
James Koster c153a62406 Products setting tab. #6639 2014-11-11 14:25:46 +00:00
Mike Jolley f8bc4a0abd Add item cost column Closes #6650
@jameskoster
2014-11-11 13:40:47 +00:00
Mike Jolley b98b7354ad String sanitize_user Closes #6667 2014-11-11 13:11:40 +00:00
Mike Jolley 83fb26e30d Dump chosen select option. Closes #6593 2014-11-11 12:12:28 +00:00
Mike Jolley cb8fe34b4c get_base_tax_rates() + filter. Closes #6668 2014-11-11 11:56:17 +00:00
Mike Jolley b5f359b22a Merge pull request #6717 from bryceadams/master
Add filter for registration auth cookie #6707
2014-11-11 03:44:54 -08:00
Mike Jolley 01091c304c Fix conflicts in #5949 2014-11-11 11:23:44 +00:00
Mike Jolley 7490438da7 Merge pull request #6648 from SiR-DanieL/cancelled-order-email
Added cancelled order admin email
2014-11-11 02:53:35 -08:00
Mike Jolley f6fbdcd0ec Merge pull request #6704 from helgatheviking/update_cart_action
move $cart_updated inside $passed_validation IF statement. #6703
2014-11-11 02:05:12 -08:00
Barry Kooij fddcdd9453 Merge pull request #6716 from larsemil/master
Fix for #6715
2014-11-11 10:38:07 +01:00
Barry Kooij d02beb5610 Merge pull request #6702 from tivnet/patch-3
Update class-wc-shortcode-my-account.php
2014-11-11 10:29:49 +01:00
Marin Atanasov 8892b1aeb0 fixing a typo in comments in WC_Cart and its tests 2014-11-09 17:42:49 +02:00
Marin Atanasov cce13abc06 checking _wpnonce before using it in WC_Form_Handler::process_registration() 2014-11-09 17:14:55 +02:00
Bryce f489739349 Add filter for registration auth cookie #6707 2014-11-08 14:30:18 -08:00
Emil Österlund 8861e23078 Fix for #6715 2014-11-08 16:08:26 +01:00
Emil Österlund d77548f4cc woocommerce_form_field did not use "input_class" if type was set to select, this commit solves that 2014-11-08 16:02:43 +01:00
Kathy Darling 5a2c9a3ed2 move $cart_updated inside $passed_validation IF statement. #6703 2014-11-07 11:16:37 +01:00
Gregory Karpinsky 1f7eb3e595 Update class-wc-shortcode-my-account.php
Return if no data submitted. Otherwise, two PHP notices are issued on checking `! $user_data` and two `wc_add_notice` printed.
2014-11-06 23:08:48 -05:00
claudiosmweb 2f7fcb56ae Improved the Shipping class field in quick edit and bulk edit, closes #6681 2014-11-04 11:49:15 -08:00
claudiosmweb 6c4a65dbca Fixed the WooCommerce Status widget links, closes #6685 2014-11-04 00:22:28 -08:00
James Koster 5c04007605 products settings tab. #6639 2014-10-31 19:07:04 +00:00
Mike Jolley 591086eb9b Show notice when nonce isn't set. Fixes #6658
Wrap entire process_checkout method in try catch block to make errors
output correctly.
2014-10-31 15:03:53 +00:00
Mike Jolley 03e7a0ceaa Check order exists in wc_clear_cart_after_payment()
Fixes #6649
2014-10-31 12:37:13 +00:00
Mike Jolley 80cba5ee05 Adjust ZIP code UI in local pickup
Closes #6647
2014-10-30 16:11:02 +00:00
claudiosmweb 324a86cea8 Fixed DocBlock for wc_get_core_supported_themes() 2014-10-30 11:00:24 -02:00
claudiosmweb fa6edff86d Added UAH currency, closes #6653 2014-10-30 10:27:16 -02:00
Nicola Mustone 011bb0a784 Added cancelled order admin email 2014-10-29 15:05:43 +01:00
Mike Jolley ab562615ce [2.2] Remove strtolower and capitalize status names
Fixes #6624
2014-10-29 11:15:00 +00:00
Mike Jolley 69ca69ce52 Split up the product widget methods 2014-10-29 11:07:06 +00:00
Mike Jolley 9be06dd9e5 Merge pull request #6635 from tivnet/patch-2
Avoid notices if file does not exist
2014-10-29 10:37:28 +00:00
Mike Jolley 3d1285c8c4 Allow some limited html in text attributes
Fixes #6620. @claudiosmweb @barrykooij see any issues with adding this
one? Doesn’t appear to break anything…
2014-10-29 10:29:51 +00:00
Mike Jolley bcaf0e0779 Merge pull request #6641 from coenjacobs/filter-empty-rate-code
Allow to filter empty tax rate code
2014-10-29 10:04:34 +00:00
claudiosmweb a5ad428faf [2.2] fixed the value format in stock field with wc_stock_amount(), closes #6622 2014-10-28 18:37:53 -02:00
Coen Jacobs 7ea0d586c9 Allow to filter empty tax rate code 2014-10-28 12:24:09 +01:00
Barry Kooij b76fc7c68a Merge branch 'master' of github.com:woothemes/woocommerce 2014-10-28 11:53:44 +01:00
Barry Kooij 6312683eec Small codestyle fix to add_discount method. 2014-10-28 11:51:33 +01:00
Mike Jolley f4556fe710 [2.2] Fixed nonce check in form handler 2014-10-28 09:40:50 +00:00
Gregory Karpinsky 5460e0fed0 Avoid notices if file does not exist
1. I've got notices on files
my-theme/woocommerce/single-product\add-to-cart\bundle.php, 
my-theme/woocommerce/single-product\bundled-item-image.php, 
my-theme/woocommerce/single-product\bundled-item-title.php
which are Template Overrides (WooCommerce Product Bundles)
and do not exist in the WC plugin.

2. There should be a more elegant way, because this is just to shut up notices. No version comparison performed.
2014-10-27 20:21:33 -04:00
Mike Jolley b9eb83403e Split prevent_caching() method 2014-10-27 15:00:14 +00:00
Mike Jolley d5ca220eb4 Merge pull request #6630 from vachan/patch-1
Added Address Format for India
2014-10-27 14:09:04 +00:00
Mike Jolley b55812a8db Parse_file_path can just do replacements 2014-10-27 13:38:29 +00:00
James Koster fd81658cba storefront prompt. closes #6351 2014-10-27 13:38:04 +00:00
Vachan Kudmule 755d065107 Added Address Format for India
In India the Postcode is at the city level, thus updated the file in accordance with the Indian Standard of Address Formatting.
@line#382: Hyphenated Postcode to the City Name & State then Country.
REF: 
1) I am an Indian Citizen myself
2) http://en.wikipedia.org/wiki/Address_(geography)#India
3) http://www.addressdoctor.com/en/countries-data/address-formats.html#fbid=Bv4FMyXjoPh
4) http://www.bitboost.com/ref/international-address-formats/india/
2014-10-27 18:12:51 +05:30
Mike Jolley 04dcc6a3f2 Tweak download_product() method 2014-10-27 12:25:05 +00:00
Mike Jolley 8a310f96d8 Split download_headers() method 2014-10-27 11:01:27 +00:00
Mike Jolley abd81e6685 Split check_current_user_can_download() method 2014-10-27 11:01:27 +00:00
claudiosmweb dfde3f0028 Prevents adding trashed products in the cart 2014-10-24 20:12:55 -02:00
Mike Jolley cac813c1de Attempt to improve check_current_user_can_download() 2014-10-24 23:08:50 +01:00
Mike Jolley 63c923394c Additional download handler tweaks 2014-10-24 22:50:23 +01:00
Barry Kooij 80dc739ef0 Add return statement to check_cart_items 2014-10-24 20:56:06 +02:00
Mike Jolley c3023d4c8c WC_Download_Handler - Split download and download_product into multiple methods 2014-10-24 18:21:21 +01:00
Mike Jolley 3aaa397361 WC_Download_Handler - readfile_chunked refactor 2014-10-24 18:21:21 +01:00
Barry Kooij 1ffa095ef1 Merge branch 'master' of github.com:woothemes/woocommerce 2014-10-24 17:04:30 +02:00
Barry Kooij fbff5936d9 Added return statement to set_quantity 2014-10-24 16:02:31 +02:00
Mike Jolley 2b8be95360 Remove # (hash) from get_order_number and add to strings instead as needed.
Most places use Order #X
Some places use Order Number: X

Both are now valid.

Fixes #6518
2014-10-24 14:53:43 +01:00
Barry Kooij 25d9b9e54a WC cart codestyle 2014-10-24 15:35:45 +02:00
Nicola Mustone 2080bcc0c4 Typo in the system report 2014-10-24 13:54:51 +02:00
Mike Jolley cde08791f6 System status table separation Closes #6290 2014-10-24 12:49:27 +01:00
Mike Jolley c62a13148b Instead of using saved title from order, use payment method_title for refund buttons
Closes #6334
2014-10-24 12:11:28 +01:00
Mike Jolley 423b9c4969 Merge pull request #6596 from krautnerds/fix-cropping-in-core-function
Fixed cropping function to respect option settings
2014-10-24 12:01:58 +01:00
Mike Jolley eff1cf53c4 Fixes for sales by cat report, Closes #6606 2014-10-24 11:58:25 +01:00
Mike Jolley 44d0152bfc [2.2] Low stock report should hide no stock
Closes #6611
2014-10-24 11:42:05 +01:00
Mike Jolley f96f01b271 esc_url_raw, huh. What is it good for. Absolutely nuthin #5798 2014-10-23 15:47:21 +01:00
Mike Jolley 2294135bff Rename touch punch to stop grunt breaking minify 2014-10-23 14:38:19 +01:00
Mike Jolley a76f9d9096 Optimise paypal gateway, and revise encoding.
#5798
2014-10-23 14:27:24 +01:00
Mike Jolley d90aee6685 Add fallbacks for wp_get_referer()
Closes #6609
2014-10-23 12:13:42 +01:00
Mike Jolley 7cc71dea44 Allow API edit_product method to update post_name (slug)
Closes #6601
2014-10-23 11:58:39 +01:00
Mike Jolley daf14fc57e Use current user ID for refunds. Closes #6598 2014-10-23 11:36:15 +01:00
Mike Jolley 1739b8b048 Merge pull request #6597 from SiR-DanieL/patch-1
Order note use comment_date instead of GMT date
2014-10-23 10:42:18 +01:00
claudiosmweb 7219addebc [2.2] Fixed POST/PUT products attributes values, closes #6600 2014-10-22 18:46:39 -02:00
Nicola Mustone dcde2a52e2 Removed GMT 2014-10-22 17:31:12 +02:00
Nicola Mustone cbbdfadb74 Order note use comment_date instead of GMT date
The order comment note should not use always GMT date. I think using `comment_date` is better.

Ref Ticket: #224994
2014-10-22 17:28:25 +02:00
Florian Ludwig d443823a52 Fixed constant value cropping to option setting
I don’t think that it is the right way to set the cropping by checking
if the ‚crop’ option is set because it could have been set to 0 in the
options. In that case it would be cropped either way because isset
would also return true.
2014-10-22 15:23:20 +02:00
Mike Jolley 997e7e7910 extra sanitisation for product data 2014-10-22 12:12:25 +01:00
Mike Jolley 06aca23919 Enforce slug format of translated edit-address-slugs.
Fixes issues with addresses not loading correctly in edit account.
2014-10-22 11:26:09 +01:00
Mike Jolley bb7f5800f5 Merge pull request #6591 from SiR-DanieL/patch-1
Avoid notice errors with W3 Total Cache
2014-10-22 09:39:55 +01:00
claudiosmweb 861a34c348 Removed the frontend styles setting #6589 2014-10-21 20:12:39 -02:00
claudiosmweb 95605982ba Load billing and shipping address when get the values in checkout, closes #6590 2014-10-21 19:56:20 -02:00
claudiosmweb eba08c41f3 alt attribute from paypal logo now is translatable 2014-10-21 19:31:37 -02:00
Nicola Mustone 359859df5c Avoid notice errors with W3 Total Cache
Avoid errors in the admin with W3 Total Cache when you add an extra space by mistake.
2014-10-21 22:24:55 +02:00
Mike Jolley b349c0883c WP remote GET test for updater
cc @kloon @ChromeOrange
2014-10-21 16:38:03 +01:00
Mike Jolley e917f10b91 Fix 2.3 plain text emails 2014-10-21 16:18:59 +01:00
Mike Jolley 0bc3ad868d [2.2] Fix error message with maximum amount
Fixes #6567
2014-10-21 14:55:43 +01:00
Mike Jolley e4b212cb3a [2.2] Fix stock report queries Closes #6565 2014-10-21 14:50:18 +01:00
Barry Kooij 4d3fbaa9e0 Regex escape mathes before using them as regex to prevent delimiter problems. 2014-10-21 15:20:19 +02:00
Barry Kooij 153664d1f1 Merge branch 'master' of github.com:woothemes/woocommerce 2014-10-21 15:09:52 +02:00
Barry Kooij e122cf482a Changed pregmatch delimiters and optimized regex.
Fixes #6584.
2014-10-21 15:09:43 +02:00
Barry Kooij 77521f699b Optimized cart get_checkout_url method. 2014-10-21 15:08:51 +02:00
claudiosmweb 42820ea88d introduced the wc_strtolower() function, closes #6575 2014-10-21 10:51:16 -02:00
Mike Jolley e41c9f3f91 Merge pull request #6585 from SiR-DanieL/bacs-slashes
Fixed indentation and added wp_unslash
2014-10-21 13:25:02 +01:00
Mike Jolley 4d44bf2c36 Merge pull request #6539 from helgatheviking/variation-is-defined
add variation class method which tests if all the attributes are set
2014-10-21 13:24:10 +01:00
Mike Jolley b09f1062da Merge pull request #6579 from woothemes/hotfix-unqiue-nonce-edit-details
[2.2] Make edit account details nonce unique to customer.
2014-10-21 13:17:36 +01:00
Gerhard 045046492f Fix nonce check on edit address. 2014-10-21 13:24:01 +02:00
Gerhard afc0ddf6e7 Propper verify nonce use on order tracking page. 2014-10-21 09:46:14 +02:00
Gerhard 5c1ad63876 Propper verify nonce use on checkout 2014-10-21 09:44:53 +02:00
Nicola Mustone b9a89e4589 Fixed indentation and added wp_unslash 2014-10-21 09:43:57 +02:00
Gerhard a08b501ebc Propper verify nonce use on edit account. 2014-10-21 08:53:54 +02:00
Gerhard 817e23a807 Propper verfiy nonce use on edit address. 2014-10-21 08:52:19 +02:00
Gerhard 36ae6b8876 remove more debug info. 2014-10-21 08:51:35 +02:00
Gerhard 9b7fd195a7 remove debug info. 2014-10-21 08:51:00 +02:00
Gerhard 1c46b7324a Register nonce used same name as register form button. 2014-10-21 08:50:23 +02:00
Gerhard 9f438edfa0 Correctly use verify nonce on register 2014-10-21 08:41:52 +02:00
Gerhard f2e65f0857 Propper verify_nonce use on reset password functionality. 2014-10-21 08:39:16 +02:00
Gerhard 1bc74317df Use wp_verify_nonce correctly in process_login 2014-10-21 08:33:48 +02:00
Gerhard 1fd61e6d75 Use wp_verify_nonce correctly in save_account_details. 2014-10-21 08:31:48 +02:00
Mike Jolley 96a9e48823 Refactored stock emails with consistent filters mirroring other email classes
Closes #6580
2014-10-20 16:59:02 +01:00
Mike Jolley 6f7ff36940 Prefix filter names #6576 2014-10-20 16:12:35 +01:00
Mike Jolley 1922b377e8 Corrected comment 2014-10-20 16:10:39 +01:00
Mike Jolley 5724d1c43f Merge pull request #6576 from primozcigler/master
Added the filter for the ajax cart_hash
2014-10-20 16:10:23 +01:00
Mike Jolley 4fa1404d86 Merge pull request #6572 from doublesharp/patch-2
Update class-wc-addons-gateway-simplify-commerce.php
2014-10-20 16:06:57 +01:00
Gerhard 1fdff91114 Make edit account details nonce unique to customer. 2014-10-20 09:35:54 +02:00
Primoz Cigler bbdcdc923a Added the filter for the ajax cart_hash, because in some cases (for example when using WPML) the empty string does not refresh the page fragments properly. 2014-10-18 20:54:25 +02:00
Nicola Mustone a14bc870c4 Improved system status 2014-10-18 11:56:58 +02:00
doublesharp 8dae054e0c Update class-wc-addons-gateway-simplify-commerce.php
Use new $order->get_status() in lieu of legacy $order->status to support the new post_status format in WC 2.2
2014-10-18 01:04:40 -07:00
Mike Jolley fa38b34977 Merge pull request #6564 from krautnerds/rest-api-filter-by-product-cat
REST API 2.0: Add possibility to filter products by product_cat
2014-10-17 16:36:44 +01:00
Florian Ludwig 671fcde079 Changed filter name and some code style compliance 2014-10-17 17:34:26 +02:00
Mike Jolley bc0cb6fc53 Merge pull request #6566 from helgatheviking/add-to-cart-handler-2
add custom add to cart handler. update for #5923
2014-10-17 16:28:30 +01:00
Kathy Darling 41c5b18659 add custom add to cart handler. update for #5923 2014-10-17 17:26:50 +02:00
Mike Jolley 8766cfa6df Tweak woocommerce_get_price_html_from_to in #6455 2014-10-17 16:25:54 +01:00
Mike Jolley 2668f0b8dd Merge pull request #6455 from paulwilde/from-to-filters
Introduce filters to get_price_html_from_text() and get_price_html_from_to()
2014-10-17 16:25:16 +01:00
Mike Jolley 20279831e7 Tweak to naming in #6375 2014-10-17 16:24:21 +01:00
Kathy Darling 3d4a534e6a rename method to has_all_attributes_set 2014-10-17 17:24:04 +02:00
Mike Jolley 21784e80cd Merge pull request #6375 from dominic-p/settings-desc
Moved description and tip generation to a separate method
2014-10-17 16:19:02 +01:00
Florian Ludwig 29f152633b RESTAPI 2 Add possibility to filter by product_cat
For products it would be nice to be able to filter by product cat.

usage: filter[product_cat]=CATSLUG
2014-10-17 16:53:14 +02:00
James Koster e27d4afee1 data tabs tweaks. #6562 2014-10-17 14:50:23 +01:00
Mike Jolley ebea42f7ee Merge branch 'pr/6322'
Conflicts:
	.gitignore
2014-10-17 14:43:54 +01:00
Mike Jolley 10fc2f7321 Add separate meta box for wc endpoints 2014-10-17 14:42:35 +01:00
James Koster eb258950bd variations markup / css refactor. #6562 2014-10-17 12:17:30 +01:00
Mike Jolley 5ff8f65d1f Merge pull request #6507 from chrisnharvey/master
Pass cart item values to is_valid_for_product method in WC_Coupon
2014-10-17 12:09:23 +01:00
Mike Jolley d079a7a1a6 Merge pull request #6557 from SiR-DanieL/lost-psw
Fix lost password submitting twice
2014-10-17 11:54:46 +01:00
Tamara Zuk f34187d5d3 Allow for non-integer stock quantities
It looks like a3b522aff8 removed this
ability.
This would be very useful for extensions like Measurement Price
Calculator.
2014-10-17 00:52:56 -04:00
Nicola Mustone 6e9176a5bf Fix disable password submitting twice 2014-10-16 21:59:45 +02:00
Mike Jolley 0718aef09e wc_update_product_stock should update stock regardless, if the meta data doesn't currently exist
Fixes #6553
2014-10-16 17:15:10 +01:00
Mike Jolley 4234502265 Coupon API: Don't return current timestamp when expiry_date is not set
Fixes #6546
2014-10-16 16:59:51 +01:00
Mike Jolley dfa4f8b63a Merge pull request #6552 from Aaron3/patch-1
Fixed API create_order to allow setting line totals.
2014-10-16 16:53:18 +01:00
Mike Jolley 9fb4e1cee4 Merge pull request #6538 from krautnerds/rest-api-all-customer-fix
REST API 2.0 Add possibility to get all customers
2014-10-16 15:54:00 +01:00
Mike Jolley 1af90cd169 Only show integrations subnav when there are multiple integrations. 2014-10-16 15:53:12 +01:00
Mike Jolley 05d5849a67 Check mb_strtolower exists. 2014-10-16 15:53:12 +01:00
Mike Jolley 152105d334 Merge pull request #6548 from SiR-DanieL/patch-2
Fix potential bug
2014-10-16 12:15:17 +01:00
Aaron 0b557e175e Fixed API create_order to allow setting line totals.
$order->add_product expects totals without the `line_` prefix. See https://github.com/woothemes/woocommerce/blob/master/includes/abstracts/abstract-wc-order.php#L149

Without this, setting product coupons doesn't work correctly. (The coupon is saved to the order but no discounts are added to the product.)
2014-10-16 13:56:08 +03:00
Nicola Mustone 437e041d3d Fix potential bug
Added `default` to prevent notices and reordered the code.
2014-10-16 08:56:28 +02:00
Florian Ludwig e1039c127f Reworked code to be Wordpress code style compliant 2014-10-15 19:43:13 +02:00
mgiulio 8567f2f1fd Fix comment 2014-10-15 14:51:15 +02:00
Kathy Darling 0304778f18 add variation class method is_all_defined() which tests if all the attributes are set 2014-10-15 09:11:41 +02:00
Florian Ludwig 3a4cc14f62 Fixed intendation 2014-10-15 00:31:56 +02:00
Florian Ludwig 846c24d119 REST API 2.0 Add possibility to get all customers
usage similar to products and orders: filter[limit]=-1
2014-10-15 00:24:16 +02:00
Mike Jolley 44ad43216e Turn caching back on 2014-10-14 17:01:15 +01:00
Mike Jolley c01bc63020 Correct report handling for full and partial refunds.
Fixes #6530

@claudiosmweb look good?
2014-10-14 16:39:57 +01:00
Barry Kooij b353c75d43 Display excluded categories in coupon error message.
Related #6400.
2014-10-14 16:18:31 +02:00
Barry Kooij 4371c661ec Codestyle. 2014-10-14 16:11:46 +02:00
Barry Kooij 6ea096ad42 Merge branches 'master' and 'master' of github.com:woothemes/woocommerce 2014-10-14 16:10:05 +02:00
Barry Kooij 389eae28c2 Display what products are excluded from using with a coupon.
Fixes #6400.
2014-10-14 16:09:56 +02:00
claudiosmweb 223957089e fixed the new WC_Order_Refund::init() 2014-10-14 10:46:30 -03:00
Mike Jolley 4954020877 Correct refund's init function 2014-10-14 14:31:31 +01:00
Mike Jolley e03cf9c204 Set order_type property, and move actual order loading to separate method to make it easier for sub-classes to handle just that process.
Closes #6513
2014-10-14 14:25:53 +01:00
Mike Jolley c2ce3b0d88 Tidy 2014-10-14 14:25:53 +01:00
Barry Kooij acf6644830 Confirm to user email is sent when sending email from within order edit screen.
Fixes #6461.
2014-10-14 15:18:09 +02:00
Mike Jolley 3df2c39bf5 If order gets cancelled behind the scenes, don't clear user cart
#6524
2014-10-14 12:54:23 +01:00
Mike Jolley e90c634745 Code tidy 2014-10-14 12:54:10 +01:00
Mike Jolley e43285f677 [2.2] Fix /shop/ base URL Non Latin issue with url decode
Fixes #6512
2014-10-14 12:24:45 +01:00
Mike Jolley 4a2a2714f6 Make cart total consider taxes
Fixes #6522
2014-10-14 12:20:38 +01:00
Mike Jolley ea1d61b88e Use mb_strtolower to prevent issues with unicode chars
Fixes #6525
2014-10-14 11:58:28 +01:00
Mike Jolley f2d668a6b6 Allow a delimiter to be set in $item_meta->display()
Fixes #6526
2014-10-14 11:54:20 +01:00
Mike Jolley 30edd0aa05 [2.2] Prevent notice if meta is not set Closes #6514 2014-10-14 11:26:14 +01:00
Mike Jolley 65d9fec4c8 Merge pull request #6520 from GeertDD/patch-1
Fix typo
2014-10-13 23:39:11 +01:00
Mike Jolley d68cab0eec In the US address format, use state code rather than the full state name. 2014-10-13 18:28:38 +01:00
Geert De Deckere b105a24cf8 Fix typo 2014-10-13 15:42:07 +02:00
Chris Harvey 4119e70b3c Setting values to an optional argument 2014-10-13 09:32:40 +01:00
claudiosmweb 61e96b0a8b Prevent warnings in WC_Shipping_Method::is_available() when exclude countries 2014-10-10 23:01:19 -03:00
claudiosmweb 86ef09970a Prevented warnings when countries is empty in shipping methods.
Stopped this erros:

PHP Warning:  array_intersect(): Argument #1 is not an array in
wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php
on line 182
PHP Warning:  in_array() expects parameter 2 to be array, null given in
wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php
on line 194

@mikejolley
2014-10-10 22:46:19 -03:00
Chris Harvey 00c77d1716 Accept cart item values in is_valid_for_product method and pass these to the woocommerce_coupon_is_valid_for_product filter 2014-10-10 15:45:01 +01:00
Chris Harvey 504253c909 Pass cart values to is_valid_for_product method 2014-10-10 15:44:18 +01:00
Mike Jolley b340fd68ae Made tax importer expand postcode ranges.
Closes #4463
2014-10-10 15:18:47 +01:00
Mike Jolley 38000b1785 Define WC tables in wpmu_drop_tables
Closes #5396
2014-10-10 14:48:08 +01:00
Mike Jolley bf885f846e Refactor - get_product_search_form().
Also removed < 2.1 deprecated filter mapping.

Closes #4444
2014-10-10 12:48:05 +01:00
Mike Jolley 98361804e6 Merge pull request #5767 from IAmJulianAcosta/touch-compability
Price filter widget touch compability
2014-10-10 12:16:18 +01:00
Mike Jolley f36cb8b53c [2.2] Make updater set parent backorder status
Closes #6494
2014-10-10 11:28:24 +01:00
claudiosmweb bc1ea4fdea woocommerce_ prefix in refund actions, related #6477 2014-10-09 13:15:42 -03:00
Mike Jolley 5e07ec0382 $cart_totals should be checked to see if its an array
Closes #6496
2014-10-09 16:50:42 +01:00
Mike Jolley 5c1b931438 [2.2] Fix refund date.
Fixes #6499
2014-10-09 16:43:26 +01:00
Mike Jolley 4d084ed7ae Merge pull request #6477 from 75nineteen/master
[Maybe 2.2] Added two hooks to support refund Followup Emails
2014-10-09 15:56:17 +01:00
Mike Jolley cb631793c5 Merge pull request #6489 from BFTrick/css-inliner-2
Adding CSS Inliner
2014-10-09 15:55:57 +01:00
Mike Jolley 728086d175 Merge pull request #6324 from SiR-DanieL/reports-currency
Fixing currency position in reports
2014-10-09 12:39:20 +01:00
Mike Jolley 02f5ed7542 Merge pull request #6327 from SiR-DanieL/order-notes
Fixing order notes date
2014-10-09 12:39:00 +01:00
Mike Jolley 26186f815a Fix potential error if variation doesn't exist 2014-10-09 11:20:46 +01:00
Mike Jolley dc822594fd Merge pull request #6483 from bekarice/email-typos
Fixes typos
2014-10-08 23:06:42 +01:00
Kathy Darling 2c63d5ca13 add filter to rename Customer Details section 2014-10-08 23:58:13 +02:00
Kathy Darling eaabcd5dfa fix variable naming error 2014-10-08 23:57:48 +02:00
Kathy Darling f13a7142fe make `woocommerce_email_order_meta_keys` filter args match `woocommerce_email_customer_details_keys` 2014-10-08 23:49:12 +02:00
Kathy Darling a13218eba2 add customer details and addresses to emails via `woocommerce_email_customer_details` hook 2014-10-08 23:47:50 +02:00
Patrick Rauland 4b30a2aed5 implementing emogrifier email css inliner 2014-10-08 15:34:31 -06:00
Patrick Rauland b5fb174697 adding emogrifier class for inlining email styles 2014-10-08 15:32:46 -06:00
Mike Jolley 666b25b352 Removed save_post remove_action call which breaks 3rd party plugins.
Fixes #6485, but means #6376 needs another solution.
2014-10-08 21:30:52 +01:00
Beka Rice de0e01f05b Fixes typos 2014-10-08 12:21:23 -04:00
Mike Jolley b041093194 [2.2] Added woocommerce_product_subcategories_hide_empty filter
Use add_filter( ‘woocommerce_product_subcategories_hide_empty’,
‘__return_true’ ); to enable. Fixes #6482
2014-10-08 15:19:54 +01:00
Mike Jolley 853e17d28f [2.2] Prevent address fields being empty when editing an address within an order
Fixes #6476
2014-10-08 15:13:26 +01:00
Mike Jolley 8d38401d64 [2.2] Product attribute shortcode should return columns class
Fixes #6481
2014-10-08 15:07:03 +01:00
Mike Jolley e9393ddaf7 Settings API should use h3 rather than h4 when outputting titles 2014-10-08 15:06:38 +01:00
75nineteen Media f57de2cf9a Added two hooks to support refund Followup Emails 2014-10-07 15:58:21 -07:00
Mike Jolley c6c5265493 Conflict 2014-10-07 11:10:29 +01:00
Mike Jolley 3f6e6309be define $view 2014-10-07 11:09:42 +01:00
Mike Jolley 80716fbd46 Corrected get_return_url docblock 2014-10-07 11:09:38 +01:00
Mike Jolley 8c3d142002 define $transients_to_clear 2014-10-07 11:09:35 +01:00
Mike Jolley 615ebc3916 is_GB_postcode define array 2014-10-07 11:09:32 +01:00
Mike Jolley 742594e207 Tweaks to order class 2014-10-07 11:09:29 +01:00
Mike Jolley 58904fcf83 Removed deprecated get_product() calls 2014-10-07 11:09:25 +01:00
Mike Jolley 090ab4a56d Tweaks to report class 2014-10-07 11:09:22 +01:00
Mike Jolley ac14427c32 get_order_report_data should return string 2014-10-07 11:09:19 +01:00
Mike Jolley 1de3b8a034 Set default $query 2014-10-07 11:09:16 +01:00
Mike Jolley d52664d738 Tweak report debug output - add pre 2014-10-07 11:09:12 +01:00
Mike Jolley 98ec3da5ac Merge pull request #6472 from thenbrent/edit_order_currency
Display order & item totals with correct currency on Edit Order screen
2014-10-07 10:16:16 +01:00
thenbrent 66cbf9f3a3 Tabs & spaces 2014-10-07 15:16:59 +10:00
thenbrent 6869403a39 Disable autosave for all order types w/ meta boxes 2014-10-07 15:13:56 +10:00
thenbrent 94355b73dc Display order & item totals with correct currency
If a store changes currency or is using an extension which allows for
purchasing in multiple currencies, the currency symbol displayed on the
Edit Order admin screen may be incorrect for previous orders because
it uses the `wc_price()` fallback, which is the site wide currency
rather than the currency for that specific order. This fixes that.
2014-10-07 09:59:52 +10:00
Mike Jolley 589da28f42 Small tweak on text in #6457 2014-10-06 14:31:32 +01:00
Mike Jolley 83d8eb7fd8 Merge pull request #6457 from bryceadams/master
Re-do coupon free shipping option desc issue #6391
2014-10-06 14:29:16 +01:00
Mike Jolley 46a753cb74 [2.2] Unhook save_meta_boxes after first successful run to prevent race conditions
Fixes #6376
2014-10-06 14:26:22 +01:00
Mike Jolley 700369c386 Refund report changes
1. Ensure refund order_total is negative and reflects the full amount,
not just line items
2. Ensure transients are cleared when doing refunds
3. sales-reports order types so we can exclude refunds from pure
‘sales’ reporting
4. Tweak placement of refunds in legend.

Closes #6411
2014-10-06 13:39:53 +01:00
James Koster ef28c43862 move proceed to checkout button. closes #5496 2014-10-06 12:33:39 +01:00
Mike Jolley 90297a09af [2.2] When formatting meta data for display, suffix items to prevent issues when there are multiple values for the same meta key
Fixes #6404
2014-10-06 12:17:07 +01:00
Mike Jolley 7d9598d0a8 [2.2] Core still has issues dealing with pad_counts + parent when getting categories.
Workaround by not hiding empty cats, then filter the returned list
using wp_list_filter. Fixes #6459
2014-10-06 11:41:33 +01:00
Gustavo Bordoni c335d223d8 Remove all calls to get_page(), as it was deprecated on WordPress 3.5.0 2014-10-06 06:55:45 -03:00
Mike Jolley 9947c22cfe Prevent order statuses affecting other queries.
Closes #6437
2014-10-03 14:35:45 +01:00
Mike Jolley d1de7f42b9 Made template debug mode set WC_TEMPLATE_DEBUG_MODE constant and remove all overrides for all template loading functions.
Closes #6436
2014-10-03 10:52:11 +01:00
Bryce 5a6f0b1529 Re-do coupon free shipping option desc issue #6391
I didn’t update the POT as was having some poedit issues
2014-10-03 16:44:57 +07:00
Mike Jolley c8ffee57ff [2.2] Ensure rate is double
Fixes #6442
2014-10-03 10:11:14 +01:00
Mike Jolley 3d36f446d3 Deprecate woocommerce_admin_css action - it's pointless
Will be removed in 2.4. Closes #6456
2014-10-03 10:07:28 +01:00
Paul Wilde 279c01d005 Introduce filters to get_price_html_from_text() and get_price_html_from_to(). 2014-10-02 20:11:34 +01:00
Mike Jolley 2b55643460 Notices from earlier cache helper change 2014-10-02 17:18:04 +01:00
Mike Jolley b6835a009c wc_paying_customer to only increase for 'simple' orders and added tool to refresh stats to customer list.
Closes #6395
2014-10-02 16:44:36 +01:00
Mike Jolley 973112d132 When user tries to download a file and isn't logged in, send them to the account page with a notice.
Closes #6397
2014-10-02 15:21:39 +01:00
Mike Jolley 67e47ab682 Updated prevent_caching() method to work if a cart/checkout page isn't set.
Closes #6396
2014-10-02 14:52:09 +01:00
Mike Jolley 819436f0a3 Merge pull request #6388 from quadshot/action-buttons
Allow adding custom 'action buttons' in order item metabox
2014-10-02 14:06:11 +01:00
Mike Jolley 0512a114ec Merge pull request #6386 from justinstern/master
Adds a woocommerce_add_to_cart_sold_individually_quantity filter
2014-10-02 14:05:41 +01:00
Mike Jolley e5ebeff99c Merge pull request #6383 from BFTrick/iss-6358
Refactoring Email Classes to Use One Send Method
2014-10-02 14:00:18 +01:00
Mike Jolley 5f407f9830 Merge pull request #6401 from SiR-DanieL/patch-1
woocommerce_found_customer_details filter improvement
2014-10-02 13:58:10 +01:00
Mike Jolley 3964d3fc3c Merge pull request #6417 from corvannoorloos/attachment-thumbnail-url
category and product (-column) image(s) should be inserted as a thumbnail
2014-10-02 13:52:12 +01:00
Mike Jolley 3e20b113d6 Add hook to refund html
Closes #6406
2014-10-02 13:40:34 +01:00
Mike Jolley b519eb09d4 Merge pull request #6426 from ChuckMac/Checkbox_Tooltip
Enable tooltip for woocommerce_wp_checkbox in metabox
2014-10-02 13:32:36 +01:00
Mike Jolley a8d5ca561d Merge pull request #6405 from tamarazuk/master
[#6337] Return variation meta if it exists
2014-10-02 12:42:45 +01:00
Mike Jolley 61cb9814e6 Merge pull request #6446 from ragulka/unescape-redirect
Do not escape redirect url in form handler
2014-10-02 10:34:48 +01:00
Mike Jolley c9bb3cab87 Merge pull request #6423 from mgiulio/wc-gateway-paypal
[2.2] Use 'no' to disable the gateway
2014-10-02 10:11:16 +01:00
Mike Jolley 4f8735a86f Merge pull request #6443 from franticpsyx/master-filter-get_children
Port 'woocommerce_get_children' filter from 2.2-bleeding
2014-10-02 10:10:11 +01:00
Mike Jolley f652a17d6d Merge pull request #6448 from bekarice/textarea-maxlength
Add maxlength attribute to textarea fields
2014-10-02 10:09:12 +01:00
Chuck Mac ec83e932ed Adding refunds to Sales by Date report
Create a new axis for "in refunds" on the sales by date report.  Include
the refunds in the included time period.  Refunds do not reduce the sales
total in the report.
2014-10-01 23:35:34 -04:00
Beka Rice fa686eb9a7 Add maxlength attribute to textarea fields 2014-10-01 16:35:03 -04:00
Illimar Tambek 97ccd7c50f Do not escape redirect url in form handler 2014-10-01 21:26:35 +03:00
Manos Psychogyiopoulos 0966519adc woocommerce_get_children filter from 2.2 2014-10-01 19:42:20 +03:00
Mike Jolley 0a7a72c3ca Merge pull request #6419 from niravmehta/master
Minor improvement
2014-10-01 19:16:50 +03:00
Mike Jolley 2de218b803 Merge pull request #6424 from mgiulio/fix-abstract-wc-order-comment
Fix get_cart_tax() comment
2014-10-01 18:52:03 +03:00
Mike Jolley 3f0271e46a Additional args for woocommerce_get_endpoint_url
Closes #6439
2014-10-01 16:50:25 +01:00
Chuck Mac d8a8970bd4 Enable tooltip for woocommerce_wp_checkbox in metabox
Allow the use of the `desc_tip` value to add a tooltip to the checkbox
field as allowed by other metabox fields.
2014-09-29 12:15:26 -04:00
mgiulio 56c2e5838d Fix get_cart_tax() comment 2014-09-29 17:11:34 +02:00
mgiulio da0a42be28 Use 'no' to disable the gateway 2014-09-29 12:08:19 +02:00
Nicola Mustone 1337c9cd7b Added $user_id 2014-09-29 09:13:56 +02:00
Ratnakar ad1b2afb4a Use of WordPress Insert instead of direct query 2014-09-29 10:56:03 +05:30
Cor van Noorloos e4bc36fcec category meta box and category column thumbnail 2014-09-28 17:23:58 +02:00
Cor van Noorloos ed1d64fc63 product column thumbnail 2014-09-28 17:23:27 +02:00
Mike Jolley 878cae2c7a Merge pull request #6403 from Necrotex/master
New filter for Shipping Tax
2014-09-27 19:55:39 +03:00
James Koster e92be69c9c Increase default product image sizes. closes #5480 2014-09-26 17:49:27 +01:00
James Koster 63f45a8720 variation visibility, based on #6182. #5661 2014-09-26 17:22:43 +01:00
James Koster 81bf8d3a9d remove tooltip and add edit action link. #6360 2014-09-26 14:53:45 +01:00
James Koster a66ae12707 bye bye coupon styling. closes #6360 2014-09-26 14:37:26 +01:00
Tamara Zuk c5374201cb [#6337] Return variation meta if it exists
includes some code standards cleanup
2014-09-26 06:45:15 -04:00
Andre 'Necrotex' Peiffer b83a75181d added new filter for shipping tax 2014-09-26 10:35:59 +02:00
Nicola Mustone 12129218fb woocommerce_found_customer_details filter improvement
Adding $type_to_load attr to woocommerce_found_customer_details filter
2014-09-26 10:28:46 +02:00
Mike Jolley 5022a1a88e Merge pull request #6399 from BFTrick/translation-button-typo
Capitalizing the Update Translation Button
2014-09-26 11:21:48 +03:00
Patrick Rauland c6635d84e3 capitalizing the update translation button 2014-09-25 15:41:18 -06:00
Loushou a37ea4976b new filter for adding custom 'action buttons' on the order_items metabox in the admin edit order screen
loushou
2014-09-24 17:41:13 -07:00
justinstern 26806660d4 include original $quantity with
woocommerce_add_to_cart_solid_individually_quantity filter
2014-09-24 16:54:15 -04:00
justinstern b1c9db3282 Adds a woocommerce_add_to_cart_sold_individually_quantity filter
Additional control over the quantity added when a product is "sold
individually"
2014-09-24 16:38:52 -04:00
mgiulio ae728acc63 Use wc_get_order in simplify-commerce 2014-09-24 17:30:14 +02:00
Mike Jolley 1c9331737e Minor tweaks to cart shortcode 2014-09-24 15:26:53 +01:00
Mike Jolley 416d167842 Merge pull request #6380 from haroldkyle/master
[2.2] Remove notice for undefined action property of ajax request
2014-09-24 14:44:57 +01:00
Mike Jolley 06f82686eb [2.2] and test, use term_taxonomy_id for transient names 2014-09-24 14:22:02 +01:00
Harold Kyle 2bf2485910 remove notice for undefined action property of ajax request 2014-09-24 09:12:26 -04:00
Mike Jolley 744549ad13 [2.2] Use variation get_stock_quantity() for max_qty
Fixes #6339
2014-09-24 11:15:56 +01:00
Mike Jolley b8bcb5ee6e Removed deprecated methods from WC_Frontend_Scripts and rewrote script registration and localization to run once.
Closes #6338
2014-09-24 10:57:39 +01:00
Dominic a96c8fa836 Moved description and tip generation to function
This would allow plugins to easily generate the necessary HTML for the
tooltips and field descriptions when implementing their own custom
setting field types.
2014-09-23 15:27:15 -07:00
Patrick Rauland 4df8fca1bd using WC_Email send method for all WC emails 2014-09-23 11:02:00 -06:00
Patrick Rauland 71c60d6b64 removing all isntances of abstract from the WC_Email class 2014-09-23 10:20:28 -06:00
Patrick Rauland 1498198215 renaming and moving abstract-wc-email file 2014-09-23 10:12:43 -06:00
claudiosmweb 2a255de172 changed the LESS compiler to SCSS compiler #5606 2014-09-22 15:30:07 -03:00
Mike Jolley 53ea10a897 Merge pull request #6352 from NickIvanter/patch-1
Allow WC_Order to be constructed w/o Order ID
2014-09-22 14:38:27 +01:00
Mike Jolley 229d9135ef Prevent errors when country field is disabled
Fixes #6336
2014-09-22 13:23:31 +01:00
Nick Ivanter 3fcae6e63f Allow WC_Order to be constructed w/o Order ID
This was allowed in WooCommerce 2.1 and some plugins rely on this behavior. Also, there seems to be no downside, as the parent class WC_Abstract_Order similarly doesn't require an Order ID at construction.
2014-09-22 14:58:18 +04:00
Mike Jolley a91c74d794 Merge pull request #6309 from quadshot/before-oi-meta
filter for adding info before order item itemmeta in order metabox
2014-09-22 10:36:48 +01:00
Mike Jolley 0aca8e01f8 Merge pull request #6305 from quadshot/line-buttons
filter to allow custom 'add line' buttons
2014-09-22 10:23:46 +01:00
Mike Jolley 506a66b3a4 Merge pull request #6342 from axisthemes/ASBPATH-2
Absolute path should have curly braces
2014-09-22 10:21:05 +01:00
Mike Jolley 4e99e629f5 Merge pull request #6341 from axisthemes/ASBPATH
Absolute path should have curly braces
2014-09-22 10:20:59 +01:00
Mike Jolley 84c3e18a60 Merge pull request #6345 from Ninos/createaccount
Checkout - createaccount value check
2014-09-22 10:20:51 +01:00
Mike Jolley e42d4b24da Merge pull request #6333 from quadshot/save-order-items
Inform plugins of 'save_order_items'
2014-09-22 10:18:00 +01:00
Ninos Ego 966f6f1bad createaccount value check 2014-09-21 20:45:42 +02:00
shivapoudel ae3bc4051f Absolute path, Indentation & docblocks fix for includes/admin/meta-boxes/*.php :) 2014-09-21 01:50:06 +05:45
shivapoudel a318f9dae2 Absolute path and Indentation fix for includes/admin/reports/*.php :) 2014-09-21 01:43:32 +05:45
shivapoudel ab52b93592 Absolute path and Indentation fix for includes/admin/settings/*.php :) 2014-09-21 01:40:47 +05:45
shivapoudel 8c211705ca Absolute path and Indentation fix for includes/admin/importers/*.php :) 2014-09-21 01:39:24 +05:45
shivapoudel 4091fe00ad Absolute path and Indentation fix for includes/admin/{roots-files}.php :) 2014-09-21 01:37:30 +05:45
shivapoudel 11a1be6b12 Absolute path and Indentation fix for includes/shipping/*.php :) 2014-09-21 01:29:32 +05:45
shivapoudel bc5156ff4a Absolute path and Indentation fix for includes/gateways/*.php :) 2014-09-21 01:27:58 +05:45
shivapoudel fedb4dae7c Absolute path and Indentation fix for includes/widgets/*.php :) 2014-09-21 01:22:45 +05:45
shivapoudel e1eb62aa8e Absolute path and Indentation fix for includes/walkers/*.php :) 2014-09-21 01:20:47 +05:45
shivapoudel f170f461b3 Absolute path and Indentation fix for includes/updates/*.php :) 2014-09-21 01:19:50 +05:45
shivapoudel e53539f447 Indentation and new lines fix for includes/shortcodes :) 2014-09-21 01:18:32 +05:45
shivapoudel d2272cd79b Absolute path and Indentation fix for includes/libraries/class-cssmin.php :) 2014-09-21 01:17:11 +05:45
shivapoudel 5e09f15c91 Absolute path and Indentation fix for includes/emails/*.php :) 2014-09-21 01:15:40 +05:45
shivapoudel c60ce1ec93 Absolute path fix for REST API v1 2014-09-21 01:12:54 +05:45
shivapoudel e6f6bcf368 Absolute path fix for REST API v2 2014-09-21 01:09:20 +05:45
shivapoudel e28e31fe63 Absolute path fix for wc-term-functions.php 2014-09-21 00:56:49 +05:45
shivapoudel f4fd45a3cc Absolute path fix for wc-template-hooks.php 2014-09-21 00:56:09 +05:45
shivapoudel 8884266bac Absolute path fix for wc-template-functions.php 2014-09-21 00:55:45 +05:45
shivapoudel 58595f0f2b Absolute path fix for wc-order-functions.php 2014-09-21 00:55:04 +05:45
shivapoudel 60e4250ba6 Absolute path fix for wc-notice-functions.php 2014-09-21 00:54:43 +05:45
shivapoudel 893e1e508c Absolute path fix for wc-formatting-functions.php 2014-09-21 00:54:16 +05:45
shivapoudel 60fb5595aa Absolute path fix for wc-deprecated-functions.php 2014-09-21 00:53:35 +05:45
shivapoudel ddb8c62618 Absolute path fix for wc-coupon-functions.php 2014-09-21 00:52:35 +05:45
shivapoudel 5eaa138d21 Absolute path fix for wc-core-functions.php 2014-09-21 00:52:11 +05:45
shivapoudel 1f9ba73b96 Absolute path fix for wc-conditional-functions.php 2014-09-21 00:51:46 +05:45
shivapoudel eab625e185 Absolute path fix for wc-cart-functions.php 2014-09-21 00:51:15 +05:45
shivapoudel 5ab2bdcca4 Absolute path fix for wc-attribute-functions.php 2014-09-21 00:49:38 +05:45
shivapoudel 3a38fba2b0 Absolute path fix for class-wc-webhook.php 2014-09-21 00:48:51 +05:45
shivapoudel 03c3e27c5d Indendation fix by .editorconfig 2014-09-21 00:47:51 +05:45
shivapoudel 961f147d18 Absolute path fix for class-wc-shipping.php 2014-09-21 00:46:02 +05:45
shivapoudel 2200a3ae2e Absolute path fix for class-wc-session-handler.php 2014-09-21 00:44:26 +05:45
shivapoudel 922e74e984 Absolute path fix for class-wc-query.php 2014-09-21 00:43:54 +05:45
shivapoudel 1f4db18e7f Absolute path fix for class-wc-product-variation.php 2014-09-21 00:43:30 +05:45
shivapoudel 26d4abb88c Absolute path fix for class-wc-product-variable.php 2014-09-21 00:42:58 +05:45
shivapoudel f81f670a06 Absolute path fix for class-wc-product-simple.php 2014-09-21 00:42:32 +05:45
shivapoudel 3fc03a184d Absolute path fix for class-wc-product-grouped.php 2014-09-21 00:42:09 +05:45
shivapoudel a3d4d87ca5 Remove newline 2014-09-21 00:41:34 +05:45
shivapoudel f60444c969 Absolute path fix for class-wc-product-external.php 2014-09-21 00:40:53 +05:45
shivapoudel 5f05a78669 Line and indendation fix 2014-09-21 00:39:33 +05:45
shivapoudel 73b1185375 Removed newline ;) 2014-09-21 00:36:42 +05:45
shivapoudel 3addd725e7 Added newline ;) 2014-09-21 00:36:01 +05:45
shivapoudel a4ec52f788 Absolute path fix for class-wc-install.php 2014-09-21 00:35:02 +05:45
shivapoudel b94c4cc0a2 Added newline ;) 2014-09-21 00:33:04 +05:45
shivapoudel 342d3186db Found and fix indendation for multiline comments for class-wc-coupon.php :) 2014-09-21 00:31:22 +05:45
shivapoudel b4abca1c82 Found and fix indendation for multiline comments :) 2014-09-21 00:29:22 +05:45
shivapoudel 96df6bd961 Absolute path fix for WC_API class 2014-09-21 00:27:10 +05:45
shivapoudel 303a5b28d0 Absolute path fix for abstract classes :) 2014-09-21 00:24:49 +05:45
splashingpixels bf9c1689fb revised quick-edit featured product option not able to unselect 2014-09-19 10:49:26 -07:00
Loushou 1252db79f8 changed filter name to be past tense for clarity
loushou
2014-09-19 09:08:54 -07:00
Loushou becdc0977d filter to inform other plugins that order items have been saved in the admin
loushou
2014-09-19 08:57:02 -07:00
Mike Jolley 80d4a73f52 Added acceptance marks to PayPal Standard where applicable to replace generic PayPal icon. 2014-09-19 16:55:14 +01:00
Loushou 0f8c8886e0 adding the after
loushou
2014-09-19 08:34:34 -07:00
Loushou 09159f83c7 removing extra param and correcting whitespace 2014-09-19 08:05:25 -07:00
Mike Jolley 4803937222 Fix adding items to orders
* Fix - When manually adding items to an order, show tax columns.
* Fix - When manually adding items to an order, include variation data.

Closes #6313
2014-09-19 12:52:26 +01:00
Mike Jolley 08cf7c7406 Check order exists before sending
Closes #6310
2014-09-19 12:23:29 +01:00
Mike Jolley 8f62f00f4d Fix - When bulk editing, don't allow sale price to be negative.
Fixes #6325
2014-09-19 12:18:07 +01:00
Mike Jolley 1fb8582acf Merge pull request #6320 from ryanstockau/master
Fix infinite redirect loop on cart page
2014-09-19 10:57:25 +01:00
Mike Jolley fe3ee67b4f Merge pull request #6301 from anagio/master
Small grammar edit to template notice
2014-09-19 10:44:01 +01:00
Nicola Mustone 46689ce083 Fixing order notes date 2014-09-19 09:55:16 +02:00
Nicola Mustone 8a7ed9a053 Fixing currency position in reports 2014-09-19 09:23:58 +02:00
Nicola Mustone 1f1d5d6bab Adding endpoints in Appearance > Menus 2014-09-19 09:06:28 +02:00
Ryan Stock 4998f88dc5 Fix infinite redirect loop on cart page
Fix for issue #6319:
https://github.com/woothemes/woocommerce/issues/6319
2014-09-19 13:24:31 +10:00
claudiosmweb 8c0ddfcb02 fixed admin post type filters, closes #6312 2014-09-18 17:10:02 -03:00
Loushou f17bb56891 filter to allow custom 'add line' buttons
loushou
2014-09-18 09:05:42 -07:00
Loushou f0c4b80113 filter for adding info before order item itemmeta in order metabox
loushou
2014-09-18 08:55:13 -07:00
Loushou 76f3049751 adding a method to allow default billing information in order metabox
loushou
2014-09-18 08:33:49 -07:00
anagio c1ba19991f Small grammar edit to template notice 2014-09-18 09:34:21 -04:00
Mike Jolley dd6fa30c3d Fix redirect on paginated search results
Fixes #6281
2014-09-18 13:23:00 +01:00
Mike Jolley 28e13bdab3 Add notice when order is no longer editable.
Closes #6298
2014-09-18 11:32:25 +01:00
Mike Jolley 579ec4ee0c Totals in taxes by date report.
Fixes #6299
2014-09-18 10:28:45 +01:00
Mike Jolley a092fce0c2 Ensure product exists in API call
Fixes #6288
2014-09-17 17:23:04 +01:00
Mike Jolley 8e35bbf0ba Clear transients for new parent when saving a grouped product. Closes #6278 2014-09-17 14:18:43 +01:00
Mike Jolley 493285f101 When updating order status, ensure its a valid WC order status.
Fixes #6285
2014-09-17 12:24:10 +01:00
Mike Jolley 1b68406202 Merge pull request #6284 from ragulka/rating-count-value
Allow getting rating count for a specific rating value
2014-09-17 12:05:45 +01:00
Mike Jolley 1d3b7a52c1 Improved headers sent notice to include file and line. 2014-09-17 11:40:54 +01:00
Mike Jolley 09a59a5e7e Prevent errors when adding 'zero-rated' tax on checkout. 2014-09-17 11:40:54 +01:00
Barry Kooij 06103c6cd2 Fixed a varation product width inheritance bug. 2014-09-17 11:00:14 +02:00
Illimar Tambek fb19f5b9c5 Improve naming & comments 2014-09-17 11:27:43 +03:00
Illimar Tambek 386011ffae Allow getting rating count for a specific rating number 2014-09-17 11:03:10 +03:00
claudiosmweb 8719910441 Fixed WooCommerce submenu in multisites
reported in
https://wordpress.org/support/topic/error-message-in-multi-site-from-223

@mikejolley
2014-09-16 19:03:50 -03:00
Mike Jolley 955f497dd7 Prevent headers being sent by wp_send_json()
Fixes #6244
2014-09-16 13:24:05 +01:00
Barry Kooij 72c6f262f1 Width should be allowed to be set in a Product Variation. 2014-09-16 14:02:26 +02:00
Barry Kooij b1daae5d0d Setup variable to prevent a notice if no variable data is set. 2014-09-16 13:21:09 +02:00
Mike Jolley d6c1643a12 Merge pull request #6266 from maxrice/fix-6255
Use `note` for creating/updating order with customer note
2014-09-16 10:51:37 +01:00
Mike Jolley ce1236bd95 Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	readme.txt
2014-09-16 10:48:46 +01:00
Mike Jolley a3b522aff8 Prepare update queries. 2014-09-16 10:45:28 +01:00
Mike Jolley 6dd8b11762 Fixed minor XSS issue on reports screens by escaping and sanitizing 'range' GET variable. 2014-09-16 10:33:47 +01:00
claudiosmweb 6a0d5ebf0c Fixed number of processing orders display
Reported in
http://wordpress.org/support/topic/number-of-processing-orders-missing-from-left-panel

Cannot use wc_get_order_type() before wc_register_order_type()

@mikejolley
2014-09-15 23:32:34 -03:00
claudiosmweb 8464ad0b17 improved the WC_Admin_Post_Types::media_view_strings() 2014-09-15 22:10:20 -03:00
claudiosmweb 89a0c82b54 fixed "Set product image" media gallery title in non-product post type, closes #6267 2014-09-15 19:09:25 -03:00
Max Rice 445aaa78f9 Use `note` for creating/updating order with customer note
Fixes #6255
2014-09-15 14:44:11 -04:00
claudiosmweb f9454b7c3b fixed the decimal format in wc_save_order_items() for taxes, close #6253 2014-09-15 14:03:14 -03:00
Barry Kooij 9723ed8096 Added settings sub title styling 2014-09-15 17:47:01 +02:00
Mike Jolley 41362ab60c Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	readme.txt
2014-09-15 16:38:32 +01:00
Mike Jolley 75eb07c974 Fix paypal mobile checkout. Closes #6165 2014-09-15 16:38:07 +01:00
Barry Kooij a93b107e55 removed unused default 2014-09-15 17:30:15 +02:00
claudiosmweb db8a07a8b8 removed "or" in favor to "||" 2014-09-15 10:57:46 -03:00
Mike Jolley d2fc731d4e Merge pull request #6258 from shivapoudel/patch-2
Some changes in WC_Cart
2014-09-15 09:46:20 +01:00
Mike Jolley 82bab9d71d Merge pull request #6245 from 75nineteen/master
Fix duplication in Ship to Multiple Locations ext
2014-09-15 09:44:31 +01:00
Shiva Poudel 0b58d335b8 Reverted access public
Thanks! @tamarazuk
2014-09-15 08:17:19 +05:45
Shiva Poudel 6e58c45196 @access public in docblock 2014-09-15 01:40:24 +05:45
Shiva Poudel 40fe9ffd2f check_cart_item_validity() should have have public 2014-09-15 01:37:51 +05:45
Shiva Poudel 40ec40a411 Found and fix docblock comment 2014-09-15 01:35:22 +05:45
Shiva Poudel 8e09892064 better at get_option() @ L91 2014-09-15 01:33:13 +05:45
Shiva Poudel a4f6b0f9f9 Converted Indentations to tabs 2014-09-15 01:29:56 +05:45
Shiva Poudel f829e53a96 New line for docblock 2014-09-15 01:24:50 +05:45
Shiva Poudel ccf15ff06b Better docblock ;) 2014-09-15 01:22:48 +05:45
Shiva Poudel cf421b1c12 OOPS! again time constant 2014-09-15 01:18:46 +05:45
Shiva Poudel a2ab230efb Use of time constant 2014-09-15 01:17:14 +05:45
Shiva Poudel 1e7a3ae6d3 indendation Improvement for WC_Cart 2014-09-15 01:14:32 +05:45
claudiosmweb b47e649e6a Improved the translation update messages
When is multisite shows only the button for download directly
If not is multisite will show the button for make the download with the
WordPress update system and the button to download directly
And added a new button to hide the update message

@mikejolley
2014-09-12 19:32:21 -03:00
claudiosmweb dc0122a4d6 Created method for install the translations directly
This will download the package directly from Github and install using
WP_Filesystem()

@mikejolley
2014-09-12 18:55:50 -03:00
75nineteen Media 8b48fc4267 Fix duplication in Ship to Multiple Locations ext
This should solve the issues related to multiple locations getting
duplicated costs.
2014-09-12 11:11:40 -04:00
Mike Jolley 857f85fd8e Merge pull request #6242 from chrisnharvey/patch-1
Fixing typo with get_error_message being referenced as a property
2014-09-12 14:20:36 +01:00
Mike Jolley 59ef851302 Readme for #6243 2014-09-12 14:18:11 +01:00
Chris Harvey 4d72eedae2 Checking password reset key using phpass 2014-09-12 14:03:39 +01:00
claudiosmweb 066eb3c5b0 fixed wc_get_order_status_name() appear as wc 2.1 order status 2014-09-12 10:01:49 -03:00
Chris Harvey 4a8ad5f09d Fixing typo with get_error_message being referenced as a property 2014-09-12 13:36:17 +01:00
Mike Jolley aee2b62c85 Added woocommerce_get_settings_ID filters.
Closes #6231
2014-09-12 12:20:06 +01:00
Mike Jolley 79ce7ab926 If a refund fails, delete refund post.
Fixes #6238
2014-09-12 10:09:26 +01:00
Mike Jolley accd20aaae Merge pull request #6235 from woothemes/6226-fix-order-fields-on-checkout
Dynamically get the address fields in WC_Checkout::create_order()
2014-09-12 09:41:33 +01:00
Mike Jolley ec5cce06e5 Merge pull request #6239 from vlandfair/patch-1
Minor Fix: Fixed Product Tag Arguments
2014-09-12 09:35:12 +01:00
Mike Jolley 5b3b855377 Merge pull request #6233 from shivapoudel/patch-2
Fix with $ for Colombian Peso
2014-09-12 09:34:28 +01:00
Mike Jolley ec28795a4e Merge pull request #6232 from shivapoudel/patch-1
Fix some issues with Currency code for NPR
2014-09-12 09:33:47 +01:00
Vadonis Landfair 1b8ef82d21 Minor Fix: Fixed Product Tag Arguments
Product Tags are labeled as non-hierarchical, but they are labeled with hierarchical labels instead of non-hierarchical labels. On the back-end everything shows up and works as intended. WordPress just ignores the mislabeled args and uses the correct ones by default. Always good to follow register_taxonomy() args :p.
2014-09-11 23:57:43 -05:00
claudiosmweb a84021306e fixed some coding standards in includes/admin/class-wc-admin-settings.php 2014-09-11 21:40:30 -03:00
claudiosmweb ec9e08ba7d Fixed images crop option and wc_get_image_size() function
Reported in http://wordpress.org/support/topic/hard-crop

@mikejolley
2014-09-11 21:22:30 -03:00
claudiosmweb cfb8d42bcb Added missing vars in ajax add_variation() method, closes #6234
@mikejolley
2014-09-11 18:16:37 -03:00
claudiosmweb 48b5014036 fixed the filling of the shipping fields in WC_Checkout::create_order() 2014-09-11 17:31:57 -03:00
claudiosmweb 591d3dc3be added methods to dynamically get the address fields in WC_Checkout::create_order(), closes #6226 2014-09-11 17:12:17 -03:00
Shiva Poudel 22f80cf173 Fix indendation ❤️ 2014-09-12 00:45:43 +05:45
Shiva Poudel 647988d22e Fix with $ for Colombian Peso
No symbol shown in Currency Settings selection so ;)
2014-09-12 00:41:02 +05:45
Shiva Poudel 51ba1df181 Fix some issues with Currency code for NPR
NRP was typo mistake so found the bug and fix. I have send pull for this Nepali currency previously.
2014-09-12 00:31:41 +05:45
Mike Jolley 192c1d4169 In system status, show path to template file override.
Closes #6227
2014-09-11 15:31:55 +01:00
Gerhard deb440ffcf Escape js array labels.
Closes #6222
2014-09-11 15:43:41 +02:00
Mike Jolley 509c10f7e5 Removed postcode for Bahamas.
Fixes #6223
2014-09-11 14:26:22 +01:00
Mike Jolley 7ae41bb4ed Fix - Ensure shipping address gets displayed - fixes needs_shipping_address() method. 2014-09-11 11:11:22 +01:00
Mike Jolley edd37f3d20 Tweak - Display of locale information on system status page.
Closes #6211
2014-09-11 10:49:59 +01:00
Remi Corson b126cc1c63 fixed order status translation 2014-09-11 08:39:00 +02:00
Mike Jolley 3a4ba6e4c8 For regular products, ensure stock level saves on product creation. 2014-09-10 23:55:40 +01:00
Mike Jolley 5343833427 Fix - Saving of variation stock when parent stock management is disabled. 2014-09-10 21:03:37 +01:00
claudiosmweb 37ba3c2de9 fixed the mijireh plugin slug 2014-09-10 15:03:13 -03:00
claudiosmweb 3c4177a579 prevented errors in the installation caused by old plugins 2014-09-10 13:35:46 -03:00
Barry Kooij 14221c0fba Display a backgroud color so text is readable while image loads. 2014-09-10 15:56:29 +02:00
Barry Kooij dc165a5bb6 Fixed a small typo. 2014-09-10 15:49:04 +02:00
Barry Kooij fed1af8811 Only display WooConf banner if WooConf hasn't happend yet. 2014-09-10 15:48:13 +02:00
James Koster 3afde01226 wooconf plug on welcome screen. 2014-09-10 12:18:43 +01:00
Mike Jolley 4b4a067a41 Merge pull request #6208 from ragulka/form-field-id
Add `id` attribute to woocommerce_form_field args
2014-09-10 10:49:08 +01:00
Illimar Tambek 9215fa76f0 Revise id, input_class and label_class escaping 2014-09-10 12:39:31 +03:00
Mike Jolley d2ba3453c7 Merge pull request #6203 from maxrice/fix-order-get-item-total
Fix warnings with WC_Order::get_item_total()
2014-09-10 10:24:41 +01:00
Illimar Tambek cfe15e1e33 Add `id` attribute to woocommerce_form_field args
This change allows developers to supply their own id attribute
when using the `woocommerce_form_field` template function.
The default ID is the escaped key, keeping the default behaviour.
2014-09-10 11:34:37 +03:00
James Collins 1e251d36b6 Fix query error when saving tax rates
Fixes #6202
2014-09-10 09:47:09 +08:00
Max Rice 55d3ba0d9d Fix warnings with WC_Order::get_item_total()
When calling WC_Order::get_item_total() for a fee, $item[‘qty’] is not
set which causes a notice and warning.
2014-09-09 21:23:46 -04:00
claudiosmweb 2f1533ff94 created the wc_get_order_status_label() function 2014-09-09 14:14:10 -03:00
claudiosmweb c85a71dcee fixed the order status label 2014-09-09 14:00:37 -03:00
Max Rice 6ccc10b891 Update API docs to Apiary 2014-09-08 18:09:10 -04:00
Mike Jolley 27a20dd80e Docblock changes 2014-09-08 16:35:40 +01:00
Mike Jolley a187d29242 Update support links and read me versions/text 2014-09-08 16:19:25 +01:00
claudiosmweb 4a302aaba2 fixed the language pack upgrader docblocks 2014-09-08 12:11:47 -03:00
claudiosmweb 8f4e28b0be fixed the language pack upgrader to works well with WP 4.0, closes #6183 2014-09-08 12:08:24 -03:00
Mike Jolley 3fb4deaa2b Prevent woocommerce_apply_base_tax_for_local_pickup breaking tax on virtual orders 2014-09-08 14:48:18 +01:00
Mike Jolley ebed8dbc85 Correction to last commit to deal with tax arrays 2014-09-08 12:45:32 +01:00
Mike Jolley a588442cbb Format refund amounts as decimals
Fixes #6187
2014-09-08 12:42:30 +01:00
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
Mike Jolley 73f481291f Merge pull request #6185 from maxrice/webhooks-fix
Fix webhook delivery request header format
2014-09-08 00:03:12 +01:00
Mike Jolley 801dddf64e Merge pull request #6176 from maxrice/moar-unit-tests
MOAR unit tests
2014-09-08 00:03:03 +01:00
Max Rice 7aa031c56a Fix webhook delivery request header format 2014-09-07 16:10:30 -04:00
Max Rice f70c00ed24 Formatting functions tweaks 2014-09-05 14:35:18 -04:00
Barry Kooij f9c1b17d27 Password protected posts are not hidden from catalog by default anymore, visibility can be set via the 'Catalog visibility' option.
Fixes #6168
2014-09-05 12:23:34 +02:00
Mike Jolley ad78caf955 Merge pull request #6171 from maxrice/fix-simplify-js-load
Don't load simplify javascript when simplify gateway isn't available
2014-09-05 10:04:51 +01:00
Max Rice 81b50b6bd6 Notice functions tweaks 2014-09-05 02:37:12 -04:00
Max Rice ee25790fb9 Don't load simplify javascript when gateway isn't available 2014-09-04 20:27:43 -04:00
Patrick Rauland e202926f73 remove check to make sure order is complete before downloading. fixes #6166 2014-09-04 10:31:38 -06:00
Barry Kooij 73648c1b91 Removed the 'delete_users' case.
Related #6102
2014-09-04 13:30:48 +02:00
Mike Jolley 9e25450572 Replaced get_language call for get_locale 2014-09-04 11:38:36 +01:00
Mike Jolley fd0a9e52b6 Replace usage of WPLANG with get_locale() for installs without WPLANG set
cc @claudiosmweb
2014-09-04 11:33:30 +01:00
Mike Jolley 40c528dc3a Queue language check on install + store checked lang code in option
@claudiosmweb
2014-09-04 09:37:24 +01:00
Mike Jolley 1d13f767b3 Merge pull request #6157 from tamarazuk/coding-standards
Coding standards Part 1
2014-09-03 17:05:42 +01:00
Mike Jolley 349c85b639 Remove redundant wc_order_can_be_edited filter
#6154
2014-09-03 10:09:31 +01:00
Mike Jolley 265ffee23a Remove $can_be_edited in favour of ->is_editable()
For #6154
2014-09-03 10:09:04 +01:00
Mike Jolley cb76bd7fb8 Merge pull request #6154 from thenbrent/is_editable
Add `WC_Abstract_Order::is_editable()` method and `'wc_order_is_editable'` filter
2014-09-03 10:06:04 +01:00
Mike Jolley 86d3fc227f Merge pull request #6155 from thenbrent/paypal_api_creds_help
Add a link to PayPal's guide on API Creds
2014-09-03 09:57:38 +01:00
thenbrent ac80c8b51c Add a link to PayPal's guide on API Creds 2014-09-02 14:44:17 -07:00
claudiosmweb 78c7fefe3e fixed some docblocks 2014-09-02 16:50:19 -03:00
thenbrent 3acfb14214 Store order's editable status in property
To save overhead of a function call
2014-09-02 12:27:26 -07:00
thenbrent 4dea71314f Add 'wc_order_is_editable' filter 2014-09-02 11:49:05 -07:00
thenbrent 78d932e6d2 Add WC_Abstract_Order::is_editable()
To centralise logic used to determine if an order can be edited from
the Edit Order screen
2014-09-02 11:47:56 -07:00
claudiosmweb 08af487754 added simplify pre-orders support 2014-09-02 11:11:21 -03:00
claudiosmweb 54aa162fb4 renamed the simplify "subscriptions" class to "addons" 2014-09-02 10:21:42 -03:00
Mike Jolley c3b2a24933 Merge pull request #6147 from maxrice/feature-3176-unit-tests
Add Unit Testing Suite
2014-09-02 09:15:50 +01:00
shivapoudel 1ae67fb37e Change title for API Docs #6132 2014-09-02 00:02:51 +05:45
shivapoudel 86c1e7ed01 Change title for Documentation #6132 2014-09-02 00:02:11 +05:45
claudiosmweb 063d1eb349 fixed the access permissions 2014-09-01 12:44:51 -03:00
claudiosmweb cd154a30ef improved the line items backward compatibility, closes #6109 2014-09-01 12:35:04 -03:00
Mike Jolley 689272f9b9 Change title text from #6132 2014-09-01 12:46:37 +01:00
Mike Jolley f9af86ee1d Merge pull request #6132 from axisthemes/action-links
Action links Has now Better Look in Multisite Too.
2014-09-01 12:44:34 +01:00
Mike Jolley de4eaeac89 Merge pull request #6137 from shivapoudel/patch-1
Time Constant HOUR_IN_SECONDS
2014-09-01 12:36:14 +01:00
Max Rice 38dd928f23 [#3176] REST API webhooks endpoint tweaks from unit test 2014-09-01 03:27:19 -04:00
Tamara Zuk a0ce139f7d Coding Standards: Admin - Settings
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`
* improved readability

@see http://make.wordpress.org/core/handbook/coding-standards/php/
2014-08-31 04:22:03 -04:00
Tamara Zuk 0ab6b44bfa Coding Standards: Admin - Reports
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`
* improved readability

@see http://make.wordpress.org/core/handbook/coding-standards/php/
2014-08-31 03:19:13 -04:00
Tamara Zuk fc0e7adacb Coding Standards: Admin - Meta boxes
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`
* improved readability

@see http://make.wordpress.org/core/handbook/coding-standards/php/
2014-08-31 03:18:21 -04:00
Tamara Zuk ce037af961 Coding Standards: Admin - Importers
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`
* improved readability

@see http://make.wordpress.org/core/handbook/coding-standards/php/
2014-08-31 03:17:58 -04:00
Tamara Zuk 9c7826319c Coding Standards: Abstract classes
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`
* improved readability

@see http://make.wordpress.org/core/handbook/coding-standards/php/
2014-08-31 01:49:58 -04:00
Max Rice 456d10bcec REST API: allow coupon description in create/edit coupon 2014-08-30 18:43:47 -04:00
Max Rice 53b53114a7 REST API: Fix edit coupon typos 2014-08-30 18:43:26 -04:00
Max Rice 28536f6bd8 REST API: allow adding/updating order meta
When creating or updating orders, non-protected scalar meta can now be
set.
2014-08-30 16:17:52 -04:00
Max Rice ee8bf5bf18 REST API: tweak filter name from #6084 2014-08-30 16:16:51 -04:00
Max Rice 744c3767c3 REST API: ensure consistency in create/edit data formats
A client should be able to GET a resource, edit a single item and PUT
it back to the server without having to perform any additional
transformation. This commit ensures all PUT/POST endpoints adhere to
this standard.
2014-08-30 15:50:40 -04:00
Max Rice e1a542498d Fix notice introduced in #6084 2014-08-30 15:14:59 -04:00
Max Rice 722f888453 REST API: Add field restriction to new endpoints 2014-08-30 15:05:36 -04:00
Max Rice ec0f92878e REST API: Add order statuses endpoint 2014-08-30 15:05:31 -04:00
Max Rice f87ccd364c REST API: Mitigate possible JSONP flash attacks
see http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/
2014-08-30 15:05:25 -04:00
Max Rice b1b7d6257b REST API: Fix JSONP content-type 2014-08-30 15:05:12 -04:00
Shiva Poudel 7ddedad4a7 Time Constant HOUR_IN_SECONDS
_wc_activation_redirect transient have HOUR_IN_SECONDS instead `60*60`.
2014-08-31 00:38:48 +05:45
Max Rice 5b68ec6c80 Backport get_avatar_url() fix to v1 REST API 2014-08-30 13:38:45 -04:00
shivapoudel 513cd24751 Filter hook is not necessary for plugin_action_links 2014-08-30 00:50:09 +05:45
shivapoudel c6c7353d4a Filter hook is not necessary for plugin_row_meta 2014-08-30 00:49:25 +05:45
shivapoudel a3107a03a9 Reverted Documentation to Docs 2014-08-30 00:47:00 +05:45
shivapoudel e9877726a1 Documentation will be better than Short Docs 2014-08-30 00:33:00 +05:45
shivapoudel 390e178962 Added API Docs too 2014-08-30 00:27:36 +05:45
shivapoudel d965f797c2 Fixed the missing comma :) 2014-08-29 23:46:31 +05:45
shivapoudel 40d66b2f57 Added Docs and Support URL in plugin_row_meta which was removed from plugin_action_links 2014-08-29 23:39:17 +05:45
shivapoudel ec64534cb7 Removed docs and support Url from plugin_action_links so that we can add it in plugin_row_meta 2014-08-29 23:28:06 +05:45
shivapoudel a5fdf5aa76 Moved the action_links from final class to WC_INSTALL class 2014-08-29 23:19:01 +05:45
shivapoudel 677f91d1ab Added some useful comments on Class Constructor Method 2014-08-29 23:13:23 +05:45
Mike Jolley a1b78ec918 Add second orderby parameter when sorting by price (ID)
Fixes #6121
2014-08-29 10:26:21 +01:00
Mike Jolley b7aacfcb84 Merge pull request #6120 from thenbrent/protected_variation_meta_data
Allow WC_Product_Variation children to extend meta
2014-08-29 09:48:03 +01:00
Mike Jolley 721d0e5782 Merge pull request #6125 from axisthemes/notices
Better Notices in themes.php
2014-08-29 09:47:43 +01:00
Mike Jolley e6defc0ddd Merge pull request #6127 from tamarazuk/master
Order totals: 4 new action hooks
2014-08-29 09:46:57 +01:00
Mike Jolley ca7f7955d9 Merge pull request #6128 from thenbrent/fix_refund_button
Only display "Refund" when unrefunded order amount > 0
2014-08-29 09:46:16 +01:00
thenbrent 175923056a Only display "Refund" when unrefunded amount > 0
If an order has been fully refunded, the "Refund" button was still
displayed despite there being no amount to refund.
2014-08-28 22:04:51 -07:00
Tamara Zuk eb9460aa2d Order totals: 4 new action hooks 2014-08-28 21:56:30 -04:00
shivapoudel 730563f1c1 If other notices are closed this translation won't have stylesheet so 2014-08-29 04:03:26 +05:45
claudiosmweb e1e1c14ae7 fixed errors while adding variable products with non-taxonomy attributes, closes #6082 2014-08-28 16:25:08 -03:00
thenbrent 1a15cb03bd Allow WC_Product_Variation children to extend meta
When SHA: 50a0577b81 introduced `$variation_level_meta_data` and
`$variation_inherited_meta_data`, it set their access to `private`.
Child classes of `WC_Product_Variation` should be able to extend these
properties to allow them to take advantage of the parent's `__isset()`
and `__get()` methods.

Related to #6065
2014-08-28 11:30:11 -07:00
Mike Jolley 50a0577b81 Separate inherited meta data from variation level meta data to stop bubbling up.
Fixes #6065
2014-08-28 15:38:51 +01:00
Mike Jolley 7b73027417 Remove unused method
Closes #6097
2014-08-28 12:20:07 +01:00
Mike Jolley 4a73cb4e7e Merge pull request #6112 from axisthemes/replacement
Replacement for core Tweaks and fixes
2014-08-28 12:07:05 +01:00
Mike Jolley d526635609 Merge pull request #6096 from axistools/active-plugins
System Status report page
2014-08-28 11:44:49 +01:00
Mike Jolley 5d8d30bba3 Merge pull request #6108 from barrykooij/fix/6095
Only add the 'do_not_allow' if target user ($args[0]) is set.
2014-08-28 10:08:09 +01:00
Mike Jolley 83516086fb Merge pull request #6111 from thenbrent/remove_not_remote
Fix "remote" typo - should be "remove" in WC 2.2
2014-08-28 10:07:11 +01:00
shivapoudel c37f7a16e8 use of is_rtl() which were missed 2014-08-28 14:40:36 +05:45
shivapoudel 71986a10d8 Better href method applied 2014-08-28 14:38:14 +05:45
justinstern 8417209d6c Improve, fix, WC_Payment_Gateway::get_transaction_url()
* Make the new get_transaction_url() method a bit more
flexible/convenient by passing in the full order object rather than
transaction_id
* Fix bug with core PayPal gateway get_transaction_url() override
2014-08-27 21:51:03 -04:00
shivapoudel 97ea988843 Remove unusual css stuff (i.e ;) 2014-08-28 06:40:32 +05:45
shivapoudel d4081a37b8 Remove extra line 2014-08-28 06:39:32 +05:45
shivapoudel 768a4f89ed Added '<hr />' before return-to-dashboard 2014-08-28 04:39:09 +05:45
shivapoudel cf42423b80 better using printf() 2014-08-28 02:41:32 +05:45
shivapoudel 4a4673be97 Clean WooCommerce actions in Welcome Page 2014-08-28 02:34:52 +05:45
shivapoudel 716d3f1763 removed in Welcome page 2014-08-28 02:31:17 +05:45
shivapoudel db852e0f10 Better Screen Help adaptation 2014-08-28 02:28:12 +05:45
shivapoudel 7180e50ece Removed unused lines 2014-08-28 02:21:04 +05:45
shivapoudel 1e734b1ab7 better _doing_it_wrong() 2014-08-28 02:18:16 +05:45
shivapoudel 0224a3e4ec Added the use of is_rtl() 2014-08-28 02:11:45 +05:45
thenbrent 30e95ab16e Fix "remote" typo - should be "remove" 2014-08-27 13:05:35 -07:00
Barry Kooij f77395c572 Only add the 'do_not_allow' if target user ($args[0]) is set.
Fixes #6095.
2014-08-27 20:18:44 +02:00
Shiva Poudel 34d1454439 Time constant in theme set_transient too... 2014-08-27 19:22:03 +05:45
Shiva Poudel 18012b70c0 Using Time Constants to set transient
Rather that '60*60*12` we can use `DAY_IN_SECONDS` which is equivalent of `60*60*24`. Let's use one day rather than (1/2)day as it seems better.
2014-08-26 23:47:41 +05:45
Shiva Poudel 0e313e7b58 Fix for Unnecessary spaces used 2014-08-26 23:13:05 +05:45
Shiva Poudel c961659eca Fix some duplicates entry. 2014-08-26 23:07:35 +05:45
Shiva Poudel e73721c58e Semantic script adapted
@mikejolly I have used id `#status` instead of class `wc_status_table`. Look this `jQuery( '#status thead, #status tbody' )....` and `<table class="wc_status_table widefat" cellspacing="0" id="status">`. Thus will not harm anything. Additionally, I have adapted the sementatic jQuery script here.
2014-08-26 22:58:39 +05:45
Shiva Poudel b201e8d046 Better Text-Domain maintained... 2014-08-26 22:46:31 +05:45
Shiva Poudel 0f113a5750 Added WP Active Plugins In System Status
Although there is list of plugins which were installed but will be informative if number of plugins is displayed before getting list. This will count and display the number of plugin installed and used in the environment section.
2014-08-26 22:39:25 +05:45
Mike Jolley 602254851a Reset fees before calculating/adding them again
Fixes #6090

@claudiosmweb Do you see any issues with this?
2014-08-26 15:39:19 +01:00
Mike Jolley f33d4200d6 Merge pull request #6084 from krautnerds/rest-api-fix
WC 2.2 Extend REST API to access also hidden order item meta
2014-08-26 12:23:26 +01:00
Mike Jolley be90d3e210 Merge pull request #6085 from krautnerds/jquery-fix
Rewrote old JS to jQuery and allow usage of multiple widgets
2014-08-26 12:23:00 +01:00
Mike Jolley 3d69dfadbd Merge pull request #6088 from shivapoudel/patch-1
Better to use Time Constants since WordPress 3.5
2014-08-26 12:22:12 +01:00
thenbrent 56c7d5fe96 Don't create redundant $payment_method var 2014-08-25 12:11:39 -07:00
Shiva Poudel cbb94f0d11 Better to use Time Constants since WordPress 3.5
Reference http://codex.wordpress.org/Transients_API#Using_Time_Constants
2014-08-25 11:16:39 +05:45
Florian Ludwig 3fadc14085 Reduce confusion on using the all_meta filter 2014-08-23 19:07:10 +02:00
Florian Ludwig 82f53037be Implemented more general filter array 2014-08-23 00:11:03 +02:00
Florian Ludwig 83ed3aa534 Fixed jQuery call 2014-08-22 23:01:25 +02:00
Florian Ludwig 526b677bcf Extend REST API to access also hidden order item meta 2014-08-22 21:42:28 +02:00
Florian Ludwig f6294d24be Rewrote old JS to jQuery and allow usage of multiple product categories widgets on one page 2014-08-22 21:39:10 +02:00
Mike Jolley 72f9374902 Merge pull request #6068 from bryceadams/master
Added Lao Kip Currency & Before / After Downloads actions
2014-08-22 10:47:02 +01:00
Mike Jolley 198f00d6b5 Merge pull request #6072 from woothemes/feature-paypal-transactin-url-sandbox
Add sandbox support for paypal transaction url
2014-08-22 10:43:28 +01:00
Mike Jolley 96e92d4a98 Merge pull request #6067 from axistools/NPR-Currency
Added Nepali(NPR) Currency and Symbol.
2014-08-22 10:27:42 +01:00
claudiosmweb 6cc401b70f Added paypal refund reason/note
cc @mikejolley
2014-08-21 20:22:28 -03:00
claudiosmweb ff7f1435ab added sandbox support for paypal transaction url 2014-08-21 19:48:28 -03:00
claudiosmweb f4f5f061d8 fixed the paypal process_refund() method 2014-08-21 16:17:12 -03:00
claudiosmweb b08a0cf1f3 stopped deprecated warnings about like_escape() function since WP 4.0 2014-08-21 14:00:39 -03:00
Mike Jolley d87688f857 Simplfy typo 2014-08-21 17:03:16 +01:00
Bryce 04234a4968 Added Lao Kip Currency 2014-08-21 11:42:46 +07:00
Shiva Poudel 547b96f54d Tab index fix for PYG Currency and Symbol. 2014-08-21 10:13:39 +05:45
Shiva Poudel ee7755fd0e Added Nepali Currency and Symbol. 2014-08-21 10:10:51 +05:45
Mike Jolley c829788ebc Set simplify user agent 2014-08-20 16:47:01 +01:00
claudiosmweb aeaa1577e3 fixed wc_get_customer_available_downloads() query, closes #6057 2014-08-19 14:50:27 -03:00
Mike Jolley 474cba9b87 Merge pull request #6052 from barrykooij/refactor/get_product
Renamed get_product to wc_get_product
2014-08-19 11:51:20 +01:00
Barry Kooij fde10a967b Soft deprecated get_product function 2014-08-19 12:19:26 +02:00
Barry Kooij 94365791af Changed all use of get_product to wc_get_product 2014-08-19 12:09:29 +02:00
Barry Kooij 7cd2e8c10a Renamed get_product to wc_get_product 2014-08-19 12:05:02 +02:00
Mike Jolley 16754a7d01 Add file to downloads array Closes #6044 2014-08-19 11:01:55 +01:00
Mike Jolley c6fe731337 Fix password reset
Fixes #6049
2014-08-19 10:43:51 +01:00
Mike Jolley ca1cefd112 Merge pull request #6040 from woothemes/feature-order-refunds-api
Initial order refunds API
2014-08-18 15:13:57 +01:00
claudiosmweb 4acb90def2 changed api_refund for true 2014-08-18 10:47:56 -03:00
claudiosmweb 288732a4be added refund amount validation 2014-08-18 10:47:24 -03:00
claudiosmweb 924e0f92c5 updated woocommerce_api_order_refunds_response filter params 2014-08-18 10:42:37 -03:00
Mike Jolley 421de8f668 Merge pull request #6038 from barrykooij/refactor/wc_get_order-args
Passed $args to dynamic class that inherits WC_Abstract_Order is never used
2014-08-18 13:30:13 +01:00
Mike Jolley 0333cf9d0d Merge pull request #6039 from thenbrent/i18n_product_type_alert
Tweak language used for i18n_product_type_alert
2014-08-18 13:29:52 +01:00
Mikel Martin 1ed0a9e9db Payment unavailable if max_amount greater than 0 and order totar greater than max_amount 2014-08-17 22:10:35 +02:00
claudiosmweb 6081f3b61f fixed some missing and wrong textdomains 2014-08-15 16:08:43 -03:00
claudiosmweb 2bbcea9de2 orders API for refunds now accepts the api_refund param 2014-08-15 15:58:55 -03:00
claudiosmweb 1294696fcf created API method for delete order refunds 2014-08-15 15:38:39 -03:00
claudiosmweb 6d4ea6e54e created initial API method for edit order refunds 2014-08-15 15:28:43 -03:00
thenbrent 320156aca0 Tweak language used for i18n_product_type_alert 2014-08-15 11:16:30 -07:00
claudiosmweb d02a803e83 added API method for create an order refund 2014-08-15 14:54:19 -03:00
claudiosmweb b972494ac8 created method API to get individual order refunds 2014-08-15 14:40:34 -03:00
claudiosmweb f9250fecf2 created API for get order refunds 2014-08-15 14:09:33 -03:00
claudiosmweb eb679fad14 changed the simplify keys order 2014-08-15 11:43:10 -03:00
claudiosmweb 3ad0e63be0 improved the simplify scripts 2014-08-15 11:40:19 -03:00
Mike Jolley c51fac23e0 Availability with backorders not requiring notification. 2014-08-15 15:29:14 +01:00
Mike Jolley 575ba5974e Variation level backorder 'parent' option makes no sense now parent backorder select is hidden
#6035
2014-08-15 15:29:14 +01:00
claudiosmweb d4fb1df412 fixed simplify ssl notification url 2014-08-15 11:20:18 -03:00
Barry Kooij 9d5ce49805 Passed $args to dynamic class that inherits WC_Abstract_Order is never used.
Therefor the $args in the function and method in factory class seems unnecessary.
2014-08-15 14:56:43 +02:00
Mike Jolley 89d7d2869f Revert "Merge pull request #6023 from krautnerds/master"
This reverts commit 9deee73b72, reversing
changes made to 1965c2b786.
2014-08-15 13:47:37 +01:00
Mike Jolley 9deee73b72 Merge pull request #6023 from krautnerds/master
Re-add all filters of widget on change of category
2014-08-15 13:45:39 +01:00
Barry Kooij 6655188f0b Changed use of get_order with wc_get_order 2014-08-15 14:29:21 +02:00
Barry Kooij e97d06a0f0 Renamed function get_order to wc_get_order 2014-08-15 14:26:26 +02:00
Mike Jolley da483198f8 Simplify icons 2014-08-15 11:50:53 +01:00
Mike Jolley 7a267d2e31 Simplify Commerce by Mastercard gateway 2014-08-15 11:50:53 +01:00
Mike Jolley 6bd38b5ce0 Tweak display order text 2014-08-15 11:50:53 +01:00
Mike Jolley 1c3b4fdc5c Deprecate Mijireh - .org repo requested
Closes #6027
2014-08-15 11:50:53 +01:00
Florian Ludwig c2042319db Bugfix: swapped lines select and option 2014-08-14 17:00:37 +02:00
James Collins 1288a45eeb Add Australian checkout locale
Town / City -> Suburb
State / Country -> State
Postcode / Zip -> Postcode
2014-08-14 12:07:41 +08:00
Florian Ludwig 26d40f2336 Class instead of id for product categories widget
Also rewrote plain old JS to jQuery
2014-08-13 22:16:18 +02:00
Florian Ludwig ec41270587 Re-add all filters of widget on change of category
At the moment all filters that were applied via the layered nav filter
widget are gone on changing the category with the product category
filter
2014-08-13 17:13:58 +02:00
Mike Jolley 3f53512c7f Fix up visibility of stock options, drop downs, and get_availability() when parent is managing stock for a variation.
Fixes #6017
2014-08-13 15:03:30 +01:00
Mike Jolley dfe30bfe84 Tweak max spend text for #5992 2014-08-13 11:43:28 +01:00
Mike Jolley dc60cea213 Merge pull request #5992 from adamawesomeface/master
maximum ammount for coupon functionality added
2014-08-13 11:41:33 +01:00
Mike Jolley 9084ae222f Remove unused/uncoded options from dev branch
Fixes #6004
2014-08-13 11:38:49 +01:00
Mike Jolley b1c76adb56 Send product object to woocommerce_stock_html filter. Closes #6016 2014-08-13 11:30:47 +01:00
Mike Jolley 97724c8a95 woocommerce_create_page_id filter Closes #6013 2014-08-13 10:59:40 +01:00
Mike Jolley 51985df0df Merge pull request #6019 from krautnerds/master
Rewrote widget layered nav to use class instead of id
2014-08-13 10:04:12 +01:00
claudiosmweb 9da4f13805 fixed the orders api order status query 2014-08-12 15:08:11 -03:00
Florian Ludwig f2f56ebb4a Removed lines, were already deleted in upstream 2014-08-12 19:04:11 +02:00
Florian Ludwig b8c2912138 More general approach for widget dropdown_layered_nav 2014-08-12 18:56:37 +02:00
claudiosmweb bbca8dd437 fixed customer report queries with order_types 2014-08-12 12:17:46 -03:00
claudiosmweb 532d06b560 fixed the wc_cancel_unpaid_orders() post_type query 2014-08-12 12:14:38 -03:00
claudiosmweb 6e21079d76 moved exclude order notes from wp_count_comments to class-wc-comments.php 2014-08-12 12:13:29 -03:00
claudiosmweb eb8d99f4ea fixed some coding standards in includes/class-wc-comments.php 2014-08-12 12:07:23 -03:00
claudiosmweb 507a2038e8 fixed comments query 2014-08-12 12:05:09 -03:00
Mike Jolley 5bc293a69c Initial display of add order item buttons Fixes #5991
Also Closes #5994
2014-08-12 12:54:44 +01:00
Mike Jolley e4d0a6daef Merge pull request #5989 from woothemes/lost-password-email-username
Lost password, lookup on username first before email.
2014-08-12 12:41:35 +01:00
Mike Jolley fea2cc55f7 Merge pull request #5987 from afurculita/patch-1
Update wc-deprecated-functions.php
2014-08-12 12:39:02 +01:00
Mike Jolley 177d617b73 Merge pull request #6008 from woothemes/fix-force-https
Changed WC_HTTPS::force_https_url filter priority
2014-08-12 12:38:04 +01:00
Mike Jolley bd9ab8f5b3 Merge pull request #5988 from woothemes/feature-process-refund-reason
Add $reason param in WC_Payment_Gateway::process_refund()
2014-08-12 12:36:12 +01:00
Mike Jolley 6714d0088c Merge pull request #5986 from SiR-DanieL/patch-5
Added parenthesis
2014-08-12 12:33:55 +01:00
Mike Jolley 7f825a98ce Tweak get_children to look for empty transient 2014-08-12 12:06:18 +01:00
claudiosmweb acb0699e94 updated the reason default value 2014-08-11 10:07:09 -03:00
claudiosmweb 9ce8250fcb changed WC_HTTPS::force_https_url filter priority 2014-08-11 10:03:27 -03:00
adamawesomeface 0e22412a7d maximum ammount for coupon functionality added 2014-08-08 07:38:58 -04:00
Mike Jolley fe12b330c0 Fix sorting indicator and add help text to parent. Fixes #5977 2014-08-08 10:24:42 +01:00
Gerhard 4f011ae6a9 Lost password, lookup username first before email.
Customer use emails as usernames so need to lookup based on username first for instances where this apply.
2014-08-08 08:07:11 +02:00
claudiosmweb 066ba904cb added $reason param in WC_Payment_Gateway::process_refund() 2014-08-07 15:57:29 -03:00
Alexandru Furculita 9d129a39b4 Update wc-deprecated-functions.php
Help IDE-s find and highlight the deprecated stuff. Good for WooCommerce plugin and theme developers
2014-08-07 21:26:05 +03:00
Nicola Mustone e49fe4c713 Added parenthesis
WP coding standard says to add always parenthesis
2014-08-07 18:26:48 +02:00
claudiosmweb c378768aae added backwards compatibility function for new shop order status 2014-08-07 12:15:57 -03:00
Mike Jolley 5046256cea Prevent 404's caused by attachment link workaround.
Fixes #5975
2014-08-06 11:50:09 +01:00
Mike Jolley 7475778d05 Workaround for #5962 2014-08-05 21:12:52 +01:00
Mike Jolley 80ca1c3808 Cast array instead Closes #5890 2014-08-05 11:28:27 +01:00
Mike Jolley c4b813262c Revert "Check for array"
This reverts commit 61df5d5534.
2014-08-05 11:27:25 +01:00
Mike Jolley a186e1e52f Merge pull request #5951 from grey-rsi/master
class-wc-widget-price-filter.php - add filter
2014-08-05 11:08:02 +01:00
Mike Jolley 49b597665e Merge pull request #5967 from SiR-DanieL/master
Fixed issue #5895
2014-08-05 10:49:40 +01:00
Gustavo Bordoni 7d4a6fc7d8 Merge branch 'master' into issue/5875
Conflicts:
	assets/css/admin.css
2014-08-05 01:21:48 -03:00
claudiosmweb 0617d53353 fixed undefined offset when added products in cart 2014-08-04 16:37:42 -03:00
claudiosmweb ae66ba4553 fixed variation tax_class and backorders
@mikejolley
2014-08-04 16:05:15 -03:00
claudiosmweb b67a1e6b0e stopped endless loop when saving variable product that manages stock
@mikejolley
2014-08-04 15:31:40 -03:00
claudiosmweb bce502f455 improved handling of stock options to save changes to a variable product 2014-08-04 14:53:29 -03:00
Nicola Mustone 7c7f6b30e5 following wc coding standards 2014-08-04 17:49:14 +02:00
Nicola Mustone 69694e6242 following wc coding standards 2014-08-04 17:45:35 +02:00
Nicola Mustone a4103f7bfe following wc coding standards 2014-08-04 17:42:16 +02:00
Nicola Mustone c5f9f2157f Fixed issue #5895 2014-08-04 17:28:20 +02:00
Mike Jolley 3f58d8801a Merge pull request #5950 from afurculita/master
Autoloading widget classes
2014-08-04 14:21:18 +01:00
Mike Jolley f84cd332dc Merge pull request #5960 from bordoni/issue/5958
User that refunded now been shown at the Order edit page
2014-08-04 14:18:32 +01:00
Mike Jolley 658089a46b Merge pull request #5963 from SiR-DanieL/master
Child & Parent Themes in System Report
2014-08-04 14:06:25 +01:00
Gustavo Bordoni 34a47c3682 Removing a `var_dump`, My bad 2014-08-04 08:14:00 -03:00
Mike Jolley 760cd6861c Small refactor of is_visible
Also returns false for non-published products and fixes #5955
2014-08-04 11:19:58 +01:00
Mike Jolley e02d94d305 Fix stock logic in 2.2 for variations with parents which manage stock
Closes #5957 @claudiosmweb can you review this change?
2014-08-04 10:51:54 +01:00
Nicola Mustone 91177e43da woocommerce support line outside the child theme conditional 2014-08-03 14:05:49 +02:00
Nicola Mustone 359d910090 Merge branch 'master' of https://github.com/woothemes/woocommerce 2014-08-03 13:59:17 +02:00
Gustavo Bordoni 6b3f228a55 Adding the information about who did the refund on the backend 2014-08-02 21:57:14 -03:00
Gustavo Bordoni fbf4ffd39b Include a isset before using a variable that might not be there 2014-08-02 21:32:18 -03:00
GreY 9dd743158e Add filter to convert amount on based currency rate 2014-08-01 15:09:25 +03:00
Alexandru Furculita 8eb710ec5d Update class-wc-widget-cart.php 2014-08-01 13:47:07 +03:00
Alexandru Furculita 37e12a99b1 Update class-wc-widget-top-rated-products.php 2014-08-01 13:46:43 +03:00
Alexandru Furculita 8303d82172 Update class-wc-widget-top-rated-products.php 2014-08-01 13:46:33 +03:00
Alexandru Furculita e03905f935 Update class-wc-widget-recently-viewed.php 2014-08-01 13:46:20 +03:00
Alexandru Furculita 8d214e665d Update class-wc-widget-recent-reviews.php 2014-08-01 13:46:07 +03:00
Alexandru Furculita df7f5aa6ba Update class-wc-widget-products.php 2014-08-01 13:45:47 +03:00
Alexandru Furculita b326ea6612 Update class-wc-widget-product-tag-cloud.php 2014-08-01 13:45:36 +03:00
Alexandru Furculita d1de854c8f Update class-wc-widget-product-search.php 2014-08-01 13:45:18 +03:00
Alexandru Furculita 981bd515ed Update class-wc-widget-product-categories.php 2014-08-01 13:44:43 +03:00
Alexandru Furculita 332fbd2f93 Update class-wc-widget-price-filter.php 2014-08-01 13:44:29 +03:00
Alexandru Furculita 130521a7ab Update class-wc-widget-layered-nav.php 2014-08-01 13:44:15 +03:00
Alexandru Furculita 53f061f0a0 Update class-wc-widget-layered-nav-filters.php 2014-08-01 13:44:00 +03:00
Gustavo Bordoni 46ef1638ce Passing all the params for the `edit_address` fields, and build `id` param if it doens't exists 2014-08-01 01:26:45 -03:00
Gustavo Bordoni 09c8e644d1 WP Code Std 2014-08-01 01:24:55 -03:00
Gustavo Bordoni 8805c3443c Include the wp_localize_script for country > state relationship 2014-07-31 23:26:05 -03:00
Gustavo Bordoni 7a484744c0 WP Code Std 2014-07-31 22:54:38 -03:00
Max Rice 3c566e3419 Fix webhook delivery log deletion
Use wp_delete_comment() instead of SQL so comment meta is deleted as
well.
2014-07-31 11:52:16 -04:00
claudiosmweb 1a9d346e1f sync with master 2014-07-31 09:39:24 -03:00
Mike Jolley 6e540c3bda Pass is_ajax through from the ajax handler
Fixes #5910
2014-07-31 10:00:16 +01:00
Mike Jolley 727e49c097 Welcome page Closes #5920
@jameskoster can your review?
2014-07-31 09:48:17 +01:00
Mike Jolley 3f906b1ffa Change shutdown hook priority
Fixes #5860
2014-07-31 07:26:49 +01:00
Mike Jolley 63d0283ea3 More efficient #4632 2014-07-31 07:10:07 +01:00
Mike Jolley 54e7ce602f Merge pull request #4632 from AdvancedStyle/master
Multiple categories in the product_category shortcode
2014-07-31 07:05:37 +01:00
Mike Jolley 0b6d8914a3 Merge pull request #5941 from maxrice/feature-issue-5564-rest-api-webhooks
Webhooks Implementation
2014-07-31 07:03:02 +01:00
Mike Jolley e13b54be15 Send order as a whole to paypal with negative line items
Closes #5862
2014-07-31 06:57:17 +01:00
Max Rice a7538da23b Add shop_webhook capabilities on install/upgrade
Part of #5564
2014-07-30 16:24:14 -04:00
Max Rice 0fd7e3376d Hide webhook comments
Part of #5564
2014-07-30 16:23:41 -04:00
Max Rice 572becdcde Introduce WC_Webhook class
Part of #5564
2014-07-30 16:23:22 -04:00
Max Rice 9536d98ade Add webhooks REST API endpoint
Part of #5564
2014-07-30 16:22:58 -04:00
Max Rice 81297cf94d Add shop_webhook custom post type
Part of #5564
2014-07-30 16:22:40 -04:00
Max Rice 64ddf83184 Add coupon description to REST API coupon response 2014-07-30 16:19:35 -04:00
thenbrent 2d47d6b43b Improve display of multiword product attributes
Instead of displaying a variation's custom product attributes like this:

`name-with-dashes: attribute-with-dashes`

Display it like this:

`Name With Dashes: Attribute With Dashes`
2014-07-30 12:41:14 -07:00
claudiosmweb a0bd72b9f3 Hide variation stock when manage stock is unchecked
closes #5935

@mikejolley
2014-07-30 15:32:06 -03:00
claudiosmweb 519de5be59 added alert about changing the product type that has variations
closes #5864

@mikejolley
2014-07-30 15:04:04 -03:00
Mike Jolley b72d33f563 Move orderby logic out of template file
cc @jameskoster @claudiosmweb
2014-07-30 17:23:28 +01:00
Mike Jolley cab8f8c9dd Only show default ordering option when relevant
Closes #5893
2014-07-30 17:23:28 +01:00
Mike Jolley 0130caec2b indentation 2014-07-30 17:07:35 +01:00
Mike Jolley a5967ce4f9 Merge pull request #5869 from wilgert/patch-1
Update class-wc-coupon.php
2014-07-30 17:06:36 +01:00
Mike Jolley 61df5d5534 Check for array
Closes #5890
2014-07-30 17:05:31 +01:00
Mike Jolley dab9a9be1f Merge pull request #5788 from kilbot/patch-1
Add woocommerce_product_visibility_options filter
2014-07-30 17:03:13 +01:00
Mike Jolley 75a6be58b9 Merge pull request #5755 from doublesharp/patch-1
Corrected duplicated settings_page() content
2014-07-30 17:01:19 +01:00
Mike Jolley 80a33b83d7 Merge pull request #5838 from danielvonmitschke/master
adding default product visibility filter hook
2014-07-30 12:58:50 +01:00
Mike Jolley ab5af6f930 Merge pull request #5827 from grey-rsi/master
class-wc-ajax.php
2014-07-30 12:20:42 +01:00
Mike Jolley d41cf9552f Merge pull request #5846 from corsonr/attributes_do_action
Add attributes do_action in products settings
2014-07-30 12:20:29 +01:00
Mike Jolley 4203ed77e3 Merge pull request #5842 from BFTrick/get-a-job
Adding an Employment Easter Egg
2014-07-30 12:19:11 +01:00
Mike Jolley 688b31395f Merge pull request #5933 from barrykooij/bugfix/wc_processing_order_count
Use correct variable and correct property when counting processing order...
2014-07-30 12:16:41 +01:00
Mike Jolley e7e9de4cbd Merge pull request #5934 from barrykooij/bugfix/fix-order-metabox-notices
Fix notices, added isset() checks around $legacy_order
2014-07-30 12:16:28 +01:00
Mike Jolley 305c187015 Fix queries on shop page 2014-07-30 12:11:42 +01:00
Mike Jolley 368e6b9412 Round shipping quote totals to store DP setting
Fixes #5888
2014-07-30 11:04:01 +01:00
Mike Jolley 2cb66fe4b9 Prevent empty attributes in permalinks
Closes #5714
2014-07-30 10:22:15 +01:00
Barry Kooij e49237c692 Added isset() checks around $legacy_order, var is only set if 'woocommerce_calc_taxes' option is 'yes'. 2014-07-30 11:13:09 +02:00
Barry Kooij a9e3c3bbe4 Use correct variable and correct property when counting processing orders. 2014-07-30 10:39:37 +02:00
claudiosmweb 70541f85e7 fixed the woocommerce_order_item_needs_processing filter 2014-07-29 15:08:08 -03:00
claudiosmweb 1cce388e1e added copy for support button, closes #5865 2014-07-29 12:06:58 -03:00
Mike Jolley 1b41eef5f6 Ensure add-to-cart is not present when redirecting after a deletion.
Fixes #5645
2014-07-29 15:25:43 +01:00
Mike Jolley dd61317395 Merge pull request #5904 from maxrice/rest-api-remove-xml
Remove XML response from v2 REST API
2014-07-29 13:20:05 +01:00
Mike Jolley 98030c2cfc Merge pull request #5907 from claudiosmweb/improve-db-queries-product-post-class
Replace wp_get_post_terms() for get_the_terms() in wc_product_post_class()
2014-07-29 13:19:54 +01:00
Mike Jolley ae6dceeace Merge pull request #5908 from maxrice/fix-issue-5423
Add item meta to REST API orders response
2014-07-29 13:19:38 +01:00
Mike Jolley 6a092ddd37 Merge pull request #5913 from maxrice/feature-issue-5806
Add product categories endpoint to REST API
2014-07-29 13:16:45 +01:00
Mike Jolley be757abf61 Merge pull request #5916 from maxrice/feature-rest-api-order-notes
Improve order notes endpoint
2014-07-29 13:16:38 +01:00
Mike Jolley 2201a93981 Merge pull request #5914 from maxrice/feature-issue-5720
Add orderby filtering to REST API resource endpoints
2014-07-29 13:15:53 +01:00
Mike Jolley c465c7235d Merge branch 'credit-notes'
Conflicts:
	includes/abstracts/abstract-wc-order.php
	includes/class-wc-order-factory.php
	includes/class-wc-post-types.php
	includes/wc-formatting-functions.php
	includes/wc-order-functions.php
2014-07-29 12:09:52 +01:00
Max Rice 76be03010c Improve order notes endpoint
This commit improves the order notes endpoint with full read/write
capabilities:

* GET /orders/#{order_id}/notes - get all notes for an order
* GET /orders/#{order_id}/notes/#{id} - get single order note
* POST /orders/#{order_id}/notes - create an order note
* PUT /orders/#{order_id}/notes/#{id} - edit an order note
* DELETE /orders/#{order_id}/notes/#{id} - delete an order note
2014-07-28 23:39:07 -04:00
Max Rice 47ccd78b21 Allow using meta_value_num with resource orderby
Part of #5720
2014-07-28 19:49:56 -04:00
Max Rice bb651761d0 Add orderby filtering to REST API resource endpoints
Adds orderby filtering to all endpoints using default WP orderby
parameters.

Closes #5720
2014-07-28 19:40:28 -04:00
Max Rice 323bcbf848 Add order (desc/asc) to REST API customers endpoint
Part of #5720
2014-07-28 19:38:21 -04:00
Max Rice 7f3b67272a Adhere to WP code standards 2014-07-28 19:34:41 -04:00
Max Rice 80368dc105 Add product categories endpoint to REST API
This commit adds two new endpoints:
* GET /products/categories - returns a list product categories
* GET /products/category/#{id} - returns the product category for #{id}

Closes #5806
2014-07-28 19:01:50 -04:00
Max Rice 7d597a36d0 Add item meta to REST API orders response
Fixes #5423
2014-07-28 13:33:03 -04:00
Max Rice 28449cfab2 Add WC_Order_Item_Meta::get_formatted()
This commit adds a helper method for plugins (and core) to use for
getting formatted item meta in an array, rather than a flattened string.

Part of #5423
2014-07-28 13:32:38 -04:00
claudiosmweb cb1ca6e341 replaced wp_get_post_terms() for get_the_terms() in wc_product_post_class(), closes #5905 2014-07-28 14:05:36 -03:00
Max Rice 8ff7202c5c Remove XML response from v2 REST API 2014-07-28 12:16:34 -04:00
Max Rice 2ea771be1f Fix SQL error in v1 customers response 2014-07-28 12:16:04 -04:00
Mike Jolley 8a6831f33b Hide tax columns for legacy orders
@claudiosmweb
2014-07-28 17:08:11 +01:00
Bryce 1ffa2dd867 Updated to employ WordPress coding standards 2014-07-28 22:16:35 +07:00
Bryce 16fad7469b Admin Views HTML Headers, Stop Direct Access
Also a couple small formatting improvements
2014-07-28 21:50:11 +07:00
claudiosmweb 7c141fcd41 prevented some errors when the order has no taxes 2014-07-28 10:59:55 -03:00
claudiosmweb fda7a5565c removed extra td element in refunds 2014-07-28 10:40:08 -03:00
Mike Jolley 42ac0c0368 Fix refund table alignment 2014-07-28 11:45:16 +01:00
Mike Jolley bf86072cce Interface tweaks
#3164
2014-07-28 11:41:52 +01:00
Mike Jolley cdc0efed75 Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Mike Jolley 708861421a Merge pull request #5839 from maxrice/api-versioning
Update REST API version to v2
2014-07-28 09:18:41 +01:00
Max Rice 698f6499f6 Add REST API create/edit order actions & filters
Part of #4160
2014-07-27 23:58:01 -04:00
Max Rice 5be324a543 Add edit order REST API method
Part of #4160
2014-07-27 23:36:32 -04:00
Max Rice 315787e3d6 Refactor create order method
* handle errors through WC_API_Exception
* abstract order item creation

Part of #4160
2014-07-27 23:35:50 -04:00
Max Rice d919ed9d64 Tweak REST API order response
* se WC_Order::get_order_currency() for currency
* use new WC_Order::get_subtotal() for subtotal
* add order item ID and rate ID to tax lines

Part of #4160
2014-07-27 23:33:35 -04:00
Max Rice f656d57282 Add WC_Order::get_order_subtotal()
Convenience method to return the order subtotal

Part of #4160
2014-07-27 23:31:26 -04:00
Max Rice 3cc9952fea Include order item ID and rate ID in WC_Order::get_tax_totals()
Part of #4160
2014-07-27 23:31:02 -04:00
Max Rice f4feefc100 Fix WC_Order::get_user() 2014-07-27 23:30:21 -04:00
Max Rice e47ac33eb1 Add calculate_shipping() method to WC_Abstract_order
When the update_shipping() method is used, the order shipping amount is
not properly calculated unless the shipping costs are summed.

Part of #4160
2014-07-27 23:29:40 -04:00
Max Rice 1598d1b539 Add update methods to WC_Abstract_Order
These methods compliment the existing add_*() methods and provide a
consistent interface to add and update items for the order.

Part of #4160
2014-07-27 23:28:25 -04:00
Max Rice cca54879fa Fix misc docblocks 2014-07-27 23:23:59 -04:00
Max Rice b192bd46f8 Add wc_update_order_item() function 2014-07-27 23:21:16 -04:00
Max Rice c9342d6344 Add WC_API_Exception class
Part of #4160
2014-07-27 23:20:48 -04:00
claudiosmweb acaee93236 fixed refunds cancel button action 2014-07-25 13:32:16 -03:00
Mike Jolley 5e663a7fa8 Show refunded line items inline 2014-07-25 16:48:19 +01:00
Mike Jolley f4e7211d3a Fix top seller on dashboard 2014-07-25 15:48:37 +01:00
Mike Jolley a9e30766d6 fix dashboard total 2014-07-25 15:47:51 +01:00
Mike Jolley 029bbbec39 Updated reports 2014-07-25 15:46:19 +01:00
Mike Jolley 710a570525 Coded in Restore stock option 2014-07-25 11:29:24 +01:00
Mike Jolley a7eaefc374 Change button label for calc taxes 2014-07-25 10:48:47 +01:00
claudiosmweb ca2dfdd7c1 synchronized the trash and delete actions between orders and refunds #3164 2014-07-24 18:39:59 -03:00
claudiosmweb e634efa958 fixed tax calc when exists tax columns 2014-07-24 18:09:13 -03:00
claudiosmweb 2d61126502 added add_shipping and add_fee ajax actions 2014-07-24 17:55:25 -03:00
claudiosmweb 93b464cb29 improved the add_order_tax ajax method 2014-07-24 17:37:02 -03:00
claudiosmweb 5b3f69de0a fixed the "calculate tax" action #3164 2014-07-24 17:33:26 -03:00
Mike Jolley 00af832203 Sales by product report 2014-07-24 17:11:25 +01:00
claudiosmweb 7328212c03 fixed the get refunds method 2014-07-24 12:09:03 -03:00
Mike Jolley a10204894d Clear transients after refunding 2014-07-24 16:03:52 +01:00
Mike Jolley 873f36ca5c Pass order_types to reporting query functions 2014-07-24 15:55:06 +01:00
Mike Jolley 19b6922044 Refund line items and taxes 2014-07-24 15:34:14 +01:00
Mike Jolley e38dcf79bb Show refund boxes on click 2014-07-24 10:56:32 +01:00
Mike Jolley 0b231f2e03 Calc refund amounts and total via javascript 2014-07-24 10:53:29 +01:00
Mike Jolley 1ecfc59dfe Remove refund qty column 2014-07-24 10:22:04 +01:00
Mike Jolley e9b3d67ab7 Coupon template not needed 2014-07-24 10:21:57 +01:00
Mike Jolley 13f4f889a4 woocommerce_admin_order_item_values + refund fields 2014-07-24 10:21:47 +01:00
claudiosmweb a46ef1fced improved the shipping order items 2014-07-23 19:30:55 -03:00
claudiosmweb a3d0d5903e removed a test 2014-07-23 19:28:57 -03:00
claudiosmweb 26e50b7caf fixed post_type in reports 2014-07-23 14:17:01 -03:00
claudiosmweb 23628ad430 fixed undefined offset in wc_create_refund() 2014-07-23 13:56:43 -03:00
Mike Jolley 11835826de A start on negative line items
@claudiosmweb
2014-07-23 17:41:35 +01:00
Mike Jolley 3aa9475e39 Coupon code display 2014-07-23 11:47:02 +01:00
Mike Jolley 134f31abb9 Taxes were stored backwards
cc @claudiosmweb
2014-07-23 11:37:02 +01:00
Mike Jolley 4a306beef5 Max 100 taxes displayed, but show text input 2014-07-23 11:30:06 +01:00
claudiosmweb ae1881de06 fixed the line item quantity calcule #3164 2014-07-22 18:08:24 -03:00
claudiosmweb 8edbd8fed5 fixed undefined variable $can_be_edited when add new line items via ajax 2014-07-22 17:33:49 -03:00
claudiosmweb b56b60f191 stopped order editing when the status is not equal to pending or on-hold #3164 2014-07-22 16:25:37 -03:00
Mike Jolley ab36ec12d5 Merge pull request #5822 from helgatheviking/fix/add-to-cart
add_to_cart() return $cart_item_key
2014-07-22 18:32:55 +01:00
Kathy Darling 7e0121a0d9 update docblock for add_to_cart() method 2014-07-22 12:25:12 -04:00
Mike Jolley 388e2eec49 removed display block 2014-07-22 16:46:28 +01:00
Mike Jolley 249f18f70d Merge branch 'credit-notes' of https://github.com/woothemes/woocommerce into credit-notes
Conflicts:
	assets/js/admin/meta-boxes-order.min.js
2014-07-22 16:44:23 +01:00
Mike Jolley 3e4506c376 Clean up total/subtotal display 2014-07-22 16:44:02 +01:00
claudiosmweb 7b5b1fc845 prevented that exist duplicate tax rate columns #3164 2014-07-22 12:42:17 -03:00
claudiosmweb 954a5ddc23 only show refund via button when gateway supports refunds #3164 2014-07-22 12:13:35 -03:00
Mike Jolley 01950bebdc Add confirmation before deleting tax column #3164 2014-07-22 15:26:18 +01:00
Mike Jolley 559ff43c42 Shipping should be displayed before fees 2014-07-22 14:42:12 +01:00
Mike Jolley 414bc4e314 Dashes when there is no tax 2014-07-22 14:42:04 +01:00
Mike Jolley b032c857ee Fix delete of shipping and fee line items. Remove checkbox for refunds. 2014-07-22 14:38:07 +01:00
Mike Jolley 93155c9e11 Do not use before init.
#3164
2014-07-22 14:30:42 +01:00
Mike Jolley 550db70d77 Line item icons 2014-07-22 14:27:47 +01:00
Mike Jolley 6e0a880699 Group line items by type 2014-07-22 14:18:11 +01:00
Mike Jolley c65cd44aef Fix input styling 2014-07-22 11:56:52 +01:00
Mike Jolley 0c5be5f054 Moved add tax button, and tidied up tax column display 2014-07-22 11:54:59 +01:00
Mike Jolley 2155b30065 Merge pull request #5872 from Ninos/master
Add filter: wc_get_template
2014-07-22 10:48:12 +01:00
Mike Jolley 0f7f3ee66a Merge pull request #5851 from BFTrick/abstract-settings-typos
Fixing Typos in Abstract Settings Class
2014-07-22 10:37:24 +01:00
Ninos Ego 7b24853afc Add filter: wc_get_template
Allow 3rd party plugin filter template file from their plugin
2014-07-22 03:05:25 +02:00
wilgert 0b032ab469 Update class-wc-coupon.php
add middle statement to ternary operator has ommitting this is only supported since PHP 5.3 and WooCommerce requires >5.2.4
2014-07-21 15:59:20 +02:00
wilgert 6ccd084e52 Update class-wc-coupon.php
If you loaded custom coupon data using the  `'woocommerce_get_shop_coupon_data'` filter. Only `$coupon->amount` was set. While the 'normal' coupons loaded from the database get both `$coupon->coupon_amount` and `$coupon->amount` set.

This change also adds `$coupon->coupon_amount` for in code generated coupons and allows functions using the `'woocommerce_get_shop_coupon_data'` filter to use either `amount` or `coupon_amount`.
2014-07-21 15:54:10 +02:00
claudiosmweb ef445aa1d7 removed a test ¬¬ 2014-07-21 00:00:18 -03:00
claudiosmweb 299c12bd57 fixed order get_total_refunded() method 2014-07-20 23:48:23 -03:00
claudiosmweb d2340a5cef fixed refund calcule 2014-07-20 23:26:40 -03:00
claudiosmweb 098919f469 removed some order totals old stuff 2014-07-20 22:59:42 -03:00
claudiosmweb 144d094ad2 created method for delete order tax 2014-07-20 22:57:23 -03:00
claudiosmweb d875cfa1ac created ajax method to add new taxes 2014-07-20 22:36:12 -03:00
claudiosmweb 3e287ff19c fixed calculate total action 2014-07-20 21:12:39 -03:00
claudiosmweb eed6ca4405 removed order totals meta box 2014-07-20 20:53:55 -03:00
claudiosmweb 2d7e1cc51a added method to save all order taxes 2014-07-20 20:53:43 -03:00
claudiosmweb 5152457d9d improved the saving the new tax data 2014-07-20 01:28:16 -03:00
claudiosmweb 2cfebdc6c5 save/update shipping taxes 2014-07-20 00:56:38 -03:00
claudiosmweb 3a28c56876 save and display shipping taxes in order items meta box 2014-07-20 00:32:52 -03:00
claudiosmweb 6176cb6b77 allow multiple taxes columns in order items 2014-07-20 00:21:33 -03:00
claudiosmweb 93cf3c88bd initial implementation of order items taxes 2014-07-19 01:08:02 -03:00
claudiosmweb 50113fa531 fixed "Invalid argument supplied for foreach()" warning in line 127 2014-07-19 00:16:34 -03:00
claudiosmweb 794548e923 added tiptip for order totals 2014-07-18 20:27:10 -03:00
msdesign21 14f5524ffd Please 'copy and paste' report
Updated description when you 'Get System Report' to specify customers should 'copy and paste' information.
2014-07-18 14:55:14 -06:00
claudiosmweb e0aeacb734 added action to calculte the order total and edit discount and total 2014-07-18 17:24:34 -03:00
claudiosmweb f3ef446678 improved the order totals display 2014-07-17 18:17:42 -03:00
claudiosmweb d321395946 created new methods to save and load the order items in shop_order screen 2014-07-17 17:17:54 -03:00
claudiosmweb 2f4b98d330 fixed erros while add a new shipping order item 2014-07-17 15:48:37 -03:00
claudiosmweb 589aa9ddd4 fixed refund qty in order fee item 2014-07-17 15:48:03 -03:00
claudiosmweb 501cc29bd9 hide the order totals when active the refunds panel 2014-07-16 23:08:59 -03:00
claudiosmweb af235e08f6 moved refunds to order items 2014-07-16 17:12:33 -03:00
claudiosmweb d7133035e1 added order items add shipping cost button 2014-07-16 15:41:18 -03:00
claudiosmweb 04e8fbcb5e added new add products order items action 2014-07-16 15:11:48 -03:00
claudiosmweb 3ca145ac85 created backbone modal dialog 2014-07-15 19:56:07 -03:00
Patrick Rauland e735fe45e0 fixing typos in abstract settings class 2014-07-15 16:41:28 -06:00
Remi Corson c629c86d0c add attributes do_action 2014-07-15 10:51:20 +02:00
claudiosmweb 29bb05f51c fixed coupon class 2014-07-14 18:04:45 -03:00
claudiosmweb 0a71c4498d moved the coupons to order items metabox 2014-07-14 17:04:23 -03:00
claudiosmweb f0bf3e9e7e moved the shipping save method to order items 2014-07-14 16:32:04 -03:00
claudiosmweb 7e17443be4 added new html-order-shipping.php to work in order items metabox 2014-07-14 16:22:01 -03:00
claudiosmweb ef2bff285a created new order totals display in order items 2014-07-14 15:23:56 -03:00
Patrick Rauland 568c0102ae adding get_a_job method 2014-07-14 09:18:07 -06:00
Max Rice 95aab694e4 API: implement order creation
part of #4160
2014-07-12 21:44:49 -04:00
Max Rice 4661cd3acf set a proper code for wp_error 2014-07-12 21:43:27 -04:00
Max Rice 13e2495390 API: implement order deletion
part of #4160
2014-07-12 18:09:21 -04:00
Max Rice 8c3df8f65f update get_woocommerce_api_url() to handle multiple versions 2014-07-12 17:51:29 -04:00
Max Rice a4cb198cb9 implement separate handlers for v1/v2 REST API requests 2014-07-12 17:51:08 -04:00
Max Rice 54c019dd62 re-add v1 API classes 2014-07-12 17:49:43 -04:00
daniel von mitschke b991617ff7 adding default product visibility filter hook
Added a filter hook ‚woocommerce_product_visibility_default’ to set the
default visibility option on new products
2014-07-12 14:30:43 +02:00
claudiosmweb c1b8878587 removed order_type taxonomy from wc_create_refund() 2014-07-11 15:39:20 -03:00
claudiosmweb 8c77382d95 removed old order_type taxonomy stuffs and fixed some code standards 2014-07-11 15:38:23 -03:00
claudiosmweb cdadc18665 fixed an fatal error in admin dashboard 2014-07-11 15:03:34 -03:00
Mike Jolley 822d477f72 wc_price filters suggested in #5664
Closes #5664
2014-07-11 16:13:03 +01:00
Mike Jolley 0ed0a41a04 Merge pull request #5833 from CFXd/move-tfoot-after-tbody-multiple-occurences
Move TFOOT to after TBODY element throughout templates and classes
2014-07-11 15:44:33 +01:00
Mike Jolley 9e6caec3a2 set cookies on shutdown in case of redirect. 2014-07-11 15:40:18 +01:00
Mike Jolley 755001f19b Use order types where required 2014-07-11 12:43:42 +01:00
Mike Jolley 2545e55b73 wc_get_order_types and wc_register_order_type
Uses CPT rather than terms. #3164
2014-07-11 10:42:49 +01:00
Michael Silber 32bd50c379 Move TFOOT to after TBODY element throughout templates and classes 2014-07-10 21:50:51 -04:00
claudiosmweb 664c20a2ed fixed order status change when save 2014-07-10 17:41:53 -03:00
Mike Jolley eca4025f5e Delete and display refunds 2014-07-10 16:39:10 +01:00
GreY cb59771a2d added do_action( 'woocommerce_after_product_ordering' ); to sync product translations menu_order value 2014-07-10 17:15:31 +03:00
Mike Jolley 6862829fce Show total available 2014-07-10 14:52:36 +01:00
Mike Jolley 280b884c28 Create refunds and process via gateway 2014-07-10 14:49:04 +01:00
Mike Jolley d88279fe53 Start on ajax handlers 2014-07-10 13:33:05 +01:00
Mike Jolley 0e418a2961 Helper for getting tax rate percent 2014-07-10 11:01:00 +01:00
Kathy Darling 5a88e77959 add_to_cart() return $cart_item_key 2014-07-09 16:33:40 -04:00
claudiosmweb 31a8483b4f created method to get the total amount already refunded 2014-07-08 16:59:38 -03:00
claudiosmweb 87d8cd1c95 set order_type for refunds 2014-07-08 16:41:07 -03:00
claudiosmweb 7d340abd6d fixed the get_refunds() method in WC_Order class 2014-07-08 16:41:03 -03:00
claudiosmweb 235deeacfe created get_refunds() method for WC_Order class 2014-07-08 15:23:22 -03:00
claudiosmweb 03d9ab0c81 created initial methods for WC_Order_Refund class 2014-07-08 15:22:58 -03:00
claudiosmweb 9d4ef6fd9b add refund term in order_type when install 2014-07-08 14:27:46 -03:00
claudiosmweb 7e36d05c75 created order_type taxonomy 2014-07-08 14:23:11 -03:00
Claudio Sanches 9701cfe2a7 Revert "order_type taxonomy and register_order_type() function" 2014-07-08 14:10:37 -03:00
Mike Jolley cc5b722a22 Merge pull request #5804 from claudiosmweb/feature-register-order-type
order_type taxonomy and register_order_type() function
2014-07-08 15:49:28 +01:00
claudiosmweb 73a273caf8 removed order_type hidden input in order actions meta box 2014-07-08 11:46:39 -03:00
claudiosmweb 840def82e7 fixed tax default value 2014-07-08 11:44:12 -03:00
Mike Jolley 2e59b1c9ce Merge pull request #5793 from maxrice/fix-disappearing-checkout-notices
Only print checkout notices when not reloading the checkout
2014-07-08 15:35:49 +01:00
Mike Jolley 58d17216c1 Merge pull request #5791 from EmilEriksen/master
pass  to get_subtotal_to_display(). Fixes #5790
2014-07-08 15:34:28 +01:00
claudiosmweb 1ba7788991 fixed refund tax 2014-07-08 11:34:09 -03:00
claudiosmweb 09cb28a7bb created initial refund class and function 2014-07-08 11:32:47 -03:00
Mike Jolley 2826da47f6 Merge pull request #5801 from coenjacobs/check-right-order-status
Correct order status for checking downloads
2014-07-08 15:28:55 +01:00
Mike Jolley 2282d76efb More UI / Split up meta box scripts 2014-07-08 14:14:29 +01:00
Coen Jacobs f427ebaf7c Updated Turkish Lira symbol 2014-07-08 14:34:42 +02:00
Mike Jolley 5c0ea16a39 More refund UI -show qty boxes and totals 2014-07-08 10:51:10 +01:00
claudiosmweb 16953e96f8 save the order type when create a order with wc_create_order() 2014-07-07 17:23:43 -03:00
claudiosmweb 90110f300f added order_type when save the order data 2014-07-07 17:11:40 -03:00
claudiosmweb 72aae0e69d created order_type taxonomy and register_order_type() function 2014-07-07 16:19:51 -03:00
Mike Jolley fdccaa21d3 Rough, non-functioning example of the UI for refund total and add items in the order items panel
#3164
2014-07-07 16:45:08 +01:00
Coen Jacobs 93bd5a04df Correct order status for checking downloads 2014-07-07 13:30:07 +02:00
Mike Jolley 5b6c574664 Use get_transaction_id 2014-07-07 11:44:35 +01:00
Mike Jolley f6b78be21c Prevent notices in factory 2014-07-07 11:44:27 +01:00
Mike Jolley 8a1d7707ac PayPal implementation of Process_refund()
#3164
2014-07-07 11:44:15 +01:00
Mike Jolley 664dad3766 Process_refund()
#3164
2014-07-07 11:43:27 +01:00
Mike Jolley 979f2c0b48 Get transaction ID method 2014-07-07 11:43:06 +01:00
Max Rice 10046cb8a1 Only print checkout notices when not reloading the checkout
Any notices that are added during checkout are immediately lost when
the checkout is forced to reload. This commit fixes that by only
printing the notices if the checkout is not being reloaded, otherwise
they’re printed on the page reload and properly displayed to the user.
2014-07-04 17:22:58 -04:00
EmilEriksen 2f3793e49b pass to get_subtotal_to_display(). Fixes #5790 2014-07-04 20:29:17 +02:00
Mike Jolley 72396bf987 Add an order action to 'create credit note' 2014-07-04 15:20:29 +01:00
Mike Jolley 0b05f10995 Merge pull request #5787 from splashingpixels/bacs-html
moved h3 bank account title out of UL element for correctness
2014-07-04 11:04:14 +01:00
Mike Jolley 170399e5c3 Filter is_valid_for_product even when not relevant.
#5681
2014-07-04 11:03:12 +01:00
Paul Kilmurray 8c2f7a1388 Add woocommerce_product_visibility_options filter
Matches filter used in class-wc-admin-post-types.php
2014-07-04 14:42:14 +08:00
splashingpixels 63371ac520 moved h3 bank account title out of UL element for correctness 2014-07-03 11:54:36 -07:00
Mike Jolley abe0d0004a Merge pull request #5678 from coenjacobs/order-factory-refactor
Order factory refactor implementation (take two)
2014-07-03 15:14:43 +01:00
Mike Jolley a4346d9c90 Fix shop page when using verbose page rules
cc @claudiosmweb
2014-07-03 15:14:00 +01:00
Mike Jolley 5946e3fd7c $key should be $transient_name
#5777
2014-07-03 13:02:19 +01:00
Mike Jolley ee48dcd5fd Invalidate query transients to avoid cache flush
Part of #5777. These transients are required and cannot be predicted.

If not using an external cache system, the DB is cleared still to keep
size down after invalidation.

For these 2 transients, invalidation occurs when visibility altering
product attributes are edited.
2014-07-03 12:59:57 +01:00
Mike Jolley 3974c1028a Remove wp_cache_flush() Closes #5777
Carrying on from previous commits, the need for a wildcard delete for
products is unnecessary. This removes the $wpdb query and
wp_cache_flush()
2014-07-03 12:59:57 +01:00
Mike Jolley ad2c483370 No need to clear all transients here - only clear parent's cache
Part of #5777
2014-07-03 12:59:57 +01:00
Mike Jolley d1dbe4492e Clear comment transients only on wp_update_comment_count
Does not need to be flushed when editing a product. Part of #5777
2014-07-03 12:59:57 +01:00
Coen Jacobs 86a4add087 Merge remote-tracking branch 'upstream/master' into order-factory-refactor
Conflicts:
	includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
Alexandru Furculita 89718fb43b Replace get_page with get_post
get_page is deprecated since WP 3.5
2014-07-03 13:25:50 +03:00
Mike Jolley 0448165c02 woocommerce_coupon_is_valid_for_cart
Closes #5681
2014-07-02 15:03:48 +01:00
Mike Jolley 8b2c4a3cb3 Merge pull request #5770 from shoheitanaka/patch-5
Correct the order of Japanese address fields
2014-07-02 13:58:57 +01:00
Mike Jolley 529b471470 Merge pull request #5771 from helgatheviking/fix/order-add_product-meta
wc_add_order_item_meta() the _line_total doesn't use the correct total
2014-07-02 13:58:48 +01:00
Mike Jolley 101254a6a3 Have get_product_from_item only return variable product if it exists, and show on the order item row if the variation no longer exists.
Fixes #5536
2014-07-02 13:58:10 +01:00
Kathy Darling cf322e9625 wc_add_order_item_meta() the _line_total doesn't use the total 2014-07-01 10:48:30 -04:00
Shohei Tanaka 7c10c4442e Correct the order of Japanese address fields
The order was incorrect. Changing the order of the input address field.
2014-07-01 16:52:45 +09:00
Julian Acosta 902d8bbe5a Added dependency of touch punch to wc-price-slider 2014-07-01 00:03:06 -05:00
Julian Acosta 8f3586fccb Added touch support to price filter widget using jquery ui touch punch 2014-07-01 00:00:26 -05:00
claudiosmweb 49882740bb added the possibility to remove the product images by API 2014-06-30 18:02:31 -03:00
claudiosmweb 617b299d8f improved the image upload to get images by ID and save the _product_image_gallery 2014-06-30 17:58:27 -03:00
claudiosmweb d3a2307d18 improved the image upload 2014-06-30 17:31:25 -03:00
claudiosmweb 584af93aba fixed a variable override when create new variable productions 2014-06-30 16:36:13 -03:00
Mike Jolley 3b6f7403bb Merge pull request #5760 from claudiosmweb/5670-fix-paypal-urls
Add urlencode() in return and cancel_return items in paypal params
2014-06-30 15:16:56 +01:00
Mike Jolley 137bf945ab Defer cart cookie being set 2014-06-30 15:14:32 +01:00
claudiosmweb db781a14ae added urlencode() in return and cancel_return items in paypal params, closes #5670 2014-06-30 10:51:52 -03:00
Mike Jolley 779613b062 Merge pull request #5660 from tamarazuk/upstream
Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
2014-06-30 12:00:25 +01:00
Mike Jolley 33f40afbdb pre_get_posts is an action 2014-06-30 11:41:24 +01:00
doublesharp 605c1b25f0 Corrected duplicated settings_page() content
Replaced duplicated call to `array( $this, 'settings_page' )` with `null` to prevent the HTML from being printed to the admin settings twice.
2014-06-27 16:08:30 -07:00
Mike Jolley 2d23172cb1 Merge pull request #5752 from claudiosmweb/feature-wc-check-for-unique-sku-function
Introduces the wc_product_has_unique_sku() function
2014-06-27 21:22:52 +01:00
claudiosmweb 2b1a99eca6 introduces the wc_get_core_supported_themes() function 2014-06-27 16:42:23 -03:00
claudiosmweb 04f9361de7 added woocommerce support information in system status page 2014-06-27 16:37:59 -03:00
claudiosmweb d3dc018ffc fixed the wc_product_has_unique_sku() function name 2014-06-27 16:03:25 -03:00
claudiosmweb 0a4b6387e6 introduces the wp_product_has_unique_sku() function 2014-06-27 15:59:24 -03:00
Mike Jolley 2cb7b939c8 Merge pull request #5733 from claudiosmweb/5732-fix-wp-comments-count
Remove order notes from wp_count_comments() function
2014-06-27 15:47:14 +01:00
Mike Jolley c1a4deef63 Merge pull request #5750 from claudiosmweb/5712-fix-variation-sku
Unique sku in variation level
2014-06-27 15:26:12 +01:00
Mike Jolley 5e1bc4aeb1 Tweak get_availability 2014-06-27 14:46:39 +01:00
Mike Jolley a9262cbaf2 Merge pull request #5555 from toddlahman/master
Confirm buffer is not empty before erasing
2014-06-27 14:21:51 +01:00
claudiosmweb dfb1aeeb7b fixed some coding standards in includes/admin/meta-boxes/class-wc-meta-box-product-data.php 2014-06-27 10:08:39 -03:00
toddlahman f6c3f4d0b7 Remove diff code block from wc-customer 2014-06-27 05:56:27 -07:00
claudiosmweb a5f8d4dd5c guaranteed that variations have unique sku, closes #5712 2014-06-27 09:45:50 -03:00
Mike Jolley c2475c2073 Merge pull request #5745 from claudiosmweb/4164-feature-products-api
Products API - PUT/POST/DELETE
2014-06-27 13:14:20 +01:00
Mike Jolley cc1d1e2237 Included method to define a link format for a transaction ID, set transaction ID manually, and tweaked display. 2014-06-27 13:12:10 +01:00
toddlahman bad8225442 Allow home_url() to determine the scheme 2014-06-27 03:41:03 -07:00
Mike Jolley 50a4c5bd23 Merge branch 'variation-stock-management'
Conflicts:
	includes/class-wc-product-variation.php
2014-06-27 11:15:42 +01:00
claudiosmweb e208770265 fixed some coding standards 2014-06-26 16:55:24 -03:00
claudiosmweb 84be699374 added new product API actions 2014-06-26 16:51:03 -03:00
claudiosmweb fe53733be0 added method to save the variations in product API 2014-06-26 16:47:54 -03:00
toddlahman 7d78888f12 sync fork with master 2014-06-26 03:30:09 -07:00
claudiosmweb bdd5f9d0f6 created API methods to save product categories and tags 2014-06-25 16:38:51 -03:00
claudiosmweb 2dffa85353 fixed the downloads method 2014-06-25 16:27:24 -03:00
claudiosmweb dce4a4eed6 added all product options for save in WC_API_Products::save_product_meta() method 2014-06-25 16:20:28 -03:00
claudiosmweb 28713a760c improved the product price in product API handler 2014-06-25 13:27:48 -03:00
Mike Jolley 5dcd19f5fa Better handling of serialised settings Closes #4584 2014-06-25 16:30:47 +01:00
Mike Jolley 021431f012 Merge branch 'philmeadows-patch-1' 2014-06-25 13:57:36 +01:00
Mike Jolley 6390e387e2 Additional check for product coupons and sale product exclusion. Fixes #5697 2014-06-25 13:46:47 +01:00
Mike Jolley 0f6f04e017 Added wc_stock_amount() core function and replaced intval
#4612
2014-06-25 11:25:28 +01:00
Mike Jolley 1389dd2e86 Merge pull request #5738 from SiR-DanieL/patch-3
Improved woocommerce_placeholder_img filter
2014-06-25 11:12:26 +01:00
Mike Jolley c1dd3f2024 Allow endpoint use on the front page.
Fixes #5609 cc @claudiosmweb
2014-06-25 11:10:05 +01:00
Mike Jolley f1a10c2e70 Fix incorrect variable check when editing address 2014-06-25 11:06:42 +01:00
Nicola Mustone 46df7ba249 Added $size and $dimensions parameters
Added $size and $dimensions parameters to palceholder image filter to have a better custom management of the placeholder image.
2014-06-25 11:46:50 +02:00
Manos Psychogyiopoulos 6ad8f0f718 fix conflicts 2014-06-25 10:36:11 +03:00
claudiosmweb 101169322c added method to save product attributes in products API 2014-06-24 18:32:37 -03:00
claudiosmweb ea9fb154a9 fixed/improved the PUT method in product API 2014-06-24 17:34:06 -03:00
claudiosmweb bec77c12d8 added PUT method in product API 2014-06-24 17:28:36 -03:00
claudiosmweb 78f461f835 fixed the save product method in API 2014-06-24 17:17:51 -03:00
claudiosmweb 49c80e6732 fixed the create producs method in products API 2014-06-24 17:16:36 -03:00
claudiosmweb 52a5ae9086 added delete method in products API 2014-06-24 17:16:08 -03:00
claudiosmweb 2fb2d8dfb6 removed order notes from wp_count_comments() function, closes #5732 2014-06-24 15:56:53 -03:00
claudiosmweb 0971b87f30 added @kloon's WC_API_Products::save_product_meta() method 2014-06-24 15:30:11 -03:00
claudiosmweb f583f94885 improved the save product images methods in product API 2014-06-24 15:23:21 -03:00
claudiosmweb d7e49ea801 created methods to save product images by API 2014-06-24 15:19:34 -03:00
claudiosmweb 770d81091d fixed a error when get the thumbnail by API
Fixed the error:

PHP Notice: Trying to get property of non-object in wp-includes/post-template.php on line 29
2014-06-24 14:56:33 -03:00
claudiosmweb 5ca7516139 initial create product API method 2014-06-24 14:42:10 -03:00
claudiosmweb 276ebd25e3 created the wc_get_product_types() function 2014-06-24 13:59:56 -03:00
Mike Jolley 0e623e2c50 PESO Closes #5493 2014-06-24 16:08:04 +01:00
Mike Jolley 391b6cc6ae Merge pull request #5728 from darkrain/master
bugfix in get_related() - return trash posts
2014-06-24 15:55:22 +01:00
Mike Jolley 0596204c22 Merge pull request #5680 from helgatheviking/variation_is_purchasable
add filter to is_purchasable() for variations
2014-06-24 15:51:54 +01:00
Mike Jolley 03de576bfb Data update 2014-06-24 15:21:39 +01:00
Mike Jolley fb592a1a79 Variation class modifications (see details)
- Made it load data on the fly, rather than loading it all at once
- Pull some data from variation, some from parent
- Updated stock methods to use variation or parent depending on
manage_stock
- Ensure parent stays in sync on stock status change event
2014-06-24 13:05:13 +01:00
Mike Jolley 21d37e86c2 Handle stock for self and children, as well as syncing status with the children 2014-06-24 13:03:25 +01:00
Mike Jolley d65cb855bc Static is required 2014-06-24 13:02:58 +01:00
Mike Jolley f69e5fc4ee Only use a value for changes - allows automatic changes to stock status to take over 2014-06-24 13:02:48 +01:00
Mike Jolley d631f4acdc Hide status box for variables and handle save event 2014-06-24 13:02:09 +01:00
Mike Jolley 0315e48187 Only call the method to update stock when it changes 2014-06-24 13:01:47 +01:00
Mike Jolley 3ca70b30f5 Add sanity check to stock status change 2014-06-24 13:01:34 +01:00
Shohei Tanaka 19b5d8073e Update class-wc-countries.php for Japanese State
I don't use the word of Province for the largest administrative divisions of Japan, like the state in USA.
Sometimes I use the word of State for 都道府県. But I search some site, It seems to say that "Prefecture"
 is formally. Perhaps Prefecture is best.

Please check following site.
1. One of Most Popular Japanese to English dictionary site:
http://ejje.weblio.jp/content/%E9%83%BD%E9%81%93%E5%BA%9C%E7%9C%8C

2. Official Japanese law Translation site(Please click 都道府県)
http://www.japaneselawtranslation.go.jp/dict/list?re=02&ft=1&dn=1&ky=%E9%83%BD%E9%81%93%E5%BA%9C%E7%9C%8C&x=63&y=8&co=1
2014-06-24 19:00:03 +09:00
darkrain 8f530a156c bugfix in get_related() - return trash posts 2014-06-24 13:11:10 +07:00
Mike Jolley b46507ca13 Merge pull request #5639 from tamarazuk/master
[product_category] shortcode: Remove ordering query args
2014-06-23 16:36:43 +01:00
Mike Jolley 34c614373e Merge pull request #5701 from afurculita/master
Deprecate WP_TEMPLATE_PATH
2014-06-23 16:18:29 +01:00
Kathy Darling 7b201aad58 change is_purchasable() args to match regular product 2014-06-23 10:04:03 -05:00
Mike Jolley 84163615d3 Merge pull request #5650 from bernattorras/patch-1
Update class-wc-query.php
2014-06-23 13:07:13 +01:00
Mike Jolley fb1b6af309 Merge pull request #5662 from franticpsyx/order_item_count
order item count is wrong
2014-06-23 13:05:30 +01:00
Mike Jolley 474c5aafcf Merge pull request #5702 from darkrain/master
add filter to method get_sku()
2014-06-23 12:59:52 +01:00
Mike Jolley 85befad283 Use max() to prevent division by zero Closes #5696 2014-06-23 12:56:11 +01:00
Mike Jolley feb3088dfc Merge pull request #5644 from franticpsyx/overrides_scan_table_format
table format in Status report, template overrides
2014-06-23 12:24:47 +01:00
Mike Jolley 707b0b66cd Merge pull request #5713 from coenjacobs/dont-assume-log-action
Status page log title should not assume action for title
2014-06-23 12:05:11 +01:00
Mike Jolley 02ccef615b Merge pull request #5708 from JDGrimes/docs-fixes
Update copy-pasted docs for class instance() methods
2014-06-23 12:02:59 +01:00
Coen Jacobs 71ae6f874a Status page log title should not assume action 2014-06-21 10:27:40 +02:00
Mike Jolley b86b4c91c6 Simplify get_children and use stock status rather than stock level 2014-06-20 10:50:31 +01:00
Mike Jolley 8834679d93 Don't validate empty fields 2014-06-20 10:28:04 +01:00
JDGrimes 0d472cead5 Update copy-pasted docs
Fixes #5707
2014-06-19 15:43:05 -04:00
Mike Jolley 37117409f8 Merge pull request #5704 from JDGrimes/wpdb-prefix-table
Don't assume the database prefix is wp_
2014-06-19 16:49:08 +01:00
Mike Jolley 19adbb9bba Product admin/saving 2014-06-19 16:47:04 +01:00
JDGrimes a4a7daf960 Don't assume the database prefix is wp_
Use `$wpdb->prefix` instead. It was inconsistent with the rest of the
query anyway.
2014-06-19 11:35:33 -04:00
JDGrimes 3ed17d1b05 Avoid a "method should not be called statically"
Declare `WC_Post_Data::transition_post_status()` as `static`. Avoids a
PHP notice.
2014-06-19 11:32:52 -04:00
darkrain ea476af2ca add filter to method get_sku() 2014-06-19 22:28:49 +07:00
Alexandru Furculita 494b55abac Update class-wc-template-loader.php 2014-06-19 15:45:09 +03:00
Mike Jolley c66f2b8232 Split out several transient clearing functions to be called only when needed. 2014-06-19 12:25:10 +01:00
Mike Jolley 3df6a71b96 Removed some transient clears where unnecessary 2014-06-19 12:25:10 +01:00
Mike Jolley 3e0f6e2511 Term counts only need to be deleted when terms are recounted 2014-06-19 12:25:10 +01:00
Mike Jolley af77d8f12c Only remove featured transient when featured changes 2014-06-19 12:25:10 +01:00
Mike Jolley bb787ff8cc Merge pull request #5687 from claudiosmweb/fix-undefined-function-wc_ship_to_billing_address_only-in-admin
Move the wc_ship_to_billing_address_only() function to wc-order-functions.php
2014-06-18 16:18:35 +01:00
Mike Jolley 4187a2465a Merge pull request #5690 from BFTrick/parenthesis
Adding Brackets Around if Statement
2014-06-18 16:14:41 +01:00
Mike Jolley cf3cca4c8e Merge branch 'feature-wc-create-order' 2014-06-18 16:07:29 +01:00
Mike Jolley f2ca5e76bd Use a transaction during checkout's order creation method to ensure all data gets set
Closes #5368
2014-06-18 16:03:46 +01:00
Patrick Rauland 8e3c3a61db adding brackets around if statement 2014-06-17 16:40:54 -05:00
claudiosmweb 7fd6e9f0a0 moved the wc_ship_to_billing_address_only() function to wc-order-functions.php 2014-06-17 17:39:02 -03:00
Mike Jolley 8c1b384f43 [2.1] Total tax should be +, not - 2014-06-17 10:19:40 +01:00
Kathy Darling 5f56366a0b add filter to is_purchasable() 2014-06-16 12:32:54 -05:00
Coen Jacobs e7b6c49c7c Added comment to indicate that WC_Order shouldn't be directly instantiated 2014-06-14 23:36:20 +02:00
Coen Jacobs 66006a18b0 WC_Order is default class for order factory 2014-06-14 23:26:01 +02:00
claudiosmweb 97fb619e23 fixed undefined variable $status, closes #5673 2014-06-13 12:18:00 -03:00
Mike Jolley 94549e1462 Notices 2014-06-13 16:11:15 +01:00
Mike Jolley f37d6e12b8 Cleaned up ajax tax calc function 2014-06-13 15:54:08 +01:00
Mike Jolley 93778e72b0 Tax class fixes + notices 2014-06-13 15:53:59 +01:00
Mike Jolley 0f22691767 Calculate tax and totals methods 2014-06-13 15:21:15 +01:00
Coen Jacobs aa60022297 Restore get_order call in WC_Order constructor 2014-06-13 15:38:24 +02:00
Coen Jacobs 476870d9f2 Created WC_Abstract_Order, extended by WC_Order 2014-06-13 15:37:20 +02:00
Coen Jacobs 89ea6c46ab Replace new WC_Order calls with get_order 2014-06-13 15:24:51 +02:00
Coen Jacobs 4ca9855bec get_order wrapper function for new factory 2014-06-13 15:21:10 +02:00
Coen Jacobs 9c68f71500 Basic order factory class 2014-06-13 15:20:14 +02:00
Mike Jolley 76d160c8fc Fire action when adding product 2014-06-13 10:20:38 +01:00
Mike Jolley a6da6e3353 Also use qty 2014-06-13 10:18:03 +01:00
Mike Jolley 5aa8b47c6b When setting totals, if not set get the data from the product 2014-06-13 10:14:18 +01:00
Mike Jolley 375a0e2652 static WC_Tax class - no need for a constructor in this 2014-06-12 16:47:43 +01:00
Manos Psychogyiopoulos c172a08551 filter class 2014-06-12 15:09:15 +03:00
Manos Psychogyiopoulos cb75dcf699 filter name change 2014-06-12 14:51:23 +03:00
Mike Jolley e0b6e78752 Merge pull request #5658 from phikai/master
Send Proper Status Codes on wp_die (Fixes #5656)
2014-06-12 12:01:30 +01:00
Mike Jolley 2f3c60d4cf Merge pull request #5655 from claudiosmweb/fix-order-item-fees-tax-names
Fix tax name in order item fees
2014-06-12 11:59:33 +01:00
Mike Jolley 9beaf30a73 Merge pull request #5657 from claudiosmweb/feature-transaction-id-display
Display Transaction ID in order data
2014-06-12 11:59:17 +01:00
Mike Jolley ff186a23cc Merge pull request #5659 from claudiosmweb/fix-hard-code-strings
Fix some hard code strings
2014-06-12 11:59:06 +01:00
Mike Jolley c7a74e92fa Merge pull request #5654 from claudiosmweb/5551-feature-order-items-attributes-nice-names
Improved order items attributes names
2014-06-12 11:58:45 +01:00
Mike Jolley e532ffa064 Update language updater notices 2014-06-12 11:57:49 +01:00
Manos Psychogyiopoulos 0004a20add filter output apart from count 2014-06-12 11:53:39 +03:00
Manos Psychogyiopoulos 6af23e09bf order item count wrong 2014-06-12 10:59:45 +03:00
Tamara Zuk ee5d294ed7 Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
The new filter will allow plugins that add order item meta to choose to
display the free fee items on order details pages and emails.
2014-06-11 19:16:27 -04:00
Tamara Zuk 9d43781737 Merge remote-tracking branch 'upstream/master' 2014-06-11 19:01:43 -04:00
Kai Armstrong 1274ac3303 Reading the wp_die docs was apparently a giant mental challenge... fixed the fix for #5656 2014-06-11 15:24:27 -05:00
claudiosmweb 61c94f9e25 fixed some hard code strings 2014-06-11 17:12:23 -03:00
claudiosmweb c3ed04197b fixed hard coded Edit string 2014-06-11 17:05:09 -03:00
Kai Armstrong c7410a1630 send proper status codes on die 2014-06-11 14:57:26 -05:00
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
Mike Jolley 7895857d32 URL decode when viewing order attributes to prevent taxonomies not being found
Closes #5315
2014-04-29 15:07:45 +01:00
Mike Jolley 2802ded47e Change label and add description Closes #4698 2014-04-29 15:07:06 +01:00
Max Rice 7e2fa1bbd6 Clear cached API reports when deleting shop order transients 2014-04-29 15:05:43 +01:00
Remi Corson 17abdb223a fixed incorrect order received endpoit tooltip 2014-04-29 15:03:22 +01:00
splashingpixels 902e7e2506 fixed my account downloadables out of order 2014-04-29 15:02:51 +01:00
Akeda Bagus 86de4e10e1 Typo fix. 2014-04-29 15:02:43 +01:00
Christian Thomas ede8bc1a2a Update class-wc-emails.php
Check for a value against each meta item before outputting.
2014-04-29 15:02:38 +01:00
Akeda Bagus e4a959e397 Removes unused block and var.
There's duplicate block that does the same thing, but assigning to different variable.
On the end only the last variable is used, which is `$username`.
2014-04-29 15:02:29 +01:00
claudiosmweb 92707eaf55 fixed coding standards in includes/admin/post-types/class-wc-admin-cpt-product.php 2014-04-29 15:02:03 +01:00
claudiosmweb 8ae788f73c added method to stop save duplicate sku in quick edit 2014-04-29 15:01:32 +01:00
splashingpixels 8f5a98583a removed wc_clean/sanitize_text_field not needed. handled by wp core functions fixes #5318 2014-04-29 15:01:21 +01:00
Bass Jobsen 06af53bd8c Update class-wc-frontend-scripts.php
See also https://github.com/bassjobsen/wp-defer-loading/issues/14 prettyPhoto-init is not only dependent of jquery, but also of prettyPhoto. The dependency of prettyPhoto is not set.
2014-04-29 15:00:46 +01:00
Max Rice 0e127a3e10 Update REST API documentation link 2014-04-29 14:59:12 +01:00
Mike Jolley 64ebb7c0eb Prevent duplicate admin menu items Closes #5380 2014-04-29 14:03:16 +01:00
Mike Jolley 116476c45b Merge pull request #5390 from jjeaton/locate-template-comment
Update comment to reflect that parameter template_name for wc_get/locate...
2014-04-29 12:22:36 +01:00
Josh Eaton 3d8daf7054 Update comment to reflect that parameter template_name for wc_get/locate_template() only accepts strings
Fixes #5389
2014-04-28 16:04:21 -04:00
mkayan-wakefly 84f531f848 Update class-wc-checkout.php
Recalculating the cart totals, in the event a user registers during checkout and in doing so qualifies for any discounts
2014-04-28 14:20:45 -04:00
Mike Jolley 746b79a49d Merge pull request #5384 from tamarazuk/patch-1
Add action filter in inventory product data
2014-04-28 16:01:35 +01:00
Mike Jolley 3e1d5feaf3 Merge pull request #5353 from tamarazuk/backorder-variations
Backorders at variation level
2014-04-28 15:27:36 +01:00
splashingpixels 945d4bedc6 gateway COD added instructions to email closes #5385 2014-04-27 21:17:40 -07:00
tamarazuk 44d197cde0 Another action hook in Inventory product data tab
allow plugins to create a new options_group in this tab
2014-04-27 19:25:07 -04:00
tamarazuk 47baf952e6 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-27 16:18:58 -04:00
Mike Jolley ca9955fa9a Update stock amounts with DB queries Closes #5367
@claudiosmweb and @coenjacobs please review
2014-04-25 15:28:02 +01:00
Mike Jolley bf553381b9 Merge pull request #5374 from claudiosmweb/fix-cod-in-pay-for-order-page
Improved the COD
2014-04-25 12:34:14 +01:00
Mike Jolley 3d8f7963df Update abstract docblock 2014-04-25 12:33:14 +01:00
Mike Jolley 34db5d68b6 Don't sanitise rate ID - breaks utf8 chars
Fixes #5376
2014-04-25 12:31:58 +01:00
Mike Jolley d168686478 Added brackets 2014-04-25 12:31:58 +01:00
Mike Jolley cd4bf515b7 Merge pull request #5375 from claudiosmweb/4820-feature-translate-edit-address-slugs
Make possible to translate the edit-address endpoint slugs
2014-04-25 10:46:14 +01:00
Mike Jolley 02acbfa07e 1 filter rather than 2 Closes #5361 2014-04-25 10:43:30 +01:00
Mike Jolley 630eeb4945 Merge pull request #5373 from claudiosmweb/5237-feature-max-transaction-amount
Feature maximum transaction amount for payment gateways
2014-04-25 10:20:54 +01:00
Mike Jolley 0e1fcbda64 Abstract product constructor
Check for numeric $product, and expand the checking to see if its
passed a post object. Fixes #5341
2014-04-25 10:19:00 +01:00
claudiosmweb 79a8986f06 added the possibility to translate the edit-address endpoint slugs, closes #4820 2014-04-24 18:18:41 -03:00
claudiosmweb fe467282cd improved the get_order_total() method 2014-04-24 15:49:41 -03:00
claudiosmweb d7e26d993c added method to check if order needs shipping in "pay for order" page 2014-04-24 15:33:14 -03:00
claudiosmweb 64a40c8657 removed not defined $wp variable in favor to get_query_var() function 2014-04-24 15:03:33 -03:00
claudiosmweb 4ac0b28537 updated the method to get the order id from "pay for order" page 2014-04-24 14:52:17 -03:00
claudiosmweb 47d14e9df3 updated the WC_Payment_Gateway class to set a maximum transaction amount, closes #5237 2014-04-24 14:39:20 -03:00
Mike Jolley 3d584bc09a Ignore variation stock if disabled globally Closes #5370 2014-04-24 16:44:01 +01:00
Mike Jolley 6efbf89cd3 [2.2] Hide COD for virtual orders (no shipping) Closes #5369 2014-04-24 16:37:31 +01:00
Mike Jolley 558a7bbe25 Recount true when recounting terms Fixes #5320 2014-04-24 16:09:03 +01:00
Mike Jolley 9c37d83f11 Let get_file get the first file if no ID is defined
#5296
2014-04-24 16:00:35 +01:00
Mike Jolley 5862bfb2fe Allow saving no downloads, if unset
#5296
2014-04-24 16:00:17 +01:00
Mike Jolley 9b873093eb Check has_file when sending order emails for downloadables
Fixes #5296
2014-04-24 16:00:01 +01:00
Mike Jolley a6a65a2a9d typecast $used_by to array in case its not set. Closes #5350 2014-04-24 15:26:38 +01:00
Mike Jolley bf0fafa17b If billing email is not set and user ID is set, use email
Fixes #5356
2014-04-24 14:45:57 +01:00
Mike Jolley a6a44a3959 URL decode when viewing order attributes to prevent taxonomies not being found
Closes #5315
2014-04-23 16:24:05 +01:00
Mike Jolley c09f710775 Merge pull request #5334 from ragulka/valid-order-statuses-improvements
Valid order statuses improvements
2014-04-23 15:07:15 +01:00
Mike Jolley 247bd15f68 Change label and add description Closes #4698 2014-04-23 14:24:20 +01:00
Mike Jolley e7898f8670 [2.2] Protect admins from shop managers
Closes #5322
2014-04-23 14:18:21 +01:00
Mike Jolley 45f1c8a40f Merge pull request #5359 from splashingpixels/feature-edit-password
added a check for current password on password change closes #5177
2014-04-23 11:39:01 +01:00
Mike Jolley c24ca386cc Template cleanup 2014-04-23 11:37:05 +01:00
Mike Jolley 433b8c1d41 Template cleanup 2014-04-23 11:35:43 +01:00
splashingpixels fde72164a4 added a check for current password on password change closes #5177 2014-04-22 12:01:57 -07:00
Max Rice f5d3d1d74f Clear cached API reports when deleting shop order transients 2014-04-22 15:01:08 -04:00
Mike Jolley cae3148d55 Merge pull request #5342 from tivnet/patch-2
Update class-wc-admin-cpt-product.php
2014-04-22 16:56:10 +01:00
Mike Jolley 53d10f8c7f Merge pull request #5344 from tivnet/patch-3
Docblock fix: wc_product_post_type_link
2014-04-22 16:49:56 +01:00
Mike Jolley 1cf3f3e73d Merge pull request #5319 from splashingpixels/passwords
removed wc_clean/sanitize_text_field not needed. handled by wp core func...
2014-04-22 16:46:40 +01:00
Mike Jolley dbe99502bb Merge pull request #5331 from corsonr/settings-tooltip
fixed incorrect "order received" endpoint tooltip
2014-04-22 16:34:50 +01:00
Mike Jolley 49f452928a Merge pull request #5330 from splashingpixels/downloads-order-my-account
fixed my account downloadables out of order
2014-04-22 16:34:27 +01:00
Mike Jolley 6572caa1a0 Merge pull request #5326 from christian-thomas/patch-1
Update class-wc-emails.php
2014-04-22 16:23:38 +01:00
Mike Jolley 5274599e11 Merge pull request #5325 from gedex/refactor_cpt-shop_order_custom_columns
Removes unused block and var.
2014-04-22 16:23:18 +01:00
Mike Jolley 534579f5ad Merge pull request #5327 from gedex/typo-fix
Typo fix.
2014-04-22 16:21:31 +01:00
Mike Jolley 9b58f80547 Merge pull request #5321 from claudiosmweb/fix-quick-edit-duplicate-sku
Prevent duplicate sku when edit product using quick edit
2014-04-22 16:18:02 +01:00
Mike Jolley 8dab698f55 Merge pull request #5317 from bassjobsen/patch-3
Update class-wc-frontend-scripts.php
2014-04-22 16:17:02 +01:00
Tamara Zuk 7ba3089909 Backorders at variation level
Added a new select metabox for variations allowing users to control
backorders at the variation level.
Might need more testing.
ref: #5351
2014-04-21 21:13:13 -04:00
Gregory Karpinsky 424954743e Docblock fix: wc_product_post_type_link 2014-04-19 09:44:55 -04:00
Gregory Karpinsky cac847c068 Update html-bulk-edit-product.php
The view part of "Sold Individually" bulk edit
2014-04-18 16:16:22 -04:00
Gregory Karpinsky a45061b456 Update class-wc-admin-cpt-product.php
To handle bulk edit of "Sold Individually".
(The view part will follow in the next edit)
2014-04-18 16:13:13 -04:00
Illimar Tambek f07ff6acb5 Introduce `woocommerce_valid_order_statuses_for_payment_complete` filter
Since it's possible to filter the valid order statuses for payments and cancels,
it only makes sense to be able to do the same when checking which statuses
are valid for completing a payment.
2014-04-17 19:28:52 +03:00
Illimar Tambek cbfd17437c Use `woocommerce_valid_order_statuses_for_payment` in `pay_action` too
Even though it was possible to filter the statuses in my-order.php and other places,
it was not possible in the actual pay action.
2014-04-17 19:27:39 +03:00
Remi Corson 7e955ba1f9 fixed incorrect order received endpoit tooltip 2014-04-17 11:03:47 +02:00
splashingpixels c5deab6fe6 fixed my account downloadables out of order 2014-04-16 21:23:45 -07:00
Akeda Bagus 2a97f07d47 Typo fix. 2014-04-15 22:56:35 +07:00
Christian Thomas a410e84fbe Update class-wc-emails.php
Check for a value against each meta item before outputting.
2014-04-15 16:01:20 +01:00
Akeda Bagus 8ae455eef9 Removes unused block and var.
There's duplicate block that does the same thing, but assigning to different variable.
On the end only the last variable is used, which is `$username`.
2014-04-15 21:55:59 +07:00
Mike Jolley c451bc95dc For customer search, join once. Performance increase. 2014-04-15 11:11:00 +01:00
claudiosmweb a016d82321 fixed coding standards in includes/admin/post-types/class-wc-admin-cpt-product.php 2014-04-14 16:15:19 -03:00
claudiosmweb eb54adf697 added method to stop save duplicate sku in quick edit 2014-04-14 15:46:43 -03:00
splashingpixels cc86fcc775 removed wc_clean/sanitize_text_field not needed. handled by wp core functions fixes #5318 2014-04-13 23:29:22 -07:00
Bass Jobsen 182b7c1ad5 Update class-wc-frontend-scripts.php
See also https://github.com/bassjobsen/wp-defer-loading/issues/14 prettyPhoto-init is not only dependent of jquery, but also of prettyPhoto. The dependency of prettyPhoto is not set.
2014-04-14 01:06:17 +02:00
Max Rice fe5d757970 Update REST API documentation link 2014-04-10 12:27:27 -04:00
Coen Jacobs 4afeb7926c Merge branch 'refs/heads/2.1'
Conflicts:
	i18n/languages/woocommerce-admin.pot
	i18n/languages/woocommerce.pot
	includes/class-wc-form-handler.php
	package.json
	readme.txt
	templates/checkout/form-shipping.php
	templates/emails/email-addresses.php
	woocommerce.php
2014-04-10 16:42:08 +02:00
Mike Jolley 7fd971b3ff Add label explaining discount field Closes #5300 2014-04-10 13:58:15 +01:00
Mike Jolley 3228fecbe5 Work out cart discount without tax amounts #5300 2014-04-10 13:58:10 +01:00
claudiosmweb 31cb09aec6 fixed some coding standards in includes/admin/settings/class-wc-settings-general.php 2014-04-10 13:57:25 +01:00
claudiosmweb a0ac62efca added validation when save the frontend colors, closes #5298 2014-04-10 13:57:20 +01:00
Mike Jolley 6fa57f707d Tweak reports query generator to reference table names
Fixes #5278
2014-04-10 13:57:02 +01:00
Mike Jolley b97181c08a get_image_id method + use in email template
Closes #5288
2014-04-10 13:56:56 +01:00
Mike Jolley f89147bd94 Remove nonce from comment form to prevent issues with caching 2014-04-10 13:55:23 +01:00
Gerhard 7ac9c39469 Fix _wc_session_expires autoloading 2014-04-10 13:54:07 +01:00
Mike Jolley cc682f15d9 Only show upgrade notices, and use transient cache
Closes #5211
2014-04-10 13:53:44 +01:00
Mike Jolley 5850b9329b Prevent notices on activation Closes #5216 2014-04-10 13:53:34 +01:00
Mike Jolley 8b59eb3bdb Delete term count transients after stock status change and trashed post
Closes #5286
2014-04-10 13:52:49 +01:00
Mike Jolley 99592a3efc cleaned up download handler, use network_site_url instead of network_admin_url for multisite 2014-04-10 13:52:33 +01:00
Mike Jolley c4c63982f9 During save_meta_boxes, only save for the "main" post being saved, not nested or subsequent save_post events
fixes #5229
2014-04-10 13:51:49 +01:00
Mike Jolley 01ee1089ec When hierarchy is off, only show children in the cat widget. Closes
#5245
2014-04-10 13:51:28 +01:00
Mike Jolley fc906b12d8 woocommerce_coupon_get_discount_amount filter in coupon class
Closes #5244
2014-04-10 13:50:52 +01:00
Mike Jolley 192c74eee6 Remove post_parent so grouped simple products are also returned
Fixes #5178
2014-04-10 13:50:36 +01:00
Mike Jolley 66a1b93fec Clean up labels and default cost to 0 for int shipping
Closes #5219
2014-04-10 13:50:17 +01:00
Mike Jolley b4d63270b6 Stay on checkout when removing coupon Closes #5274 2014-04-10 13:50:13 +01:00
Gregory Karpinsky 5d8ace5d81 Update class-wc-admin-duplicate-product.php
Initialize `$sql_query_sel` before loop - to avoid code validation warning.
2014-04-10 13:49:58 +01:00
Gregory Karpinsky 3ac0005eec Update class-wc-admin-duplicate-product.php
Corrected docblock for `dupe_link()`
2014-04-10 13:49:55 +01:00
Gregory Karpinsky 84e7c12095 Update class-wc-admin-duplicate-product.php
PHP Strict standards:  Only variables should be assigned by reference
2014-04-10 13:49:52 +01:00
Max Rice 7ae0715624 Allow query string fallback for REST API SSL auth
In some environments, the PHP_AUTH_USER/PW server vars are empty which
prevents SSL authentication from working properly. This commit allows
the use of a query string fallback (e.g.
`?consumer_key=123&consumer_secret=abc`) for providing credentials over
SSL.

Fixes #5207
2014-04-10 13:49:37 +01:00
Max Rice bde7b1cde9 Remove unnecessary OAuth code
The parameters provided to the API endpoints only contain the
parameters specified in the method signature so there’s no need to
strip out the OAuth params.
2014-04-10 13:49:25 +01:00
Remi Corson ed09cb7ff2 Removed break line and space 2014-04-10 13:49:19 +01:00
Remi Corson 6491f1da80 Optimized is_paying_customer() 2014-04-10 13:49:15 +01:00
Mike Jolley d43a48eb79 Clear featured transients when needed Closes #5254 2014-04-10 13:49:09 +01:00
Remi Corson 14267660da Added is_paying_customer() to easily check if a user is a WC customer:
Usage:

`
$customer = new WC_Customer();
$out      = 'Paying customer ? ';

if( $customer->is_paying_customer( 10 ) ) {
	$out .= "yes";
} else {
	$out .= "no";
}

echo $out;
`
2014-04-10 13:48:54 +01:00
Max Rice ca8e0380e5 API: double-encode percent symbols when normalizing parameters 2014-04-10 13:48:13 +01:00
Max Rice ba41a28654 API: normalize both key and value before calculating OAuth signature
The OAuth spec indicates that the full query string should be URL
encoded. The array_walk method does not change keys so when used with a
parameter like `filter[period]=week`, the key is not properly encoded.
This fixes that by properly encoding both the key and value.
2014-04-10 13:47:59 +01:00
Max Rice 3b26370117 code standards 2014-04-10 13:47:52 +01:00
Mike 3fb15a4e78 Change \WC_Order::add_order_note cap to edit_shop_order instead of manage_woocommerce 2014-04-10 13:47:47 +01:00
splashingpixels afc17dad40 myaccount registration added check for auto generate password option 2014-04-10 13:47:34 +01:00
Patrick Rauland ce2f2e1c3d adding spaces after text for title in local delivery 2014-04-10 13:47:17 +01:00
Patrick Rauland f9fafc7d16 using spaces after text 2014-04-10 13:47:13 +01:00
Manos Psychogyiopoulos d6f8ef13d0 Allow filtering order statuses in dashboard reports widget 2014-04-10 13:47:09 +01:00
Gregory Karpinsky 0402400043 Update html-admin-page-status-report.php
Use `$wpdb->db_version()` instead of `mysql_get_server_info()` deprecated in PHP 5.5
2014-04-10 13:46:47 +01:00
Mike Jolley e78323e1e4 Ensure _order_currency is set. Closes #5232 2014-04-10 13:46:28 +01:00
Mike Jolley 9e4d0b1114 Chunk option names in cleanup_sessions() Closes #5225 2014-04-10 13:46:20 +01:00
Patrick Rauland d15edfff15 updating coupon email restriction tool tip 2014-04-10 13:46:01 +01:00
Max Rice e739214e25 Use is_ssl() for get_woocommerce_api_url()
When accessing the API over OAuth for a site that has the checkout
forced over SSL, the OAuth string to sign is incorrect. This fixes that
by checking whether the current request is SSL when returning the api
URL
2014-04-10 13:45:56 +01:00
Andrew Benbow 5ceb59b28f Update class-wc-cart.php 2014-04-10 13:45:04 +01:00
Andrew Benbow 40fa2659ee Update class-wc-cart.php 2014-04-10 13:45:01 +01:00
Andrew Benbow df9a876e87 Update class-wc-cart.php 2014-04-10 13:44:58 +01:00
Mike Jolley 206feeabe8 When removing base taxes, round to precision. 2014-04-10 13:41:47 +01:00
Mike Jolley f9b223bc7a Check order exists when resuming on checkout 2014-04-10 13:41:35 +01:00
pauloiankoski dc2f6928eb Apply filters to $product_type
Apply filters to $product_type and we can set a default product type to new products.
2014-04-10 13:39:13 +01:00
Mike Jolley 39c574d201 Correctly round shipping + shipping tax together when passes the tax inclusive total to paypal 2014-04-10 13:37:21 +01:00
Mike Jolley a2f3bb97c1 Fix the SKU search logic so it works with other filters. Closes #5208 2014-04-10 13:37:01 +01:00
Andrew Benbow 92a62c4ae4 Resolve conflict 2014-04-10 13:34:46 +01:00
Mike Jolley d6f5a6f868 wp_kses_post for meta display in admin 2014-04-10 13:32:35 +01:00
profetes 23ecb9a2c5 WC API: can generate API keys for different user than the one that is making request 2014-04-10 13:28:00 +01:00
Mike Jolley 2192db9fca Add label explaining discount field Closes #5300 2014-04-09 15:58:22 +01:00
Mike Jolley 070aadeda0 Work out cart discount without tax amounts #5300 2014-04-09 15:50:17 +01:00
claudiosmweb 89772bf970 fixed some coding standards in includes/admin/settings/class-wc-settings-general.php 2014-04-08 19:11:33 -03:00
claudiosmweb a969952266 added validation when save the frontend colors, closes #5298 2014-04-08 19:08:04 -03:00
Mike Jolley f869e12aac [2.2] Missed one file for #5284 2014-04-08 16:29:29 +01:00
Mike Jolley 937db45913 [2.2] Merge ship to billing and billing only options
+ update options, update files to use new option + function Closes #5284
2014-04-08 16:28:27 +01:00
Mike Jolley e3cb3a4cc8 Tweak reports query generator to reference table names
Fixes #5278
2014-04-08 15:46:59 +01:00
Mike Jolley 94fb5e4aab Merge pull request #5292 from kloon/fix-session-autoloading
Fix _wc_session_expires autoloading
2014-04-08 15:39:09 +01:00
Mike Jolley 2a27663f1f get_image_id method + use in email template
Closes #5288
2014-04-08 15:02:11 +01:00
Mike Jolley af70da5ebb Remove nonce from comment form to prevent issues with caching 2014-04-08 09:37:01 +01:00
Gerhard daf4c4ff9f Fix _wc_session_expires autoloading 2014-04-08 09:35:04 +02:00
Mike Jolley 128eeb164c Only show upgrade notices, and use transient cache
Closes #5211
2014-04-07 16:39:19 +01:00
Mike Jolley 97c92bc7c8 Prevent notices on activation Closes #5216 2014-04-07 15:57:52 +01:00
Mike Jolley 324e17d85f [2.2] Allow spaces and use formatted postcodes for wildcard in local pickup
Fixes #5250. Should go in 2.2 since it could affect existing setup
codes.
2014-04-07 15:46:40 +01:00
Mike Jolley dc6c70cf77 Delete term count transients after stock status change and trashed post
Closes #5286
2014-04-07 15:16:54 +01:00
Mike Jolley e06906f81d cleaned up download handler, use network_site_url instead of network_admin_url for multisite 2014-04-07 15:09:11 +01:00
Mike Jolley 64c9f275b4 During save_meta_boxes, only save for the "main" post being saved, not nested or subsequent save_post events
fixes #5229
2014-04-07 14:15:51 +01:00
Mike Jolley ecbc6aac9c When hierarchy is off, only show children in the cat widget. Closes
#5245
2014-04-07 12:59:38 +01:00
Mike Jolley 24c9d8b2e4 woocommerce_coupon_get_discount_amount filter in coupon class
Closes #5244
2014-04-07 10:26:43 +01:00
Mike Jolley 08b94299d3 Remove post_parent so grouped simple products are also returned
Fixes #5178
2014-04-07 10:19:13 +01:00
Mike Jolley 392e1d57c0 Merge pull request #5210 from plprofetes/master
REST API: fix for generating API keys for different user
2014-04-07 10:16:47 +01:00
Mike Jolley 021a889e66 Merge pull request #5277 from maxrice/rest-api-fix-5207
Allow query string fallback for REST API SSL authentication
2014-04-07 10:13:55 +01:00
Mike Jolley eadedddd1c Merge pull request #5270 from maxrice/master
Normalize both key and value before generating OAuth signature
2014-04-07 10:13:10 +01:00
Mike Jolley 02a1735674 Clean up labels and default cost to 0 for int shipping
Closes #5219
2014-04-07 10:07:13 +01:00
Mike Jolley 09bf77c74b Stay on checkout when removing coupon Closes #5274 2014-04-07 09:51:12 +01:00
Mike Jolley 0dd30d6b89 Merge pull request #5282 from tivnet/patch-3
Update class-wc-admin-duplicate-product.php
2014-04-07 09:23:55 +01:00
Mike Jolley 9410bde762 Merge pull request #5281 from tivnet/patch-2
Update class-wc-admin-duplicate-product.php
2014-04-07 09:23:42 +01:00
Gregory Karpinsky 198f52d16e Update class-wc-admin-duplicate-product.php
Initialize `$sql_query_sel` before loop - to avoid code validation warning.
2014-04-05 13:16:46 -04:00
Gregory Karpinsky cad45b0cf3 Update class-wc-admin-duplicate-product.php
Corrected docblock for `dupe_link()`
2014-04-05 13:10:32 -04:00
Gregory Karpinsky 06ee47a611 Update class-wc-admin-duplicate-product.php
PHP Strict standards:  Only variables should be assigned by reference
2014-04-05 12:58:28 -04:00
Max Rice 09451855f2 Allow query string fallback for REST API SSL auth
In some environments, the PHP_AUTH_USER/PW server vars are empty which
prevents SSL authentication from working properly. This commit allows
the use of a query string fallback (e.g.
`?consumer_key=123&consumer_secret=abc`) for providing credentials over
SSL.

Fixes #5207
2014-04-04 14:24:14 -04:00
Max Rice 1dd24501f5 Remove unnecessary OAuth code
The parameters provided to the API endpoints only contain the
parameters specified in the method signature so there’s no need to
strip out the OAuth params.
2014-04-04 14:22:06 -04:00
Mike Jolley ec5abdd0f6 Merge pull request #5273 from corsonr/master
Added is_paying_customer() to easily check if a user is a WC customer
2014-04-04 14:23:53 +01:00
Remi Corson 7886a4d95d Removed break line and space 2014-04-04 15:23:15 +02:00
Remi Corson e475521a85 Optimized is_paying_customer() 2014-04-04 15:18:10 +02:00
Mike Jolley a569c9fd7d Clear featured transients when needed Closes #5254 2014-04-04 14:16:18 +01:00
Mike Jolley be7d2cffda Merge pull request #5267 from mgmartel/add-order-note-cap
Change capability to add order note to edit_shop_order
2014-04-04 13:59:40 +01:00
Mike Jolley 8e7cd1ff40 Merge pull request #5259 from splashingpixels/myaccount-registration
myaccount registration added check for auto generate password option
2014-04-04 13:58:44 +01:00
Mike Jolley 51f5108aa0 Merge pull request #5255 from tivnet/patch-1
Update html-admin-page-status-report.php
2014-04-04 13:54:12 +01:00
Mike Jolley 862613e45f Merge pull request #5256 from franticpsyx/dashboard_reports_widget
Allow filtering order statuses in dashboard reports widget
2014-04-04 13:52:42 +01:00
Remi Corson 94c93800b4 Added is_paying_customer() to easily check if a user is a WC customer:
Usage:

`
$customer = new WC_Customer();
$out      = 'Paying customer ? ';

if( $customer->is_paying_customer( 10 ) ) {
	$out .= "yes";
} else {
	$out .= "no";
}

echo $out;
`
2014-04-04 09:38:56 +02:00
Max Rice 1c437bdeb8 API: double-encode percent symbols when normalizing parameters 2014-04-03 16:56:26 -04:00
Max Rice 853520d40b API: normalize both key and value before calculating OAuth signature
The OAuth spec indicates that the full query string should be URL
encoded. The array_walk method does not change keys so when used with a
parameter like `filter[period]=week`, the key is not properly encoded.
This fixes that by properly encoding both the key and value.
2014-04-03 16:11:51 -04:00
Max Rice 9f463e4644 code standards 2014-04-03 16:10:08 -04:00
Mike 16463e339e Change \WC_Order::add_order_note cap to edit_shop_order instead of manage_woocommerce 2014-04-03 14:33:54 +02:00
splashingpixels ff5384714f myaccount registration added check for auto generate password option 2014-04-01 19:45:25 -07:00
Patrick Rauland ceef4bc528 adding spaces after text for title in local delivery 2014-04-01 16:58:45 -05:00
Patrick Rauland fd28f81147 using spaces after text 2014-04-01 16:55:36 -05:00
Manos Psychogyiopoulos 96daed0034 Allow filtering order statuses in dashboard reports widget 2014-04-01 22:35:57 +03:00
Gregory Karpinsky 464e7ed3a5 Update html-admin-page-status-report.php
Use `$wpdb->db_version()` instead of `mysql_get_server_info()` deprecated in PHP 5.5
2014-04-01 14:10:06 -04:00
Mike Jolley 342737907a Ensure _order_currency is set. Closes #5232 2014-04-01 15:33:01 +01:00
Mike Jolley 6deac5cf4b Chunk option names in cleanup_sessions() Closes #5225 2014-04-01 15:33:00 +01:00
Mike Jolley 6ba84559d8 Merge pull request #5248 from maxrice/master
Use is_ssl() for get_woocommerce_api_url()
2014-04-01 14:34:51 +01:00
Patrick Rauland 1db1a47cf5 updating coupon email restriction tool tip 2014-03-31 15:54:21 -05:00
Max Rice ebf7603a45 Use is_ssl() for get_woocommerce_api_url()
When accessing the API over OAuth for a site that has the checkout
forced over SSL, the OAuth string to sign is incorrect. This fixes that
by checking whether the current request is SSL when returning the api
URL
2014-03-31 16:22:17 -04:00
Mike Jolley c981bb56ca Merge pull request #5230 from ChromeOrange/master
show shipping form filter
2014-03-31 11:56:57 +01:00
Mike Jolley 24c2c845b7 When removing base taxes, round to precision. 2014-03-31 11:12:12 +01:00
Mike Jolley edf54ad0c8 Check order exists when resuming on checkout 2014-03-31 11:12:12 +01:00
Andrew Benbow b3fc8cbdf6 Update class-wc-cart.php 2014-03-28 14:40:56 +00:00
Andrew Benbow a8e941513c Update class-wc-cart.php 2014-03-28 14:10:53 +00:00
Andrew Benbow 290043b108 Update class-wc-cart.php 2014-03-28 10:41:17 +00:00
pauloiankoski fd5435f7ee Apply filters to $product_type
Apply filters to $product_type and we can set a default product type to new products.
2014-03-27 20:37:00 -03:00
Mike Jolley ebb6af921c Correctly round shipping + shipping tax together when passes the tax inclusive total to paypal 2014-03-27 12:31:48 +00:00
Mike Jolley 2fbb257926 Merge pull request #5206 from ChromeOrange/master
Order cancelled tweaks
2014-03-26 10:50:31 +00:00
Mike Jolley df8e54985c Fix the SKU search logic so it works with other filters. Closes #5208 2014-03-26 10:46:42 +00:00
Andrew Benbow e8bc26f51c Update class-wc-form-handler.php
Updated as per comments
2014-03-26 09:58:51 +00:00
Mike Jolley 2c0cf925dd wp_kses_post for meta display in admin 2014-03-26 09:43:14 +00:00
profetes 77a5b601ed WC API: can generate API keys for different user than the one that is making request 2014-03-25 17:22:48 +01:00
James Koster 80479d67a4 flat rate additional costs table 2014-03-25 14:10:42 +00:00
James Koster c5656ee991 flat rate additional costs table 2014-03-25 13:59:30 +00:00
Mike Jolley 59b48c2945 Possible workaround for @BFTrick's issue. 2014-03-25 13:40:58 +00:00
Mike Jolley 8f09dc1ae2 delete terms transient during recount. #5204 2014-03-25 13:40:55 +00:00
Mike Jolley 2f605e75e5 Brackets 2014-03-25 13:40:51 +00:00
Mike Jolley b7df01724c Don't use esc_attr for storage of meta key 2014-03-25 13:40:48 +00:00
Andrew Benbow d6782567a2 Order cancelled tweaks
Add filters for order cancelled message, change message class from
success to info and allow to be filtered
2014-03-25 12:10:08 +00:00
Mike Jolley a21f8a3d47 delete terms transient during recount. #5204 2014-03-25 11:55:57 +00:00
Mike Jolley dd0e026ae7 Possible workaround for @BFTrick's issue. 2014-03-25 11:36:54 +00:00
Mike Jolley 9c913de1f2 Brackets 2014-03-25 11:36:35 +00:00
Mike Jolley 8e60cd9554 Don't use esc_attr for storage of meta key 2014-03-24 13:53:40 +00:00
tamarazuk 2f47b7df48 Order items added through admin (ajax)
- Store variation data for order items added through the admin
- do 'woocommerce_ajax_add_order_item_meta' action only if $item_id exists
- fixed some indenting
2014-03-24 12:12:43 +00:00
claudiosmweb af89bb8252 becomes possible to translate the credit card form placeholders 2014-03-24 12:12:12 +00:00
bolderelements eb990d8b3b Update abstract-wc-email.php
wp_mail does return a bool just in case something goes wrong with the function so it might be nice to carry it through. While extending this class I thought it might be a good idea to double check everything I can.
2014-03-24 12:12:08 +00:00
vlinicx 27d940ea94 Update wc-core-functions.php
Adding a currency symbol to Croatian currency
2014-03-24 12:11:53 +00:00
Patrick Rauland c4201add98 fixing typo in product classes 2014-03-24 12:11:43 +00:00
Patrick Rauland 4cf8152602 fixing cool typo. see #5189 2014-03-24 12:11:39 +00:00
Md Ariful Haque Khan 900483ad87 Bangladeshi states (districts) list add and state label rename. 2014-03-24 12:11:25 +00:00
Brent Shepherd d4661d6623 Add wc_cart_totals_taxes_total_html()
Also introduces the new 'woocommerce_cart_totals_taxes_total_html' filter.
2014-03-24 12:10:41 +00:00
Brent Shepherd 16d935a2cb Add 'woocommerce_cart_taxes_total' filter 2014-03-24 12:10:37 +00:00
Mike Jolley 865c04c5cf Escape the change log contents when displaying it from wordpress.org 2014-03-24 12:10:10 +00:00
Mike Jolley 8815e2f93d Fix encoding issue with attribute values and move variation data to tooltip Closes #5169 2014-03-24 12:09:21 +00:00
Mike Jolley a720cc8ad4 WC()->api_request_url for PayPal and Mijireh Closes #5183 2014-03-24 12:08:45 +00:00
Mike Jolley 2b5351ae95 Related to #5041, there is not a way to retrieve these dynamic transient names and use delete_transient, so if using object caching we must flush 2014-03-24 12:07:29 +00:00
Mike Jolley 981ea3734a Refactored report transients to use fixed names based on the report classname. Allows use of delete_transient and Fixes #5041 2014-03-24 12:07:24 +00:00
Mike Jolley 7da02708ce Correct property #5041 2014-03-24 12:07:16 +00:00
Mike Jolley 985cef955a Remove break #5041 2014-03-24 12:07:13 +00:00
Mike Jolley 85e33a71ea Clear object cache for orders + products #5041 2014-03-24 12:07:10 +00:00
Mike Jolley bd93a0023a Merge pull request #5199 from tamarazuk/patch-1
Order items added through admin (ajax)
2014-03-24 10:54:49 +00:00
Mike Jolley 34f2170a47 Merge pull request #5198 from claudiosmweb/credit_card_form
Becomes possible to translate the credit card form placeholders
2014-03-24 10:47:10 +00:00
Mike Jolley a9df2eed00 Merge pull request #5188 from neconest/master
Bangladeshi states (districts) list add and state label rename.
2014-03-24 10:42:44 +00:00
Mike Jolley d9eff07669 Merge pull request #5195 from bolderelements/patch-1
Update abstract-wc-email.php
2014-03-24 10:38:47 +00:00
tamarazuk b58acfa970 Order items added through admin (ajax)
- Store variation data for order items added through the admin
- do 'woocommerce_ajax_add_order_item_meta' action only if $item_id exists
- fixed some indenting
2014-03-24 02:02:21 -04:00
claudiosmweb 7ba14b4bd7 becomes possible to translate the credit card form placeholders 2014-03-23 19:51:27 -03:00
bolderelements 4ce392c7f8 Update abstract-wc-email.php
wp_mail does return a bool just in case something goes wrong with the function so it might be nice to carry it through. While extending this class I thought it might be a good idea to double check everything I can.
2014-03-23 13:09:01 -04:00
Md Ariful Haque Khan 7c1377e5d2 Merge remote-tracking branch 'upstream/master' 2014-03-23 15:52:59 +06:00
vlinicx 61ac7fbc9a Update wc-core-functions.php
Adding a currency symbol to Croatian currency
2014-03-22 14:33:25 +01:00
Patrick Rauland abd8a36ddc fixing typo in product classes 2014-03-21 16:41:32 -05:00
Patrick Rauland e4296cc5f7 fixing cool typo. see #5189 2014-03-21 16:37:26 -05:00
Md Ariful Haque Khan 6c028259ee Bangladeshi states (districts) list add and state label rename. 2014-03-21 23:26:13 +06:00
Brent Shepherd c7e6a779cb Add wc_cart_totals_taxes_total_html()
Also introduces the new 'woocommerce_cart_totals_taxes_total_html' filter.
2014-03-20 17:54:42 -07:00
Brent Shepherd 49be7992e6 Add 'woocommerce_cart_taxes_total' filter 2014-03-20 17:54:18 -07:00
Mike Jolley 0dcfb797a7 Escape the change log contents when displaying it from wordpress.org 2014-03-20 16:04:33 +00:00
Mike Jolley 8007e4c102 Fix encoding issue with attribute values and move variation data to tooltip Closes #5169 2014-03-20 15:47:52 +00:00
Mike Jolley 3effa037b4 WC()->api_request_url for PayPal and Mijireh Closes #5183 2014-03-20 11:44:54 +00:00
Mike Jolley 66b44c5cfe Related to #5041, there is not a way to retrieve these dynamic transient names and use delete_transient, so if using object caching we must flush 2014-03-20 11:20:54 +00:00
Mike Jolley 8615d06a33 Refactored report transients to use fixed names based on the report classname. Allows use of delete_transient and Fixes #5041 2014-03-20 11:10:25 +00:00
Mike Jolley 3a54142299 URL decode attributes in admin so they display correctly (asian chars) 2014-03-20 10:03:09 +00:00
Mike Jolley 49a7d169ca Remove this from earlier as it breaks foreign chars 2014-03-20 10:02:35 +00:00
Mike Jolley 73b415f055 esc_attr isn't suitable for meta keys 2014-03-20 10:02:31 +00:00
Mike Jolley fb0948c2d0 Expanding line item_meta causes conflicts if attributes are named with things like 'name', 'type' or 'qty'. Added blacklist to exclude unsafe values. Closes #5100 2014-03-20 10:02:23 +00:00
Mike Jolley e9d48ea28e sync min and max prices for regular and sale prices so prices are displayed correctly when sale price is lower than a regular price of another variation 2014-03-20 10:01:51 +00:00
Mike Jolley debd45bc19 get_children visible only arg to hide out of stock items. Moved logic. 2014-03-20 10:01:33 +00:00
Mike Jolley 7810d78cde wc_session_use_secure_cookie filter 2014-03-20 10:01:26 +00:00
splashingpixels ac53f7fbac removed url decode from custom text attributes related to commit 7bce58e 2014-03-20 09:59:20 +00:00
Patrick Rauland 7e88c32ae7 fixing comma issue with free shipping coupon 2014-03-20 09:59:14 +00:00
Mike f82fb6b8b8 Remove comment exclusion in order notes meta box 2014-03-20 09:59:11 +00:00
Mike Jolley 3cf6d78859 URL decode not needed for custom text attribute names Closes #5155 2014-03-20 09:58:40 +00:00
monirulalom 36c06c2a3d Update wc-core-functions.php file
Update wc-core-functions.php file to add Bangladeshi currency and symbol.
2014-03-20 09:56:23 +00:00
Mike Jolley afde101e50 Don't hide empty - do it at walker level to maintain correct counts and hierarchy Closes #5028 2014-03-20 09:55:46 +00:00
Mike Jolley fa00577674 Fix term count corrections when a count is 0 #5028 2014-03-20 09:55:41 +00:00
Mike Jolley 6891768237 Hide empty at walker level #5028 2014-03-20 09:55:36 +00:00
Mike Jolley da970638d5 Convert states to strings for PayPal Closes #5078 2014-03-20 09:55:14 +00:00
Mike Jolley c39c4ca5a3 Fix term recount during WP callbacks Closes #5133 2014-03-20 09:54:44 +00:00
Mike Jolley 6dcc387978 Use is_purchasable to determine if a variation cart button is needed, and potentially show empty_price_html Closes #5137 2014-03-20 09:54:32 +00:00
Mike Jolley 2fed8e3f53 Fix sale flash for out of stock sale items Closes #5119 2014-03-20 09:52:19 +00:00
Mike Jolley 936c6e84b1 Correct discount calculation in admin when fees are involved. Closes #5103 2014-03-20 09:52:01 +00:00
Mike Jolley dd44ea643b Item meta list classes Closes #5083 2014-03-20 09:50:56 +00:00
Mike Jolley ccddd1df05 Filter the filename Closes #5074 2014-03-20 09:50:12 +00:00
Mike Jolley efc88fdb05 Move loop_end hook as it is generic and used in all WP loops 2014-03-20 09:49:35 +00:00
Gerhard a049c63123 Remove opening bracket from AED currency symbol 2014-03-20 09:48:19 +00:00
Coen Jacobs 24f47553e2 Updated expiry times for transients 2014-03-20 09:45:43 +00:00
thenbrent 1f9ec54e76 Add 'woocommerce_cart_totals_fee_html' filter 2014-03-20 09:44:47 +00:00
InoPlugs Webdesign 3e82ea460a Update class-wc-checkout.php
We need this hook to mark the fees our plugin (additional fee based on gateway) adds to the the order. Otherwise we can't tell if a fee was added by the user (Add fee button), by another plugin or by our plugin.
2014-03-20 09:41:45 +00:00
justinstern d11b0e857d Don't trailingslash Order Cancel URLs with a Query String
With non-pretty permalinks enabled, this was producing a URI like
http://example.com/?page_id=7/  That final unnecessary trailing slash
messes up some redirect gateways that are passed the cancel URL
2014-03-20 09:40:26 +00:00
Andrew Benbow b3335d5521 Update class-wc-gateway-paypal.php
modify currency error message to include both sent and returned currencies for comparison
2014-03-20 09:40:14 +00:00
JustinSainton 7e871109e6 Filter JSON search customers query
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query.  And, unfortunately, it's quite non-performant on large user tables.

One possible option would be to allow users to filter this query directly.  This PR reflects that approach.

For reference: https://gist.github.com/curtismchale/9470986, #5095
2014-03-20 09:39:29 +00:00
crazyscience 4498395f2a Fix for Issue #3367
Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name
2014-03-20 09:24:41 +00:00
Coen Jacobs 47e8a76488 set_transient calls should have expiration to prevent autoloading 2014-03-19 16:04:03 +00:00
Mike Jolley eee61a9d1a URL decode attributes in admin so they display correctly (asian chars) 2014-03-19 15:54:26 +00:00
Mike Jolley ed4f283627 Remove this from earlier as it breaks foreign chars 2014-03-19 15:32:07 +00:00
Mike Jolley 2d5d64dbd7 Merge pull request #5173 from splashingpixels/encoding
removed url decode from custom text attributes related to commit 7bce58e
2014-03-19 15:31:33 +00:00
Mike Jolley bf30244791 Merge pull request #5172 from BFTrick/free-ship-coupon
An Extra Comma Appears When Using A Coupon That Gives Free Shipping
2014-03-19 15:00:29 +00:00
Mike Jolley 6355a0c54a esc_attr isn't suitable for meta keys 2014-03-19 12:58:39 +00:00
Mike Jolley 2f9860c583 Expanding line item_meta causes conflicts if attributes are named with things like 'name', 'type' or 'qty'. Added blacklist to exclude unsafe values. Closes #5100 2014-03-19 12:58:39 +00:00
Mike Jolley f09063b1fd Merge pull request #5170 from mgmartel/order-comments-caps
Remove comment exclusion in order notes meta box
2014-03-19 10:57:07 +00:00
Mike Jolley 51482579d1 sync min and max prices for regular and sale prices so prices are displayed correctly when sale price is lower than a regular price of another variation 2014-03-19 10:51:07 +00:00
Mike Jolley 7f7dae0629 get_children visible only arg to hide out of stock items. Moved logic. 2014-03-19 10:06:13 +00:00
Mike Jolley b1df70f17e wc_session_use_secure_cookie filter 2014-03-19 09:16:28 +00:00
splashingpixels c7bb4f0bbb removed url decode from custom text attributes related to commit 7bce58e 2014-03-18 15:11:43 -07:00
Patrick Rauland f7a63f0ae8 fixing comma issue with free shipping coupon 2014-03-18 16:29:15 -05:00
Mike 5a19abe48b Remove comment exclusion in order notes meta box 2014-03-18 19:49:15 +02:00
Mike Jolley 7bce58e9a1 URL decode not needed for custom text attribute names Closes #5155 2014-03-18 11:36:38 +00:00
Mike Jolley 29da66f4e4 Merge pull request #5154 from monirulalom/patch-1
Update wc-core-functions.php file
2014-03-18 11:21:41 +00:00
Mike Jolley 9d1cb8316f Correct property #5041 2014-03-18 11:18:35 +00:00
Mike Jolley b366523c2c Remove break #5041 2014-03-18 11:10:50 +00:00
Mike Jolley 251b8b411f Clear object cache for orders + products #5041 2014-03-18 11:09:56 +00:00
monirulalom 7ea71912a0 Update wc-core-functions.php file
Update wc-core-functions.php file to add Bangladeshi currency and symbol.
2014-03-18 00:33:08 +06:00
Mike Jolley 95f4be04f9 Don't hide empty - do it at walker level to maintain correct counts and hierarchy Closes #5028 2014-03-17 16:52:24 +00:00
Mike Jolley c4099ab136 Fix term count corrections when a count is 0 #5028 2014-03-17 16:52:06 +00:00
Mike Jolley d9887bebbb Hide empty at walker level #5028 2014-03-17 16:51:34 +00:00
Mike Jolley 8d33594e6a Convert states to strings for PayPal Closes #5078 2014-03-17 15:23:11 +00:00
Mike Jolley b47e73b5a6 Fix term recount during WP callbacks Closes #5133 2014-03-17 14:38:09 +00:00
Mike Jolley b321d6297b Use is_purchasable to determine if a variation cart button is needed, and potentially show empty_price_html Closes #5137 2014-03-17 12:12:10 +00:00
Mike Jolley eaa2033570 Merge pull request #5097 from JustinSainton/patch-3
Filter JSON search customers query
2014-03-14 14:55:04 +00:00
Mike Jolley 7f417c0e8e Fix sale flash for out of stock sale items Closes #5119 2014-03-14 13:41:25 +00:00
Mike Jolley abfafa7ce3 Correct discount calculation in admin when fees are involved. Closes #5103 2014-03-14 13:20:59 +00:00
Mike Jolley ad5f510979 Item meta list classes Closes #5083 2014-03-14 12:40:55 +00:00
Mike Jolley cf50b4977d Filter the filename Closes #5074 2014-03-14 10:04:41 +00:00
sparkweb 1280d6d6ff Removing ordering code from orders
This code got moved to the resources file.
2014-03-13 11:14:08 -06:00
sparkweb d40f773e77 REST API: allow ordering change 2014-03-13 11:08:36 -06:00
Mike Jolley adc604e0e2 Move loop_end hook as it is generic and used in all WP loops 2014-03-13 13:07:47 +00:00
sparkweb 25900f9976 Allow reordering of the order list with the REST api 2014-03-12 23:47:42 -06:00
Mike Jolley c27a5a3f4d Merge pull request #5082 from crazyscience/patch-2
Fix for Issue #3367
2014-03-12 14:37:40 +00:00
Gerhard 37ed91cedf Remove opening bracket from AED currency symbol 2014-03-12 15:50:51 +02:00
Mike Jolley b160a00464 Pass args through for deprecated function Closes #5087 2014-03-12 14:38:03 +01:00
Mike Jolley 26b5ffa3d0 Only append generator tag on HTML pages Closes #5113 2014-03-12 14:38:03 +01:00
Mike Jolley 9a3b796bf4 Pass args through for deprecated function Closes #5087 2014-03-12 13:17:53 +00:00
Coen Jacobs fa089f7c0d Merge pull request #5077 from woothemes/transient-expiration
set_transient calls should have expiration to prevent autoloading
2014-03-12 13:02:42 +01:00
Coen Jacobs 3617316357 Updated expiry times for transients 2014-03-12 12:58:41 +01:00
Mike Jolley 49b8ad4378 Only append generator tag on HTML pages Closes #5113 2014-03-12 11:54:02 +00:00
Mike Jolley 8523fe8f34 Merge pull request #5114 from thenbrent/woocommerce_cart_totals_fee_html_filter
Add 'woocommerce_cart_totals_fee_html' filter
2014-03-12 11:35:43 +00:00
Mike Jolley 71bcef64a1 Merge pull request #5104 from InoPlugs/patch-2
Update class-wc-checkout.php
2014-03-12 11:34:29 +00:00
thenbrent 18efa7341a Add 'woocommerce_cart_totals_fee_html' filter 2014-03-12 21:11:22 +10:00
InoPlugs Webdesign a284d7fe69 Update class-wc-checkout.php
We need this hook to mark the fees our plugin (additional fee based on gateway) adds to the the order. Otherwise we can't tell if a fee was added by the user (Add fee button), by another plugin or by our plugin.
2014-03-11 19:48:51 +01:00
justinstern 6dfce64e47 Don't trailingslash Order Cancel URLs with a Query String
With non-pretty permalinks enabled, this was producing a URI like
http://example.com/?page_id=7/  That final unnecessary trailing slash
messes up some redirect gateways that are passed the cancel URL
2014-03-11 00:04:49 -04:00
Andrew Benbow 2f5fb72a9c Update class-wc-gateway-paypal.php
modify currency error message to include both sent and returned currencies for comparison
2014-03-10 23:23:30 +00:00
JustinSainton e91ca49b6d Filter JSON search customers query
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query.  And, unfortunately, it's quite non-performant on large user tables.

One possible option would be to allow users to filter this query directly.  This PR reflects that approach.

For reference: https://gist.github.com/curtismchale/9470986, #5095
2014-03-10 14:54:27 -07:00
crazyscience 9898aee867 Fix for Issue #3367
Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name
2014-03-07 11:17:11 -08:00
Coen Jacobs 03163c54b0 set_transient calls should have expiration to prevent autoloading 2014-03-07 09:29:01 +01:00
Mike Jolley fbeb3bc822 Update LESS compiler and less files #5070 2014-03-06 17:29:52 +01:00
Mike Jolley 90914cc3c8 Update LESS compiler and less files #5070 2014-03-06 16:23:43 +00:00
splashingpixels 7a28434ab4 get_related fixed tags OR query not excluding product ID 2014-03-06 16:27:13 +01:00
Mike Jolley a955a5ba5d Fallback for add ons page loading 2014-03-06 16:26:47 +01:00
Mike Jolley 7aac055895 When getting downloadable files, check access_expires too Closes #5060 2014-03-06 16:26:47 +01:00
Mike Jolley e2ea31fc94 pedantic nonce checking 2014-03-06 16:26:47 +01:00
Mike Jolley d303e5d072 When dealing with fixed_product discounts, when doing it for the line, multiple by product qty Closes #5054 2014-03-06 16:26:47 +01:00
Mike Jolley 2c13c5c24e Fix variation price display by checking if a variation is actually stock managed before comparing to stock amount Closes #5059 2014-03-06 16:26:47 +01:00
Mike Jolley 6e466d4fdb Set default for $plain_text variable. Closes #5051 2014-03-06 16:26:47 +01:00
Mike Jolley c3d5111c8d Check existence of nonce Closes #5050 2014-03-06 16:26:47 +01:00
Mike Jolley 156098edb9 Fallback for add ons page loading 2014-03-06 15:25:05 +00:00
Mike Jolley 9068da2ece When getting downloadable files, check access_expires too Closes #5060 2014-03-06 14:35:25 +00:00
Mike Jolley 88c666968e Merge pull request #5043 from splashingpixels/related-products
get_related fixed tags OR query not excluding product ID
2014-03-06 13:26:26 +00:00
Mike Jolley a553fd4956 pedantic nonce checking 2014-03-06 13:11:20 +00:00
Mike Jolley 24e884a480 When dealing with fixed_product discounts, when doing it for the line, multiple by product qty Closes #5054 2014-03-06 12:29:25 +00:00
Mike Jolley ba466b3de9 Fix variation price display by checking if a variation is actually stock managed before comparing to stock amount Closes #5059 2014-03-06 12:07:28 +00:00
Mike Jolley 8971dc0d92 Set default for $plain_text variable. Closes #5051 2014-03-06 11:57:47 +00:00
Mike Jolley d42bb7a285 Check existence of nonce Closes #5050 2014-03-06 11:37:48 +00:00
Gerhard 0463516020 Remove duplicate coupon type check 2014-03-06 10:08:27 +02:00
Gerhard 3b0c541acf Send http status 201 when coupon created. 2014-03-06 09:59:28 +02:00
claudiosmweb 2adacc742a fixed the status for create new customers via api 2014-03-06 04:28:42 -03:00
Gerhard ae85e64b2b Edit coupon, save product ID's in comma separates values as per core 2014-03-06 08:52:34 +02:00
Gerhard 518a8cffb2 Save product ID's as comma separated values like core does it 2014-03-06 08:51:00 +02:00
Gerhard 1b1c13349b Do not url decode the body data, just add it. See https://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html 2014-03-06 08:42:05 +02:00
Gerhard 8e0a267a84 Remove implode function 2014-03-06 08:10:08 +02:00
Gerhard d5171854a1 edit coupon, change comma separated data structures to arrays 2014-03-06 07:59:10 +02:00
Gerhard 6ddbc7e6ee Change comma separate data to arrays 2014-03-06 07:55:49 +02:00
Gerhard 88d6e064fa Add missing bracket 2014-03-06 07:50:05 +02:00
Gerhard 7e73f621c8 Add coupon type check when adding new coupon 2014-03-06 07:49:01 +02:00
Gerhard d278896d31 Fix route comments, moved coupon code filter and remove wc_clean around it, check for valid coupon types. 2014-03-06 07:45:32 +02:00
claudiosmweb e6755972b0 fixed the inline documentation 2014-03-05 14:24:47 -03:00
Mike Jolley bfb32b9630 Suppress errors in download handler Closes #5042 2014-03-05 11:04:18 +01:00
Mike Jolley fb20fc87b6 Use woocommerce_notify_no_stock_amount not 0, Closes #5035 2014-03-05 11:04:18 +01:00
Mike Jolley 914308765e Recoded set_stock to only make a variable product out of stock if all variations are stock managed, to to resync prices after stock changes #5035 2014-03-05 11:04:18 +01:00
Mike Jolley 676a67bffb Updated sync logic to exclude hidden and out of stock variations from the price display #5035 2014-03-05 11:04:18 +01:00
Mike Jolley fa7629e8b8 Corrected the "Show Siblings and Children Only" queries Closes #5028 2014-03-05 11:04:18 +01:00
Patrick Rauland b6d54a8ebe returning false instead of array for countries without states 2014-03-05 11:04:18 +01:00
Mike Jolley f44a4bc9d9 Made woocommerce_update_cart_action_cart_updated a filter which can return true or false to recalc totals Closes #4905
Conflicts:
	includes/class-wc-form-handler.php
2014-03-05 11:04:14 +01:00
Mike Jolley 84a42f16cb Add context to strings #4986 2014-03-05 11:02:53 +01:00
Mike Jolley 630eb61203 Later hook for template redirect and the_post Closes #4984 2014-03-05 11:02:53 +01:00
Mike Jolley bb9299fa0c Change the save order so email data is correct for manual orders Closes #4995 2014-03-05 11:02:53 +01:00
Mike Jolley bf8f45fbc9 Correctly recompile scripts on update. Frontend css option no longer exists Closes #5014 2014-03-05 11:02:53 +01:00
Mike Jolley e81c018e60 wc_get_endpoint_url - added support for permalinks containing a query string Closes #5016 2014-03-05 10:58:36 +01:00
splashingpixels 5d96b666f1 shop order - fixes non object error on comments when order is in the trash 2014-03-05 10:58:36 +01:00
splashingpixels 8b8fe715b6 wc_get_product_ids_on_sale should never return post id of 0 fixes #5002 2014-03-05 10:58:36 +01:00
claudiosmweb 0b08814227 improved the bacs email instructions
Conflicts:
	includes/gateways/bacs/class-wc-gateway-bacs.php
2014-03-05 10:58:30 +01:00
claudiosmweb 1aa9840856 forced end of line in bank_details method to fix the #4999
Conflicts:
	includes/gateways/bacs/class-wc-gateway-bacs.php
2014-03-05 10:57:55 +01:00
Patrick Rauland 74755555f5 adding plain text email flag to cheque 2014-03-05 10:57:02 +01:00
Patrick Rauland d3476b8669 adding plain text email flag to bacs 2014-03-05 10:57:02 +01:00
Patrick Rauland afc1c1e566 adding wordpress php formatting" 2014-03-05 10:57:02 +01:00
Mike Jolley 10190ab177 Ensure attributes exist 2014-03-05 10:57:02 +01:00
Mike Jolley f683c29e66 Fix category widget ordering Closes #4971 2014-03-05 10:57:02 +01:00
Mike Jolley 508854effe Fix reports by using strings - int's have a max. Closes #4904 2014-03-05 10:56:23 +01:00
Mike Jolley f1189f5aac Only show the relevant updates in the notices Closes #4977 2014-03-05 10:56:23 +01:00
Mike Jolley 5448e1bedc Fix strict standards Closes #4980 2014-03-05 10:56:23 +01:00
Mike Jolley 624df4ea14 Suppress errors in download handler Closes #5042 2014-03-05 09:30:12 +00:00
Gerhard 8fdfbdf3ba Add missing wpdb global 2014-03-05 09:42:12 +02:00
Gerhard 3bdf3e50cf Add check for duplicate coupon code when updating coupon code 2014-03-05 09:34:01 +02:00
Gerhard 86ac5de9cf Add filter to coupon code 2014-03-05 09:30:11 +02:00
Gerhard db2de990e7 Modify duplicate coupon error code 2014-03-05 09:28:59 +02:00
Gerhard f2f7e09143 Change duplicate coupon error code 2014-03-05 09:28:03 +02:00
Gerhard 826085698b Validate coupon types 2014-03-05 09:25:11 +02:00
Gerhard 7dc7353e60 Coding standards & cleaning of data before saving 2014-03-05 08:07:42 +02:00
Gerhard 268ef2faab Check if coupon was updated when using wp_update_post and return error if not 2014-03-05 08:03:10 +02:00
Gerhard a2ecd3885c edit_coupon REST API look for type and not discount_type 2014-03-05 07:59:27 +02:00
Gerhard fa6eb98535 Rest API edit_coupon function 2014-03-05 07:43:13 +02:00
Gerhard 42d42ae751 REST API create_coupons function 2014-03-05 07:28:05 +02:00
claudiosmweb 344a0d92c6 improved the validation for WC_API_Customers::edit_customer() and WC_API_Customers::delete_customer() 2014-03-04 23:42:36 -03:00
claudiosmweb f2d8912bc1 fixed coding standards in includes/api/class-wc-api-customers.php 2014-03-04 22:48:54 -03:00
splashingpixels b279487535 get_related fixed tags OR query not excluding product ID 2014-03-04 16:19:12 -08:00
claudiosmweb 3b4b73851b added missing textdomain 2014-03-04 18:05:55 -03:00
claudiosmweb 41a5b147e9 improved the WP_Error's ids in customers api 2014-03-04 18:05:22 -03:00
Gerhard a53b93283c Fix create coupon api method 2014-03-04 17:05:38 +02:00
Mike Jolley e557ff5aec Use woocommerce_notify_no_stock_amount not 0, Closes #5035 2014-03-04 14:46:17 +00:00
Mike Jolley 5c75f8a20e Recoded set_stock to only make a variable product out of stock if all variations are stock managed, to to resync prices after stock changes #5035 2014-03-04 14:45:27 +00:00
Mike Jolley decfca94a4 Updated sync logic to exclude hidden and out of stock variations from the price display #5035 2014-03-04 14:44:24 +00:00
Gerhard 38f701e90a Better coupon create error messages 2014-03-04 15:50:31 +02:00
Gerhard 70fb3c004d Create coupons via API 2014-03-04 15:44:33 +02:00
Mike Jolley 56c1ce4bd9 Merge pull request #5031 from BFTrick/uk-counties
Returning False Instead of Empty Array for Countries Without States
2014-03-04 11:49:34 +00:00
Mike Jolley e0b11c8c2e Corrected the "Show Siblings and Children Only" queries Closes #5028 2014-03-04 11:47:17 +00:00
claudiosmweb ee907b0c20 removed sanitize_text_field() function in favor to wc_clean() function in customers api 2014-03-04 02:48:17 -03:00
claudiosmweb 68b8c9f020 improved the customer api creation/edition 2014-03-03 23:01:07 -03:00
claudiosmweb 4204a86022 added method do delete customers via api 2014-03-03 22:16:54 -03:00
claudiosmweb 6c4f82665e added the woocommerce_api_edit_customer action in WC_API_Customers::edit_customer() 2014-03-03 22:09:50 -03:00
claudiosmweb 906273c20b added the woocommerce_api_create_customer action in WC_API_Customers::create_customer() 2014-03-03 22:09:05 -03:00
claudiosmweb f54909f715 added method to edit customer via api 2014-03-03 22:07:28 -03:00
claudiosmweb 5b95346825 fixed the customer creation via api 2014-03-03 21:41:53 -03:00
claudiosmweb 371665cd79 added route to create customers via api 2014-03-03 21:13:44 -03:00
claudiosmweb 14b63541a3 Added the WC_API_Server::urldecode_deep() method
To make it possible to get a more complex data structure.
Example:

array( 'data' => array( 'key' => 'value' ), 'data2' => array( 'key' => 'value' ) )
2014-03-03 21:09:11 -03:00
claudiosmweb 584bfda988 added method to create users with the api 2014-03-03 21:04:40 -03:00
Patrick Rauland f78482dd6e returning false instead of array for countries without states 2014-03-03 16:04:00 -08:00
Mike Jolley 48ebfae145 Made woocommerce_update_cart_action_cart_updated a filter which can return true or false to recalc totals Closes #4905 2014-03-03 15:15:32 +00:00
Mike Jolley 31ee45cf5c Add context to strings #4986 2014-03-03 14:47:19 +00:00
Mike Jolley d9c10aae62 Later hook for template redirect and the_post Closes #4984 2014-03-03 13:37:45 +00:00
Mike Jolley 30eee00c1b Change the save order so email data is correct for manual orders Closes #4995 2014-03-03 13:27:20 +00:00
Mike Jolley 1c0e55c685 Correctly recompile scripts on update. Frontend css option no longer exists Closes #5014 2014-03-03 12:19:29 +00:00
Mike Jolley 47d1782b7e Resolve conflicts 2014-03-03 11:59:47 +00:00
Mike Jolley 74e7829e02 wc_get_endpoint_url - added support for permalinks containing a query string Closes #5016 2014-03-03 11:54:53 +00:00
Mike Jolley c6e63c663b Merge pull request #4998 from BFTrick/plain-text-flag
Add Plain Text Flag Gateways
2014-03-03 10:53:53 +00:00
Mike Jolley f2daf7aeec Merge pull request #4997 from BFTrick/wp-bacs-formatting
Use WordPress Brace Code Style in BACS Gateway Class
2014-03-03 10:53:04 +00:00
Mike Jolley ab3ebfd818 Merge pull request #5003 from splashingpixels/coupon
wc_get_product_ids_on_sale should never return post id of 0 fixes #5002
2014-03-03 10:52:28 +00:00
splashingpixels d357154d2f shop order - fixes non object error on comments when order is in the trash 2014-02-28 22:08:42 -08:00
splashingpixels 5cfa0306f4 wc_get_product_ids_on_sale should never return post id of 0 fixes #5002 2014-02-28 20:37:58 -08:00
claudiosmweb 5c540930c9 improved the bacs email instructions 2014-02-28 20:35:40 -03:00
claudiosmweb 08ae8d5416 forced end of line in bank_details method to fix the #4999 2014-02-28 20:31:53 -03:00
Patrick Rauland a76714c0e9 adding plain text email flag to cheque 2014-02-28 16:13:13 -06:00
Patrick Rauland 694c6bb5ef adding plain text email flag to bacs 2014-02-28 16:11:57 -06:00
Patrick Rauland b274171f8c adding wordpress php formatting" 2014-02-28 16:05:43 -06:00
Rob Davarnia 368bd05677 Update class-wc-shortcodes.php 2014-02-28 13:50:50 -08:00
Rob Davarnia e7ca60b2a2 Ability to add custom quantity using shortcode 2014-02-28 13:43:31 -08:00
Mike Jolley 6fcdccd73b Ensure attributes exist 2014-02-28 15:42:16 +00:00
Mike Jolley 3398941f3f Fix category widget ordering Closes #4971 2014-02-28 15:27:20 +00:00
Mike Jolley 6a0dc3142f Fix reports by using strings - int's have a max. Closes #4904 2014-02-28 14:51:37 +00:00
Mike Jolley 3492be6df0 Only show the relevant updates in the notices Closes #4977 2014-02-28 13:42:48 +00:00
Mike Jolley e0b042a8d4 Fix strict standards Closes #4980 2014-02-28 10:54:34 +00:00
Mike Jolley 2727b62dec Fix after tax coupon amounts 2014-02-27 15:53:36 +01:00
Mike Jolley 13add49e42 Hide shipping class if variation is virtual Closes #4972 2014-02-27 15:48:39 +01:00
Coen Jacobs 5ddba16f7f Fixing the typo fix :) 2014-02-27 15:48:02 +01:00
tamarazuk 6fe0b461d0 Add Canadian address format
.. as per Canada Post's addressing guidelines: http://www.canadapost.ca/tools/pg/manual/PGaddress-e.asp#1413985
2014-02-27 15:47:43 +01:00
JustinSainton 415dadc59e Copypasta fix in docs. 2014-02-27 15:47:15 +01:00
Mike Jolley 8842f25b0e round mijireh shipping amount 2014-02-27 15:46:51 +01:00
Mike Jolley 967aba149c wc_delete_shop_order_transients functions and trigger when order status updates. Closes #4875 2014-02-27 15:46:23 +01:00
Mike Jolley 4685753e27 Prevent short codes running with no cart class loaded. Closes #4962 2014-02-27 15:46:11 +01:00
Mike Jolley 6e00477fd6 Tweak where message is added during reset to avoid needing a session Closes #4908 2014-02-27 15:45:47 +01:00
Mike Jolley 389bf99dad Filters to restrict granting/revoking access to files Closes #4952 2014-02-27 15:45:18 +01:00
Mike Jolley 281c010af3 Changed braces and moved filter #4933 2014-02-27 15:44:25 +01:00
Gerhard 46a78e6936 Coding standards, mostly braces 2014-02-27 15:44:09 +01:00
Gerhard 5f3f7e5bb1 Drop guest checkout test and only check if order is for guest 2014-02-27 15:43:59 +01:00
Mike Jolley c3bc0e61a7 Fix products_will_display logic 2014-02-27 15:43:07 +01:00
Gerhard 0b3d21c104 Should check for yes if guest checkout is enabled 2014-02-27 15:42:43 +01:00
Gerhard 2920fe0354 Move guest check to wc_customer_has_capability 2014-02-27 15:42:35 +01:00
Gerhard bf3e5944d2 Update error message, making it clear to log in and try again. 2014-02-27 15:42:25 +01:00
Gerhard ca3b143b36 Disable order owner check for payment if guest checkout is enabled as per #4957 2014-02-27 15:41:53 +01:00
lekiend 17cc7d7c1a Update html-admin-page-status-report.php
Status report shows update also if update version is lower than current version.
It should show updates only for version number greather than current version
2014-02-27 15:41:43 +01:00
Gerhard 2fa9c2488e Add permalinks_enabled data to API index 2014-02-27 15:41:23 +01:00
splashingpixels 39e5b81321 get related products added DISTINCT to prevent querying duplicates 2014-02-27 15:41:06 +01:00
Mike Jolley 6c337f122c Ensure product exists before getting title. Closes #4916 2014-02-27 15:40:39 +01:00
Mike Jolley 0411d1f9df Combine two meta queries into one #4901 2014-02-27 15:40:07 +01:00
Andrew Benbow fc749a79fa Update class-wc-tax.php
Compound tax rate calculation is wildly off.

Current tax settings : http://cld.wthms.co/Qeb6

Cart before proposed change : http://cld.wthms.co/ILXk

Cart after proposed change : http://cld.wthms.co/fjWO
2014-02-27 15:39:55 +01:00
Mike Jolley c799aa1c57 Username from email hook Closes #4941 2014-02-27 15:39:05 +01:00
Gerhard a8f4aaa677 Add filenames to Downloads section in My Account 2014-02-27 15:38:37 +01:00
Daniel Espinoza 4907e1d02d Allow showing of empty categories using 'hide_empty' param of get_categories() 2014-02-27 15:33:26 +01:00
Patrick Rauland 1261e48bcc commenting regex in flat rate shipping 2014-02-27 15:33:13 +01:00
Patrick Rauland df72ff6fe7 using wordpress brace code style in flat rate shipping 2014-02-27 15:32:58 +01:00
Mike Jolley 500ce37c63 Fix variation level reporting Closes #4885 2014-02-27 15:32:47 +01:00
Mike Jolley a0ffae78df Layered nag - remember orderby #4889 2014-02-27 15:32:19 +01:00
Mike Jolley 17d03be635 Use parseHTML and enforce 1.8 jquery Closes #4899 2014-02-27 15:31:53 +01:00
Mike Jolley b3d4019ea0 Workaround relevanssi Closes #4873 2014-02-27 15:31:31 +01:00
Mike Jolley 5f3ce265ac For custom attributes, try to turn back to 'name' from saved slug in emails/view order templates Closes #4833 2014-02-27 15:31:31 +01:00
Mike Jolley 3081c8812a Limit item name lengths Closes #4922 2014-02-27 15:31:30 +01:00
Paul van der Meijs 093fce6238 Prevent ambiguous column error 2014-02-27 15:30:34 +01:00
Mike Jolley cb4031f0c3 cancel_order - take no action if already cancelled. 2014-02-27 15:30:18 +01:00
Chuck Mac 10d2f9e22f Passing post_id to the coupon save action
Pass post_id to the woocommerce_coupon_options_save action so we know what
coupon ID is being saved.
2014-02-27 15:30:18 +01:00
Mike Jolley c0ee22971d remove un-wanted hentry from products Closes #4880 2014-02-27 15:29:49 +01:00
splashingpixels a653bfa64b layer nav using list OR was not displaying any terms fixes #4911 2014-02-27 15:29:21 +01:00
Justin Hill 1386625dae Update abstract-wc-product.php
Add filter to is_taxable() method so that plugins can better control what is and isn't taxable based on various conditions, such as customer's billing or shipping address, etc.
2014-02-27 15:29:21 +01:00
Mike Jolley 4b38c58c9b Transifex links 2014-02-27 15:25:32 +01:00
Mike Jolley 4a4680d9d5 wc_cart_totals_coupon_label function and filter to override coupon labels 2014-02-27 15:25:19 +01:00
Mike Jolley d57989ca62 Use get_col for sku search - return multiple results. 2014-02-27 15:24:39 +01:00
JustinSainton fee1bc5200 capital_p_dangit() 2014-02-27 15:24:32 +01:00
Mike Jolley ceacbb31bd Fix display of fee_taxes when spanning multiple tax classes Closes #4803 2014-02-27 15:24:26 +01:00
Mike Jolley a215a94f5d Rounding order_tax and order_shipping_tax restricts our ability to get an accurate tax_total after an order is made. Fixes some paypal rounding requests.
@coenjacobs
2014-02-27 15:23:21 +01:00
Mike Jolley 465b9b9d5f Only show settings link if method has_settings 2014-02-27 15:23:10 +01:00
Mike Jolley f42d1a1e6f Correctly join post meta to fix order searches Closes #4855 2014-02-27 15:22:37 +01:00
Scott Basgaard c2e76851b2 Code clean up. Various undefined variables / notices. 2014-02-27 15:21:29 +01:00
Scott Basgaard b1b93838c3 Use 'include' parameter to show siblings/children of current category. Fixes #891 2014-02-27 15:21:29 +01:00
Mike Jolley 61214a7eef Sanitize screen id. Closes #4788 2014-02-27 15:21:09 +01:00
Mike Jolley 43d87e724e Run array_unique on results of order search Closes #4855 2014-02-27 15:20:36 +01:00
Mike Jolley f001d32bcd Use md5 hash for transient names so that the lengths are valid. Closes #4851 2014-02-27 15:18:40 +01:00
Mike Jolley 2e8c2e7396 Fix after tax coupon amounts 2014-02-27 14:14:17 +00:00
Mike Jolley 439b982b48 Merge pull request #4954 from kloon/tweak_rest_api_index_pretty_permalinks
Add permalinks_enabled data to API index
2014-02-27 12:03:19 +00:00
Mike Jolley 5ae6dd056b Hide shipping class if variation is virtual Closes #4972 2014-02-27 11:53:46 +00:00
Coen Jacobs a891fb82d4 Fixing the typo fix :) 2014-02-27 12:33:00 +01:00
tamarazuk 510e46963a Add Canadian address format
.. as per Canada Post's addressing guidelines: http://www.canadapost.ca/tools/pg/manual/PGaddress-e.asp#1413985
2014-02-26 15:50:58 -05:00
JustinSainton 9b0ddb2bd3 Copypasta fix in docs. 2014-02-26 10:42:35 -08:00
Mike Jolley d8f504849f round mijireh shipping amount 2014-02-26 15:53:32 +00:00
Mike Jolley 41183d1663 wc_delete_shop_order_transients functions and trigger when order status updates. Closes #4875 2014-02-26 15:43:19 +00:00
Mike Jolley 215011aa1f Prevent short codes running with no cart class loaded. Closes #4962 2014-02-26 15:27:26 +00:00
Mike Jolley b06e0bb19e Tweak where message is added during reset to avoid needing a session Closes #4908 2014-02-26 13:13:53 +00:00
Mike Jolley 1f3d2632ed Filters to restrict granting/revoking access to files Closes #4952 2014-02-26 12:35:11 +00:00
Mike Jolley 4c5f1952c7 If the cart is updated only, trigger action and recalc totals Closes #4905 2014-02-26 12:14:50 +00:00
Mike Jolley a0635c270b Changed braces and moved filter #4933 2014-02-26 12:02:14 +00:00
Mike Jolley 173e3accd8 Merge pull request #4933 from growdev/master
Allow empty categories to show
2014-02-26 12:00:26 +00:00
Mike Jolley 94992cea38 Merge pull request #4961 from kloon/tweak_download_handler_coding_stardards
download_handler Coding standards, mostly braces
2014-02-26 11:57:06 +00:00
Gerhard ab5d86097b Coding standards, mostly braces 2014-02-26 13:54:16 +02:00
Mike Jolley f79c7bed23 Merge pull request #4960 from kloon/tweak_guest_checkout_pay_link
Disable order owner check for payment link if guest checkout enabled
2014-02-26 11:48:42 +00:00
Gerhard 55a656715d Drop guest checkout test and only check if order is for guest 2014-02-26 13:46:02 +02:00
Mike Jolley 5620020f6c Fix products_will_display logic 2014-02-26 11:43:38 +00:00
Gerhard 5475192dad Should check for yes if guest checkout is enabled 2014-02-26 13:30:08 +02:00
Gerhard f64bc075a7 Move guest check to wc_customer_has_capability 2014-02-26 13:25:32 +02:00
Mike Jolley d8afa1476e Merge pull request #4953 from splashingpixels/master
get related products added DISTINCT to prevent querying duplicates
2014-02-26 11:13:49 +00:00
Gerhard 76c8727340 Update error message, making it clear to log in and try again. 2014-02-26 12:03:36 +02:00
Gerhard 4d1a115330 Disable order owner check for payment if guest checkout is enabled as per #4957 2014-02-26 11:57:28 +02:00
lekiend 41962f044f Update html-admin-page-status-report.php
Status report shows update also if update version is lower than current version.
It should show updates only for version number greather than current version
2014-02-26 10:55:27 +01:00
Gerhard dc65c525d0 Add permalinks_enabled data to API index 2014-02-26 07:50:51 +02:00
splashingpixels f66be96f88 get related products added DISTINCT to prevent querying duplicates 2014-02-25 15:17:50 -08:00
Mike Jolley 6ff4ae1a7d Merge pull request #4903 from splashingpixels/master
Ran through jshint and fixed coding standards
2014-02-25 15:51:50 +00:00
Mike Jolley b2abcc3c89 Merge pull request #4944 from kloon/tweak_my_account_downloads_titles
Add filenames to Downloads section in My Account
2014-02-25 15:45:49 +00:00
Mike Jolley 2ae5400e37 Merge pull request #4945 from ChromeOrange/master
Compound tax rate calculation is wildly off.
2014-02-25 15:45:01 +00:00
Mike Jolley 6d7e7370c6 Merge pull request #4947 from BFTrick/shipping-php-standards
Use WordPress Brace Code Style in Flat Rate Shipping Class #2
2014-02-25 14:49:25 +00:00
Mike Jolley e73aa65440 Ensure product exists before getting title. Closes #4916 2014-02-25 14:48:55 +00:00
Patrick Rauland 61a175173e merging upstream changes 2014-02-25 08:07:39 -06:00
Mike Jolley 9a52c5dd43 Combine two meta queries into one #4901 2014-02-25 13:33:55 +00:00
Andrew Benbow 310cd61cc5 Update class-wc-tax.php
Compound tax rate calculation is wildly off.

Current tax settings : http://cld.wthms.co/Qeb6

Cart before proposed change : http://cld.wthms.co/ILXk

Cart after proposed change : http://cld.wthms.co/fjWO
2014-02-25 11:54:58 +00:00
Mike Jolley 3d4f16a7a4 Username from email hook Closes #4941 2014-02-25 11:40:54 +00:00
Gerhard 123d60912b Add filenames to Downloads section in My Account 2014-02-25 12:48:36 +02:00
Mike Jolley b16f83804f Merge pull request #4932 from BFTrick/flat-rate-costs-regex
Comment RegEx in Flat Rate Shipping
2014-02-25 10:47:29 +00:00
Mike Jolley 979e12aaf1 Merge pull request #4935 from BFTrick/refactor-flat-rate-percentage-calc
Adding Method to Calculate Percentage Rate Adjustment for Flat Rate Shipping
2014-02-25 10:46:53 +00:00
Max Rice 7b67161d2f Return request relative link headers, fixes #4925
When WordPress is running inside of a sub-directory,
get_woocommerce_api_url() returns the domain along with the
sub-directory path, which results in a duplicate path when the API
request string is added. This commit fixes this by fetching only the
home host and adding the request path to it. set_url_scheme() is used
to set the scheme to either http or https based on the request itself
instead of basing it on whether force_ssl_checkout is enabled or not.
2014-02-25 10:24:36 +01:00
Max Rice 5e48e5d682 Return request relative link headers, fixes #4925
When WordPress is running inside of a sub-directory,
get_woocommerce_api_url() returns the domain along with the
sub-directory path, which results in a duplicate path when the API
request string is added. This commit fixes this by fetching only the
home host and adding the request path to it. set_url_scheme() is used
to set the scheme to either http or https based on the request itself
instead of basing it on whether force_ssl_checkout is enabled or not.
2014-02-25 01:02:38 -05:00
Patrick Rauland cf81e63b3c adding new method to calculate percentage rate adjustment for flat rate shipping 2014-02-24 12:54:56 -06:00
Daniel Espinoza 3a37bec683 removing unnecessary action 2014-02-24 11:59:54 -06:00
Daniel Espinoza bf8a825f2d Allow showing of empty categories using 'hide_empty' param of get_categories() 2014-02-24 11:57:06 -06:00
Patrick Rauland 0fd11ad509 commenting regex in flat rate shipping 2014-02-24 11:40:26 -06:00
Daniel Espinoza cfc30fe432 Merge branch 'master' of github.com:woothemes/woocommerce 2014-02-24 11:30:14 -06:00
Patrick Rauland 3888af3559 using wordpress brace code style in flat rate shipping 2014-02-24 11:17:33 -06:00
Mike Jolley 4789223f32 Fix variation level reporting Closes #4885 2014-02-24 17:10:08 +00:00
Mike Jolley 95ffe76841 Merge pull request #4919 from ChuckMac/Coupon_action
Passing post_id to the coupon save action
2014-02-24 15:48:23 +00:00
Mike Jolley dcf4a50ca0 Layered nag - remember orderby #4889 2014-02-24 15:45:43 +00:00
Mike Jolley 9a115dc1f4 Use parseHTML and enforce 1.8 jquery Closes #4899 2014-02-24 15:34:28 +00:00
Mike Jolley 373c35d7e8 Merge pull request #4912 from whatthefork/master
Update abstract-wc-product.php
2014-02-24 15:28:23 +00:00
Mike Jolley 36de82e428 Workaround relevanssi Closes #4873 2014-02-24 15:19:12 +00:00
Mike Jolley 38872b8536 For custom attributes, try to turn back to 'name' from saved slug in emails/view order templates Closes #4833 2014-02-24 15:14:32 +00:00
Mike Jolley 4280f5ab78 Limit item name lengths Closes #4922 2014-02-24 14:49:05 +00:00
Mike Jolley eb48eb437f Merge pull request #4924 from paulvandermeijs/develop-fix_exclude_protected_products
Prevent ambiguous column error
2014-02-24 12:35:48 +00:00
Paul van der Meijs 7daada95f9 Prevent ambiguous column error 2014-02-24 11:47:19 +01:00
Mike Jolley f09db7a537 cancel_order - take no action if already cancelled. 2014-02-24 10:39:43 +00:00
Chuck Mac ed952f4698 Passing post_id to the coupon save action
Pass post_id to the woocommerce_coupon_options_save action so we know what
coupon ID is being saved.
2014-02-23 10:27:27 -05:00
Mike Jolley 7b639d45c7 remove un-wanted hentry from products Closes #4880 2014-02-23 11:13:42 +00:00
splashingpixels 7d96eb70ee layer nav using list OR was not displaying any terms fixes #4911 2014-02-22 13:42:13 -08:00
Justin Hill eed9485e6c Update abstract-wc-product.php
Add filter to is_taxable() method so that plugins can better control what is and isn't taxable based on various conditions, such as customer's billing or shipping address, etc.
2014-02-22 13:15:41 -07:00
Mike Jolley 90b042573e Transifex links 2014-02-21 15:29:42 +00:00
Mike Jolley 3ab6acc495 wc_cart_totals_coupon_label function and filter to override coupon labels 2014-02-21 15:16:47 +00:00
Coen Jacobs 9f5ebda756 Merge pull request #4888 from JustinSainton/patch-1
capital_p_dangit()
2014-02-21 13:22:51 +01:00
Mike Jolley 78d48cc597 Use get_col for sku search - return multiple results. 2014-02-21 10:35:41 +00:00
JustinSainton d64fc3a764 capital_p_dangit() 2014-02-21 00:47:42 -08:00
Mike Jolley 5062de9767 Fix display of fee_taxes when spanning multiple tax classes Closes #4803 2014-02-20 16:39:57 +00:00
Mike Jolley f35c3708bb Rounding order_tax and order_shipping_tax restricts our ability to get an accurate tax_total after an order is made. Fixes some paypal rounding requests.
@coenjacobs
2014-02-20 15:41:08 +00:00
Mike Jolley c7a129c7fd Only show settings link if method has_settings 2014-02-20 15:16:53 +00:00
Mike Jolley fbccfca522 Correctly join post meta to fix order searches Closes #4855 2014-02-19 16:11:20 +00:00
Coen Jacobs 8fdf4d94cf Merge pull request #4853 from scottbasgaard/master
Use 'include' parameter to show siblings/children of current category. Fixes #891
2014-02-19 17:09:21 +01:00
Mike Jolley f1f7b84db9 Sanitize screen id. Closes #4788 2014-02-19 14:30:21 +00:00
Mike Jolley 3f8b314431 Run array_unique on results of order search Closes #4855 2014-02-19 14:27:09 +00:00
Mike Jolley 9303908d7b Use md5 hash for transient names so that the lengths are valid. Closes #4851 2014-02-19 14:05:36 +00:00
Coen Jacobs 56ed38db10 Code standards for #4856 2014-02-18 12:28:51 +01:00
Gerhard b4811c93d3 Fix COD warning when you have hide shipping methods until address entered selected 2014-02-18 12:28:51 +01:00
Coen Jacobs 1e410ebcdc Code standards for #4856 2014-02-18 12:27:05 +01:00
Coen Jacobs 911e151423 Merge pull request #4856 from kloon/fix_cod_hidden_shipping_methods_error
Fix COD warning when you have hide shipping methods until address entered
2014-02-18 12:25:12 +01:00
Gerhard 3a9604bf78 Fix COD warning when you have hide shipping methods until address entered selected 2014-02-18 11:58:52 +02:00
Coen Jacobs 5094d2174a Merge pull request #4847 from kloon/master
Add email lookup to customers endpoint, try at #4845
2014-02-18 10:47:50 +01:00
Scott Basgaard 39b83a3039 Code clean up. Various undefined variables / notices. 2014-02-17 22:09:58 +01:00
Scott Basgaard 563adcaa86 Use 'include' parameter to show siblings/children of current category. Fixes #891 2014-02-17 22:00:25 +01:00
Gerhard a614e79ad4 update @since to 2.2 2014-02-17 19:17:40 +02:00
Gerhard 4fe3dd28fb Move email lookup to own endpoint customers/email/<email> 2014-02-17 19:13:01 +02:00
Mike Jolley e345281018 Handle get_rate_code when no matching rate is found. Prevents notices. 2014-02-17 16:36:21 +01:00
Mike Jolley 4d831d02ee Fix notice when left blank 2014-02-17 16:36:21 +01:00
Mike Jolley 3be6664f05 Handle get_rate_code when no matching rate is found. Prevents notices. 2014-02-17 15:11:50 +00:00
Mike Jolley 8c7996e5b1 Fix notice when left blank 2014-02-17 14:54:06 +00:00
Gerhard 5c18fab238 Add back absint to validate function for customers by id endpoint 2014-02-17 16:44:08 +02:00
Gerhard a7e659b6fa Review customer/<email> endpoint, move into own function 2014-02-17 16:39:56 +02:00
Mike Jolley f9251084d9 woocommerce_get_sections_{id} filters Closes #4817 2014-02-17 14:30:42 +00:00
Mike Jolley 1f295c9c69 Unify textdomains Closes #4814 2014-02-17 14:27:08 +01:00
Gerhard 88425e64cc Add email lookup to customers endpoint, try at 4845 2014-02-17 15:19:11 +02:00
Mike Jolley c0c21c8364 Unify textdomains Closes #4814 2014-02-17 13:14:45 +00:00
Mike Jolley e09c7b6cb5 wc_get_product_ids_on_sale should return array of integers, not strings Closes #4825 2014-02-17 13:35:38 +01:00
Mike Jolley 8eed83ab08 Standards and some query tweaks for get_downloadable_products #4827 2014-02-17 13:35:38 +01:00
Mike Jolley a3967af1d0 Code standards 2014-02-17 13:35:38 +01:00
Mike Jolley 7ab814ffa9 Order status check needs to be inside wc_downloadable_product_permissions so permissions are granted after completion. Closes #4826 2014-02-17 13:35:38 +01:00
Coen Jacobs 87c5274992 Better workaround for esc_url stripping spaces #4842 2014-02-17 13:35:38 +01:00
Coen Jacobs a610e72c09 esc_attr instead of esc_url to preserve spaces in img src #4842 2014-02-17 13:35:38 +01:00
Mike Jolley a2aa4ec9a9 Flip default status of price_trim_zeros
#4828 #4823 enabled with add_filter( 'woocommerce_price_trim_zeros',
'__return_true’ );
2014-02-17 13:35:38 +01:00
Mike Jolley c64d25884e define cart_session_data in constructor Closes #4822 2014-02-17 13:35:38 +01:00
Mike Jolley af2a82a7d7 Make my-account/view-order use the template file 2014-02-17 13:35:38 +01:00
Art Project Group 3f9c9c23c9 Update class-wc-shortcode-cart.php 2014-02-17 13:33:10 +01:00
Art Project Group 0a90eba7fd Prevent an error notice
It only shows when country has states and state was leave in blanc on
the form.
2014-02-17 13:33:10 +01:00
Coen Jacobs 00dfdb73e3 Merge pull request #4811 from claudiosmweb/fix_4281
Add the payment method title in order details
2014-02-17 13:27:38 +01:00
Mike Jolley 37573a93e2 wc_get_product_ids_on_sale should return array of integers, not strings Closes #4825 2014-02-17 12:20:10 +00:00
Mike Jolley c3f514fa0a Standards and some query tweaks for get_downloadable_products #4827 2014-02-17 11:58:14 +00:00
Mike Jolley 1e1490894e Code standards 2014-02-17 10:50:36 +00:00
Mike Jolley b22abbda90 Order status check needs to be inside wc_downloadable_product_permissions so permissions are granted after completion. Closes #4826 2014-02-17 10:50:00 +00:00
Coen Jacobs e2ebb387f7 Better workaround for esc_url stripping spaces #4842 2014-02-17 11:48:43 +01:00
Coen Jacobs a19266b955 esc_attr instead of esc_url to preserve spaces in img src #4842 2014-02-17 11:29:36 +01:00
Mike Jolley 7789d34baf Merge pull request #4831 from artprojectgroup/master
Prevent an error notice
2014-02-17 10:20:44 +00:00
Mike Jolley a67c91db7b Flip default status of price_trim_zeros
#4828 #4823 enabled with add_filter( 'woocommerce_price_trim_zeros',
'__return_true’ );
2014-02-17 10:19:12 +00:00
Mike Jolley ca782212de define cart_session_data in constructor Closes #4822 2014-02-17 10:16:06 +00:00
Mike Jolley 0ddff220d5 Make my-account/view-order use the template file 2014-02-17 09:44:45 +00:00
Mike Jolley 57f7aeaa0c Fix ampersands in plan text Closes #4799 2014-02-17 10:39:54 +01:00
Mike Jolley 6d0a31b491 Update docblocks 2014-02-17 10:39:53 +01:00
Art Project Group 4031c8b5d7 Update class-wc-shortcode-cart.php 2014-02-16 19:53:55 +01:00
Art Project Group 7d9a1e77a6 Prevent an error notice
It only shows when country has states and state was leave in blanc on
the form.
2014-02-16 15:44:24 +01:00
claudiosmweb bc98201d26 added the payment method title in order details, closes #4281 2014-02-15 03:14:04 -02:00
vayu db2d67590e Added description parameter to the woocommerce_form_field function
With this it is possible to add a short description below every
checkout billing and shipping input field.
2014-02-15 00:19:49 +01:00
Mike Jolley 97dd163c5e Fix ampersands in plan text Closes #4799 2014-02-14 15:37:30 +00:00
Mike Jolley 84e754e298 Update docblocks 2014-02-14 14:29:39 +00:00
Mike Jolley 5564e49b15 woocommerce_get_username_from_email filter for login Closes #4791 2014-02-14 12:52:39 +01:00
Gerhard 5c22b36cb7 REST API OAuth signature issue fix when using filter params 2014-02-14 12:52:39 +01:00
Mike Jolley 1996b7b7b5 Trash instead of force delete Closes #4785 2014-02-14 12:52:39 +01:00
Mike Jolley 9d47a60914 If you only ship to the billing address, ensure the shipping address data for customers is updated Closes #4786 2014-02-14 12:52:39 +01:00
Mike Jolley 8b4c81da13 Merge pull request #4796 from kloon/master
REST API OAuth signature issue fix when using filter params
2014-02-14 11:48:57 +00:00
Mike Jolley e667d41497 woocommerce_get_username_from_email filter for login Closes #4791 2014-02-14 11:47:12 +00:00
Gerhard 30c1486aa7 REST API OAuth signature issue fix when using filter params 2014-02-14 13:26:31 +02:00
Mike Jolley 449c95029b Trash instead of force delete Closes #4785 2014-02-14 11:21:14 +00:00
Mike Jolley 5bfa91f2b9 If you only ship to the billing address, ensure the shipping address data for customers is updated Closes #4786 2014-02-14 11:19:32 +00:00
Mike Jolley 4dcea21d76 Admin screen strings need to be sanitised to work with chinese chars Closes #4788 2014-02-14 11:58:50 +01:00
Mike Jolley 94693ea81d Admin screen strings need to be sanitised to work with chinese chars Closes #4788 2014-02-14 10:57:48 +00:00
Mike Jolley ee7db46934 Force a valid base when saving permalinks 2014-02-14 11:46:47 +01:00
Mike Jolley 69748cd4e3 Force a valid base when saving permalinks 2014-02-14 10:43:15 +00:00
tamarazuk 6f4a91e36e Dashboard: Fixes # of "out of stock" products
Use woocommerce_notify_no_stock_amount rather than woocommerce_notify_low_stock_amount to count out of stock products
2014-02-14 09:22:06 +01:00
Coen Jacobs 7acc71d212 Merge pull request #4790 from tamarazuk/patch-1
Dashboard: Fixes # of "out of stock" products
2014-02-14 09:21:15 +01:00
Sean Cull fa8a2a7f42 Added currency support for United Arab Emirates Dirham 2014-02-14 09:06:49 +01:00
Sean Cull e2fab93c7a Added currency support for United Arab Emirates Dirham 2014-02-14 02:17:22 -05:00
tamarazuk d16fa41f05 Dashboard: Fixes # of "out of stock" products
Use woocommerce_notify_no_stock_amount rather than woocommerce_notify_low_stock_amount to count out of stock products
2014-02-14 00:06:30 -05:00
Mike Jolley 5930b5fe77 Fix paypal shipping via text 2014-02-13 21:42:13 +01:00
Mike Jolley 3bfbc9dfc5 Fix paypal shipping via text 2014-02-13 16:06:48 +00:00
Mike Jolley 5d411baa55 If logged in, and no billing_email is set, set it. 2014-02-13 16:53:32 +01:00
Mike Jolley 2853f706a5 Fix saving of fee tax total Closes #4774 2014-02-13 16:53:32 +01:00
Mike Jolley 1a92bfeb39 If logged in, and no billing_email is set, set it. 2014-02-13 15:51:16 +00:00
Mike Jolley 551ca62c3d Fix saving of fee tax total Closes #4774 2014-02-13 15:42:17 +00:00
Mike Jolley 14944c849e Fix term counts when terms span taxonomies Closes #4738 2014-02-13 16:01:19 +01:00
Mike Jolley 4179c342ce Fix term counts when terms span taxonomies Closes #4738 2014-02-13 14:51:46 +00:00
Mike Jolley 86524a64f2 Update schemas before DBDELTA to fix mysql errors on update 2014-02-13 14:52:39 +01:00
Mike Jolley e61d580aba Buttonsource should be bn
@coenjacobs doesn’t have to be in read me
2014-02-13 14:52:39 +01:00
Paolo Albera 2991bee0b5 Update class-wc-countries.php 2014-02-13 14:52:39 +01:00
Mike Jolley d59530013c Set countries as an array by default in the shipping abstract 2014-02-13 14:52:39 +01:00
Mike Jolley fa5c605aa7 View order shortcode is no longer used 2014-02-13 14:52:39 +01:00
Mike Jolley 32932b0a61 Tweak the order of checks in bulk_and_quick_edit_save_post to make it more efficient on autosave #4765 2014-02-13 14:52:39 +01:00
Mike Jolley 744732db7a Update schemas before DBDELTA to fix mysql errors on update 2014-02-13 13:29:55 +00:00
Mike Jolley fd88ea5201 Buttonsource should be bn
@coenjacobs doesn’t have to be in read me
2014-02-13 12:31:36 +00:00
Paolo Albera 394e743dbd Update class-wc-countries.php 2014-02-13 13:12:47 +01:00
Mike Jolley 40dda33dda View order shortcode is no longer used 2014-02-13 11:54:54 +00:00
Mike Jolley 566a9c4dc6 Set countries as an array by default in the shipping abstract 2014-02-13 11:54:54 +00:00
Mike Jolley 4fe91a0900 Tweak the order of checks in bulk_and_quick_edit_save_post to make it more efficient on autosave #4765 2014-02-13 11:01:43 +00:00
Mike Jolley 8a9aa5880f Fix line total display for order fees Closes #4766 2014-02-13 11:28:50 +01:00
Mike Jolley 403e90008d Fix line total display for order fees Closes #4766 2014-02-13 10:25:15 +00:00
Gerhard f0dc27a47e Fix variation download file url save for Amazon S3 extension. 2014-02-13 11:02:26 +01:00
Mike Jolley 5ed8527204 Merge pull request #4749 from kloon/master
Fix variation download file url save for Amazon S3 extension.
2014-02-13 10:01:03 +00:00
Mike Jolley 817ccb3999 The checkout's get_value method should return null if a value is not yet set - this allows the 'default' in woocommerce_form_field to be used as a fallback Closes #4746 2014-02-13 10:57:02 +01:00
Mike Jolley 5b5183bb35 The checkout's get_value method should return null if a value is not yet set - this allows the 'default' in woocommerce_form_field to be used as a fallback Closes #4746 2014-02-13 09:52:48 +00:00
Mike Jolley b2592d267a Only check DOING_AJAX
Not sure why, but some hosts are setting the HTTP_X_REQUESTED_WITH
header for seemingly non-ajax requests. Could be MT, could be cloud
flare, we don’t know.
2014-02-13 10:49:33 +01:00
Coen Jacobs 0fd0e991f2 Merge pull request #4767 from woothemes/is-ajax-mod
Only check DOING_AJAX for AJAX requests
2014-02-13 10:49:03 +01:00
James Koster 96c7437344 stock report icons. closes #4753 2014-02-13 10:44:59 +01:00
Mike Jolley 40fc9ef83e Fixes Irony 2014-02-13 10:44:59 +01:00
James Koster f2f919ebca stock report icons. closes #4753 2014-02-13 09:38:08 +00:00
Mike Jolley 189c7c9647 Fixes Irony 2014-02-13 09:25:24 +00:00
claudiosmweb 02053f2d5c removed all the_content filter in favor to wpautop() and do_shortcode() functions 2014-02-13 02:49:30 -02:00
Mike Jolley 78846adfd0 Only check DOING_AJAX
Not sure why, but some hosts are setting the HTTP_X_REQUESTED_WITH
header for seemingly non-ajax requests. Could be MT, could be cloud
flare, we don’t know.
2014-02-12 22:14:26 +00:00
Gerhard 75da5d829a Fix variation download file url save for Amazon S3 extension. 2014-02-12 21:17:09 +02:00
Mike Jolley 7554cc8cd7 Fix to ensure stock status is updated, even when meta is blank. Prevents new products being hidden when the option to hide out of stock products is enabled. 2014-02-12 16:18:54 +01:00
Mike Jolley d3dab23b75 When add_to_cart is called, ensure the correct product_id is set for variations. Closes #4650 2014-02-12 16:18:53 +01:00
Mike Jolley 3e38d1ff17 return a string for get_cart_url and get_remove_url Closes #4724 2014-02-12 16:18:53 +01:00
Mike Jolley 944327edfb Vars in report classes Closes #4720 2014-02-12 16:18:53 +01:00
Mike Jolley 1ad409b36e Return strings. Closes #4739 2014-02-12 16:18:53 +01:00
Mike Jolley b62162ee3e is_wc_endpoint_url Closes #4731 2014-02-12 16:18:53 +01:00
Mike Jolley 6956087829 Docblock Closes #4726 2014-02-12 16:18:53 +01:00
Mike Jolley 5e82c0478d $packge is array Closes #4725 2014-02-12 16:18:53 +01:00
Mike Jolley 8d3c05f768 Tweak to structure when getting terms ordered by parent Closes #4729 2014-02-12 16:18:53 +01:00
claudiosmweb cbeb3f48c5 fixed some coding standards in includes/wc-customer-functions.php 2014-02-12 16:14:52 +01:00
claudiosmweb 4132d604aa fixed the indentation in includes/wc-customer-functions.php 2014-02-12 16:14:52 +01:00
claudiosmweb f58f8672cc prevents automatic password generation when making the registration in the My Account page, closes #4672 2014-02-12 16:14:52 +01:00
claudiosmweb 50e863e268 Removed wp_verify_nonce in wc_create_new_customer
The check is already done in includes/class-wc-form-handler.php 843 and includes/class-wc-checkout.php 398

On the registration made during checkout caused the error:
PHP Notice:  Undefined index: register in woocommerce/includes/wc-customer-functions.php on line 53
2014-02-12 16:14:52 +01:00
Mike Jolley 1cafd4f566 Fix to ensure stock status is updated, even when meta is blank. Prevents new products being hidden when the option to hide out of stock products is enabled. 2014-02-12 14:38:56 +00:00
Mike Jolley ca09b0a8bc When add_to_cart is called, ensure the correct product_id is set for variations. Closes #4650 2014-02-12 13:05:20 +00:00
Mike Jolley e713fc68b8 return a string for get_cart_url and get_remove_url Closes #4724 2014-02-12 12:33:02 +00:00
Mike Jolley 29b59cc74f Vars in report classes Closes #4720 2014-02-12 12:26:32 +00:00
Mike Jolley 767eba990d Return strings. Closes #4739 2014-02-12 12:21:36 +00:00
Mike Jolley d7493b0b8a is_wc_endpoint_url Closes #4731 2014-02-12 12:18:36 +00:00
Mike Jolley 60fbf90d7f Docblock Closes #4726 2014-02-12 11:56:41 +00:00
Mike Jolley 878fe196ba $packge is array Closes #4725 2014-02-12 11:54:43 +00:00
Mike Jolley facd746f88 Tweak to structure when getting terms ordered by parent Closes #4729 2014-02-12 11:48:00 +00:00
Mike Jolley fbda89f76c Merge pull request #4730 from claudiosmweb/fix_4672
Corrections for the wc_create_new_customer() function
2014-02-12 11:40:56 +00:00
Mike Jolley d1837896e4 Added tinymce buttons relevant to the short description 2014-02-12 11:44:21 +01:00
Mike Jolley 5da7cc05ce Added tinymce buttons relevant to the short description 2014-02-12 09:49:13 +00:00
Mike Jolley 0ca8250108 Fix saving of checkboxes (off state) in widgets API 2014-02-12 10:32:39 +01:00
Mike Jolley 8ea9fd22df Add versions to all scripts + styles to ensure browser cache is cleared 2014-02-12 10:32:39 +01:00
Mike Jolley fbfdc0ea95 Fix saving of checkboxes (off state) in widgets API 2014-02-12 09:29:47 +00:00
Mike Jolley 1f1a925fdd Add versions to all scripts + styles to ensure browser cache is cleared 2014-02-12 09:23:06 +00:00
claudiosmweb 2b3ce42284 fixed some coding standards in includes/wc-customer-functions.php 2014-02-11 17:57:15 -02:00
Gregory K afabced6c7 wc_create_new_customer phpdoc fix 2014-02-11 20:52:10 +01:00
claudiosmweb fe74ffc882 fixed the indentation in includes/wc-customer-functions.php 2014-02-11 17:51:10 -02:00
claudiosmweb b68873a15b prevents automatic password generation when making the registration in the My Account page, closes #4672 2014-02-11 17:50:55 -02:00
claudiosmweb 2900d9d330 Removed wp_verify_nonce in wc_create_new_customer
The check is already done in includes/class-wc-form-handler.php 843 and includes/class-wc-checkout.php 398

On the registration made during checkout caused the error:
PHP Notice:  Undefined index: register in woocommerce/includes/wc-customer-functions.php on line 53
2014-02-11 17:42:22 -02:00
Gregory K 6626400361 wc_create_new_customer phpdoc fix 2014-02-11 11:39:22 -05:00
Coen Jacobs ac80b0d880 Patched up docblock after faulty merge. Closes #4721 2014-02-11 17:30:43 +01:00
Coen Jacobs a2f396d4ac Patched up docblock after faulty merge. Closes #4721 2014-02-11 17:30:25 +01:00
Gregory K fcd97eff07 Only string param in taxonomy_is_product_attribute
Conflicts:
	includes/wc-conditional-functions.php
2014-02-11 17:27:06 +01:00
Gregory K 4445a3370e Only string param in taxonomy_is_product_attribute
Conflicts:
	includes/wc-conditional-functions.php
2014-02-11 17:26:47 +01:00
Mike Jolley a4473f6679 Set $time Closes #4718 2014-02-11 17:06:11 +01:00
Mike Jolley 0bffeca947 Set $time Closes #4718 2014-02-11 16:03:02 +00:00
Mike Jolley 3ea7fbdefc Hide empty categories in the product_categories shortcode Closes #4689 2014-02-11 16:56:59 +01:00
Mike Jolley 00fc089abe Hide empty categories in the product_categories shortcode Closes #4689 2014-02-11 15:55:46 +00:00
Mike Jolley 670048c600 Need to actually check $outdated. Derp. @coenjacobs 2014-02-11 16:26:22 +01:00
Mike Jolley 26d0e711cd Need to actually check $outdated. Derp. @coenjacobs 2014-02-11 15:13:51 +00:00
Mike Jolley 018e719468 file_exists check for wc_get_template 2014-02-11 15:49:41 +01:00
Gregory K a7b3972ab9 sort_callback_params() phpdoc fix 2014-02-11 15:49:41 +01:00
Coen Jacobs cff6dd5341 Merge pull request #4719 from tivnet/upstream-master
sort_callback_params() phpdoc fix
2014-02-11 15:49:09 +01:00
Mike Jolley 1bb072ab20 file_exists check for wc_get_template 2014-02-11 14:48:32 +00:00
Gregory K d401432428 sort_callback_params() phpdoc fix 2014-02-11 09:22:43 -05:00
Gregory K cce00e8d6c wc-cart-functions : removed unused $woocommerce and fixed phpdocs 2014-02-11 15:05:28 +01:00
Gregory K 9521f44cb2 wc-cart-functions : removed unused $woocommerce and fixed phpdocs 2014-02-11 09:01:58 -05:00
Mike Jolley 4f3a9baa71 Clean up wc_price Closes #4714 2014-02-11 14:49:43 +01:00
Mike Jolley 8d118c8693 Function comment #4714 2014-02-11 14:49:43 +01:00
Mike Jolley 9771bf1b66 Clean up wc_price Closes #4714 2014-02-11 13:47:54 +00:00
Mike Jolley 39f5b8aec0 Function comment #4714 2014-02-11 13:47:46 +00:00
Mike Jolley 8362bfe1b7 New notice aimed at identifying out of date template files in a theme. Also improves the status page.
@coenjacobs
2014-02-11 14:41:11 +01:00
Mike Jolley aff704ae6e New notice aimed at identifying out of date template files in a theme. Also improves the status page.
@coenjacobs
2014-02-11 13:33:56 +00:00
Mike Jolley 9670725bf2 Removed change password template and shortcode class - no longer used.
Change password is built into the edit-account endpoint. @coenjacobs
@hlashbrooke
2014-02-11 11:38:07 +01:00
Mike Jolley 29ef76c17c Removed change password template and shortcode class - no longer used.
Change password is built into the edit-account endpoint. @coenjacobs
@hlashbrooke
2014-02-11 10:36:22 +00:00
Mike Jolley 5e02b72f1b Sections can be lowered using sanitize_title Closes #4700
@coenjacobs pick me
2014-02-11 11:35:38 +01:00
Mike Jolley b0755f695f Sections can be lowered using sanitize_title Closes #4700
@coenjacobs pick me
2014-02-11 10:30:37 +00:00
James Koster 053915e58f allow line breaks in customer addresses on order details page. closes #4709 2014-02-11 10:59:05 +01:00
James Koster b85a881cc5 allow line breaks in customer addresses on order details page. closes #4709 2014-02-11 09:56:47 +00:00
vlinicx eaa0275515 Adding a currency to woocommerce
I would like to add a currency for my Country.It's on a line 173.
2014-02-11 10:51:04 +01:00
Coen Jacobs 5dfd58be5a Merge pull request #4687 from vlinicx/patch-1
Adding Croatian Kuna currency
2014-02-11 10:50:26 +01:00
Mike Jolley ae295fbfce During install, register all post types and endpoints so that the rewrite rules are correctly generated. #4699 #4701 2014-02-11 09:47:02 +01:00
Mike Jolley 2371ba7813 During install, register all post types and endpoints so that the rewrite rules are correctly generated. #4699 #4701 2014-02-11 00:29:29 +00:00
Coen Jacobs 9ae5cc5d8f get_subtotal_to_display docblock update. Closes #4693 2014-02-10 13:38:25 +01:00
Coen Jacobs 61a7fa93ef Remove unused global. Closes #4694 2014-02-10 13:36:34 +01:00
Mike Jolley e9e121b82b Merge pull request #4671 from claudiosmweb/fix_myaccount_register
Fix undefined index notice in "My Account" register
2014-02-10 09:48:42 +00:00
Coen Jacobs 0033d6d116 Code standards update for #4675 2014-02-10 10:47:26 +01:00
Coen Jacobs e934f293e9 Merge pull request #4675 from shoheitanaka/patch-1
$tax_code was url encoded , so decode it.
2014-02-10 10:45:41 +01:00
Coen Jacobs 8b8cc20dab Merge pull request #4681 from thenbrent/master
Fix completing order payment for an order containing a deleted product
2014-02-10 10:30:01 +01:00
Mike Jolley 3eaef1d0f3 Merge pull request #4662 from Spreeuw/master
fixes date display on customer list page
2014-02-10 09:28:08 +00:00
Mike Jolley 9978f8fd6a Merge pull request #4670 from claudiosmweb/patch-rc2
Improvements for some DocBlocks
2014-02-10 09:27:46 +00:00
Coen Jacobs 6da86e4e57 Merge pull request #4676 from kloon/master
Load Chosen on My Account page for country and state address edit
2014-02-09 22:34:32 +01:00
vlinicx 77e7f1f6e6 Adding a currency to woocommerce
I would like to add a currency for my Country.It's on a line 173.
2014-02-09 20:31:03 +01:00
claudiosmweb f5cf994a8c improved the deprecated woocommerce_placeholder_img function, closes #4684 2014-02-09 03:09:31 -02:00
thenbrent 3187bfc32c Fix completing order payment for deleted product
When marking payment as complete on an order which contains a product which has
since been deleted, a fatal error will be thrown because the product is assumed
to exist.

The specific error is `PHP Fatal error: Call to a member function is_downloadable()`.
It occurs when checking if the order status should be set as completed or processing,
by determining if the product on the order is downloadable and virtual.

This patch will mark an order as "processing" if the product has since been deleted.
2014-02-08 11:37:21 -08:00
Gerhard 667f46cf9e Load Chosen on My Account page for country and state address edits, closes #4674 2014-02-08 10:58:50 +02:00
Shohei Tanaka f03dde7868 $tax_code was url encoded , so decode it.
I can't read tax code at this box, if used Japanese in tax code. I want to read it in Japanese, so decode here.
2014-02-08 15:50:03 +09:00
claudiosmweb d3f09d45b0 fixed some coding standards in includes/class-wc-form-handler.php 2014-02-07 16:35:30 -02:00
claudiosmweb e0b729d273 fixed the indentation in includes/class-wc-form-handler.php 2014-02-07 16:27:07 -02:00
claudiosmweb 0f5faa4a77 fixed undefined username variable in myaccount register using registration generate username as true 2014-02-07 16:26:51 -02:00
claudiosmweb 18ca7c4d2f fixed the indentation in includes/wc-conditional-functions.php 2014-02-07 15:57:17 -02:00
claudiosmweb a9f1d47a11 fixed docblock for meta_is_product_attribute() function, closes #4668 2014-02-07 15:56:58 -02:00
claudiosmweb 7dd98549d9 updated the WC_Order version to 2.1.0 2014-02-07 15:55:30 -02:00
claudiosmweb 93b5678617 fixed some coding standards in includes/class-wc-order.php 2014-02-07 15:55:07 -02:00
claudiosmweb 1c13e994de fixed the indentation in includes/class-wc-order.php 2014-02-07 15:41:28 -02:00
claudiosmweb 0d9752c04b fixed docblock for WC_Order::get_formatted_line_subtotal, closes #4667 2014-02-07 15:41:09 -02:00
claudiosmweb bcf88933c6 fixed docblock for WC_API_Customers::query_customers, closes #4666 2014-02-07 15:39:40 -02:00
claudiosmweb bfe3020897 removed unused global vars in WC_Report_Coupon_Usage::output_report, closes #4665 2014-02-07 15:37:31 -02:00
claudiosmweb 617b6b07ae fixed some coding standards in includes/abstracts/abstract-wc-product.php 2014-02-07 15:35:45 -02:00
claudiosmweb 6758bab16a fixed the indentation in includes/abstracts/abstract-wc-product.php file 2014-02-07 15:31:25 -02:00
claudiosmweb 35b5614972 fixed docblock for WC_Product::get_children(), closes #4664 2014-02-07 15:31:00 -02:00
Ewout Fernhout fe8335bbaf fixes date display on customer list page 2014-02-07 15:50:11 +01:00
Mike Jolley 1ea1bb1a09 Translation credits 2014-02-07 13:06:20 +00:00
Mike Jolley dc80dfdd3b Inline note for #4655 2014-02-07 11:43:34 +00:00
Mike Jolley 4790e16812 Leaner code for getting terms 2014-02-07 11:39:37 +00:00
Mike Jolley 65cfc420a1 Code standards, and check orderby, not fields 2014-02-07 11:38:57 +00:00
Mike Jolley 4383a7b0a1 Merge pull request #4658 from Spreeuw/master
include product_id for extended customization of wc_add_to_cart_message
2014-02-07 10:11:29 +00:00
Mike Jolley 545441b2e3 Multiple attribute for email box Closes #4659 2014-02-07 10:10:50 +00:00
Ewout Fernhout df773f520e include product_id for extended customization of wc_add_to_cart_message 2014-02-06 20:24:34 +01:00
Mike Jolley 2dd73acb9d Context for checkout string Closes #4646 2014-02-06 15:46:18 +00:00
Mike Jolley a2b5086b24 Merge pull request #4648 from kloon/master
Improve credit card form to allow use of the woocommerce_credit_card_form_fields filter
2014-02-06 15:43:07 +00:00
Coen Jacobs 5d70dae52f Introducing post taxonomy init hook 2014-02-06 14:32:25 +01:00
Gerhard 435257bc95 Improve credit card form to allow use of the woocommerce_credit_card_form_fields filter 2014-02-06 15:00:00 +02:00
Mike Jolley 65ca1753ae woocommerce_products_will_display improvements #4644
- Reduced number of conditionals required.
- Broken the massive category query into a loop which can break before
checking all cats
- Used a transient to further optimise the category check
2014-02-06 09:21:47 +00:00
Mike Jolley 8d52b8d243 No class exist check needed for files included once #4616 2014-02-05 15:02:30 +00:00
Mike Jolley 2448a19545 Don't return class, just construct it. Use static methods #4616 2014-02-05 15:02:02 +00:00
Mike Jolley 9c56637def Include_once during install and call the static to load taxonomies early. #4616 2014-02-05 15:01:30 +00:00
Mike Jolley 875694e2eb Fix array sum and out of base subtotals 2014-02-05 11:45:26 +00:00
Coen Jacobs 60f04ee3b4 Merge pull request #4638 from woothemes/simple_fee_tax_calculation
Tax total for fees added to total fees
2014-02-05 12:32:25 +01:00
Coen Jacobs b5ad68ff2a Remove unused total fee tax variable 2014-02-05 12:31:23 +01:00
Coen Jacobs 3d7c2fc297 Tax fees should respect tax rates too 2014-02-05 12:30:47 +01:00
Coen Jacobs c9d39bcc8b Tax total for fees are already flattened 2014-02-05 12:03:56 +01:00
David Barnes 14a24377df Multiple categories in the product_category shortcode
Add the ability to input multiple categories separated by a comma in the
[product_category] shortcode.
2014-02-05 08:55:55 +07:00
Mike Jolley 0c2b1f430c Don't check for post_type for product query, and don't force the post_type variable as it should already be set. #4626 2014-02-04 13:44:18 +00:00
Mike Jolley e453e6f17d After tax coupons * qty Closes #4625 2014-02-04 13:35:04 +00:00
Mike Jolley ad84eea2f7 Ensure coupons get totalled when prices exclude tax. Closes #4604 2014-02-03 15:29:44 +00:00
Mike Jolley e3cc5931ba Merge pull request #4614 from claudiosmweb/clp_currency
CLP currency
2014-02-03 03:50:57 -08:00
Lee Willis 8446e73c49 Add user ID to shipping packages 2014-02-02 22:30:17 +00:00
claudiosmweb 077f6d5d9c fixed the CLP name 2014-02-01 13:00:57 -02:00
claudiosmweb 91ec6e62a0 fixed some coding standards in includes/wc-core-functions.php 2014-02-01 12:58:56 -02:00
claudiosmweb 32b772272c added clp currency 2014-02-01 12:55:58 -02:00
Mikel Martin ffa74e4f65 [ADD] Colombian Peso 2014-01-31 19:16:56 +01:00
Mike Jolley 9222e6a854 woocommerce_coupon_options Hook breaks custom options - used in 2 places. May have been mistake 2014-01-31 14:48:23 +00:00
Mike Jolley eef21fa53a Merge pull request #4603 from thenbrent/master
Fix rounding bug with pre-tax product % coupon
2014-01-31 04:47:56 -08:00
Mike Jolley 0d0bdc340c Merge pull request #4601 from maxrice/master
Fix potential fatal error when fetching orders via API
2014-01-31 04:46:36 -08:00
thenbrent f2a0e4bcdd Remove dup discount calculation 2014-01-30 21:54:33 -08:00
toddlahman 13c24b410e Removed (document).ready from jQuery scripts
jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
2014-01-30 18:44:17 -08:00
thenbrent 390afe9f90 Fix rounding bug with pre-tax product % coupon 2014-01-30 12:50:58 -08:00
Max Rice 0b2cc1df28 Fix potential fatal error when fetching orders via API 2014-01-30 15:41:21 -05:00
Daniel Espinoza f3f98002e5 Merge branch 'master' of github.com:woothemes/woocommerce 2014-01-30 09:39:47 -06:00
Mike Jolley 274e78512e Store POST to variable for paypal 2014-01-30 14:47:11 +00:00
Mike Jolley 531ba9ad34 Clean meta values in paypal gateway 2014-01-30 14:47:11 +00:00
Mike Jolley 189271e610 Validate the currency code sent back by paypal 2014-01-30 14:47:11 +00:00
James Koster 006541ae03 tweaked mijireh getting started message 2014-01-29 17:42:59 +00:00
Mike Jolley 4abcc331dd Ensure stock status is set for variations after setting to 0 Closes #4587 2014-01-29 14:39:55 +00:00
Alex Bain 49f935dd8b Enhancing nocache helper
* Adding support for DONOTCACHEOBJECT
* Adding support for DONOTCACHEDB
2014-01-28 10:26:01 -08:00
Mike Jolley ad17813e70 Merge pull request #4590 from toddlahman/master
Removed urldecode from $_GET and $_REQUEST and Removed (document).ready from wc_print_js()
2014-01-28 09:58:59 -08:00
toddlahman 5432d3ac56 Revert "Moved woocommerce_round_tax_total() to Formatting"
This reverts commit 1f7ba8867e.
2014-01-28 09:47:46 -08:00
Mike Jolley 6f3e8c182e Ensure gateways get loaded prior to emailing out Closes #4577 2014-01-28 12:36:20 +00:00
Mike Jolley 663bf25d79 Merge pull request #4569 from helgatheviking/master
add apply_filters to the product filters on the edit.php screen
2014-01-28 04:21:33 -08:00
Mike Jolley 8f2b9afe93 Check for the term object 2014-01-28 12:13:19 +00:00
Mike Jolley 239d673646 Change featured image notation to product Closes #4586 2014-01-28 11:58:20 +00:00
Mike Jolley 39344f2ed5 Allow gateways to change the checkout place order button text on selection. Closes #4573 2014-01-28 11:25:57 +00:00
Mike Jolley bd76784f97 Merge pull request #4583 from emzo/product-short-description-editor-settings
Filter to allow modification of wp_editor settings for product short description
2014-01-28 03:05:21 -08:00
Daniel Espinoza d88b263119 Add 'woocommerce_product_added_to_cart' action in form add after validation. Simliar to 'woocommerce_ajax_added_to_cart' 2014-01-27 19:00:31 -06:00
Kathy Darling 77f5e9cf1d Merge branch 'master' of github.com:woothemes/woocommerce 2014-01-27 19:02:31 +01:00
Emyr Thomas fdc1d81814 Add 'woocommerce_product_short_description_editor_settings' filter to allow modification of the settings for the wp_editor in the product short description meta-box. 2014-01-27 14:23:58 +00:00
Roman Peshkov 16391b7185 Added check that product has been requested in WC_Query.product_query.
When requesting taxonomy term archive for your custom post type and that
taxonomy is shared with product post type, post_type query variable gets
rewritten.
2014-01-27 16:54:21 +04:00
toddlahman 33f2c5b4cd Removed (document).ready from wc_print_js()
jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
2014-01-26 19:37:03 -08:00
Mike Jolley f2ac6df16c check for default Closes #4571 2014-01-26 13:59:10 +00:00
Mike Jolley 9d55ede6b1 Merge pull request #4568 from maxrice/rest-api-fixes
More REST API tweaks
2014-01-26 04:33:02 -08:00
toddlahman 2725527d4a Removed urldecode from $_GET and $_REQUEST
The superglobals $_GET and $_REQUEST are already decoded. Using
urldecode() on an element in $_GET or $_REQUEST could have unexpected
and dangerous results.

See Notes:

http://us1.php.net/manual/en/function.urldecode.php
2014-01-26 01:19:17 -08:00
toddlahman 1f7ba8867e Moved woocommerce_round_tax_total() to Formatting
woocommerce_round_tax_total() is not actually a deprecated function. In
WC 2.0, the round() method was used from the WC_Tax class.

Moved woocommerce_round_tax_total() from wc-deprecated-functions.php to
wc-formatting-functions.php.
2014-01-26 00:35:07 -08:00
splashingpixels 8f5bf6dde7 Replaced deprecated jQuery live methods with on 2014-01-24 10:34:48 -08:00
Kathy Darling bf06494efc add apply_filters to the product filters on the edit.php screen 2014-01-24 14:50:04 +01:00
Max Rice f17a52fd3a Make customer data for orders endpoint consistent for guest orders
Simply returning ‘guest’ for the customer property changes the data
type of the response from a dictionary to string which is bad for
clients that should be able to always expect a dictionary. This commit
fixes that by using the same dictionary structure as registered
customer orders, but excluding fields which aren’t applicable. Clients
can determine guest vs. registered customer orders by inspecting the
value of customer ID, which is 0 for guest orders.
2014-01-23 16:38:08 -05:00
Max Rice ac1cd5d23d Fix API keys permissions bug
When API keys were generated for the first time, the permissions
weren’t set, which required an additional save before they were set.
This commit fixes this to set `read` permissions by default when
initially generating API keys.

Part of #4055
2014-01-23 16:24:16 -05:00
Mike Jolley 1a416875f8 Format prices when using quick edit 2014-01-22 15:36:29 +00:00
Mike Jolley 3958a40b06 No span for checkbox descriptions 2014-01-22 15:27:42 +00:00
Mike Jolley 986f612bf7 tidy up checkbox output 2014-01-22 15:22:58 +00:00
Mike Jolley 15ba1030d6 Merge pull request #4561 from helgatheviking/fix/duplicate-label-for-settings-checkbox
fix for #4547
2014-01-22 07:03:23 -08:00
Mike Jolley f46e6aefd7 Only show taxes in cart when taxes are enabled 2014-01-22 14:10:11 +00:00
Mike Jolley e04fafcba9 Correctly total and loop fee taxes Closes #4559 2014-01-22 14:10:11 +00:00
Kathy Darling f93abb7acb fix for #4547 2014-01-22 13:54:25 +01:00
Geert De Deckere 2dc22a1416 Fix filter name for WC styles in deprecation notice 2014-01-22 09:42:51 +01:00
Mike Jolley 4fb500fad9 Merge pull request #4554 from claudiosmweb/fix_shop_order_columns
Fix warning in order list screen
2014-01-21 15:41:36 -08:00
Mike Jolley fe83cfcbff Merge pull request #4550 from maxrice/rest-api-top-sellers-endpoint
API: Add top sellers endpoint
2014-01-21 15:39:37 -08:00
Mike Jolley fc4f813f71 Merge pull request #4552 from claudiosmweb/fix_4549
Hotfix for #4549
2014-01-21 15:39:30 -08:00
claudiosmweb b60629e9b4 fixed some coding standards in includes/admin/reports/class-wc-report-sales-by-category.php 2014-01-21 20:14:26 -02:00
claudiosmweb b717bca380 fixed the indentation in includes/admin/reports/class-wc-report-sales-by-category.php 2014-01-21 20:11:05 -02:00
claudiosmweb 43e86f3e28 added a placeholder to select in category widget on reports page 2014-01-21 20:10:40 -02:00
claudiosmweb 7e3268b7f0 fixed some coding standards in includes/admin/post-types/class-wc-admin-cpt-shop_order.php 2014-01-21 19:04:09 -02:00
claudiosmweb 9518cfdd31 fixed the indentation in includes/admin/post-types/class-wc-admin-cpt-shop_order.php 2014-01-21 18:52:07 -02:00
claudiosmweb ed938f85d3 fixed the order notes tooltip 2014-01-21 18:51:52 -02:00
claudiosmweb ae1c837e36 fixed some coding standards in includes/admin/reports/class-wc-report-coupon-usage.php 2014-01-21 18:23:42 -02:00
claudiosmweb 655bd20da1 fixed the indentation in includes/admin/reports/class-wc-report-coupon-usage.php 2014-01-21 18:20:35 -02:00
claudiosmweb 90373836bb fixed empty coupons select in reports page, fixes #4549 2014-01-21 18:20:13 -02:00
Max Rice 37c9434492 API: Add top sellers endpoint
Part of #4055
2014-01-21 14:53:47 -05:00
Max Rice 49bacc6be3 Tweak code formatting 2014-01-21 14:07:22 -05:00
Mike Jolley 0ceb0d194b Include admin functions for less complier on install. Closes #4527 2014-01-21 11:24:48 +00:00
Mike Jolley f33c6a0970 Merge pull request #4539 from kloon/master
Remove esc_url_raw to allow for using of amazon s3 and other shortcodes
2014-01-21 03:14:27 -08:00
Mike Jolley dc99669eec Get exception message in cart Closes #4543 2014-01-21 11:14:23 +00:00
Gerhard 52267220e4 wc_clean on download url instead of esc_url to support shortcodes 2014-01-21 13:09:27 +02:00
Mike Jolley 91a1fe782f Merge pull request #4540 from maxrice/rest-api-sales-report-tweak
API: Add customer count to each period for sales report
2014-01-21 02:54:11 -08:00
Max Rice 233a0a706d API: Add customer count to each period for sales report
Part of #4055
2014-01-20 21:41:52 -05:00
Gerhard 9eaf0225b0 Remove esc_url_raw to allow for using of amazon s3 and other shortcodes in file url 2014-01-20 21:12:26 +02:00
Mike Jolley 98e49e3b99 Delete tax rates transients on settings save Closes #4503 2014-01-20 16:00:15 +00:00
Mike Jolley 0d52064bd8 Attachments is an array Closes #4531 2014-01-20 15:33:33 +00:00
Mike Jolley 87f6958e40 Merge pull request #4524 from DominoTree/patch-1
Minor fix to stop warnings in HHVM
2014-01-20 04:14:10 -08:00
Mike Jolley 9fe57f9dfe Merge pull request #4518 from a3rev/master
Apply filter for wc_get_template_part() function
2014-01-20 04:12:35 -08:00
Mike Jolley eafdc19c68 Merge pull request #4534 from tubiz/master
Add Naira Currency and Symbol to Woocommerce
2014-01-20 04:10:22 -08:00
James Collins 7f497b3fc9 Fix PHP Warning: parse_url() expects parameter 1 to be string, array given in includes/wc-formatting-functions.php on line 41. Fixes #4535. 2014-01-20 09:21:50 +08:00
Tunbosun Ayinla daf73f1252 Added Naira to Available Currency
Naira is the official currency of Nigeria. A lot of stores are powered
by WC in Nigeria. This commit add the Naira currency and symbol to WC
#4533
2014-01-19 20:55:29 +01:00
alexcsandru 6bf855709a Update wc-template-functions.php
a little bug with esc_url instead esc_attr and result was (height="http://450")
2014-01-19 10:14:56 +02:00
Nick Price e69f3d6b54 Minor fix to stop warnings in HHVM
HHVM is a bit weird and will throw these warnings otherwise:

HipHop Warning: Cannot access property on non-object in /home/_____/public_html/wp-content/plugins/woocommerce/classes/class-wc-product-factory.php on line 36
HipHop Warning: Cannot access property on non-object in /home/_____/public_html/wp-content/plugins/woocommerce/classes/class-wc-product-factory.php on line 37
2014-01-17 14:28:15 -06:00
a3rev f1a00fe70c Apply filter for wc_get_template_part() function 2014-01-16 14:46:48 +07:00
claudiosmweb 9abf6f63ab fixed some coding standards in includes/admin/post-types/meta-boxes/class-wc-meta-box-coupon-data.php 2014-01-15 02:02:29 -02:00
claudiosmweb 990e765c24 fixed the indentation in includes/admin/post-types/meta-boxes/class-wc-meta-box-coupon-data.php 2014-01-15 01:58:07 -02:00
claudiosmweb 030cab584d fixed validation for "Exclude products" in coupons metabox, fixes #4509 2014-01-15 01:57:41 -02:00
Mike Jolley 617d6dbd76 Merge pull request #4506 from thenbrent/master
Fix order discount input label "for" attribute
2014-01-14 09:14:48 -08:00
Mike Jolley a53393e534 Merge pull request #4507 from thenbrent/cart-coupon-filters
Cart coupon filters
2014-01-14 09:14:34 -08:00
Mike Jolley 34c37f7493 Merge pull request #4508 from maxrice/rest-api-tweaks
REST API Tweaks
2014-01-14 09:13:23 -08:00
Renkas 03c0a3f7d0 Removed debug output 2014-01-14 14:30:42 +02:00
Max Rice 7f677300eb API: Add feature image src to product response 2014-01-13 22:14:20 -05:00
Max Rice 8b6145691c API: Add item price to order line items response 2014-01-13 22:14:08 -05:00
Max Rice b6dbaebe01 API: Add subtotal to orders response 2014-01-13 22:13:48 -05:00
Max Rice 497ec8186e Fix remove filter typo 2014-01-13 22:13:37 -05:00
Brent Shepherd 6610f71d5a Fix order discount input label "for" attribute 2014-01-13 18:10:19 -08:00
Brent Shepherd 8ab50db41d Add woocommerce_cart_totals_coupon_html filter 2014-01-13 17:25:54 -08:00
Brent Shepherd 66b7d4ee14 Add woocommerce_coupon_discount_amount_html filter 2014-01-13 17:25:54 -08:00
Mike Jolley 69694e7a13 Actions in each section of coupon admin Closes #4500 2014-01-13 12:51:00 +00:00
Mike Jolley 03f8d500a2 Input styling fixes 2014-01-13 12:46:54 +00:00
Mike Jolley fcf43d9ac0 Customisable names for radios and checkboxes Closes #4493 2014-01-13 12:28:29 +00:00
Mike Jolley 39e45bff42 decompress #4501 2014-01-13 12:22:52 +00:00
Mike Jolley ac24fe52fa Check we have a product #4487 2014-01-13 11:39:54 +00:00
Mike Jolley dc880c7af7 Missing updated class 2014-01-13 11:35:02 +00:00
Mike Jolley d6c1725206 Merge pull request #4496 from claudiosmweb/fix_4495
Suggestion to fix the issue #4495
2014-01-13 03:33:12 -08:00
Mike Jolley 2e0291eff1 Merge pull request #4488 from GeertDD/cached_tax_rates
Cached tax rates
2014-01-13 03:19:52 -08:00
Mike Jolley 0297f8ed65 Merge pull request #4490 from claudiosmweb/fix_4489
Fix #4489
2014-01-13 03:05:34 -08:00
Mike Jolley 9ee977c524 Merge pull request #4485 from pmgarman/store-notice-conditional
Add is_store_notice_showing Conditional
2014-01-13 03:04:32 -08:00
Mike Jolley 95242473c8 Cleanup sessions - CONCAT is too slow.
Being tested in https://woothemes.zendesk.com/agent/#/tickets/133706
2014-01-13 10:45:35 +00:00
claudiosmweb bdb7a3b288 fixed a small typo in includes/class-wc-install.php 2014-01-11 22:13:26 -02:00
claudiosmweb c065617641 fixed wordpress coding standards in includes/class-wc-install.php 2014-01-11 22:05:14 -02:00
claudiosmweb 23b7ddc811 fixed the indentation in includes/class-wc-install.php 2014-01-11 21:56:50 -02:00
claudiosmweb 3a9630f29a fixed the inventory settings install, fixes #4495 2014-01-11 21:56:29 -02:00
claudiosmweb 3d0fbc5204 fixed coding standards in includes/admin/class-wc-admin-dashboard.php 2014-01-10 22:18:28 -02:00
claudiosmweb 34213f0a84 fixed the indentation in includes/admin/class-wc-admin-dashboard.php 2014-01-10 22:15:33 -02:00
claudiosmweb 2dd9d81f3d fixed hard code string, fixes #4489 2014-01-10 22:14:27 -02:00
Geert De Deckere b1aabdcfc6 Merge branch 'master' into cached_tax_rates 2014-01-11 00:00:09 +01:00
Geert De Deckere 7169157297 Cache tax rates to save database queries 2014-01-10 23:57:19 +01:00
Patrick Garman f3be3b16b6 Add is_store_notice_showing Conditional
Added public is_store_notice_showing conditional to `includes/wc-conditional-functions.php`
Replaced two instances of  `get_option( 'woocommerce_demo_store' )` with the new conditional
2014-01-10 11:17:01 -06:00
Mike Jolley 656663ba47 is_woocommerce Closes #4475 2014-01-09 14:00:18 +00:00
Mike Jolley 48300f4ebf woocommerce_reports_get_order_report_query Closes #4477 2014-01-09 13:57:42 +00:00
Coen Jacobs 3671eabd13 System Status bold text should have colons to split 2014-01-08 19:03:36 +01:00
Mike Jolley 478c87825f More https ajax requests 2014-01-08 16:39:16 +00:00
Mike Jolley 34173bc1da list_users for shop managers Closes #4354 2014-01-08 15:18:19 +00:00
Mike Jolley e15c572465 Better handling for sent to admin/plain text args Closes #4359 2014-01-08 15:04:49 +00:00
Mike Jolley 8a73715c1f Check specific ajax actions before enforcing HTTPS closes #4324 2014-01-08 14:53:38 +00:00
Mike Jolley 7ddd4d012a Move localisation to address-i18n.js for account page. Closes #4446 2014-01-08 14:38:20 +00:00
Mike Jolley 51bd102fb8 Merge pull request #4448 from shoheitanaka/patch-8
Correct get_country_locale for Japanese
2014-01-08 06:23:12 -08:00
Mike Jolley ddb755afd5 braces 2014-01-08 14:12:19 +00:00
Mike Jolley 72f51e7b05 Disabled for checkbox Closes #4387 2014-01-08 13:50:59 +00:00
Mike Jolley f504243b56 Update timestamp check Closes #4409 2014-01-08 13:40:06 +00:00
Mike Jolley a54223f910 Tweak message #4335 2014-01-08 13:38:34 +00:00
Coen Jacobs 660c0368b6 Merge pull request #4471 from shoheitanaka/master
misspelling in class-wc-admin-welcome.php
2014-01-08 05:36:45 -08:00
Mike Jolley 211658a8f4 Fix woocommerce_reset_loop Closes #4443 2014-01-08 13:23:40 +00:00
Mike Jolley b9a78b5894 HTTPS for frontend only Closes #4324 2014-01-08 12:08:37 +00:00
Shohei Tanaka 618faaf519 misspelling in class-wc-admin-welcome.php
Misspelling is alterntative, correct is alternative.
2014-01-08 15:06:22 +09:00
Aristeides Stathopoulos c5c340588e Minor bugfix, missing comma
Missing comma causing errors in some cases
2014-01-07 22:14:35 +02:00
Mike Jolley f36d67fa69 Merge pull request #4445 from toddlahman/master
improved ob_end_clean for download handler
2014-01-07 07:40:56 -08:00
Mike Jolley 9154eed860 Merge pull request #4461 from justinstern/master
Rename new woocommerce_order_item_quantity filter
2014-01-07 07:37:56 -08:00
Mike Jolley b13250b620 Merge pull request #4453 from GeertDD/add_to_cart_notices
Improved notices in the add_to_cart() method
2014-01-07 06:41:38 -08:00
Mike Jolley 1fffd49e0a Merge pull request #4457 from PURPORC/patch-1
Update abstract-wc-email.php
2014-01-07 06:37:47 -08:00
Mike Jolley caa554faee Merge pull request #4458 from ChromeOrange/master
Add delete tax rates option to system tools
2014-01-07 06:36:43 -08:00
Mike Jolley 85b4ca8c03 wc_has_notice function 2014-01-07 13:35:01 +00:00
Mike Jolley 858416605d Don't resort meta in admin 2014-01-07 10:38:28 +00:00
justinstern 32d850a76a woocommerce_stock_amount rather than intval
Using woocommerce_stock_amount filter rather than intval cast
2014-01-07 02:13:31 -05:00
Andrew Benbow 030131a311 Add delete tax rates option to system tools 2014-01-06 14:42:54 +00:00
PURPORC d18bff3f5b Update abstract-wc-email.php
Adds a plain text replacement for the dollar sign encoded as html entity.
2014-01-06 18:39:41 +11:00
Geert De Deckere d563ff543d Improved notices in the add_to_cart() method
- Moved the button markup out of the translation strings.
- Used get_cart_url() instead of get_permalink( wc_get_page_id( 'cart' ) ).
- Added some newlines to improve code readability.
2014-01-04 23:46:43 +01:00
Shohei Tanaka 72189fd0d4 Correct get_country_locale for Japanese
Change and correct for the plug-in introduction to Japanese environment.
2014-01-04 06:46:00 +09:00
Mike Jolley 7cafdb4bf8 Prevent settings loading twice 2014-01-03 14:13:18 +00:00
Mike Jolley 685403dc30 wordwrap #4397 2014-01-03 14:13:18 +00:00
toddlahman 6456b8d299 fix register nonce and register catch errors 2014-01-03 03:06:28 -08:00
toddlahman 75c76ff7b9 improved ob_end_clean for download handler 2014-01-02 18:35:17 -08:00
Shohei Tanaka e6271e425d correct the state field setting of Japan.
States file of JP.php has existed. So please delete this line.
2014-01-01 06:37:23 +09:00
Mike Jolley d02b1386df Meta box tips Closes #4367 2013-12-31 14:38:41 +00:00
Mike Jolley a2688fad83 Fix ajax naming issues Closes #4368 2013-12-31 14:27:48 +00:00
Mike Jolley 18ffbdb82b Tweak form handlers since they are the same form - removed empty coupon message as a result. Closes #4362 2013-12-31 14:02:50 +00:00
claudiosmweb 4efb0919d7 fixed coding standards in includes/gateways/paypal/class-wc-gateway-paypal.php 2013-12-31 10:53:55 -02:00
claudiosmweb bf81f45abc fixed the indentation in includes/gateways/paypal/class-wc-gateway-paypal.php 2013-12-31 10:45:02 -02:00
claudiosmweb 0b13814aac fixed esc_urL() in get_paypal_args method 2013-12-31 10:43:48 -02:00
Mike Jolley 0b07b16e38 woocommerce_my_account_message #4429 2013-12-31 12:38:33 +00:00
Mike Jolley 8eb77f783d Merge pull request #4429 from toddlahman/master
Registration error handler and my_account_message hook
2013-12-31 04:38:05 -08:00
Mike Jolley 7b1dc6fc41 Merge pull request #4437 from justinstern/master
A Pair of Useful Shipping Related Actions
2013-12-31 04:32:47 -08:00
Mike Jolley 5580d1e3dc Link format #4395 2013-12-31 12:26:50 +00:00
Mike Jolley e624f53c7d Merge pull request #4434 from claudiosmweb/fix_reports_customer_list
Remove deprecated methods in includes/admin/reports/class-wc-report-customer-list.php
2013-12-31 04:15:12 -08:00
Mike Jolley 7bbbca39d6 Merge pull request #4436 from shoheitanaka/patch-5
correct address_formats in Japan
2013-12-31 04:14:10 -08:00
legas fa85115260 Add missing textdomains 2013-12-31 09:50:01 +01:00
justinstern 9a2b801e7b A Pair of Useful Shipping Related Actions 2013-12-30 18:59:09 -05:00
Shohei Tanaka ea3834cdcc correct address_formats in Japan
in Japan ,the name order is last (family) name to first name.
2013-12-31 06:35:21 +09:00
claudiosmweb 9aaa8c8875 fixed coding standards 2013-12-30 14:28:39 -02:00
claudiosmweb b68b6f2faf fixed the indentation in includes/admin/reports/class-wc-report-customer-list.php 2013-12-30 14:25:35 -02:00
claudiosmweb 94586aa5b9 changed wpdb::escape to esc_sql() 2013-12-30 14:24:49 -02:00
Mike Jolley ee6c7c6d4c wc_print_notices Closes #4431 2013-12-30 14:29:13 +00:00
Mike Jolley 67af66b96c Add classes for placeholder Closes #4432 2013-12-30 14:22:13 +00:00
Mike Jolley cdb1ad5e9e On cancel, use cart page unless otherwise defined. Closes #4375 2013-12-30 14:09:50 +00:00
Mike Jolley 3ab0b5e248 Merge pull request #4428 from justinstern/master
Notice fix and Checkout Shipping Method classes
2013-12-30 02:34:58 -08:00
Mike Jolley 58e952d85f Merge pull request #4430 from claudiosmweb/fix_top_rated_products_shortcode
Fix top rated products shortcode
2013-12-30 02:29:19 -08:00
claudiosmweb cf756af1d5 fixed some coding standards 2013-12-29 11:54:55 -02:00
claudiosmweb 248e46c8f7 Fixed the indentation in the includes/class-wc-shortcodes.php file 2013-12-29 11:41:48 -02:00
claudiosmweb 37aa0fb53b fixed the posts_clauses filters in top_rated_products method of the WC_Shortcodes class 2013-12-29 11:40:43 -02:00
toddlahman 6f76d1941c Registration error handler and my_account_message hook
To block registration spam, and authenticate the $_POST values, a
woocommerce_process_registration_errors filter hook is needed.

WordPress has a login_message filter, which causes a duplicate message
on the My Account login page since WC uses the same filter hook name. A
different filter hook name, such as my_account_message, would eliminate
this issue.
2013-12-29 05:11:54 -08:00
justinstern e131804d7a Notice fix and Checkout Shipping Method classes
Fixes an admin notice.  Adds a single class to the checkout shipping
method elements for convenience in collecting all of them via CSS
selector
2013-12-29 04:31:44 -05:00
Shohei Tanaka 52e1cd5796 misspelling in class-wc-admin-welcome.php
Common misspelling of receive.
2013-12-29 05:19:20 +09:00
Illimar Tambek 9b43089562 Only continue getting checkout value if null 2013-12-27 15:39:21 +02:00
Mike Jolley 68d2ac5dfe restore field back to original #4383 2013-12-27 13:27:22 +00:00
Mike Jolley 539a736882 woocommerce_wp_radio styling Closes #4383 2013-12-27 13:26:37 +00:00
Mike Jolley 9a6cf4512c Merge pull request #4418 from ChuckMac/master
Admin metabox billing information save fix
2013-12-27 04:28:09 -08:00
Mike Jolley c916b51ef7 Country select for edit address Closes #4396 2013-12-27 12:20:51 +00:00
Chuck Mac d852e14bea Admin metabox billing information save fix 2013-12-26 14:56:19 -05:00
Mike Jolley 0c9962cf93 Get correct name Fixes #4385 2013-12-24 14:28:25 +00:00
Mike Jolley cc7325e869 Ensure there is a join Fixes #4390 2013-12-24 13:31:37 +00:00
Mike Jolley 33f07a05a8 Pass order ID to woocommerce_payment_successful_result Fixes #4378 2013-12-23 15:47:56 +00:00
Mike Jolley 9c7a7d2c3d CSS min fixes #4336 2013-12-23 14:30:39 +00:00
Mike Jolley d3d72a8a49 Merge pull request #4372 from thenbrent/single_serve_fee
Only allow a fee to be added once
2013-12-23 05:33:37 -08:00
Mike Jolley 247f0ac064 Merge pull request #4344 from claudiosmweb/improved-reviews-admin
Improvements in editing the reviews rating
2013-12-23 05:32:54 -08:00
Mike Jolley d9637c4b80 Merge pull request #4305 from helgatheviking/feature/min_max_args
add $min_or_max and $display params to variation pricing functions
2013-12-23 05:31:53 -08:00
Mike Jolley e51da54240 Merge pull request #4330 from kloon/tweak_file_title_download_permissions
Tweak file title download permissions
2013-12-23 05:30:54 -08:00
Mike Jolley e3b5df7ce2 Merge pull request #4388 from niravmehta/master
Expiry date calculation based on order completion date
2013-12-23 05:22:25 -08:00
Mike Jolley 17f79f651d Merge pull request #4386 from justinstern/master
Downloadable File Fixes/Tweaks
2013-12-23 05:20:36 -08:00
Mike Jolley cc8bd649ec Merge pull request #4401 from toddlahman/master
Revert back to ob_end_clean to fix errors
2013-12-23 05:13:17 -08:00
Max Rice 7b4ff1ee82 Fix HTTP_X_FORWARDED_HOST notice 2013-12-20 14:03:55 -05:00
toddlahman 32af9d4440 Revert back to ob_end_clean to fix errors
ob_clean does not turn off output buffering as ob_end_clean does. On
some hosts ob_clean results in an error like: transfer closed with 3
bytes remaining to read. ob_end_clean fixes this.
2013-12-19 01:14:39 -08:00
Ratnakar 0faf26cbd2 Expiry date calculation based on order completion date 2013-12-17 10:37:19 +05:30
Justin Stern ae91c698f2 Downloadable File Fixes/Tweaks
* Hooked up new downloadable product permissions function to
completed/processing actions
* WC_Product::get_files() is used rather than the underlying
_downloadable_files meta directly
* $this is passed to downloadable product filters in WC_Product in place
of $this->id which doesn't does not afford you the particular variation
when a product variation is being used.
2013-12-16 18:27:57 -05:00
Mike Jolley 3bd2d0d456 Credit card form actions - start and end 2013-12-14 12:03:32 +00:00
thenbrent 8ad3326016 Only allow a fee to be added once 2013-12-13 13:10:25 -08:00
James Koster dbf1b15001 replace a few missed &rarr;'s. closes #4350 2013-12-12 13:42:29 +00:00
Coen Jacobs b5a4a9e602 Removed duplicate description key. Closes #4357 2013-12-12 14:36:13 +01:00
Coen Jacobs 7fede7e6e5 Merge pull request #4334 from splashingpixels/master
syntax error missing semicolon on product grouped class
2013-12-12 01:44:31 -08:00
Coen Jacobs e9ed514d8e Merge pull request #4329 from kloon/tweak_rest_api_add_wc_version
Add WooCommerce version to API index route
2013-12-12 01:32:55 -08:00
Coen Jacobs 7a254a3586 Merge pull request #4331 from kloon/fix_cod_thankyou_warning
Fix warning on Thank You page with COD, closes #4320
2013-12-12 01:31:34 -08:00
Coen Jacobs 6a194f02e2 Merge pull request #4340 from maxrice/rest-api-warning-fixes
Fix warning when accessing coupons created in pre-2.1 installs
2013-12-12 01:30:00 -08:00
Coen Jacobs 00e7174149 Merge pull request #4342 from claudiosmweb/fix_4337
fix #4337
2013-12-12 01:29:36 -08:00
Coen Jacobs 2ddb0491c2 Merge pull request #4343 from claudiosmweb/patch-1
Fix #4338 and #4339
2013-12-12 01:27:18 -08:00
Lee Willis bf5095d67d MP6 is dead. Long live the WP admin theme 2013-12-12 07:21:28 +00:00
claudiosmweb 8344bbc2b4 removed "Trying to get property of non-object..." error on the edit review/comment page. 2013-12-10 23:48:03 -02:00
claudiosmweb 963b16d9c4 fixed standards 2013-12-10 23:43:12 -02:00
claudiosmweb 3a3a0c10ec fixed reviews metabox visibility 2013-12-10 23:42:31 -02:00
claudiosmweb f7f3c79fa0 fixed braces standards 2013-12-10 23:17:44 -02:00
claudiosmweb e07e89b0de removed not useful global variables 2013-12-10 23:17:22 -02:00
claudiosmweb ec9091b444 fixes #4339 2013-12-10 22:41:27 -02:00
claudiosmweb 86b01ca004 fixes #4338 2013-12-10 22:40:41 -02:00
claudiosmweb d0d5e56022 fixed space standards 2013-12-10 22:39:51 -02:00
claudiosmweb 04534fe82b fixed braces standards 2013-12-10 22:36:56 -02:00
claudiosmweb 48aa2af8ef fix #4337 2013-12-10 22:31:03 -02:00
Max Rice 2b0a75cbd6 Fix warning when accessing coupons created in pre-2.1 installs 2013-12-10 17:31:41 -05:00
splashingpixels 8a6848bdd3 syntax error missing semicolon on product grouped class 2013-12-10 09:38:36 -08:00
Gerhard 0f47ed8df9 Fix warning on Thank You page with COD, closes #4320 2013-12-10 13:06:22 +02:00
Gerhard 4fa98e0610 Change filecount variable 2013-12-10 12:50:48 +02:00
Gerhard 9b27b485b6 Show file title instead of count if set 2013-12-10 12:49:27 +02:00
Gerhard a5acde8bbd Add WooCommerce version to API index route 2013-12-10 12:24:53 +02:00
Coen Jacobs dbeeac710d Merge pull request #4304 from shoheitanaka/patch-2
Update class-wc-admin-assets.php because spell mistake
2013-12-09 06:35:46 -08:00
Coen Jacobs b16d3e3170 Merge pull request #4321 from kloon/fix_cat_walker_strict_warnings
Fix strict warnings for cat walker class, closes #4319
2013-12-09 06:34:31 -08:00
Coen Jacobs 962269cdbd Merge pull request #4318 from maxrice/rest-api-tweaks
REST API Tweaks
2013-12-09 06:34:04 -08:00
Coen Jacobs 31b18d24e8 Merge pull request #4317 from NikV/master
Some braces for the new WordPress standard
2013-12-09 06:21:26 -08:00
Coen Jacobs 64c68b8c38 Merge pull request #4301 from kloon/fix_rest_api_oauth_subfolder_install
Fix issue where oAuth signature is wrong when running site from a subfolder
2013-12-09 02:27:18 -08:00
James Koster c22ebcc7ae twentyfourteen compat. closes #4272 2013-12-09 09:55:11 +00:00
Gerhard 7db46f581f Fix strict warnings for cat walker class, closes #4319 2013-12-09 10:07:24 +02:00
Max Rice 8389ff23e5 Fix duplicate "Link:" content with pagination link headers 2013-12-08 17:38:27 -05:00
Max Rice 1a9933cd88 Fix authentication error message typos 2013-12-08 17:37:55 -05:00
Max Rice 898adbb32d Change money_format to currency_format for API index 2013-12-08 17:37:30 -05:00
Nik-v a005e3e71f Some braces for the new WordPress standard
Simple braces being added
2013-12-08 16:08:46 -06:00
Kathy Darling 6544d6b8f9 add $min_or_max and $display params to variation pricing functions 2013-12-07 10:11:23 +01:00
Shohei Tanaka 93944c56e1 Update class-wc-admin-assets.php because spell mistake
I found spell mistake.
#109 monitary to #109 monetary
2013-12-07 18:10:36 +09:00
Gerhard 8e2bc1cebc remove harded api reference, use WooCommerce_api_url instead 2013-12-06 16:57:44 +02:00
Gerhard 5b27f37c23 Fix issue where oAuth signature is wrong when running site from a subfolder #4055 2013-12-06 15:07:42 +02:00
Mike Jolley 27d40dd46f Fix term reordering Closes #4294 2013-12-05 16:07:44 +00:00
Mike Jolley 5239bf7b46 get_form_fields method Closes #4275
@coenjacobs please review. I believe its cleaner this way.
2013-12-05 15:57:01 +00:00
Mike Jolley 8910042a99 Don't load some classes during ajax events Closes #4282 2013-12-05 15:34:37 +00:00
Mike Jolley f3fe51e3a3 Merge pull request #4293 from pauloiankoski/patch-1
Add "rand" option to orderby
2013-12-05 06:42:45 -08:00
Mike Jolley 27d2c87583 Tidyup 2013-12-05 13:16:52 +00:00
Mike Jolley 153c367ef4 Missing icons #4287 2013-12-05 13:16:52 +00:00
pauloiankoski 09d50a04c8 Add "rand" option to orderby 2013-12-05 10:53:22 -02:00
Coen Jacobs 1f5f163916 Added option to hide Returning customer message. Closes #4220 2013-12-05 10:43:46 +01:00
Coen Jacobs b8409ba7b0 Merge pull request #4291 from BFTrick/flat-rate-shipping-message
Adding Default Shipping Price to Tooltips
2013-12-05 00:37:26 -08:00
Coen Jacobs bcf025694e Updated docblocks for #4292 2013-12-05 09:36:46 +01:00
Brent Shepherd f7df434399 Remove $from param on get_price_html_from_text()
As it's not used at all.
2013-12-04 17:46:12 -08:00
Patrick Rauland 01c1afae59 Adding default shipping price to tooltips 2013-12-04 16:20:30 -06:00
Mike Jolley 00ff09e3a2 sort sale price 2013-12-04 12:45:23 +00:00
Mike Jolley 4826a574a0 wp_redirects 2013-12-04 12:20:18 +00:00
Mike Jolley 9e5c0fbf67 Get rid of "FROM" - display a price range, localisable. Closes #4222 2013-12-04 12:08:14 +00:00
Mike Jolley 4ce57489a7 Esnure cron is scheduled for midnight Closes #4267 2013-12-03 15:50:00 +00:00
Mike Jolley 553b273fc6 Merge pull request #4214 from toddlahman/master
escape download handler URLs
2013-12-03 07:32:47 -08:00
Mike Jolley 1ec8b82f69 Prevent error if variation doesn't exist. 2013-12-03 14:54:13 +00:00
Coen Jacobs a8444eb567 Fixed faulty double return 2013-12-03 15:11:01 +01:00
Mike Jolley 53b56250f4 Clean up cancel_order and filter cancelable order status Closes #4257 2013-12-03 14:07:15 +00:00
Coen Jacobs 61a783886d Suggested code changes in #4266 2013-12-03 15:03:25 +01:00
Gregory K f937c36250 Inconsistent return types: TODOs 2013-12-03 14:53:49 +01:00
Mike Jolley 273ae46758 Move sample tax rates Closes #4264 2013-12-03 13:45:10 +00:00
Mike Jolley 293c998a1d Set price slider min to min price. Closes #4183 2013-12-03 13:39:02 +00:00
Mike Jolley 418a8785b0 woocommerce_checkout_customer_userdata filter Closes #4235 2013-12-03 12:27:53 +00:00
Mike Jolley af34b43ee6 Tweaks for #4239 2013-12-03 12:14:12 +00:00
Mike Jolley d7d6ddbc84 Merge pull request #4240 from Spreeuw/master
Allow custom checkout fields to be localized
2013-12-03 04:08:09 -08:00
Mike Jolley a071d90368 Merge pull request #4255 from BFTrick/billing-state-desc-typo
Fixing County Typo
2013-12-02 06:59:19 -08:00
Coen Jacobs 52f22aaea4 Thumbnail upload buttons shouldn't be submit type. Closes #4263 2013-12-02 13:10:32 +01:00
Coen Jacobs 41171efd57 Deprecated versions of void functions shouldn't return 2013-12-02 13:01:11 +01:00