Commit Graph

4998 Commits

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