Commit Graph

8502 Commits

Author SHA1 Message Date
Mike Jolley 0b678ab2af Tweak save logic to set _price for variables/groups via sync functions only
Closes #9892
2015-12-23 13:08:45 +00:00
Mike Jolley 9db40dcda0 Merge remote-tracking branch 'origin/master' 2015-12-23 12:51:06 +00:00
Mike Jolley 4bf40cedb1 Tweak logic 2015-12-23 12:50:28 +00:00
Mike Jolley 9a700f8b48 Merge pull request #9891 from capuderg/master
Added a filter for disabling automatic redirect to the setup wizard
2015-12-23 12:32:51 +00:00
Peter 00341a30b3 Revert "[API] Additional hooks in API Orders"
This reverts commit fb798aca49.
2015-12-22 23:55:03 +01:00
Peter fb798aca49 [API] Additional hooks in API Orders
Add some additional hooks to handle custom order data

The new hooks:
woocommerce_api_create_order_item
woocommerce_api_set_order_addresses
woocommerce_api_set_line_item

The new woocommerce_api_create_order_item action contains the id-s of the new items ($new_item_id). The following functions have to be returned the item id-s to be able to pass them to the filter:
* set_item(..) function - return $item_id; 
* set_line_item(..) function - return $item_id;
* set_shipping(..) function - return $shipping_id;
* set_fee(..) functuion - return $fee_id;
* set_coupon(..) functuion - return $coupon_id;
2015-12-22 23:49:01 +01:00
Caleb Burks bedcedcc3d Sanitize the shipping tax class 2015-12-22 08:59:42 -06:00
Gregor Capuder f785561f5f Added a filter for disabling automatic redirect to the setup wizard, after plugin activation. 2015-12-22 12:03:31 +01:00
Peter 458c755b5f Update abstract-wc-order.php
If the order has no shipping line, there must not generate an unnecessary shipping tax line with 0 value. It was happened if there is set a different tax class for shipping than tax classes of the actual product line items of the order, and the order has not got any shipping line.
The aim is to have the same tax calculation behavior if we create orders using the GUI (front end or back end), and the API.

This condition prevents to create the unnecessary tax line if there is no shipping methods of the order:

// Now calculate shipping tax
$matched_tax_rates = array();
$shipping_methods = $this->get_shipping_methods();
if ( ! empty( $shipping_methods ) ) {
	......
}


This conditional solution is similar than calc_line_taxes() in WC_AJAX class:

// Get shipping taxes
if ( isset( $items['shipping_method_id'] ) ) {
	.....
}
2015-12-21 23:42:59 +01:00
Claudio Sanches 997d1caa50 Fixed several new variations admin actions, closes #9886 2015-12-21 03:36:36 -02:00
Claudio Sanches a81f0f6eea Use blockui while saving taxes 2015-12-19 12:12:31 -02:00
Claudio Sanches 7adafc77c9 [API] Improved product attribute terms params 2015-12-18 21:39:30 -02:00
Claudio Sanches d85c643150 [API] Delete tax rates when deleting a tax class 2015-12-18 20:46:28 -02:00
Claudio Sanches b8a6090d05 [API] Fixed tax rate id type 2015-12-18 19:15:56 -02:00
Claudio Sanches 032265b1ed [API] Fixed build taxes return 2015-12-18 19:08:09 -02:00
Claudio Sanches 89581d1541 Setup Wizard and no Onboarding Wizard 2015-12-18 17:05:16 -02:00
Mike Jolley 901db7b0f8 zone tweaks 2015-12-18 17:10:58 +00:00
Mike Jolley f5bf764eec Conflict with class 2015-12-18 14:26:10 +00:00
Mike Jolley 119f19a5c1 Include and conditionally load legacy shipping methods 2015-12-18 14:24:34 +00:00
Mike Jolley 77f0e9d72a has settings handling 2015-12-18 13:12:20 +00:00
Mike Jolley 8cde0cbcb1 Merge pull request #9876 from reigelgallarde/patch-1
adding $loop_name to woocommerce_shortcode_products_query filter
2015-12-18 11:57:01 +00:00
Mike Jolley bf06b6d7c3 Filter non-images from gallery
Fixes #9875
2015-12-18 11:55:51 +00:00
Reigel Gallarde f8dd887001 Update class-wc-shortcodes.php
adding $loop_name to woocommerce_shortcode_products_query filter.. so that we have a way to add a filter to a specific shortcode that uses product_loop.
2015-12-18 13:43:03 +09:00
Mike Jolley c7e104115f unused code 2015-12-17 12:58:02 +00:00
Claudio Sanches c04443c2d3 Added upgrade script for #9868
cc @mikejolley
2015-12-17 08:30:06 -02:00
Claudio Sanches b2712d6ae8 Merge pull request #9868 from shivapoudel/lao-kip-symbol
Updated the currency code for 'Lao Kip'
2015-12-17 08:13:32 -02:00
Claudio Sanches b03280e230 [API] Manage product order_menu, closes #9866 2015-12-17 08:08:17 -02:00
Nicola Mustone 7ed6eb2cb9 typo 2015-12-17 08:23:58 +01:00
Shiva Poudel 4146558fd6 Updated the currency code for 'Lao Kip'
See: https://en.wikipedia.org/wiki/ISO_4217
2015-12-17 11:52:38 +05:45
Claudio Sanches f7ef9c0cec [API] Stop unset things in API 2015-12-16 16:46:31 -02:00
Claudio Sanches 55e4ef50b9 [API] Fixed errors and improved edit product categories endpoint 2015-12-16 16:44:41 -02:00
Claudio Sanches ee990de153 [API] Fixed errors and improved create product category endpoint 2015-12-16 16:35:46 -02:00
Claudio Sanches e097ff7b56 Oops 2015-12-16 14:25:11 -02:00
Mike Jolley 8ebba9cc68 "enabled" column 2015-12-16 16:24:58 +00:00
Mike Jolley 9aa34330ac Fix sorting and saving for methods 2015-12-16 16:09:52 +00:00
Mike Jolley e13ba4f029 Empty states 2015-12-16 15:37:40 +00:00
Claudio Sanches b2eadf0322 Better way to handle currency symbols
cc @mikejolley
2015-12-16 13:23:44 -02:00
Mike Jolley 571469f44c Add methods to zones 2015-12-16 15:16:52 +00:00
Mike Jolley 1a77563085 started on free shipping 2015-12-16 13:52:46 +00:00
Mike Jolley bf362de020 worldwide methods 2015-12-16 13:38:03 +00:00
Mike Jolley 84503dc8ac Undo debug 2015-12-16 13:28:55 +00:00
Mike Jolley 8aec02f625 Remove shipping select box option, tidy up logic and add filters from #9797
closes #9797
2015-12-16 13:00:16 +00:00
Mike Jolley 9aee0ac1cb Functions and filters to determine which coupons need product and cart validation rules.
Closes #9854
2015-12-16 11:47:56 +00:00
Mike Jolley 992f1176bd wc_get_template_part filter should always run regardless of whether a matching template was found.
Closes #9851
2015-12-16 11:28:34 +00:00
Fulvio Notarstefano d7d70298c5 #9857 change get_class to 2015-12-16 14:25:17 +08:00
Claudio Sanches c001d5b274 Make tooltips consistent, closes #9856 2015-12-16 03:38:53 -02:00
Mike Jolley d8f96f4dc9 zones empty state 2015-12-15 19:10:41 +00:00
Mike Jolley 7f61beee41 Worldwide zone handling 2015-12-15 18:04:14 +00:00
Mike Jolley 44b2834d73 Worldwide zones needs handling 2015-12-15 17:54:51 +00:00
Mike Jolley e25d876779 List and sort methods within zones 2015-12-15 17:48:03 +00:00
Claudio Sanches b7b6254bf4 [CLI] Added docs about product reviews fields 2015-12-15 15:36:57 -02:00
Claudio Sanches bba6bdd6ea [CLI] Updated delete product description 2015-12-15 15:20:11 -02:00
Claudio Sanches 7d7be633a6 [CLI] Added docs about product category fields 2015-12-15 15:11:21 -02:00
Mike Jolley 195101bbe9 Merge remote-tracking branch 'origin/master' 2015-12-15 16:42:02 +00:00
Mike Jolley 05783272a2 Merge branch 'exensible-addons-screen' 2015-12-15 16:41:56 +00:00
Mike Jolley f48f09ebdf Fix zone links 2015-12-15 16:35:33 +00:00
Mike Jolley a4f98902a3 Zone based free shipping 2015-12-15 16:23:46 +00:00
Mike Jolley b47423ff2b Moved rate calc logic into shipping class 2015-12-15 16:22:32 +00:00
Mike Jolley 9818796d3e Removing selection priority
This option was added so you could sort methods in a custom order, but
choose a different default.

Doing this per zone would add extra complexity, and this has also
proven problematic when a method registers multiple rates.

This commit removes usage of the setting. We should use the display
order and choose the top method by default. It think this balances ease
of use with control.
2015-12-15 15:49:35 +00:00
Mike Jolley 041906e692 Shipping class cleanup 2015-12-15 15:39:00 +00:00
Mike Jolley a0e0bb1e55 Load instance methods for calculations 2015-12-15 15:00:45 +00:00
Mike Jolley 091a8a7641 Zone matching functions 2015-12-15 12:39:52 +00:00
Bryce Adams ff5caa85b7 Update URL used to get add-on sections
Related to https://github.com/Automattic/woothemes.com/pull/47
2015-12-15 12:20:02 +11:00
Max Rice 655089b162 Fix checkout result notice 2015-12-14 20:15:22 -05:00
Claudio Sanches 67773e2338 [CLI] Fixed order update description 2015-12-14 19:48:34 -02:00
Claudio Sanches ce360bc9b5 [CLI] Improved order delete command description 2015-12-14 19:34:13 -02:00
Claudio Sanches 9450151b16 [CLI] Fixed customer command descriptions and updated order delete description 2015-12-14 19:30:19 -02:00
Claudio Sanches e22724bf95 [CLI] Updated create order descriptions and removed order_number 2015-12-14 19:26:04 -02:00
Claudio Sanches 28d27bf2c0 [CLI] Updated some command descriptions 2015-12-14 18:55:20 -02:00
Claudio Sanches 9b5020efff [CLI] Added customer downloads fields docs 2015-12-14 18:32:04 -02:00
Claudio Sanches 2bc58f431a [CLI] Updated update coupons options description 2015-12-14 18:13:53 -02:00
Mike Jolley 3b81642eec Instance and global level settings 2015-12-14 16:56:39 +00:00
Mike Jolley 2f97b16a91 Fix notice 2015-12-14 14:05:00 +00:00
Mike Jolley b27aed5753 Settings api 2015-12-14 14:03:46 +00:00
Mike Jolley d515ddaaed Merge pull request #9798 from JeroenSormani/admin-order-item-hooks
Add hooks after order line items in admin
2015-12-14 12:50:54 +00:00
Mike Jolley 3e2df95968 Merge remote-tracking branch 'origin/master' 2015-12-14 12:48:26 +00:00
Mike Jolley f992f98b39 Merge branch 'pr/9790' 2015-12-14 12:48:11 +00:00
Mike Jolley 4b45812bac Only one sanitise hook is needed 2015-12-14 12:48:03 +00:00
Mike Jolley 7ce6e2f1ab Merge pull request #9820 from pmgarman/processing-order-counts-filter
Add filter to remove admin menu order counts
2015-12-14 12:43:14 +00:00
Mike Jolley 05ee7b2a91 Merge pull request #9782 from tjuris/master
use float values for price filter when taxes are not included in prices
2015-12-14 12:42:11 +00:00
Mike Jolley f3d6ce3c94 Round total discount to precision
Fixes #9834
2015-12-14 12:06:39 +00:00
Manos Psychogyiopoulos 5597a2750b orphaned variations cause "failed to load results" issue 2015-12-12 16:37:32 +02:00
Manos Psychogyiopoulos 2a6a26f800 allow searching from predefined set and introduce search limit
Makes it possible to search from a pre-defined set of known ids without returning all results, avoiding an excessive amount of product instantiations with large result sets.
2015-12-12 14:28:45 +02:00
Mike Jolley 63f8eebd6a Started on refactoring settings for instances 2015-12-11 16:41:38 +00:00
Mike Jolley 6cea054fca Method list screen and method screen with breadcrumbs 2015-12-11 14:11:12 +00:00
Claudio Sanches 1a17c0f404 Merge branch 'master' of github.com:woothemes/woocommerce 2015-12-11 01:59:05 -02:00
Claudio Sanches 91e5381262 [API] Added order_key in orders response, closes #9823 2015-12-11 01:58:24 -02:00
Luan Cuba 9a52cc3abd It should be "character" instend of "charactrer". 2015-12-10 17:51:50 -02:00
Patrick Garman 0fa0c20520 Add filter to remove admin menu order counts
On large sites this query can easily take 6-10 seconds to complete, slowing the entire dashboard down.
2015-12-10 13:40:41 -06:00
Mike Jolley 66d4065ae4 postcode saving 2015-12-10 18:33:59 +00:00
Mike Jolley 4893db3afe tweak js 2015-12-10 17:47:14 +00:00
Mike Jolley 0e2bfa551c wc-shipping-zone-postcodes 2015-12-10 17:29:09 +00:00
Mike Jolley d859b6f2f9 remove trs 2015-12-10 17:27:25 +00:00
Mike Jolley 4557157890 List regions 2015-12-10 17:07:18 +00:00
Mike Jolley cf5381083d Started on zone regions selector 2015-12-10 15:09:37 +00:00
Mike Jolley 3a8ed22905 Fix sorting for new zones 2015-12-10 13:09:39 +00:00
Mike Jolley 41042e94a7 Sort zones 2015-12-10 12:31:03 +00:00
Mike Jolley 14eeb9f936 Zones first draft with backbone saving of zone names 2015-12-10 11:55:03 +00:00
Mike Jolley 77714623cf Remove post type archive title on front page
Closes #9812
2015-12-10 10:42:56 +00:00
Claudio Sanches 987b93c87e Changed (Untitled) to (no title) #9806 2015-12-09 16:28:34 -02:00
Claudio Sanches 2a5b785e50 Show (Untitled) in settings when payment method don't have title
Fixed some coding standards too.

Closes #9806
2015-12-09 15:11:59 -02:00
Claudio Sanches 33abd146b5 Fixed translatable strings in WC_Webhook::deliver_ping()
cc @mikejolley
2015-12-09 13:20:53 -02:00
Claudio Sanches 4b52c0d052 Added Kenyan shilling currency 2015-12-09 13:06:54 -02:00
Claudio Sanches 586b656d07 Better translate strings for #9799 2015-12-09 12:11:48 -02:00
Claudio Sanches 6a41f4d5b8 Merge pull request #9796 from shivapoudel/select2-ver
Updated select2 version to register script
2015-12-09 11:45:58 -02:00
Mike Jolley 60b76f0b97 https://github.com/woothemes/woocommerce/pull/9801 2015-12-09 11:41:18 +00:00
Mike Jolley cc68cd48c5 Use post-thumbnail size to avoid srcsets
Closes #9795
2015-12-09 11:36:09 +00:00
Mike Jolley 496eb3385e srcset sometimes is false. 2015-12-09 10:29:41 +00:00
JeroenSormani 0bc4089ea7 Add hooks after order line items in admin 2015-12-09 09:29:32 +01:00
Shiva Poudel df0b6eb9d5 Updated select2 version to register script 2015-12-09 13:15:46 +05:45
Claudio Sanches 5653f63275 Added Multibyte String in System Status
Closes #9789

cc @mikejolley
2015-12-08 14:38:36 -02:00
Mike Jolley 56f274b68b non-functional Mockup for the shipping zones interface 2015-12-08 12:45:18 +00:00
Mike Jolley 485a127778 get_continents 2015-12-08 11:15:02 +00:00
Shiva Poudel afd3aa2fc7 Let the additional third party widgets create and sanitize form fields 2015-12-08 16:19:49 +05:45
Claudio Sanches 441530f54e Do not espace maxlength and use the same html for password fields #9786 2015-12-07 21:53:39 -02:00
Claudio Sanches 26097b6e99 Escape attributes for #9786 2015-12-07 21:48:54 -02:00
Claudio Sanches b82d670a61 Merge pull request #9786 from pelmered/master
Add support for number field in woocommerce_form_field()
2015-12-07 21:45:46 -02:00
Claudio Sanches ff637abb7b Removed duplicated argument for PHP 7, closes #9788 2015-12-07 17:36:18 -02:00
Peter Elmered 44df7c1c34 Re-added password type attribute 2015-12-07 18:06:02 +01:00
Claudio Sanches f53af82c34 [API] Show API version in index 2015-12-07 14:54:29 -02:00
Claudio Sanches f4168e8fcc Updated API version 2015-12-07 14:54:14 -02:00
Peter Elmered d624196924 Added support for number field in woocommerce_form_field() 2015-12-07 17:28:10 +01:00
Peter Elmered d18e5da09d Removed unnecessary duplication in woocommerce_form_field() 2015-12-07 17:25:45 +01:00
Mike Jolley 61c3e74d4f srcset should not be set to 'false' 2015-12-07 11:57:02 +00:00
Tanel Jüris 0f18b5f269 use float values for price filter when taxes are not included in prices 2015-12-07 13:04:10 +02:00
Mike Jolley dd2fe6ff49 Make WC_Abstract_Order::update_status() return boolean
closes #9777
2015-12-07 10:12:17 +00:00
Mike Jolley f183df1b13 Remove line breaks 2015-12-07 10:01:44 +00:00
Mike Jolley eb0a5e1d87 Merge pull request #9770 from woothemes/issue/9769-set-current-gateway-php-fatal
Avoid PHP errors when setting the current gateway.
2015-12-07 10:00:44 +00:00
Mike Jolley 38df188848 Merge pull request #9778 from ardalann/patch-1
Corrected @see comments
2015-12-07 09:47:12 +00:00
Coen Jacobs bae582e3ff End function requires variable to prevent strict standards errors
Just a temporary variable that is only used to pass an actual variable
to the PHP end function (as that takes a reference as argument). This
prevents strict standard errors.
2015-12-07 08:10:19 +01:00
ardalann 52436a093c Corrected @see comments 2015-12-06 20:03:40 -07:00
Jeff Stieler 9635f244de Avoid PHP errors when setting the current gateway. 2015-12-04 18:17:33 -07:00
Shiva Poudel 88d7713a86 Modified checkbox class value from widefat 2015-12-05 05:26:28 +05:45
Shiva Poudel 69d6a25f5e Refactor to format the value based on widget settings type 2015-12-05 05:25:51 +05:45
Claudio Sanches b31e15e48b Fixed docblock versions 2015-12-04 21:18:06 -02:00
Claudio Sanches d15c711855 Merge branch 'master' of github.com:woothemes/woocommerce 2015-12-04 21:17:47 -02:00
Max Rice 3befe1426f Introduce WC_Product::get_id() method 2015-12-04 15:17:25 -05:00
Claudio Sanches 92582e21cb Properly sanitize textarea field for widgets #9762 2015-12-04 17:14:42 -02:00
Claudio Sanches 0f5c70e33f Merge pull request #9762 from shivapoudel/widget-textarea
Added textarea widget form field
2015-12-04 17:14:12 -02:00
Claudio Sanches 11ce0fb18c [API] Added endpoint to allow delete product attribute terms 2015-12-04 17:01:49 -02:00
Claudio Sanches 4d57d6f4db [API] Added endpoint to allow edit product attribute terms 2015-12-04 16:53:17 -02:00
Claudio Sanches 20efee8cd4 [API] Added endpoint to create product attribute terms 2015-12-04 16:38:17 -02:00
Claudio Sanches 1d0d2258d0 [API] Created method to get a single product attribute term 2015-12-04 16:14:57 -02:00
Claudio Sanches b530449774 [API] Created method to get product attribute terms 2015-12-04 16:02:31 -02:00
Claudio Sanches a7cfcddd95 Created wc_attribute_taxonomy_name_by_id() function 2015-12-04 16:02:07 -02:00
Shiva Poudel b3cd28e323 Added textarea widget form field 2015-12-04 21:23:19 +05:45
Mike Jolley 1c364e79e4 Enforce min and max
Closes #9761
2015-12-04 14:53:25 +00:00
Claudio Sanches d01f1eea3c Fixed webhook "Delete Permanently" link
cc @mikejolley
2015-12-04 12:41:35 -02:00
Claudio Sanches 805ac71cf3 Merge branch 'master' of github.com:woothemes/woocommerce 2015-12-04 12:39:22 -02:00
Claudio Sanches fe9320ffa3 [2.4] Fixed webhook trash link by allowing post type ui, closes #9759 2015-12-04 12:39:12 -02:00
Mike Jolley 1b5af9e188 Output the wp.template instead of passing in 2015-12-04 14:28:32 +00:00
Mike Jolley 6cb11d5cc0 Use wc_get_template_html 2015-12-04 13:39:57 +00:00
Mike Jolley 2c023a2847 Pass the wp.template to the script and append so its added to the page once when needed 2015-12-04 13:26:44 +00:00
Mike Jolley 885dab8efc wc_get_template_html - New helper to get the html from a template file 2015-12-04 13:26:24 +00:00
Mike Jolley bcdce81606 Ping webhook delivery URL on save and show errors
Closes #9751 @claudiosmweb
2015-12-04 12:47:30 +00:00
Mike Jolley 9f53a2bf25 Merge pull request #9754 from pmgarman/add-virtual-filter
Allow WC_Product::is_virtual() to be filtered
2015-12-04 11:54:16 +00:00
Mike Jolley 948a8f5c47 Filters for loop add to cart
Closes #9753
2015-12-04 11:50:37 +00:00
Patrick Garman eb3dc97df9 Add filter to WC_Product::is_virtual() 2015-12-03 20:52:27 -05:00
Claudio Sanches 54f714e184 [API] Introduces expand filter for orders
Show full products, taxes and coupons data.

Usage: ?filter[expand]=products,taxes,coupons

Closes #9551

cc @mikejolley
2015-12-03 19:05:37 -02:00
Job Thomas a16de4d334 Edit/add campaign parameters to all links in the help tab (and change the medium from Wizard to Help) 2015-12-03 17:37:41 +02:00
Job Thomas 396d18a799 Editing campaign parameters Onboarding Wizard 2015-12-03 17:24:23 +02:00
Mike Jolley 60a7d034b1 Sample addon data 2015-12-03 14:04:36 +00:00
Mike Jolley 10490d640c No notices 2015-12-03 13:42:58 +00:00
Mike Jolley 177892b9c3 Refactored the addons screens to use new json files 2015-12-03 13:38:13 +00:00
Mike Jolley 4cf699ed0a Update coupon label
Closes #9748
2015-12-03 12:02:04 +00:00
Mike Jolley 2b96721550 Merge branch 'pr/9743' 2015-12-03 10:52:00 +00:00
Mike Jolley ef98a2d79c Compare type 2015-12-03 10:51:07 +00:00
Mike Jolley 12db1d4637 Notify users of no variations but leave status as is.
Closes #9713
2015-12-03 10:14:00 +00:00
Mike Jolley 8f951d449a Only fade in image if variation has children 2015-12-03 09:58:37 +00:00
Mike Jolley d585e65e5a Use cache and invalidation for taxes
Closes #9712
2015-12-02 15:53:54 +00:00
Mike Jolley 2fce99759a [2.4] Ensure numeric 2015-12-02 15:53:54 +00:00
Claudio Sanches 112f3bfc32 Merge pull request #9723 from shivapoudel/widget-field-class
Added support for class in each widget fields
2015-12-02 13:40:41 -02:00
Claudio Sanches aa5e928dc1 Fixed coding standards, code blocks and properly escape WC_Embed methods 2015-12-02 11:04:12 -02:00
Claudio Sanches 37d7dcb396 Prevent erros when unregister shipping methods, closes #9740 2015-12-02 10:46:14 -02:00
Mike Jolley 37fb4d435a Merge remote-tracking branch 'origin/master' 2015-12-02 12:42:17 +00:00
Mike Jolley 350078b779 Merge branch 'pr/9708' 2015-12-02 12:42:09 +00:00
Mike Jolley 5fccf41771 Only show rating if rated 2015-12-02 12:37:43 +00:00
Mike Jolley 20afa89528 Add to cart for simple products only 2015-12-02 12:36:56 +00:00
Mike Jolley 1842f8e3b5 Basic styles and buttons, including functional cart button 2015-12-02 12:29:47 +00:00
Mike Jolley 1300307d40 Use full short description rather than excerpt 2015-12-02 12:03:04 +00:00
Claudio Sanches f954886635 [2.4] Fix SKU slash madness in quick edit #9721 2015-12-02 09:52:16 -02:00
Mike Jolley 869dee2726 No need for rating HTML as we have no styling 2015-12-02 11:50:41 +00:00
Mike Jolley 328a84d278 Floatval to get rid of stray decimals 2015-12-02 11:46:51 +00:00
Mike Jolley 4b87b0fbdc [2.4] Fix SKU slash madness
Fixes #9721
2015-12-02 11:22:11 +00:00
Mike Jolley 520192e6a9 [2.4] Sanity check for min/max quantity
Fixes #9733
2015-12-02 10:44:41 +00:00
Shiva Poudel 2881587c44 Don't use key as default class 2015-12-02 15:47:57 +05:45
Claudio Sanches 2529bd2a4c [API] Allow query endpoints with all status, closes #9738 2015-12-01 22:35:25 -02:00
Claudio Sanches 0b789ed216 [2.4] [API] Fixed early order status change
Closes #9672
2015-12-01 20:04:17 -02:00
Claudio Sanches 3e355ef538 [2.4] [API] Delete product parent transients
Closes #9595
2015-12-01 19:26:35 -02:00
Claudio Sanches c68501f666 [2.4] [API] Fixed backorders edit for variations
closes #9618
2015-12-01 19:14:41 -02:00
Claudio Sanches 89d177a48b [2.4] [API] Fixed status when have an invalid timestamp
Change status from 200 to 401

Closes #9737
2015-12-01 18:30:53 -02:00
Claudio Sanches 4aee3da335 Merge pull request #9731 from mitogh/master
Update conditionals in order to follow WP Standards
2015-12-01 16:36:59 -02:00
Claudio Sanches 497cde1a96 Merge pull request #9732 from WPprodigy/breadcrumbs-fix
Fix breadcrumbs for taxonomies
2015-12-01 16:05:33 -02:00
Job Thomas e91b5362ed Replacing support.woothemes.com by woothemes.com/my-account/tickets to decrease attention to support.woothemes.com and get people to the right place in one go 2015-12-01 17:46:03 +02:00
Caleb Burks f53b9924c6 Fix breadcrumbs for taxonomies 2015-12-01 01:31:11 -06:00
mitogh 52a37b3a1f Update conditionals to follow Yoda style 2015-11-30 22:18:58 -06:00
mitogh 44dabb9d73 Update conditionals to use:
- Yoda conditional style:
  https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#yoda-conditions
- And use of strict comparisons
2015-11-30 22:02:00 -06:00
Patrick Rauland 56d06d868e removing comments entirely & replacing with product rating - for product embeds 2015-11-30 15:58:23 -07:00
Patrick Rauland e65d2a3376 removing unused get_product call in embed class 2015-11-30 14:37:01 -07:00
Patrick Rauland d36828c38c adding correct version numbers to embed class 2015-11-30 14:35:11 -07:00
Patrick Rauland 169dbb192c removing methods preventing cloning or otherwise manipulating the class since the whole class is static 2015-11-30 14:33:18 -07:00
Mike Jolley 2e553cf220 Show order refunds in totals
Fixes #9589 @claudiosmweb
2015-11-30 15:25:48 +00:00
Mike Jolley b5a2c2a9d5 Unify all order email tables to use a single template
Closes #9587

@claudiosmweb @jameskoster
2015-11-30 15:16:23 +00:00
Mike Jolley fd9dac0f20 Revised get_cart_contents_weight and get_cart_contents_count
Closes #9656
2015-11-30 13:12:12 +00:00
Mike Jolley 3b409f1bbf For coupons with category restrictions, respect the category hierarchy.
Closes #9704
2015-11-30 12:29:16 +00:00
Mike Jolley 7fef09dd87 Fix notice in flat rate 2015-11-30 12:15:49 +00:00
Mike Jolley 5f940f7877 Send status headers to prevent 404s on wc-ajax
Fixes #9703
2015-11-30 12:10:31 +00:00
Mike Jolley 77a54fdd68 Use ids for flat rate shipping class costs and handle bw compat
Closes #9715
2015-11-30 11:15:19 +00:00
Shiva Poudel 532c1f9474 Added support for class in each widget fields 2015-11-30 12:11:29 +05:45
Claudio Sanches eeafb202aa [API] Save variation description, closes #9663 2015-11-29 19:57:08 -02:00
roykho 887d37583c Seperate variation description field from shipping div container 2015-11-28 07:20:47 -08:00
Lee Willis adb4a7aa0b Avoid fatal error due to duplicate params 2015-11-27 22:49:01 +00:00
Mike Jolley 35f9a89012 Fix attribute creation on import
Closes #9697
2015-11-27 14:28:20 +00:00
Mike Jolley f408dcdabc RAW escape return URLs in PayPal Standard
Tested with default and pretty permalinks. Fixes #9638
2015-11-27 14:00:14 +00:00
Mike Jolley 00f5317621 Merge pull request #9581 from shivapoudel/validation
Add Js Validation for price and dimension field in product quick edit…
2015-11-27 13:07:38 +00:00
Mike Jolley be6d3c6627 Merge branch 'pr/9706' 2015-11-27 13:04:31 +00:00
Mike Jolley d03020d7c6 escape and add to both notifications 2015-11-27 13:04:24 +00:00
Mike Jolley 73f763bb64 Merge branch 'pr/9680' 2015-11-27 13:02:06 +00:00
Mike Jolley 3d7a40e41f spacing 2015-11-27 13:01:58 +00:00
Mike Jolley 75529edbe5 Merge branch 'pr/9628' 2015-11-27 13:00:39 +00:00
Mike Jolley 03d9239f40 Correct variable name 2015-11-27 13:00:08 +00:00
Mike Jolley fd5dd4cfb7 h2 > h1 2015-11-27 12:27:27 +00:00
Mike Jolley 615c262f6f Function exists for wp_get_attachment_image_srcset and sizes
Sizes #9714
2015-11-27 11:30:47 +00:00
Patrick Rauland 79f6ff347f removing copy pasta 2015-11-25 17:24:48 -07:00
Patrick Rauland 8284bb3319 changing how WooCommerce products display when theyre embedded 2015-11-25 17:03:37 -07:00
David Anderson febaeb8b63 Include link to order in PayPal refund email, for convenience
Includes a link to the relevant order in the PayPal refund email, so that the shop owner doesn't have to manually bring up the dashboard, search the for order, and click through.
2015-11-25 22:07:52 +00:00
Mike Jolley f9756b29f1 WP_MEMORY_LIMIT defaults to 40MB, but only sets that value if more than system memory. 2015-11-25 18:53:20 +00:00
Mike Jolley 28dcb9ddbc Tweak how sale and regular prices are handled
Prevents issue with PHP 5.6 and Suhosin sending NULL values. Fixes #9698
2015-11-25 18:40:49 +00:00
Claudio Sanches 5f46968f8c Hide style attribute add_to_cart shortcode when is empty
closes #9694
2015-11-25 12:26:58 -02:00
Tiago Noronha 3fdec7f4a8 Init added variables if product doesnt have featured image. 2015-11-24 23:00:25 +00:00
Claudio Sanches 8c805eccf0 Merge pull request #9632 from woothemes/issue-9584/fix-price-ordering
Fix invalid orderby key name for orderby pricing closes #9584
2015-11-24 19:11:52 -02:00
roykho aa7d583656 Fix lingering product gallery attachment ids when delete from media fixes #9681 2015-11-23 22:01:30 -08:00
Claudio Sanches 7945857b2e Merge pull request #9684 from justinshreve/bulk-edit-price-product-types
Add filter to set which product types can have their "simple prices" updated by bulk edit
2015-11-23 17:59:23 -02:00
Mike Jolley 557ce96842 Merge pull request #9685 from tiagonoronha/9624-variation-image-srcset-sizes
[2.4] Adds support for srcset and sizes attributes in variation images. @claudiosmweb
2015-11-23 18:52:58 +00:00
Mike Jolley 4b47f98132 Merge pull request #9682 from iamtakashi/twentysixteen
[2.4] Edit for Twnety Sixteen
2015-11-23 18:50:45 +00:00
Mike Jolley 8684ea0543 Merge pull request #9667 from krautnerds/fix-variation-modified-date
Bump modified date of variations on update
2015-11-23 18:48:33 +00:00
Mike Jolley 7b5bd7d4b8 Merge pull request #9669 from ymazuz/email-from-filters
Add filters for From name/address to WC_Email (#9653)
2015-11-23 18:47:52 +00:00
Tiago Noronha 105105db06 Adds support for srcset and sizes attributes in variation images. 2015-11-23 16:35:11 +00:00
Justin Shreve aa04a9dffb Add a filter to set which products can have their "simple prices" updated by the bulk edit code. 2015-11-23 07:47:41 -08:00
Takashi Irie d88ba80f84 Edits for Twnety Sixteen 2015-11-23 11:55:50 +00:00
Mauro Mascia 5a95bcf185 Check if the endpoints array key is set and not empty.
For some reasons in a client's website, I've found that "order-pay" is set but is empty (even if in the backoffice the variable is written in the endpoint's form). So, it is better to check with !empty, doesn't it?
2015-11-22 20:00:59 +01:00
Claudio Sanches 753014da5a Merge pull request #9631 from woothemes/transient-tweaks
Transient tweaks
2015-11-21 22:48:14 -02:00
Yoni Mazuz 9e5098627c Fix woocommerce_email_from_* filtering
- apply filters before sanitizing
- send entire $this as argument so hooked functions can access any properties of the WC_Email (subclass) instance
2015-11-20 13:00:37 -05:00
Florian Ludwig 1d87c0c827 Bugfix: Used wrong date format for database 2015-11-20 18:09:47 +01:00
Florian Ludwig 787ebb0ef5 Bugfix: use "post_modified" instead of "post_date"; Moved modified_date update to woocommerce_update_product_variation code path
We should only set „post_modified“ if we are updating the variation
2015-11-20 18:00:10 +01:00
Claudio Sanches d941d5e325 Improved add_query_arg() use in WC_Admin_Addons::output_storefront_button() 2015-11-20 13:27:52 -02:00
Florian Ludwig 477da091db Bump modified date of variation on update 2015-11-20 16:26:33 +01:00
Claudio Sanches 784975bc31 Merge pull request #9649 from woothemes/contextual-storefront-button
Makes the "Try Storefront" button more contextual
2015-11-20 13:23:10 -02:00
Matty 2b601167f5 Removes unnecessary passing of when calling the output_storefront_button() method. 2015-11-20 09:33:51 +02:00
Yoni Mazuz afb19228a9 Add filters for From name/address to WC_Email (#9653)
- add woocommerce_email_from_name filter that accepts name, email ID,
and object
- add woocommerce_email_from_name filter that accepts name, email ID,
and object
- these allow return address info to be set conditionally, unlike
wp_mail_from and wp_mail_from_name, which don’t pass any context to
hooked functions
2015-11-19 14:37:50 -05:00
Illimar Tambek d91dfb6fe6 Introduce woocommerce_recorded_sales action hook 2015-11-19 18:07:04 +02:00
Matty 5a0a8ef2f2 Adds Google campaign tags for tracking the various states of the 'Try Storefront' button. 2015-11-19 16:44:04 +02:00
Matty 94da31ef01 Adjusts the default 'Try Storefront' button to direct to the Storefront listing on WooThemes.com, even if Storefront and a child theme are in use. 2015-11-19 14:35:20 +02:00
Matty 4fc1023d0a Adjusts the 'try Storefront' button on the 'Addons' screen to be more contextual, depending on the current theme/child theme combination activated. 2015-11-19 14:27:34 +02:00
roykho 9078e30ea4 Fix acronym zip to be all capitals fixes #9641 2015-11-18 15:32:23 -08:00
roykho c7aed861cd Fix invalid orderby key name for orderby pricing closes #9584 2015-11-17 07:59:53 -08:00
Mike Jolley 4595befb76 Pass product type with variation bulk edit
Closes #9570
2015-11-17 15:25:48 +00:00
Claudio Sanches caa69304c9 Merge pull request #9626 from mitogh/master
Remove unnecessary lines of code and update code style for conditionals.
2015-11-17 12:33:22 -02:00
Mehdi Esmaeili 101c7f47e1 Better Documentation: Put throws tag 2015-11-17 16:21:42 +03:30
Dominic 5ef59c511b Optimize filter loop
The current method loops through every defined hook in the WordPress
environment (over 400 on one of my tests). This method only checks the 3
filters in question.
2015-11-17 00:27:44 -08:00
mitogh fb7de12235 Remove unnecessary use of ternary operator.
Since the operations are going to return the same values of true or
false after the evaluation of each statment it's easier just returing
the result of evaluation of those statements.
2015-11-17 00:08:06 -06:00
mitogh 85ea9c27ae Update conditionals to follow the Yoda conditional style 2015-11-17 00:04:59 -06:00
mitogh e8de40f6b0 Remove empty blank spaces 2015-11-17 00:04:48 -06:00
Mike Jolley aeb48e35a7 [2.4] Removes Switzerland from VAT definition
Confirmed outside of EU and not applicable to things such as EU VAT
@hussong
2015-11-16 16:00:51 +00:00
Mike Jolley e94c2b86ca Remove shipping/tax estimation notice and show in context when needed.
Avoids needing complex logic for something which could easily be typed
onto the page by store owner if needed.

Also adjusts line height and padding in cart collaterals

Closes #9578
2015-11-16 15:59:47 +00:00
Mike Jolley 1a59d14868 Point to correct element and make trigger manual
Closes #9609
2015-11-16 14:21:53 +00:00
Claudio Sanches a62ea22d9c [2.4] Fix auth endpoint urls, closes #9614 2015-11-16 10:01:20 -02:00
Mehdi Esmaeili 588ff1029a Remove duplicate array key 2015-11-15 02:42:47 +03:30
Claudio Sanches d931405156 Fixed the type returned when get_stock_quantity() is empty
Since expect return an integer value, we can't return an empty string.
This can generate some kinds of errors like:

 '' >= 1 returns false
 '' >= -1 returns true

This can be a problem comparing stock quantity like we do in
WC_Product::has_enough_stock()

But using null we have:

 null >= 1 returns false
 null >= -1 returns false

cc @mikejolley

ref #9598
2015-11-14 15:53:36 -02:00
Mike Jolley b59ec6de76 Move var definition to abstract 2015-11-14 16:39:53 +00:00
Mike Jolley 3a096b3b64 Remove transient from get_total_stock and combine into abstract
Grouped and variable methods were identical. Caching benefit comes from
get_children
2015-11-14 16:34:47 +00:00
Mike Jolley 6892d73ea9 Store product ids for terms in term meta rather than transient
Data is kept in sync by looking at when terms are set for an object and
then clearing the meta for old and new terms.
2015-11-14 16:25:09 +00:00
Mike Jolley 28b02fd3dd Clean up woocommerce_products_will_display 2015-11-14 15:44:15 +00:00
Mike Jolley 7b45525dc5 Clear coupon cache on save 2015-11-13 23:15:29 +00:00
Mike Jolley b474dcb879 Use WC_Cache_Helper for session class prefixes 2015-11-13 23:12:44 +00:00
Mike Jolley 851fc2a442 Use get_cache_prefix in orders class 2015-11-13 23:11:05 +00:00
Mike Jolley e6859dc0f4 Change get_coupon_id_from_code to use wp_cache instead of transient
Persistent caching is more relevant here. Smaller stores won’t see much
gain from using the transient.

This commit also removes the woocommerce_coupon_code_query filter due
to limitations of it being within a prepare() call. Checked github and
no plugins appear to use this filter so should have minimal impact.
woocommerce_get_coupon_id_from_code filter added in place.
2015-11-13 23:09:35 +00:00
Mike Jolley 78ec168429 Use transient name directly 2015-11-13 23:06:51 +00:00
Mike Jolley 9ba5b7ee26 Add helpers to get and increment cache prefixes
Allows wp_cache to be invalidated with 1 call
2015-11-13 23:06:38 +00:00
Mike Jolley bc6fedd000 Space missing 2015-11-13 21:20:30 +00:00
Mike Jolley 3082c5bba6 wc_related_ and get_related method tweaks
Remove use of multiple expiring transients. See function docblock for
explanation.
2015-11-13 21:14:42 +00:00
Mike Jolley 18e98d8b20 Store shipping rates in session
Rather than use a session which is independent of customer sessions,
store the rates in the session itself to avoid multiple transients.
2015-11-13 20:53:44 +00:00
Mike Jolley 3ceed757bd Store rating and reviews in postmeta rather than transients
These don’t change often, and as long as we listen for comment count
update events will be kept in sync.
2015-11-13 20:41:20 +00:00
Mike Jolley 70d9f58811 Version not needed for wc_var_prices
This transient doesn’t need to expire often because the hashes will be
unique if taxes change.

This change means a variable product will only use 1 transient rather
than many.
2015-11-13 20:01:42 +00:00
Ibrahim Ibn Dawood 329fa1f3bf generated woocommerce.css file 2015-11-13 15:19:04 +05:30
Ibrahim Ibn Dawood 094b42484e added min rating to active filters 2015-11-13 15:17:27 +05:30
Ibrahim Ibn Dawood 28fbdaa4c4 added min_rating query arg to layered nav 2015-11-13 15:17:02 +05:30
Ibrahim Ibn Dawood 584a8dac7c added min_rating query arg to price filter 2015-11-13 15:16:32 +05:30
Ibrahim Ibn Dawood 91119e05c2 hooked rating_filter_init to init 2015-11-13 15:13:48 +05:30
Ibrahim Ibn Dawood 8deac2c563 added rating_filter method to WC_Query 2015-11-13 15:11:44 +05:30
Ibrahim Ibn Dawood c369fac02b registered rating filter 2015-11-13 15:09:20 +05:30
Ibrahim Ibn Dawood 43474e7816 added class WC_Widget_Rating_Filter 2015-11-13 15:08:27 +05:30
roykho e5ca21f1e3 Change to WP convenience function 2015-11-12 13:19:57 -08:00
roykho 5cd3150c94 Fix order item name escaping apostrophe closes #9583 2015-11-12 08:04:21 -08:00
Claudio Sanches bb24369119 Merge pull request #9582 from shivapoudel/currency-symbol
Fixed rupee sign for currency in product data sale and regular price
2015-11-12 10:23:00 -02:00
Shiva Poudel 7934d6fd29 Add Js Validation for price and dimension field in product quick edit panel 2015-11-12 04:50:57 +05:45
Shiva Poudel 853530cece Fixed rupee sign for currency in product data sale and regular price 2015-11-12 03:00:54 +05:45
Fredrik Forsmo 3440985a8a Check so `product_base` exists before using it
`product_base` index in `$permalinks` array in `prepend_shop_page` method don't always exists for a new WooCommerce site, doing a isset check before will solve `Notice: Undefined index: product_base` error.
2015-11-11 19:44:23 +01:00
Claudio Sanches 84ac454c3e Fixed settings messages location in WP 4.4, closes #9575 2015-11-11 12:18:31 -02:00
Claudio Sanches 555ef9abdf Merge pull request #9573 from shivapoudel/shipping-class-fix
Shipping class fix
2015-11-11 11:30:07 -02:00
Shiva Poudel 3a52125b93 Updated admin menu docblock version 2015-11-11 18:29:00 +05:45
Shiva Poudel c0c587103c Fix - Shipping classes menu highlight, Closes #9538 2015-11-11 15:12:31 +05:45
Shiva Poudel d92dcfaba0 Fix - Shipping classes admin page access, #9538 2015-11-11 15:07:43 +05:45
Claudio Sanches 57feb4ba9b [API] Added woocommerce_api_uploaded_image_from_url action, closes #9568 2015-11-10 22:59:17 -02:00
Claudio Sanches 357254f928 Merge pull request #9567 from shivapoudel/rupee-sign
Rs. currency symbol can use rupee sign html entity
2015-11-10 22:50:34 -02:00
Claudio Sanches e1bb5830c8 Merge pull request #9569 from shivapoudel/param
Tweak missing fallback param in geolocate_ip
2015-11-10 22:47:09 -02:00
Shiva Poudel 70496e5864 Tweak missing fallback param in geolocate_ip 2015-11-11 06:19:01 +05:45
Claudio Sanches ebfe703d62 Merge pull request #9564 from shivapoudel/unused
Remove unused variable declaration
2015-11-10 19:16:50 -02:00
Shiva Poudel 6a268f003f Rs. currency symbol can use rupee sign html entity
@see http://www.w3schools.com/charsets/ref_utf_currency.asp
2015-11-11 01:12:48 +05:45
Maxwell Morgan da6eeebf81 Update class-wc-countries.php
Typo on ether -> either
2015-11-10 11:51:26 -05:00
Claudio Sanches 976f83c5be Merge pull request #9555 from shivapoudel/minor-change
Improve docblock and coding standard
2015-11-10 12:49:15 -02:00
Shiva Poudel d31859ab6c Remove unused variable declaration 2015-11-10 16:53:45 +05:45
Shiva Poudel f45d367d9f Tweak docblocks in GeoIP class 2015-11-10 16:30:36 +05:45
Shiva Poudel 47489fb800 Use of single quotes 2015-11-10 16:10:19 +05:45
Ibrahim e2903ef450 Added rupee symbol for INR
The rupee symbol (http://www.fileformat.info/info/unicode/char/20b9/index.htm) has been adopted since 2010
2015-11-10 13:26:18 +05:30
Shiva Poudel 33ad23f371 Improve help tip docblock and remove space 2015-11-10 07:13:53 +05:45
Claudio Sanches 9a926aef4f Updated wc_checkout_is_https() docblock 2015-11-09 23:08:10 -02:00
Claudio Sanches c471a47910 Improved WC_Geo_IP logger
Removed not useful "GeoIP API: fseek failed" log messages
2015-11-09 22:58:22 -02:00
Claudio Sanches 1512d448c1 Removed name param from SimplifyCommerce.generateToken 2015-11-09 22:49:53 -02:00
Claudio Sanches 3959d4fe3e Merge pull request #9553 from woothemes/issue/simplify-commerce-address-fields
Fix - address fields were not properly being passed to Simplify via t…
2015-11-09 22:43:11 -02:00
roykho 84436f4a11 Fix hosted payments address fields were not passing to simplify 2015-11-09 16:37:55 -08:00
Claudio Sanches 770f6793fc Check if WC_Logger exists before try to use in WC_Geo_IP class 2015-11-09 22:08:22 -02:00
Claudio Sanches 98abbf0184 Fixed fseek check in WC_Geo_IP class 2015-11-09 22:03:22 -02:00
roykho b49b0b0133 Fix - address fields were not properly being passed to Simplify via token 2015-11-09 15:36:52 -08:00
David Anderson b022769c2a Prevent PHP notice
Prevents this PHP notice (on my localhost/testing setup):

PHP Notice:  Undefined offset: -16776960 in wp
-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1608

Note that the geoip_country_code_by_addr() method, a few lines further down, already makes a similar check to this one which is being added for IPv6.
2015-11-09 12:17:55 +00:00
Claudio Sanches 89de396709 [2.4] Allow bulk edit sale_prices as 0 2015-11-06 14:42:51 -02:00
Mike Jolley 5b8d27fe8a Only pass 2 args 2015-11-06 15:35:25 +00:00
Mike Jolley 19da7cf8bc No need to delete termmeta if using the new tables 2015-11-06 15:33:23 +00:00
Mike Jolley d64bcd70bd Only install termmeta table on older installs 2015-11-06 15:33:12 +00:00
Mike Jolley f84609a9dc Migrate term meta functions to WP 4.4 versions if installed 2015-11-06 15:33:02 +00:00
Nicola Mustone c9da4f928a check if ABSPATH is defined 2015-11-06 10:22:19 +01:00
Claudio Sanches 9adb04d612 [CLI] Created command to update tax rate 2015-11-06 02:50:07 -02:00
Claudio Sanches 394342c287 [API] Fixed action and removed transient functions from taxes PUT endpoint 2015-11-06 02:44:02 -02:00
Claudio Sanches 74d1492fe7 [CLI] Created command to get tax rate 2015-11-06 02:31:58 -02:00
Claudio Sanches 1b54117a8b [API] Created commands to delete tax rates and tax classes and fixed the list_class command name 2015-11-06 02:19:47 -02:00
Claudio Sanches 18cf62ed66 [API] Created commands to create tax rates and tax classes 2015-11-06 01:58:08 -02:00
Claudio Sanches 647a2e7498 [API] Created commands to list tax rates and tax classes 2015-11-06 01:37:57 -02:00
Claudio Sanches ef7046ea76 [CLI] Created initial tax command class 2015-11-06 00:23:46 -02:00
Claudio Sanches af89582251 Merge pull request #9526 from shivapoudel/nepal-data
Update Nepali Districts with Zones
2015-11-05 19:42:40 -02:00
Mike Jolley d0b7335e33 Merge pull request #9528 from shivapoudel/typo
Typo fix in tools for uninstall
2015-11-05 19:10:47 +00:00
Shiva Poudel 592c7aee02 Typo fix in tools for uninstall 2015-11-06 00:10:14 +05:45
Shiva Poudel 8300192bf7 Zone and postal code updated 2015-11-05 23:25:30 +05:45
Shiva Poudel a1550fab77 Updated Nepal local settings 2015-11-05 23:06:15 +05:45
Scrutinizer Auto-Fixer 08efaf84df Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-11-05 16:05:03 +00:00
Mike Jolley 4f0cc137cc Enable SQL_BIG_SELECTS in reports
@claudiosmweb
2015-11-05 15:45:19 +00:00
Mike Jolley 4e5baf23aa Cache get_item_meta_array for better performance
Closes #8810 @claudiosmweb
2015-11-05 15:21:28 +00:00
Mike Jolley cb0e61bd4e Set prefix_num first time 2015-11-05 15:21:06 +00:00
Mike Jolley 5e62143767 Update tools text Closes #9512 2015-11-05 14:44:05 +00:00
James Collins 45972cf92b Fix duplicate key errors during db upgrade/install
Running phpunit tests currently outputs the following errors/warnings:

WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY  session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_Command->handleArguments, PHPUnit_TextUI_Command->handleBootstrap, PHPUnit_Util_Fileloader::checkAndLoad, PHPUnit_Util_Fileloader::load, include_once('/srv/www/woocommerce/htdocs/wp-content/plugins/woocommerce/tests/bootstrap.php'), WC_Unit_Tests_Bootstrap::instance, WC_Unit_Tests_Bootstrap->__construct, require_once('/srv/www/wordpress-develop/tests/phpunit/includes/bootstrap.php'), require_once('wp-settings.php'), do_action('setup_theme'), call_user_func_array, WC_Unit_Tests_Bootstrap->install_wc, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY  session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_Command->handleArguments, PHPUnit_TextUI_Command->handleBootstrap, PHPUnit_Util_Fileloader::checkAndLoad, PHPUnit_Util_Fileloader::load, include_once('/srv/www/woocommerce/htdocs/wp-content/plugins/woocommerce/tests/bootstrap.php'), WC_Unit_Tests_Bootstrap::instance, WC_Unit_Tests_Bootstrap->__construct, require_once('/srv/www/wordpress-develop/tests/phpunit/includes/bootstrap.php'), require_once('wp-settings.php'), do_action('setup_theme'), call_user_func_array, WC_Unit_Tests_Bootstrap->install_wc, WC_Install::install, WC_Install::create_tables, dbDelta

WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY  session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_check_version, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY  session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_check_version, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDelta
.WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY  session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_install, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY  session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_install, WC_Install::install, WC_Install::create_tables, dbDelta

dbDelta requires very specific syntax (as per http://codex.wordpress.org/Creating_Tables_with_Plugins).
2015-11-05 13:43:56 +08:00
Mike Jolley 61e746730f wc_transaction_query function
Only uses transactions if enabled, or read uncommitted is supported
#9279
2015-11-04 14:11:40 +00:00
Mike Jolley 48f8665e2d Hide SQL errors during ajax requests
Avoids invalid JSON
2015-11-04 13:35:32 +00:00
Mike Jolley 7eb45ba16f Added wc_array_cartesian function to generate variations in a logical order.
Fixes #9515 @claudiosmweb
2015-11-04 12:14:51 +00:00
Claudio Sanches e1c2054b5c Improved how geolocation js check for pages where shouldn't load
Simplified all checks in just one
Less PHP and JS conditionals

cc @mikejolley
2015-11-04 01:51:54 -02:00
Claudio Sanches fde904b27a [2.4] Fixed redirection loop on customizer screen
It's caused an redirection loop on the customizer page when
activated "Geolocate (with page caching support)" option

cc @mikejolley
2015-11-04 01:20:16 -02:00
Claudio Sanches 58468d8821 [CLI] Fixed sanitization for product attributes 2015-11-03 17:11:54 -02:00
Shiva Poudel d9e8057df3 Tweak the dockblocks and periodic-ending fix 2015-11-04 00:05:08 +05:45
Mike Jolley 1756aa8fca Use help tip function in email table. 2015-11-03 16:12:13 +00:00
Mike Jolley 1b38f380af Merge remote-tracking branch 'origin/master'
Conflicts:
	includes/emails/class-wc-email.php
2015-11-03 16:09:01 +00:00
Claudio Sanches 439141bbe3 Fixed undefined error on WC_Geo_IP 2015-11-03 13:55:26 -02:00
Mike Jolley 1e945026b3 Tweak screen description 2015-11-03 15:41:31 +00:00
Mike Jolley 8457dbb57d Display if emails are manually sent 2015-11-03 15:40:10 +00:00
Mike Jolley d95f863d79 Show descriptions inline 2015-11-03 15:04:29 +00:00
Mike Jolley 52553968c5 Use desc_tip for emails 2015-11-03 14:59:48 +00:00
Mike Jolley 3c6a870335 Email class tidyup 2015-11-03 14:57:39 +00:00
Claudio Sanches c6ab828aa1 [2.4] Improved error handling in WC_Geo_IP
Implemented our log system to register in background any errors

Closes #9501
2015-11-03 12:30:33 -02:00
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Claudio Sanches efa19f799d Fixed some coding standards for docblocks 2015-11-03 10:28:01 -02:00
Mike Jolley 5f65494e27 Restructure emails admin to avoid listing emails along the top
Moves emails to a table on the settings screen.

Also tweaks some section text and moves descriptions to tooltips for a
less cluttered interface.
2015-11-02 16:27:00 +00:00
Mike Jolley 48b93b937f Added admin order/payment failed notification
Closes #8617
2015-11-02 14:45:24 +00:00
Mike Jolley 9ac43ec4d4 Cleanup 2015-11-02 13:02:23 +00:00
Mike Jolley 798cf9a50b Merge pull request #9485 from helgatheviking/email-ids-on-hooks
pass email object to email templates and template hooks
2015-11-02 13:02:04 +00:00
Mike Jolley 7fdb93329c Merge branch 'revised-single-variation-cart-template'
Conflicts:
	includes/admin/views/html-admin-page-status-report.php
2015-11-02 11:26:49 +00:00
Mike Jolley c29517e87e Merge branch 'pr/9471' 2015-11-02 11:24:01 +00:00
Mike Jolley aec0e0e327 supports() method which mirrors gateways
Closes #9471
2015-11-02 11:23:50 +00:00
Mike Jolley 3ca5022649 Added template files for the customer details list in emails. emails/email-customer-details.php
Closes #9253
2015-11-02 10:41:05 +00:00
Mike Jolley dfc1e0a625 Merge remote-tracking branch 'origin/master'
Conflicts:
	includes/admin/views/html-admin-page-status-report.php
2015-11-02 10:02:35 +00:00
Mike Jolley 781adc121c Check parent theme version
Closes #9477
2015-11-02 10:01:42 +00:00
Mike Jolley f4c24ee824 Make from name methods match 2015-11-02 09:11:25 +00:00
Claudio Sanches 494dd9dae2 Merge pull request #9482 from ahmadawais/patch-5
Better Documentation: Period Endings
2015-11-01 19:24:14 -02:00
Kathy Darling f893d73af6 pass email object to email templates and template hooks 2015-10-31 23:04:59 -05:00
Ahmad Awais d690e43345 Better Documentation: Period Endings
As per the [PHP documentation standards in the core handbook](https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/), this commit helps make the documentation better by adding:

- Period endings
2015-11-01 00:12:12 +05:00
Ahmad Awais 9954602229 Better Documentation: Period Endings
As per the [PHP documentation standards in the core handbook](https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/), this commit helps make the documentation better by adding:

- Period endings
- Short descriptions
- Long descriptions
2015-11-01 00:10:45 +05:00
Claudio Sanches ecb3ca2ea3 Merge pull request #9480 from ahmadawais/patch-3
Better Documentation: Period Endings
2015-10-31 17:05:38 -02:00
Claudio Sanches 317aeb39f1 Merge pull request #9478 from WPprodigy/system-status-fix2
Typo in system status report
2015-10-31 17:03:48 -02:00
Ahmad Awais b07854ed77 Better Documentation: Period Endings 2015-11-01 00:01:46 +05:00
Caleb Burks 46b43f4c7c Typo in system status report 2015-10-31 12:00:51 -04:00
Caleb Burks 10bb2c6ca1 Check for child themes in the .org repo 2015-10-31 11:23:07 -04:00
Kathy Darling 856d192bff Use generic `ajax_add_to_cart` class for adding items in the loop to the cart via ajax. 2015-10-30 12:54:49 -05:00
Mike Jolley 37ed73f5b4 Merge pull request #9469 from javorszky/fix-dockblock-ipnhandler
Fix docblock for validate_receiver_email
2015-10-30 15:26:03 +00:00
Gabor Javorszky 2fce596b25 Fix docblock for validate_receiver_email 2015-10-30 15:11:41 +00:00
Claudio Sanches a8ddd8acf9 Disabled Jetpack for products
Implemented the new Jetpack jetpack_comment_form_enabled_for_* filter

Closes #9152
2015-10-30 13:08:44 -02:00
Mike Jolley f5933bf9d9 Fix active state check
Closes #9467
2015-10-30 13:31:52 +00:00
Mike Jolley ad38f6e34f Add pay link to order screen
Closes #9428
2015-10-30 13:29:16 +00:00
Mike Jolley 92310feb98 Merge pull request #9457 from woothemes/9251-wc-cart-functions
Moving some methods from WC_Cart to new functions
2015-10-30 13:12:55 +00:00
Claudio Sanches 0ff88deb98 Improved wc_coupons_enabled() name and description 2015-10-29 17:23:10 -02:00
Mike Jolley afca32a31b Check item_meta_array exists
Fixes #9449
2015-10-29 16:06:23 +00:00
Mike Jolley 5b6e16682c Handle partial/full refund for orders containing free items
Also adds helper method to determine if such as free item exists or
not. Closes #9460
2015-10-29 15:34:33 +00:00
Mike Jolley 871c8591f0 Number format the discount
Closes #9462
2015-10-29 15:23:34 +00:00
Claudio Sanches 4522b68a47 [2.4] [API] Avoid undefined $taxonomy warnings while save variable attributes, closes #9456 2015-10-28 16:31:05 -02:00
Claudio Sanches f3b6870837 Sort get_woocommerce_currencies() items 2015-10-28 16:24:06 -02:00
Claudio Sanches f64ea948f1 Replaced WC()->cart->ship_to_billing_address_only() to wc_ship_to_billing_address_only() 2015-10-28 16:03:24 -02:00
Claudio Sanches 29229ada45 Added deprecated description to WC_Cart methods 2015-10-28 16:01:03 -02:00
Claudio Sanches 3ab4e76cd0 Replaed old WC_Cart methods to the new functions 2015-10-28 15:56:31 -02:00
Claudio Sanches 1caaea7b33 Moved methods from WC_Cart to single functions
Changes:

- WC_Cart::coupons_enabled() to wc_is_coupons_enabled()
- WC_Cart::get_cart_url() to wc_get_cart_url()
- WC_Cart::get_checkout_url() to wc_get_checkout_url()

This methods can be used in any place, but WC_Cart() is present only on
the frontend.
2015-10-28 15:43:31 -02:00
Mike Jolley 327134e471 Merge pull request #9454 from apkoponen/master
WC_Product __get should check for False instead of empty
2015-10-28 09:48:12 -06:00
Mike Jolley 1ff6a27951 Split button from variation display 2015-10-28 13:09:34 +00:00
Mike Jolley f050c804e1 Use wp.template for variation and variation button 2015-10-28 13:04:28 +00:00
Mohsin Rasool 6683baffaa Add Currency Symbol for Pakistan, Issue #9453 2015-10-28 16:13:42 +05:00
Ari-Pekka Koponen 11ab216993 WC_Product __get should check for False instead of empty 2015-10-28 12:45:54 +02:00
Claudio Sanches d6dbb4aec2 Added "Hide empty categories" option on Product Category Widget
Closes #9441
2015-10-27 14:10:32 -02:00
Claudio Sanches 454ffa4677 [2.4] Fixed bulk edit sale_price when empty
This avoid sale_price saved as "0" and update correct update _price
field, related issue: #8076

Closes #9437
2015-10-27 11:27:31 -02:00
Shohei Tanaka 94dc4e310b Customer Name in admin Order list
In Japan we want to use full name order in admin order list.
2015-10-27 06:37:04 +09:00
Claudio Sanches cf6fb76741 Created function to disable author archives for customers
cc @mikejolley
2015-10-26 15:38:44 -02:00
Mike Jolley 59dc92e113 Merge pull request #9417 from woothemes/9381-help-tip-icon-font
Use new "question" mark icon font for Help Tips
2015-10-26 08:45:10 -06:00
Claudio Sanches 4f9e4a87e8 Updated Simplify Commerce lib to version 1.2.0, closes #9420 2015-10-26 11:27:14 -02:00
Claudio Sanches 154dac6d14 [2.4] [API] Fixed attributes save when using non-latin letters
Changed sanitize_title() to wc_sanitize_term_text_based() since
wp_set_object_terms() is creating wrong terms

Closes #9421
2015-10-23 14:38:37 -02:00
Claudio Sanches e91e0a9f5e Changed <i> to <span> in wc_help_tip()
<span> is more semantically correct
2015-10-23 13:17:35 -02:00
Claudio Sanches b85ae9056c Rename wc_add_help_tip() function to wc_help_tip() 2015-10-23 13:09:08 -02:00
Mike Jolley 705fbef31a [2.4] Default selections fix for methods with multiple rates 2015-10-23 13:49:27 +01:00
Mike Jolley 79010b634f Cast grouped product children to int
Avoids invalid or empty data and fixes #9416
2015-10-23 12:52:52 +01:00
Mike Jolley 8279db6679 If redirection to setup wizard does not occur, do not redirect at all 2015-10-23 12:24:04 +01:00
Mike Jolley 12fe4e7a52 Use delimiter in hashing function 2015-10-23 12:02:29 +01:00
Mike Jolley b81fc128ac Use hash_equals when comparing hashes
PHP 5.6+ but WP has a fallback inside.
2015-10-23 12:00:56 +01:00
Claudio Sanches 2e95a68357 Use new "question" mark icon font
Created wc_add_help_tip() function to generate the icons
Replaced all .help_tip elements and [?]

We'll keep the old image and styles in order to maintain backwards
compatibility

Closes #9381
2015-10-23 01:40:52 -02:00
Claudio Sanches c1b46113bc [2.4] Make "Not right now" button on Setup Wizard go to the WP dashboard
closes #9392
2015-10-22 18:17:14 -02:00
Claudio Sanches bfe98a283c [2.4] [API] Fixed editing product variations
Fixed general variations edition and make sync again variations when just
edit a variable product and don't send any 'variations' data

closes #9406
2015-10-22 17:19:16 -02:00
Mike Jolley d363e810d8 Default to first found gateway
Closes #9378
2015-10-22 16:39:15 +01:00
Mike Jolley b3a3a998bb Add trailing slash in get_page_uris to reduce likelihood of conflicts
Fixes #9386
2015-10-22 16:33:05 +01:00
Mike Jolley 63947376db Merge pull request #9336 from woothemes/issue/9268-get-coupon-id-from-code-caching
Cache coupon id from code lookup in a transient.
2015-10-22 09:19:37 -06:00
Mike Jolley 2a651ce64b Merge pull request #9332 from Biont/master
WC_AJAX::calc_line_taxes - Provide a filter after tax calculations are done
2015-10-22 09:17:57 -06:00
Mike Jolley 08365f4145 Merge pull request #9333 from roykho/onboard
[onboard wizard] Remove required attribute from currency_code form el…
2015-10-22 09:03:48 -06:00
Mike Jolley d46e57d9d6 Merge pull request #9318 from woothemes/issue/8458-refactor-verified-purchase-review-meta
Refactor "verified owner" logic to reduce queries and transients.
2015-10-22 09:00:38 -06:00
Mike Jolley 509d59df3d Merge pull request #9391 from krautnerds/fix-login-with-mail-and-whitespace
Fixed login form handling for whitespaces before/after mail address
2015-10-22 07:23:43 -06:00
Mike Jolley db1ecae936 Merge pull request #9405 from javorszky/issue_9404
Shipping calculation results no longer bleed over
2015-10-22 06:57:45 -06:00
Mike Jolley 97e28d7f49 Added wc_checkout_is_https() function helper and added to simplify class
Closes #9408
2015-10-22 12:30:30 +01:00
Mike Jolley 4dbfe1551c Settings API - don't save title fields
Closes #9401
2015-10-22 11:27:39 +01:00
Gabor Javorszky 852ab311e0 Shipping calculation results no longer bleed over
Fixes #9404

Before we decide whether to just return from shipping calculation or
actually calculate it, let's null the values.

Reason for this and not `reset` is because reset also wiped the chosen
shipping method, which might have unintended consequences.

Please test this extensively. You know WooCommerce a lot better than I
do, and I'd like to avoid side effects.
2015-10-21 21:35:58 +01:00
Jeff Stieler d73ef76568 Remove generation of review verification comment meta from 2.5 upgrade routine. 2015-10-20 22:05:17 -06:00
Jeff Stieler 58ec17f76d Use new review verification status retrieval method on single review template and in APIs. 2015-10-20 22:05:17 -06:00
Jeff Stieler 1b370bb64a Helper method to retrieve review verification status from comment meta, generating it on the fly for existing reviews. 2015-10-20 22:05:17 -06:00
Jeff Stieler e9bfa2553c Return verification status in WC_Comments::add_comment_purchase_verification(). 2015-10-20 22:03:30 -06:00
Jeff Stieler a34d58c18f Backfill existing reviews with “verified” comment meta on update to 2.5. 2015-10-20 22:03:29 -06:00
Jeff Stieler 95fe3d47c2 Use review comment meta for verification status in API calls and WP-CLI. 2015-10-20 22:03:29 -06:00
Jeff Stieler 71cfde70c9 Mark a comment as “verified” if the customer leaving it has purchased the product they’re reviewing. 2015-10-20 22:03:29 -06:00
Jeff Stieler 80628e9f97 Store all purchased product ids for a given customer in a single transient. 2015-10-20 22:03:29 -06:00
Jeff Stieler 883170e261 Cache coupon id from code lookup in a transient. 2015-10-20 21:42:46 -06:00
Florian Ludwig b549c73dea Fixed bug where customer couldn't log in because of whitespace after mail address 2015-10-20 21:20:50 +02:00
Claudio Sanches 1ea5b8433f Escape normalized for the woocommerce_variation_option_name filter 2015-10-18 10:42:44 -06:00
Ewout Fernhout ab85ebfbc4 check if product exists
fixes #9363
2015-10-15 09:43:53 +02:00
Mike Jolley da8cae596b Simplify cart shipping template + text
Also prevents calculate shipping showing multiple times when multiple
packages are present.

@jameskoster @claudiosmweb
2015-10-13 15:41:21 -06:00
Claudio Sanches 5372579546 Fixed the hook name for #9290
cc @jeffstieler
2015-10-13 15:13:31 -06:00
Claudio Sanches 5c6206e511 [2.4] Fixed WC_API_Orders::set_line_item() for v2 #9338 2015-10-11 11:34:34 -03:00
Claudio Sanches 5465cdadb1 [2.4] Fixed WC_API_Orders::set_line_item(), closes #9338 2015-10-11 11:32:56 -03:00
Claudio Sanches f6526d72a7 [API] Allow get variable products by sku, closes #9330 2015-10-09 16:43:12 -03:00
Claudio Sanches eedff144e7 Created assets/js/frontend/password-strength-meter.js #9319 2015-10-09 13:31:47 -03:00
Claudio Sanches 0248ebdac7 Better password-strength-meter load #9319 2015-10-09 11:22:31 -03:00
Claudio Sanches c4bd6b25c1 Merge pull request #9319 from nishitlangaliya/Issue-8938
Issue 8938
2015-10-09 11:12:56 -03:00
roykho 27db35dd12 [onboard wizard] Remove required attribute from currency_code form element so it is not required 2015-10-09 07:01:49 -07:00
Biont bf4c5b1d91 Provide a filter after tax calculations are done #9313 2015-10-09 15:46:23 +02:00
Mike Jolley 6027b355ca Further get_variation_prices tweaks
For 2.5, I’ve adjusted the caching to store 1 transient per variable
product. The cache key etc is still needed, but its stored within a
single transient instead of several.

This should prevent exponential growth of transient data for users.

Thoughts?

@daigo75 @franticpsyx @claudiosmweb
2015-10-09 12:49:39 +01:00
Mike Jolley 68cb6b11ee Removed welcome page
2.5 release doesn’t have enough user-facing features to justify a
full-blown welcome page, and translation credits are no longer
obtainable after translate.wordpress switch. Removed the page to keep
things streamlined.
@claudiosmweb @mattyza
2015-10-09 11:56:13 +01:00
Mike Jolley 919f19b698 Remove transifex references 2015-10-09 11:31:42 +01:00
Mike Jolley b913555d54 Change customer role caps
Fixes #9309. @claudiosmweb
2015-10-09 11:00:25 +01:00
Mike Jolley 4399a3b48a Allow wc_clean to support arrays
Closes #9329 @claudiosmweb
2015-10-09 10:41:51 +01:00
nishitlangaliya f468f16e29 fixes: changes as per suggestion given by claudiosmweb ref #8938 2015-10-09 13:25:47 +05:30
Shiva Poudel 3763c416a9 Docblock for related products 2015-10-09 07:38:15 +05:45
Claudio Sanches 59303a1709 Merge pull request #9308 from woothemes/api-tax-endpoint
[API] Tax endpoint
2015-10-08 18:49:43 -03:00
Claudio Sanches 15e79820aa [API] Better naming for returned data on the taxes endpoint 2015-10-08 18:49:05 -03:00
Claudio Sanches e84fa58e35 [API] Created taxes bulk method 2015-10-08 18:44:26 -03:00
Claudio Sanches 860d292f4f [API] Added method to edit tax rates 2015-10-08 18:34:47 -03:00
Claudio Sanches 1a3b5f3a6f [API] Fixed the tax_rate key 2015-10-08 18:01:38 -03:00
Claudio Sanches 3200a1dc0c Removed error_log() 2015-10-08 17:35:34 -03:00
Claudio Sanches 6d485a2fed [API] Created woocommerce_api_create_tax_rate_data filter 2015-10-08 17:35:00 -03:00
Claudio Sanches 52bdc2c3a5 [API] Changed returned data name from tax to tax_rate 2015-10-08 17:34:39 -03:00
Claudio Sanches 47c3ba9d21 Created WC_Tax::_get_tax_rate() method 2015-10-08 17:24:37 -03:00
Claudio Sanches 1cded0e1a3 [API] Added method to create tax rates 2015-10-08 17:15:00 -03:00
nishitlangaliya a45ef9f814 fixes: done changes using dom operation. ref #8938 2015-10-08 20:14:53 +05:30
Mike Jolley dda0f0c2bd Check for existence of global attribute when you get_attributes() for a product
Fixes #9141
2015-10-08 13:55:01 +01:00
Claudio Sanches befda55262 Removed test 2015-10-08 09:40:20 -03:00
Mike Jolley d5409f5b5e Merge conflicts 2015-10-08 13:28:25 +01:00
Mike Jolley 0197a99065 Merge branch 'issue/8587'
Conflicts:
	assets/css/admin.css
	assets/css/woocommerce.css
	includes/admin/class-wc-admin-assets.php
	includes/admin/settings/views/html-settings-tax.php
2015-10-08 13:26:52 +01:00
Mike Jolley 8ee479afd7 Remove unused input 2015-10-08 13:25:01 +01:00
Mike Jolley ac02ec290a Improved styling and wording 2015-10-08 13:18:00 +01:00
Mike Jolley 81b4d5535d Merge pull request #9315 from wtom/validate_postcode_de
german postcode validation
2015-10-08 11:56:34 +01:00
Shiva Poudel af7b603690 Added new woocommerce_sessions table in system status 2015-10-08 16:26:16 +05:45
wtom 7368377e8d german postcode validation 2015-10-08 12:20:57 +02:00
Claudio Sanches 1081c2cbe6 [API] Added method to create tax classes 2015-10-07 22:52:45 -03:00
Claudio Sanches d4c1c4cca4 [API] Added endpoint to get total of tax classes 2015-10-07 22:35:34 -03:00
Claudio Sanches ef00fe5b2f [API] Added method for delete tax classes 2015-10-07 22:27:42 -03:00
Claudio Sanches 6cd57e2611 [API] Added method to delete tax rates 2015-10-07 22:10:33 -03:00
Claudio Sanches 34ef764477 [API] Included standard rate in get tax classes response 2015-10-07 19:12:31 -03:00
Claudio Sanches 4f45b04722 [API] Added endpoint to get taxes count 2015-10-07 19:07:45 -03:00
Claudio Sanches 40b210a144 [API] Get taxes method 2015-10-07 19:00:36 -03:00
Claudio Sanches e3d57ab70c [API] Created method to get tax rate by ID 2015-10-07 17:44:04 -03:00
Claudio Sanches 16b9f22706 [API] Created method to return tax classes 2015-10-07 17:02:06 -03:00
Claudio Sanches 07836ae277 [API] Include taxes endpoint 2015-10-07 16:37:53 -03:00
Claudio Sanches 1168adf8af [API] Created initial WC_API_Taxes class 2015-10-07 11:42:25 -03:00
Claudio Sanches 1889c66061 Fixed coding standards 2015-10-07 10:58:13 -03:00
Mike Jolley b27635409c New Session Handler
This merges and adapts
https://github.com/kloon/woocommerce-large-sessions for core. Closes
#6846.

Differences:
- Rather than delete each cache key individually, this invalidates all
at once (idea from https://core.trac.wordpress.org/ticket/4476)
- Removes ‘replace’ which increments session_id keys unnecessarily.
- Fixes remove/restore cart sessions from making it dirty each page load

Kudos to @kloon for the bulk of the work and testing on Woo.com.

cc @claudiosmweb
2015-10-07 14:47:29 +01:00
Claudio Sanches 3f0cb4763a [CLI] Stop round product prices 2015-10-06 11:16:03 -03:00
Claudio Sanches 76ef4cdb50 xD 2015-10-06 11:12:32 -03:00
Claudio Sanches 5b0a5d15a8 [API] Stop round product prices, closes #9271 2015-10-06 11:12:23 -03:00
Mike Jolley 9c6d524c95 Missing close bracket 2015-10-06 15:08:17 +01:00
Claudio Sanches eef347a5ad Added textdomain to PayPal refund error message 2015-10-06 11:03:49 -03:00
Mike Jolley f1c6b3628a Pass mimes when checking file type
#9207
2015-10-06 15:01:41 +01:00
Mike Jolley abaa8f47d8 Moved refund hooks to avoid emails after API refund failure 2015-10-06 14:43:36 +01:00
Mike Jolley 54d5fc20ab Improve refund error messages for PayPal
Fixes #8945
2015-10-06 14:43:36 +01:00
Claudio Sanches 9169458590 Updated recent reviews url escaping 2015-10-06 10:35:33 -03:00
Claudio Sanches c53fe24c20 Removed our own language packs manager 2015-10-06 10:27:17 -03:00
Mike Jolley d2d1330898 Show order by template on product search
Fixes #9285
2015-10-06 14:10:01 +01:00
Mike Jolley 92b5e79add Merge pull request #9260 from Spreeuw/issue/8793
add $display_refunded parameter to get_formatted_order_total
2015-10-06 12:55:03 +01:00
Mike Jolley d028e65748 Merge pull request #9163 from nvartolomei/downloadable-products-permissions-cleanup
Remove downloadable permissions on permanent order deletion
2015-10-06 12:41:56 +01:00
Mike Jolley 277dbeb029 Merge branch 'WPprodigy-patch-2' 2015-10-06 12:33:55 +01:00
Mike Jolley 5ec400e514 Validate terms and conditions and improve templates 2015-10-06 12:33:45 +01:00
Mike Jolley 5bc7de0d91 Merge pull request #9290 from woothemes/issue/9166-reset-order-customer-id-on-user-delete
When a WordPress user is deleted, turn any orders they have into Guest orders.
2015-10-06 10:49:15 +01:00
Mike Jolley 1404f6a37e Merge remote-tracking branch 'origin/master' 2015-10-06 10:39:58 +01:00
Mike Jolley 6cef38902b Merge branch 'pr/9282' 2015-10-06 10:39:41 +01:00
Mike Jolley 2093c06637 Merge pull request #9286 from woothemes/issue/9284-fix-potential-fatal-for-earlier-init-plugins
Avoid potential PHP Fatals by avoiding premature script enqueues.
2015-10-06 10:31:58 +01:00
Shiva Poudel f6f7646cb6 Escape using esc_url instead of esc_attr for link 2015-10-06 10:40:11 +05:45
Claudio Sanches f2b3364fc9 Fixed coding standards 2015-10-05 20:31:05 -03:00
Claudio Sanches db6f51216e Improved coupons status display in admin table 2015-10-05 20:30:03 -03:00
roykho f97eb5606e add onboarding wizard button to the contextual help so it can be accessed again closes #9134 2015-10-05 15:26:59 -07:00
Jeff Stieler aa86069e56 When a WordPress user is deleted, turn any orders they have into Guest orders. 2015-10-05 14:38:20 -06:00
Jeff Stieler a34c0578fb Avoid potential PHP Fatals by avoiding premature script enqueues. 2015-10-05 12:12:19 -06:00
Mike Jolley 1f6260a880 Use tax settings in backend and default to base country
Closes #9186
2015-10-05 15:31:58 +01:00
Mike Jolley 1ec3cb0ef6 [2.4] Default value should not apply if value of option is 0
Fixes #9270 @claudiosmweb
2015-10-05 15:07:46 +01:00
Mike Jolley 84f83e0bf4 Fix return value @roykho 2015-10-05 14:39:08 +01:00
Mike Jolley 6975335941 Coupon description is escaped
@claudiosmweb Closes #9273
2015-10-05 14:30:02 +01:00
Mike Jolley 42d90594af Fix password with & saving
@claudiosmweb
2015-10-05 14:09:11 +01:00
Mike Jolley 5ad38f8b65 Tweak and link product permalink settings to WordPress settings
Fixes #8442
2015-10-05 12:15:35 +01:00
Serg 98523c8dd4 Add woocommerce_is_price_filter_active filter to Query class 2015-10-05 11:53:24 +03:00
Mike Jolley 4fd987c165 Merge pull request #9266 from woothemes/issues/9125-report-does-not-match-with-chart
[2.4] Fixed wrong gross sales calculation on sales by date report.
2015-10-05 09:17:59 +01:00
Mike Jolley a3f3148cd0 Merge pull request #9277 from jackgregory/product-categories-show-count
Fix Product Categories Widget dropdown show count arg
2015-10-05 09:11:18 +01:00
Shiva Poudel 178df9cec9 Remove duplicated 'thumb' for product custom columns 2015-10-05 13:41:29 +05:45
Jack Gregory 0e3c46dd3b Fix Product Categories Widget dropdown show count arg 2015-10-03 13:46:14 +01:00
Akeda Bagus dc0d5362cd Fixed wrong gross sales calculation on sales by date report.
The order amounts should exclude refunds.

Fixes #9125.
2015-10-02 11:08:41 +02:00
Mike Jolley a7228e8305 search variation skus
Fixes #7926
2015-10-02 10:52:27 +02:00
Mike Jolley 3d10a1f671 Merge pull request #9263 from roykho/image-flicker2
fix variation image flicker issue when default variations are set clo…
2015-10-02 10:44:18 +02:00
Mike Jolley 96103724dc Display 2 averages on report
Closes #9144
2015-10-02 10:42:48 +02:00
roykho 52ec35cab6 tweak to use product class function instead of body class function 2015-10-02 10:26:53 +02:00
Mike Jolley 246804f9dd Merge pull request #9264 from shivapoudel/register-script
Remove the duplicated variable jquery_version ;)
2015-10-02 10:13:05 +02:00
Mike Jolley 069a3defad [2.4] Handle method ids with colon
Fixes #9247
2015-10-02 10:10:18 +02:00
Mike Jolley 4747e097e2 [2.4] Fix notice in wc_nav_menu_items when endpoint is not set
Fixes #9216
2015-10-02 10:04:18 +02:00
Mike Jolley 786c87523f Improve product search and use WPDB instead of several get_posts queries
Fixes #9203 @claudiosmweb
2015-10-02 10:00:29 +02:00
Shiva Poudel 836ac8ae79 Remove the duplicated variable jquery_version ;) 2015-10-02 11:30:05 +05:45
roykho 5ba6ff1dac fix variation image flicker issue when default variations are set closes #7904 2015-10-02 03:45:11 +02:00
James Koster 2c00927c0b Remove the product loop title template
Provides consistency with the product category template. This template
was really too simple to require it’s own file. It can be plugged or
unhooked to edit.
2015-10-01 17:58:33 +01:00
Mike Jolley 2816260388 Merge pull request #8807 from franticpsyx/get_formatted_variation_attributes
get_formatted_name() produces cryptic output for variations
2015-10-01 18:54:46 +02:00
Mike Jolley e5575361f2 Merge pull request #9252 from shivapoudel/unused-global
Removed unused global variable
2015-10-01 18:50:03 +02:00
Mike Jolley 948ba904de Merge pull request #9244 from franticpsyx/template_override_check_path
[2.4] System Report: Template version check path incorrect
2015-10-01 18:48:55 +02:00
Manos Psychogyiopoulos 4fc018a88b stray error_log 2015-10-01 19:27:43 +03:00
Mike Jolley d4fbe0e45c Use SKU for stock order notes
Fixes #9133
2015-10-01 18:13:37 +02:00
Mike Jolley 19db1a6b4f Add notes for manual email send
Closes #8902
2015-10-01 17:39:32 +02:00
Claudio Sanches 3a536ac8b7 Sanitize shipping method label/title, closes #9159 2015-10-01 17:17:45 +02:00
Mike Jolley 7b751dc622 Clean post cache after variation update
Closes #9173
2015-10-01 16:48:41 +02:00
Claudio Sanches 033f8636a7 Merge pull request #9258 from krautnerds/fix-status-update-order-comment
Add username on marking order status
2015-10-01 16:34:55 +02:00
Claudio Sanches 522a7f4c04 :P 2015-10-01 16:30:14 +02:00
Claudio Sanches 7c05671188 Added new actions to make easy add custom fields for variations, closes #8827 2015-10-01 16:30:02 +02:00
James Koster 018bcc9d2d hook the product category links in, instead of hard coding into the template. #8575 2015-10-01 15:28:57 +01:00
James Koster fe689d3d24 Let's not create template files for such simple code. #8575
Also removes pluggability of code that simply shouldn’t have any need
to be overwritten.
2015-10-01 15:20:05 +01:00
Florian Ludwig 2d39a91fdc Add username on marking order status
At the moment the status updates via the order list action buttons are
not linked to the correct user. Lets fix that :)
2015-10-01 16:15:29 +02:00
Claudio Sanches bb59b9aabb Merge pull request #9085 from woothemes/feature/wp-cli_support
WP-CLI support for WooCommerce
2015-10-01 16:14:30 +02:00
James Koster 9de9f87c17 product category title is now hooked in rather than hard-coded into template 2015-10-01 15:12:56 +01:00
Claudio Sanches b6bef31f27 :) 2015-10-01 16:10:25 +02:00
Claudio Sanches f6a5e48a59 Register all styles on admin before call #8488 2015-10-01 16:10:18 +02:00
James Koster 02ddb7fc4d product archive anchors are now hooked into templates rather than hard coded. #8575 2015-10-01 14:49:40 +01:00
Claudio Sanches 0966fedb12 Moved JS vendor libraries for our own directories #8488 2015-10-01 15:46:08 +02:00
Akeda Bagus 7cbc94a50f Added tool subcommand.
Currenly only `clear_transients` is available. We'll add more in the
next release.
2015-10-01 15:46:04 +02:00
Akeda Bagus 0eea6a434c Better wording for report command.
The command is not managing report, only show reports.
2015-10-01 15:34:37 +02:00
Claudio Sanches 1e5332dc07 Register all styles on frontend before call #8488 2015-10-01 15:31:05 +02:00
Akeda Bagus 7157b64588 Allow orders to be filtered by customer_id. 2015-10-01 15:20:18 +02:00
Akeda Bagus df34fa9396 Implement cli command for customer' orders. 2015-10-01 15:20:05 +02:00
Akeda Bagus 0d91e1b6d3 Added more command help for `wp wc product`. 2015-10-01 15:18:54 +02:00
Claudio Sanches 6cb5c08037 [API] Added inventory_delta attribute to products endpoint, closes #7673 2015-10-01 15:05:02 +02:00
Claudio Sanches e34e234481 [API] Added grouped_products attribute to products endpoint, closes #8862 2015-10-01 14:08:42 +02:00
Shiva Poudel b614222b11 Removed unused global variable 2015-10-01 15:28:41 +05:45
Claudio Sanches 6c3005cddc [2.4] [API] Fixed customers count method 2015-10-01 10:54:30 +02:00
Mike Jolley 324e3cac0f Add billing column (off for new users)
Closes #9240
2015-10-01 10:52:03 +02:00
Claudio Sanches 0547c01418 [API] Removed useless _order_number param in POST/PUT orders, closes #9250 2015-10-01 10:14:42 +02:00
Mike Jolley 1defb3fb4f Explain the fees method in more detail.
Closes #9231 Closes #9193
2015-10-01 10:05:16 +02:00
Akeda Bagus 274eede1f6 Initial works on WP-CLI support. 2015-10-01 09:34:03 +02:00
Claudio Sanches e43fa91ab9 Inline comment for #8884 2015-09-30 18:12:12 +02:00
Claudio Sanches 2559c9287a [API] Added filter option to show all users on customers endpoint, closes #8884 2015-09-30 18:10:47 +02:00
Manos Psychogyiopoulos 37b24ae525 move version check into loop 2015-09-30 11:01:25 +03:00
Mike Jolley 44f4a3b9be Merge pull request #9226 from aelia-co/master
[2.4] Fixed loading of variation prices. Fixes #9224
2015-09-30 09:51:10 +02:00
Manos Psychogyiopoulos e36c5ae630 fix file version check path 2015-09-29 12:36:03 +03:00
Akeda Bagus 78f3d8a6cb Fixed permission issue when show_ui arg is set to false for attributes.
When show_ui for taxonomies is set to false, the ability to view the
term editing screen is removed.

See https://core.trac.wordpress.org/ticket/33938

Fixes #9223.
2015-09-29 09:11:23 +02:00
Diego Zanella 5da98ce782 Fixed loading of variation prices
The original method loaded the prices once, then stored them in a property of the product instance. Any subsequent calls to WC_Product_Variable::get_variation_prices() would get the stored prices, regardless of the value of the $display argument.
2015-09-25 16:11:41 +01:00
Claudio Sanches f7ea1d4c6a [API] Product featured_src return type as string, closes #9220 2015-09-25 16:13:52 +02:00
Claudio Sanches 06d31d1f86 [2.4] [API] Added refunded_item_id on GET orders/<id>/refunds endpoint, closes #9196 2015-09-22 14:37:11 -03:00
Claudio Sanches df508c82a3 Merge pull request #9198 from nvartolomei/shop-order-meta-save
Set order date before changing order status.
2015-09-22 13:55:24 -03:00
Claudio Sanches 605db1cf3a hijax for variations on frontend 2015-09-22 13:22:12 -03:00
Claudio Sanches 91c30310ee Fixed stock email recipient description typo, closes #9199 2015-09-22 13:06:10 -03:00
Nicolae Vartolomei dd62484cc2 Set order date before changing order status. 2015-09-22 12:02:29 +03:00
Aurélien PIERRE aead6f1e87 add shortcodes support in variation description 2015-09-21 19:34:06 -04:00
Claudio Sanches f9fb149551 Allow filter orders by customer id, closes #9162 2015-09-21 19:11:54 -03:00
Claudio Sanches 1522a4d87b Added download-url class in WC_Abstract_Order::display_item_downloads(), closes #9158 2015-09-21 18:28:03 -03:00
Claudio Sanches dc30ffcd60 Created woocommerce_upsell_display_args filter, closes #9185 2015-09-21 17:30:37 -03:00
Claudio Sanches ae7bb7d397 Merge pull request #9157 from siliconforks/issue-9156
Trim leading plus sign and "1" digit from US/CA phone numbers
2015-09-21 17:09:57 -03:00
Claudio Sanches c4a845e9ac Merge pull request #9178 from krautnerds/fix-report-chart-highlighting
[2.4] Fixed wrong highlighting of reports chart
2015-09-21 16:50:24 -03:00
Claudio Sanches 63b389d21c Merge pull request #9181 from woothemes/issues/8721-fix-network-activated-plugins-not-showing-up
Fix network activated plugins not showing up in system status report.
2015-09-21 16:43:40 -03:00
Claudio Sanches ebc0996f4c [2.4] Show tax fields in product bulk edit only when tax is enabled 2015-09-21 16:36:46 -03:00
Claudio Sanches d07441f518 [2.4] Show tax fields in product quick edit only when tax is enabled 2015-09-21 16:03:03 -03:00
Akeda Bagus 7490600de5 Fix network activated plugins not showing up in system status report.
The array returned by `get_site_option( 'active_sitewide_plugins' )` has
plugin file as array's key while array returned by `get_option( 'active_plugins' )`
has plugin file as array's value.

Fixes #8721
2015-09-20 23:35:03 -05:00
Florian Ludwig 7d2d102dc4 Fixed wrong highlighting of reports chart
The highlight data attributes were totally messed up - Fixed them
according to the current sorting of the graph series
2015-09-20 18:12:31 +02:00
Claudio Sanches f6e828e359 [2.3] unslash shipping label, closes #9160 2015-09-18 12:28:13 -03:00
Claudio Sanches daf371052c Missing ) on order screen for customers select2 2015-09-18 12:21:55 -03:00
Nicolae Vartolomei e15a4367bd Rename action that is executed after permission deletion (typo) 2015-09-18 16:50:26 +03:00
Nicolae Vartolomei c415d1554c Remove downloadable permissions on permanent order deletion 2015-09-18 16:41:50 +03:00
Claudio Sanches e075552604 Merge branch 'master' of github.com:woothemes/woocommerce 2015-09-18 02:18:28 -03:00
Claudio Sanches 52787c282c [2.3] Prevent "Trying to get property of non-object" in Sensei 2015-09-18 02:18:15 -03:00
Silicon Forks b73fce8dca Trim leading plus sign and "1" digit from US/CA phone numbers
Fixes #9156.
2015-09-17 18:58:49 -03:00
Mike Jolley a175638032 [2.4] unslash file URL 2015-09-17 16:18:11 +01:00
Mike Jolley 0c56fe0844 Merge pull request #9149 from JeroenSormani/stock-changes
Add get_stock_quantity filter
2015-09-17 10:57:47 +01:00
JeroenSormani cb75a1e8af Add get_stock_quantity filter 2015-09-17 10:19:04 +02:00
Claudio Sanches c739f395ce [2.4] [API] Improved the way are used for non-global attributes for variations 2015-09-17 02:57:04 -03:00
roykho f5f61da4e9 fixes a case were there are orphaned variations and trying to call the parent that doesn't exist 2015-09-16 08:49:18 -07:00
Claudio Sanches 4c286272af Merge pull request #8808 from SiR-DanieL/shortcodes-category
Added args category to some shortcodes
2015-09-16 12:07:48 -03:00
Mike Jolley 83838358fe Revert "Merge pull request #8768 from SiR-DanieL/session-delete"
This reverts commit f63c500848, reversing
changes made to 2a31d1fe98.
2015-09-16 13:38:28 +01:00
Mike Jolley 7a3bd70c8b Allow bulk edit price to 0
Fixes #9143
2015-09-16 13:20:59 +01:00
Mike Jolley f63c500848 Merge pull request #8768 from SiR-DanieL/session-delete
Instroducing WC_Session::delete
2015-09-16 10:34:51 +01:00
Nicola Mustone 7d6bf488c9 using unset also in the magic method 2015-09-16 11:34:22 +02:00
Nicola Mustone 6bc17c65c8 delete to unset 2015-09-16 11:34:03 +02:00
Nicola Mustone ffc941fcb1 rebase shortcakes category 2015-09-16 09:26:30 +02:00
Claudio Sanches 2a31d1fe98 Merge branch 'master' of github.com:woothemes/woocommerce 2015-09-15 22:06:18 -03:00
Claudio Sanches 8ed7754e49 Fixed strings with "MasterCard", closes #9142 2015-09-15 22:06:02 -03:00
Claudio Sanches ab921ea82c Merge pull request #9088 from khag7/khag7-patch-1
Filter the array which determines what classes are applied to an order note
2015-09-15 20:01:33 -03:00
Claudio Sanches f7d035e739 Merge pull request #9084 from rchq/patch-1
Added an action for notifications
2015-09-15 19:59:16 -03:00
Claudio Sanches ebedba7906 Merge pull request #9081 from helgatheviking/filter-admin-order-item-thumbnails
Add `woocommerce_admin_order_item_thumbnail` filter in admin
2015-09-15 19:58:23 -03:00
Claudio Sanches f447a66281 Introduces woocommerce_update_new_customer_past_order action, closes #9078 2015-09-15 19:56:59 -03:00
Claudio Sanches 7e63374aaf Merge pull request #8735 from shivapoudel/backbone-modal
Allow support for variable in backbone modal template in extensions
2015-09-15 19:44:50 -03:00
Claudio Sanches 376b13aece [API] Sanitize product image alt attribute 2015-09-15 14:25:43 -03:00
Claudio Sanches d7c25e3051 Merge pull request #9136 from mikaelmattsson/master
Make the image properties alt and title writable in the REST API v3, closes #8860
2015-09-15 13:15:20 -03:00
James Koster 82f8b61418 make it clearer that variation drag/drop only applies to the backend. closes #9104 2015-09-15 17:05:55 +01:00
Mike Jolley 4e063fb069 Merge pull request #8925 from shivapoudel/hidden-meta-boxes
Hides 'custom fields' section by default in product
2015-09-15 16:47:05 +01:00
Mike Jolley cc875d7b94 Merge pull request #8939 from SiR-DanieL/_x
Added some comments on translations
2015-09-15 16:45:39 +01:00
Mike Jolley 3e55364e3a Merge pull request #8940 from woothemes/issues/8482
Tidy up how we're dealing with coupon postmeta around `_used_by` which can get big.
2015-09-15 16:42:51 +01:00
Mikael Mattsson d3302a9fa8 Merge branch 'master' of https://github.com/woothemes/woocommerce
# By Akeda Bagus (4) and Beka Rice (1)
# Via Mike Jolley (3) and others
* 'master' of https://github.com/woothemes/woocommerce:
  Added more products query filter for REST API.
  Added support to GET, POST, PUT, and DELETE tags.
  Added support to POST, PUT, and DELETE categories.
  Added API support for product shipping classes.
  [2.5] Filter when purchase note is showed
2015-09-15 17:28:42 +02:00
Claudio Sanches b8172b173e Merge pull request #9135 from woothemes/issues/8971-filter-products-by-tax
Added more products query filter for REST API.
2015-09-15 12:19:36 -03:00
Mike Jolley c4fa25c09e Merge pull request #9100 from woothemes/issues/8879-categories-tags-api-addition
Added support to POST, PUT, and DELETE categories/tags.
2015-09-15 16:17:50 +01:00
Mikael Mattsson ac49411146 Make the image properties alt and title writable in the REST API v3. 2015-09-15 17:17:14 +02:00
Mike Jolley b2749c3939 Merge pull request #9118 from woothemes/issues/8948
Added API support for product shipping classes.
2015-09-15 16:15:52 +01:00
Mike Jolley 0830543c4f Add disclaimer to woocommerce_adjust_non_base_location_prices 2015-09-15 16:01:11 +01:00
Mike Jolley 4959937689 Merge branch 'universal-pricing-test' 2015-09-15 15:57:04 +01:00
Akeda Bagus 97565ef9a1 Added more products query filter for REST API.
The new filters are taxonomies related: tag, shipping class, and
attribute. The code was refactored a bit so all taxonomies query are
wrapped within tax_query.
2015-09-15 07:18:28 -05:00
Mike Jolley 9f1a5e3c26 Remove unused arg 2015-09-15 12:51:45 +01:00
Mike Jolley 0164584aaf Reduce stock once and record in _order_stock_reduced meta
Also clears up the payment_complete method
2015-09-15 12:39:16 +01:00
Mike Jolley 96814b992f Show more variations per page 2015-09-14 16:54:58 +01:00
Mike Jolley 3dbe9ccd95 Better fallback for ajax variations in case sync_attributes has ran 2015-09-14 16:50:58 +01:00
Mike Jolley fc78f85bc6 Merge branch 'pr/9034' 2015-09-14 15:56:38 +01:00
Mike Jolley 3a1bcd8e7d Store prices in class to prevent running get_variation_prices multiple times 2015-09-14 15:09:57 +01:00
Mike Jolley 2d90e1c6c6 Ensure _product_version checks act the same regardless of the attributes being checked 2015-09-14 12:12:05 +01:00
Akeda Bagus 6906eb4eae Added support to GET, POST, PUT, and DELETE tags. 2015-09-13 17:59:07 +07:00
Akeda Bagus 2980ffd66b Added support to POST, PUT, and DELETE categories. 2015-09-13 17:59:07 +07:00
Akeda Bagus f781d393c8 Added API support for product shipping classes.
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.

Fixes #8948.
2015-09-13 17:54:23 +07:00
Panagiotis Vagenas 8e37f8d0a5 #9116. Moving the action outside the curly braces will do the trick. 2015-09-13 10:03:25 +03:00
Claudio Sanches 03ed840a79 Merge pull request #9109 from SiR-DanieL/related-products-args
Wrong per_page attribute
2015-09-11 18:24:56 -03:00
Nicola Mustone cc3962cddb wrong per_page attribute 2015-09-11 10:53:26 +02:00
Akeda Bagus 82a7c70334 Don't show undo link if removed item product is out of stock. 2015-09-11 15:22:09 +07:00
Claudio Sanches 194f9cd6ec Revert "Added API support for product shipping classes." 2015-09-10 14:22:11 -03:00
Mike Jolley 53c6bebbd0 Select 1=1 instead of '1' when using get_var
Fixes #9102
2015-09-10 16:49:51 +01:00
Mike Jolley 8ec5986d48 Tweak hash logic 2015-09-09 22:29:54 +01:00
Claudio Sanches 1a97aeb0b3 Merge pull request #9098 from woothemes/issues/8948
Added API support for product shipping classes.
2015-09-09 12:27:38 -03:00
Kevin Hagerty 1c6dad110e improved spacing, filter name more conventional, added esc_attr 2015-09-09 10:11:09 -04:00
Akeda Bagus 1f18d861ce Added API support for product shipping classes.
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.

Fixes #8948.
2015-09-09 20:38:11 +07:00
Mike Jolley 71b8f0ddff Change loops wording
Closes #8818
2015-09-09 11:26:11 +01:00
Mike Jolley a0411e7d8b Apparently allowing full screen fixes wistia notices
Fixes #9052
2015-09-09 11:06:26 +01:00
Geoffrey de Vlugt 9d7d40ced1 Coupon usage count can become negative
This commit fixes issue #9086
2015-09-09 09:56:32 +02:00
Kevin Hagerty 849a3598c9 add a filter to the array of the html classes for an order note
allow plugins to hook into the display of order notes to add classes.
2015-09-08 20:11:04 -04:00
rchq 332c1bdf9c Update abstract-wc-order.php
Created an action to be able to hook into and add additional notification triggers.
2015-09-08 11:00:22 -07:00
Kathy Darling 9571b8827e Add `woocommerce_admin_order_item_thumbnail` filter in `html-order-item.php`. 2015-09-08 13:41:12 -04:00
Mike Jolley 4084b8b359 Merge pull request #9075 from krautnerds/fix-lost-password-form-handling
Fix lost password form handling for space before/after email
2015-09-08 11:45:22 +01:00
Mike Jolley 6306c3afde get_formatted_meta allow 0 values
Fixes #9072
2015-09-08 11:39:50 +01:00
Mike Jolley 14ee9e2daa Merge pull request #9074 from khag7/khag7-patch-1
fix HTML for the order total column
2015-09-08 10:24:19 +01:00
matttallan bbe11fdd6b Don't try add/remove download permissions if order does not exist 2015-09-08 15:28:38 +10:00
Florian Ludwig 5cffd789a4 Removed unused variable 2015-09-08 00:08:40 +02:00
Florian Ludwig 9966f6b0a4 Fixed issue where space before or after mail led to "Invalid e-mail" error 2015-09-08 00:08:32 +02:00
Kevin Hagerty a59b3482e8 fix HTML for the order total column
the HTML generated now uses get_formatted_order_total, same solution used for issue #9047
2015-09-07 17:30:55 -04:00
Florian Ludwig 35655f8544 Fixed all inefficient selector usages
Use find for more efficient selectors - more information on e.g.
https://24ways.org/2011/your-jquery-now-with-less-suck/
2015-09-07 19:51:10 +02:00
Manos Psychogyiopoulos e3dad9106f elseif 2015-09-07 19:17:33 +03:00
Manos Psychogyiopoulos d9d11974fe introduce context in transient with price filters 2015-09-07 19:13:41 +03:00
Mike Jolley 821434cbb7 Fix geolocation redirect with querystring 2015-09-07 16:58:05 +01:00
Mike Jolley a056e3e649 Unslash key description
Closes #9068
2015-09-07 16:29:03 +01:00
Mike Jolley 358f3f79fa Don't use extract() in add_rate
#9057
2015-09-07 16:02:23 +01:00
Mike Jolley 38a5d04c53 woocommerce_save_account_details_required_fields hook
Closes #9056
2015-09-07 15:21:57 +01:00
Mike Jolley 3e0986bce0 Merge pull request #9053 from khag7/khag7-patch-1
Improve order total formatting
2015-09-07 14:43:49 +01:00
Mike Jolley 50e4a68235 Merge pull request #9028 from LeGaS/patch-1
Count only published variations
2015-09-07 14:43:01 +01:00
Mike Jolley ee0b0ba088 Merge pull request #9003 from krautnerds/fix-api-v2-item-meta-keys
Restored wc<2.4 behavior of order item meta keys
2015-09-07 14:36:17 +01:00
Mike Jolley 27ac395496 Use geolocation class IP function
Fixes #9048
Closes #9050
2015-09-07 14:24:00 +01:00
Mike Jolley ae849c7adb Merge pull request #9054 from khag7/khag7-patch-2
use the needs_payment function
2015-09-07 14:19:48 +01:00
Mike Jolley 13b85f89a6 Tweak wc_create_page to work with trashed pages...
… and to check post IDs are valid pages with correct post statuses.
Fixes #9061

Closes #9062
Closes #9063
2015-09-07 14:17:22 +01:00
Mike Jolley bf0cb28d36 esc_html
Closes #9065
2015-09-07 13:26:43 +01:00
Mike Jolley 174967dd6b Merge pull request #9066 from dominic-p/query-id-check
Check specifically for Post IDs in WC Query verbose rules fix
2015-09-07 13:22:29 +01:00
James Koster 4aff861626 responsive orders table in dashboard. closes #8996
Also removes unnecessary tooltip on order row.
2015-09-07 12:35:30 +01:00
Mike Jolley 1c68137cf9 Only run maybe_set_cart_cookies if cart was loaded 2015-09-07 11:38:24 +01:00
Dominic 358336546e Check specifically for Post IDs in WC Query
The `WP_Query::queried_object_id` property can reference either a post
or a term ID. This way, we ensure that we are check for posts only.
2015-09-07 02:17:01 -07:00
Kevin Hagerty 164b39ea42 Use the needs_payment function
Instead of checking against a list of valid order statuses, use the needs_payment function which already checks against those statuses
2015-09-05 08:09:47 -04:00
Kevin Hagerty e4b092fe10 Use the needs_payment function
Instead of checking against a list of valid order statuses, use the needs_payment function which already checks against those statuses
2015-09-05 08:06:57 -04:00
Kevin Hagerty 3671bcf39d Improve order total formatting
The function get_formatted_order_total already provides formatted HTML with indication of a prior refund. No need to do that logic and formatting again.
2015-09-05 07:48:24 -04:00
Mike Jolley 991bd96fb6 Redirect 'not right now' to referer 2015-09-04 16:02:44 +01:00
Mike Jolley b111331686 Allow line breaks in non-variation attributes 2015-09-04 14:00:42 +01:00
James Koster 8eebc7c900 Free is an amount!
All product prices are wrapped in `span class=“amount”`. To make
themers lives easier let’s be consistent. When the product is free the
price should still be wrapped.
2015-09-04 11:19:52 +01:00
Mike Jolley d90d562b42 Leave excl function alone 2015-09-04 10:57:22 +01:00
Mike Jolley e08f8d8902 Apply woocommerce_adjust_non_base_location_prices to all prices 2015-09-04 10:48:50 +01:00
Mike Jolley 31ed6c2531 woocommerce_adjust_non_base_location_prices test (false for now, should be true for current behavior) 2015-09-04 10:33:51 +01:00
Mike Jolley bbd95bab7b Merge pull request #9033 from jackgregory/is-layered-nav-active
add woocommerce_is_layered_nav_active filter
2015-09-04 10:08:18 +01:00
Mike Jolley 8596cb9322 Merge pull request #9039 from krautnerds/fix-api-key-bulk-revoke-for-translated-woocommerce
Don't use translated key for name in bulk action checkbox
2015-09-03 23:16:28 +01:00
Mike Jolley 797f2fab62 decode quotes
#9040
2015-09-03 23:15:06 +01:00
Florian Ludwig 6f3a221c62 Removed senseless sprintf argument 2015-09-03 22:21:23 +02:00
Florian Ludwig 2b6aecb262 Don't use translated key for name in bulk action checkbox
Otherwise the translation will break the code in
https://github.com/woothemes/woocommerce/blob/master/includes/admin/clas
s-wc-admin-api-keys.php#L122

We shouldn’t use the translated string here in my opinion.
2015-09-03 22:12:55 +02:00
Manos Psychogyiopoulos 68e24c8f8a no filters allowed when generating variable product price transients 2015-09-03 19:04:31 +03:00
Mike Jolley 8149213c4b Add monthly cron schedule
@claudiosmweb
2015-09-03 16:21:53 +01:00
Mike Jolley 889d40b8aa Add data attribute to leave options visible
Closes #9017
2015-09-03 15:38:42 +01:00
Jack Gregory e75b462e86 add woocommerce_is_layered_nav_active filter 2015-09-03 15:09:21 +01:00
Mike Jolley fad48bf800 Add filters to control shipped via text 2015-09-03 15:05:10 +01:00
Szabolcs Légrádi 6bb0dd864b Do not count trashed product variations 2015-09-02 23:11:28 +02:00
Szabolcs Légrádi 68460063a0 Count only published variations 2015-09-02 22:58:07 +02:00
Mike Jolley b4e879f30e Merge pull request #8993 from jackgregory/filter-dropdown-variation-args
add woocommerce_dropdown_variation_args filter
2015-09-02 14:01:39 +01:00
Jack Gregory 16cdbb4ff3 update woocommerce_dropdown_variation_attribute_options_args filter naming 2015-09-02 12:39:23 +01:00
Mike Jolley d4c8611ec8 Merge pull request #8972 from didi3r/patch-1
Hide "Our Bank Details" heading when no bacs registered
2015-09-02 12:24:22 +01:00
Mike Jolley c4ca7abd4c Check home URL not this page
Fixes #8963
2015-09-02 12:23:53 +01:00
Mike Jolley 2023910400 Log refund response. 2015-09-02 11:36:42 +01:00
Mike Jolley a27aeaaa6f Escape add to cart messages to stop translations from breaking cart events. 2015-09-02 10:59:17 +01:00
Mike Jolley cf7a9c3913 Case insentiive matching in cache helper
@georgestephanis
2015-09-01 16:40:17 +01:00
Mike Jolley dd7c32c22c Added 'false' check in variation admin
@claudiosmweb Closes #8966
2015-09-01 16:35:13 +01:00
Mike Jolley c65d227105 Merge pull request #9011 from woothemes/WPprodigy-patch-1-1
Allow for multiple email recipients
2015-09-01 15:46:46 +01:00
Mike Jolley f7e4bf224d Exclude cart and account pages from geolocation
Closes #8967
2015-09-01 15:41:05 +01:00
Mike Jolley 66c0d8f009 Swiss
Fixes #9001
2015-09-01 13:50:14 +01:00
Mike Jolley 91ac7fc974 To prevent discounts being applied in 'random' order (based on order added to cart), sort cart items based on subtotal during calculate_totals.
Closes #8987

@claudiosmweb @georgestephanis does this change look sane to you folks?
2015-09-01 13:16:55 +01:00
Caleb Burks c53248896e Allow for multiple email recipients
Allow multiple emails to be used for the low stock / out of stock email.
2015-09-01 07:11:41 -05:00
Mike Jolley 6728f5c1fe singular_name context
Closes #8988
2015-09-01 12:42:45 +01:00
Florian Ludwig 4e0961333f Restored wc<2.4 behavior of order item meta keys
The previous version of woocommerce showed the machine readable names
in item_meta['key’] especially for the custom variation attributes but
after 2.4 it shows only meta ids in the key.

This commit reverts the behavior to the prior 2.4 behavior.
2015-08-31 17:59:41 +02:00
Mike Jolley 07237d9a09 Set charset when doing html_entity_decode
@claudiosmweb  Closes #8964
2015-08-31 12:29:36 +01:00
toddlahman b631cc719c Fix for Invalid argument supplied for foreach 2015-08-30 21:18:21 -07:00
Jack Gregory f8cc75fe4f add woocommerce_dropdown_variation_args filter 2015-08-29 16:30:36 +01:00
Mike Jolley 7643712a52 Sync after save 2015-08-29 13:45:58 +01:00
Florian Ludwig b50a75ce23 Use wc_stock_amount for ajax response in variation admin
My previous pull request of old WC 2.3 didn’t get applied in the new
2.4 AJAX method for the variation admin. So let’s do it again ;) (old
pull request see #8304)
2015-08-28 18:17:54 +02:00
Didier Pérez 8bbb0f2878 Hide "Our Bank Details" heading when no bacs registered
The heading "Our Bank Details" is shown in emails even if there are not bacs registered. This fix prevent that.
2015-08-27 13:33:32 -05:00
Claudio Sanches 58df3604f8 Merge pull request #8962 from woothemes/simplify-ireland-support
Adds a filter on the supported countries for Simplify Commerce.
2015-08-26 11:32:41 -03:00
Matty 19c052428d Adds a space after (array) to comply with WordPress coding standards. #8960. 2015-08-26 15:16:42 +02:00
Mike Jolley 4849d7d56e Sync stock status during save
Closes #8950
2015-08-26 13:51:51 +01:00
Matty 7c679edf63 Adds a filter on the supported countries for Simplify Commerce, to add country support without the need to update WooCommerce itself. #8960. 2015-08-26 14:35:55 +02:00
Matty 49b33ae89d Adjusts Simplify Commerce country support to reflect support for Ireland. Closes #8960. 2015-08-26 14:24:24 +02:00
Mike Jolley fdb25fa0c3 Pass through tax_display
Fixes #8951
2015-08-26 13:05:52 +01:00
Mike Jolley 1f3e8b984e use empty to check to see if attributes for variations exist
Closes #8959
2015-08-26 12:56:44 +01:00
Mike Jolley 28da8a40d8 Tweak wc_var_prices naming to allow them to be flushed on save 2015-08-26 12:28:04 +01:00
Ibrahim 6b60616ed3 Update class-wc-shortcodes.php
`ob_start` is used which is not required.
2015-08-26 12:08:17 +05:30
Mike Jolley 5fbdb06710 show_counts -> show_count 2015-08-25 10:48:36 +01:00
George Stephanis f71af3b1de Account for the fact that when fetching all meta, maybe_unserialize() hasn't run yet.
@see
https://github.com/WordPress/WordPress/blob/a7b38bf90a8b4e070ae98faa076e
41403c59f951/wp-includes/meta.php#L499-L508
2015-08-24 16:08:04 -04:00
George Stephanis 6ef4cf0d18 Optimization. Don't call `get_post_meta` 17+ odd times.
As @pmgarman remarked here:
https://pmgarman.me/blog/woocommerce-and-coupon-_used_by-logging/ — for
very large values of postmeta, when using memcached that cannot handle
data stores of over 1M, the store seems to fail at pulling it back in,
resulting in large query results on each call.

At the least, this change should avoid those cache misses and
re-queries, although I do feel that not being able to keep the cached
in php’s memory and losing it in the cache is indeed a failing here of
the object cache plugin.

Still, this should have some optimizations, as we’re caching the data
right here, closer to usage.
2015-08-24 15:06:19 -04:00
George Stephanis a17addae0a Migrate the actual querying of the underlying data structure.
Move it into the relative class for tidiness, and have it be called via
an access function.
2015-08-24 14:30:13 -04:00
George Stephanis 4692afacdd Add a conditional to match `inc_usage_count()`
Otherwise, for empty $used_by values, it will fire off a needless db
query.
2015-08-24 14:20:30 -04:00
George Stephanis 40dfb59bde Clarify a comment as to why we're not using a core method. 2015-08-24 14:19:08 -04:00
George Stephanis fd3ceb3e04 Allow a user to be specified for validating the limit of. 2015-08-24 13:08:44 -04:00
George Stephanis e6b7d5c49a Simplify the data we're working with.
This provides slightly safer bounds for large data sets.
2015-08-24 13:08:23 -04:00
Nicola Mustone 6f7b534493 missing comma 2015-08-24 17:27:23 +02:00
Nicola Mustone 657728d778 _x for the order details admin page 2015-08-24 17:15:19 +02:00
Mike Jolley 5e984faebc Allow HTML in store notice. 2015-08-24 16:15:16 +01:00
Nicola Mustone beb97b279e _x for refund reports 2015-08-24 17:13:04 +02:00
Mike Jolley a07824e8a7 Ensure product exists in add cart handler
Closes #8937
2015-08-24 15:28:57 +01:00
Mike Jolley f03be47e86 Handle non standard decimals in flat rate costs. 2015-08-24 15:26:08 +01:00
Mike Jolley 14b0c20bf2 Ensure variable stock status is based only on variations 2015-08-24 15:03:44 +01:00
Mike Jolley 3c7290a765 During updates, only recreate .htaccess if not using redirect download method.
Fixes #8923
2015-08-24 13:50:14 +01:00
Mike Jolley ae21b511f0 Support 0 value attributes 2015-08-24 13:32:20 +01:00
Mike Jolley d9e8787198 WC Setup wizard: Fix manual setting of decimal/thousand separator.
Closes #8930
2015-08-24 12:54:09 +01:00
Mike Jolley ae207466d4 Ajax variation < 2.4 attribute name handling. 2015-08-23 21:47:04 +01:00
Mike Jolley 0cf74b5dba Set ajax endpoint headers like admin_ajax
@claudiosmweb does this make sense to you?
2015-08-23 21:17:03 +01:00
Shiva Poudel 9cf86e8494 Cleanup docblocks 2015-08-22 02:57:03 +05:45
Shiva Poudel 4018ca4ed3 Tweak - Hide default Custom Fields Meta-Boxes, Closes #8924 2015-08-22 02:52:05 +05:45
Mike Jolley 04a68ad925 Add spinner/loading indication between onboarding steps
Closes #8816
2015-08-21 19:12:36 +01:00
Mike Jolley 393bb012c1 Tweak gateway wording
@mjepson
2015-08-21 19:01:21 +01:00
Mike Jolley 87534d683b Update tweets!
@MarinaWoo
2015-08-21 18:57:14 +01:00
Mike Jolley d677be46ce update example to show decimal 2015-08-21 17:01:25 +01:00
Mike Jolley 07b1f9329d Bulk update variation: Allow stock to be set to 0. 2015-08-21 16:48:25 +01:00
Mike Jolley bbb00d9a3a Bulk update variation manage stock when _manage_stock meta data is missing. 2015-08-21 16:33:55 +01:00
Mike Jolley d8a9ebd29c Merge pull request #8916 from SiR-DanieL/encode-variation-data-url
Encode variation data
2015-08-21 15:52:17 +01:00
Mike Jolley 714cd8dc9a Merge branch 'pr/8901' 2015-08-21 15:32:11 +01:00
Mike Jolley 574c0b2936 Update wording 2015-08-21 15:25:03 +01:00
Mike Jolley 8fca3e2d60 Merge pull request #8913 from woothemes/add-to-cart-handlers
Add to cart handlers
2015-08-21 14:35:20 +01:00
Mike Jolley 296d9a8850 Merge pull request #8915 from shivapoudel/fix-site-icon
WC Setup wizard and site icon
2015-08-21 14:09:40 +01:00
Mike Jolley 2d8b3f0c1f menu_order notices on IIS. 2015-08-21 14:08:32 +01:00
Nicola Mustone ae3f0aec51 encode variation data 2015-08-21 12:32:00 +02:00
Shiva Poudel 7cd88cfa30 Fixed - WC Setup wizard site icon display on WP 4.3 2015-08-21 13:31:10 +05:45
Claudio Sanches c7f8e541cd Merge pull request #8912 from thenbrent/simplify_change_payment_fix
Fix changing failing subscription payment method
2015-08-20 22:37:42 -03:00
Mike Jolley 170737b4e8 Remove purchasable check completely
Not required as the cart class checks this later on. Was originally
added for #7220. Later changed to support admin buying private products
https://github.com/woothemes/woocommerce/commit/9ed36d4b0104e77ede338862
b67a99d0a243aac8

Fixes #8908
2015-08-20 23:43:39 +01:00
Mike Jolley 80b6c0f541 Refactor add_to_cart_action by splitting product type methods 2015-08-20 23:41:56 +01:00
Caleb Burks 4bff967e40 Flat Rate Calculation - min_fee
The correct shortcode term to use is `min_fee`: https://github.com/woothemes/woocommerce/blob/master/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php#L94
2015-08-20 16:55:00 -05:00
Brent Shepherd f52316856c Fix changing failing subscription payment method 2015-08-20 13:51:08 -07:00
Mike Jolley 5c948f374c Fix preg_replace in layered nav dropdown 2015-08-20 17:32:27 +01:00
Claudio Sanches 1c348ebc27 Merge pull request #8904 from woothemes/wizard-language-download
Wizard language download, closes #8895
2015-08-20 12:16:01 -03:00
Claudio Sanches d81cea3ab6 Properly escape WC_Admin_Setup_Wizard::get_next_step_link() 2015-08-20 12:15:12 -03:00
Claudio Sanches 86de66c8c9 Use self for static methods 2015-08-20 12:10:41 -03:00
Mike Jolley 0f40e8cdf7 Language install prompt 2015-08-20 16:03:29 +01:00
Tor Morten Jensen f6b7ab97b1 Adds tooltips to explain 'tax class' and 'tax status' in product admin. Addresses #8817 2015-08-20 14:33:25 +02:00
JeroenSormani c25cc886ae Add tiptip dependency to wc-admin-meta-boxes 2015-08-20 13:46:52 +02:00
Mike Jolley 24c7f56b03 move attribute code above selector 2015-08-20 10:52:59 +01:00
Mike Jolley 9ed36d4b01 In add_to_cart_action, check is_purchasable rather than post status. 2015-08-20 10:39:38 +01:00
Lucas Stark 00be9b1324 Update class-wc-admin-settings.php
Reset the $value to array when processing image_width.  Strange bug if the value is a string and the array is not explicitly created.
2015-08-19 13:39:38 -04:00
Claudio Sanches 186257fcd1 Removed the forced redirect 2015-08-19 12:43:13 -03:00
Claudio Sanches aa8e469a9d Download translations in setup wizard 2015-08-19 12:36:59 -03:00
Mike Jolley ac90660f7d Add expand/close links for attributes and match variation UI
Closes #8875
2015-08-19 14:00:26 +01:00
Mike Jolley ecc50f78ab Don't clean keys - avoids destroying special chars 2015-08-19 11:33:42 +01:00
Mike Jolley 57bb0ebe25 Record manual order status change 2015-08-18 16:33:38 +01:00
Mike Jolley 625105b1c7 Merge pull request #8873 from SiR-DanieL/transient-limit-filter
Added filter woocommerce_delete_version_transients_limit
2015-08-18 14:44:41 +01:00
Mike Jolley c6d6a6b439 Merge pull request #8866 from woothemes/fix/pinking-shears
Pinking Shears.
2015-08-18 14:36:52 +01:00
Mike Jolley dc37e49c02 Suppress set_time_limit errors to prevent issues in some environments
“Warning: Cannot set max_execution_time above master value of 30 (tried
to set unlimited) in
/var/www/web1043/html/wordpress/wp-content/plugins/woocommerce/includes/
class-wc-download-handler.php on line 337</p>”
2015-08-18 13:16:25 +01:00
Nicola Mustone 7f879b416a added filter woocommerce_delete_version_transients_limit 2015-08-18 11:47:19 +02:00
Claudio Sanches c00239fbef Fixed visual endpoint callback content-type #8021 2015-08-17 19:19:08 -03:00
George Stephanis ffd2b2de30 Pinking Shears. 2015-08-17 17:35:10 -04:00
Claudio Sanches 8da7369088 Just avoid deprecated notices for #8848 2015-08-17 14:04:12 -03:00
Claudio Sanches a12552dbf1 [API] Removed $HTTP_RAW_POST_DATA in favor of php://input, closes #8848 2015-08-17 12:51:19 -03:00
Mike Jolley a5a7c71aa7 Keep new variation in sync so actions can modify data Closes #8858 2015-08-17 15:11:34 +01:00
Mike Jolley 9330176865 Flush product cache so prices are regenerated
Fixes #8851
2015-08-17 14:19:58 +01:00
Mike Jolley 1999dbe92d Improve display_item_downloads numbering and use same function in emails. 2015-08-17 12:17:56 +01:00
Mike Jolley ad691fe916 save_account_details should check display name of current user.
Fixes #8856
2015-08-17 12:02:16 +01:00
Mike Jolley 329c2c9c9b Merge pull request #8838 from StuartOB/master
Missing object attributes
2015-08-17 11:03:44 +01:00
Claudio Sanches a9a6009b66 Check if order is valid in checkout shortcode, closes #8829 2015-08-15 17:50:42 -03:00
stuartobrien 237acd7e90 consistent code formatting 2015-08-15 01:28:48 +02:00
stuartobrien 3ce5374cd9 fixed - missing attribute $password_generated used in the object but not declared 2015-08-15 01:16:02 +02:00
stuartobrien 6a8742d4d6 change type to boolean 2015-08-15 01:03:18 +02:00
stuartobrien 5a616d86c3 fixed - missing attributes refund and partial_refund are used in the object but are not declared 2015-08-15 00:57:12 +02:00
Claudio Sanches 13c34f6ba2 Fixed Allowed Zip description for Local Delivery, closes #8831 2015-08-14 15:28:34 -03:00
Claudio Sanches 1d0d48b1ad Fix attribute text based in API, closes #8823 2015-08-14 15:22:57 -03:00
Claudio Sanches 934808fc37 Created new wc_sanitize_term_text_based() for properly sanitize term text based before save, closes #8823 2015-08-14 15:22:16 -03:00
Claudio Sanches dc666f6b27 Added missing $menu_order on WC_Ajax::add_variation() 2015-08-14 14:40:46 -03:00
Lee Hopkins 9632077c7e Wrap product name in correct double quotes in wc_format_list_of_items() 2015-08-14 09:57:35 -07:00
George Stephanis 81804d8d3b Don't show the `pre` displaying the changes by default. 2015-08-14 11:07:35 -04:00
Mike Jolley a0be65596f COD: remove shipping check if the cart is 100% virtual.
@claudiosmweb
2015-08-13 23:54:16 +01:00
Mike Jolley dc1798f942 woocommerce_variable_children_args hook. 2015-08-13 23:35:41 +01:00
George Stephanis 2aa1650f54 Rearrange things to get ajax working.
Spread them out throughout WooCommerce.
2015-08-13 17:49:59 -04:00
Diego Zanella 5b29d23daf Added filter for Variable Products, as suggested in #8820
* The new filter allows to alter the query used to retrieve children of a variable product.
2015-08-13 22:42:16 +01:00
George Stephanis c6d7e6ba26 Make this public so it can be used to sanitize. 2015-08-13 17:34:00 -04:00
Mike Jolley 92043a19f2 Free shipping should not be on by default
Closes #8819
2015-08-13 22:02:44 +01:00
George Stephanis ec287f116f Add ajax submission processing.
Not quite finished yet, as the add_action isn’t catching.
2015-08-13 16:57:54 -04:00
George Stephanis d4ab9e6feb Add in a bit of extra sanitizing for tax rate classes. 2015-08-13 16:56:50 -04:00
Claudio Sanches 893d0e40da Include attribute archives support in the breadcrumbs 2015-08-13 16:02:57 -03:00
George Stephanis 2d097a8f4c Minified version of new js file. 2015-08-13 14:29:01 -04:00
George Stephanis 3a87b98ba6 Rewrite onAddNewRow for Backbone models. 2015-08-13 14:10:47 -04:00
Mike Jolley 63fe4a0c05 Correct docbloc Closes #8814 2015-08-13 18:05:55 +01:00
Mike Jolley d9f9da955d empty checking 2015-08-13 16:58:23 +01:00
George Stephanis b4bd433342 Update the unsaved message to give better data. 2015-08-13 11:58:09 -04:00
Mike Jolley 827ff2ae85 Merge pull request #8813 from SiR-DanieL/deprecated-fix
Replacing deprecated functions
2015-08-13 16:56:32 +01:00
Mike Jolley 56b6c0ab9c Link to full image
Closes #8809
2015-08-13 16:55:32 +01:00
Nicola Mustone 51c4599b59 replacing deprecated functions 2015-08-13 17:49:25 +02:00
Mike Jolley 630c14124c Avoid firing woocommerce_order_fully_refunded twice 2015-08-13 16:35:52 +01:00
Ewout Fernhout 535949b02e add $display_refunded parameter to get_formatted_order_total
#8793
2015-08-13 15:45:49 +02:00
Mike Jolley a52619c344 Ajax variation handling when 'any' attribute is set. 2015-08-13 13:57:26 +01:00
Mike Jolley fb64e6e66e Use wp_unslash and only decode when getting attributes, not saving 2015-08-13 13:03:51 +01:00
Mike Jolley 7552704e75 double encode attributes 2015-08-13 12:16:08 +01:00
Mike Jolley a545a3aa02 wp_json_encode is 4.1 + 2015-08-13 12:07:12 +01:00
Mike Jolley 4908131b86 stripslashes_deep attributes 2015-08-13 12:07:05 +01:00
Mike Jolley 3a4653ba3b Run html_entity_decode over text attributes to fix problems with quote characters. 2015-08-13 12:06:52 +01:00
Manos Psychogyiopoulos 46151c6757 ensure variation data is_array 2015-08-13 13:32:26 +03:00
Manos Psychogyiopoulos 97ab635e71 introduce get_formatted_variation_attributes 2015-08-13 13:12:24 +03:00
Mike Jolley 8f759c8af1 Order variations by menu_order by fallback to ID. 2015-08-13 10:40:50 +01:00
Mike Jolley d3e2217227 Allow errors with debug on
Closes #8805
2015-08-13 10:27:22 +01:00
Claudio Sanches 275849b5da [2.4] Fixe order by user and sorting by total, closes #8803 2015-08-13 00:33:56 -03:00
George Stephanis e10064d0fe Revert back to passing in array values. We can indexBy in JS 2015-08-12 17:17:39 -04:00
Claudio Sanches 6d79f7f02b Fixed default wc_lostpassword_url() args, closes #8800 2015-08-12 17:43:04 -03:00
George Stephanis f77b77e335 New template for empty set. 2015-08-12 15:29:17 -04:00
George Stephanis 4e2229a6bf Merge branch 'master' into issue/8587 2015-08-12 15:07:44 -04:00
George Stephanis 220550621a Populate the search field value attribute 2015-08-12 14:38:25 -04:00
George Stephanis 3ee43646ae Pass in the current page's base url to js for appending. 2015-08-12 14:18:49 -04:00
Mike Jolley f8b539eb5e Improved refund email events and woocommerce_order_fully_refunded hook.
Closes #8793
2015-08-12 19:01:05 +01:00
George Stephanis 4aedda5eb8 Indent the template file properly. 2015-08-12 13:52:04 -04:00
Mike Jolley cbb89fa4b9 wc_get_product_variation_attributes should only get parent attributes which are for variations.
Closes #8796
2015-08-12 18:02:13 +01:00
George Stephanis 56218b0824 Add in a notification for unsaved changes. 2015-08-12 12:59:13 -04:00
George Stephanis 8dc2126718 Update the tablenav so the gotos are never out of range. 2015-08-12 12:59:12 -04:00
George Stephanis 837931f99a Check for truthiness.
This avoids silliness where `’0’` evaluates to true.  Just parse it as
an int and evaluate that.
2015-08-12 12:59:11 -04:00
George Stephanis 2a0951e4e5 Add more data attributes to the rows and fields. 2015-08-12 12:59:11 -04:00
George Stephanis 1a066ebbe0 Swap to associative array for model. 2015-08-12 12:59:11 -04:00
George Stephanis ce7cb1f65d Add a `beforeunload` event to prompt before leaving with unsaved changes. 2015-08-12 12:59:10 -04:00
George Stephanis c6e3a577c0 Set backbone and underscore as script dependencies. 2015-08-12 12:59:10 -04:00
George Stephanis 8a416f105b Should be comparing to `'1'` not `1`. 2015-08-12 12:59:10 -04:00
George Stephanis ddba588987 Migrate the logic and queries out of the template file.
Move them where they belong, in the class that calls it.
2015-08-12 12:59:09 -04:00
George Stephanis 5f4cbf78d0 Remove the legacy pagination. 2015-08-12 12:59:09 -04:00
George Stephanis 4df13e6ffb Don't set them for unexistent rates. 2015-08-12 12:59:09 -04:00
George Stephanis 7bebbaff9e Pagination now works by first, prev, next, last.
Still need to get number based pagination working.
2015-08-12 12:59:09 -04:00
George Stephanis cf59aec17d Add in and populate pagination template.
The buttons don’t actually do anything yet, but it outputs accurately
and inherits core styles.
2015-08-12 12:59:09 -04:00
George Stephanis be4c7db8bd Pass rates in as an array, not an associative array, so it's an Array in js. 2015-08-12 12:59:08 -04:00
George Stephanis c9a1ba2f39 A default placeholder to show until the rendering code replaces it. 2015-08-12 12:59:08 -04:00
George Stephanis 536402c183 Insert placeholder divs for search and pagination. 2015-08-12 12:59:07 -04:00
George Stephanis 308c7f8676 Whitespace tweaks 2015-08-12 12:59:07 -04:00
George Stephanis 676af1f308 JSHint fixes.
The other advantage of splitting js out of php files — jshint can run
on it! :) :) :)
2015-08-12 12:59:07 -04:00
George Stephanis 52d4ea822c Extract 'No Rows Selected' string 2015-08-12 12:59:07 -04:00
George Stephanis 973348d6ad Whitespace tidy! 2015-08-12 12:59:06 -04:00
George Stephanis 18293cf365 Extract the autocomplete for states and countries data.
Localize it!
2015-08-12 12:59:06 -04:00
George Stephanis 5d5a64753d Migrate csv columns to localize script. 2015-08-12 12:59:06 -04:00
George Stephanis 39749c4563 Move js in from php template file. 2015-08-12 12:59:06 -04:00
George Stephanis a63ef876d7 Rename and tweak how js is registered.
Thanks @claudiosmweb for the suggestion to match existing conventions.
2015-08-12 12:59:06 -04:00
George Stephanis 0ed5f40fa2 Prefix template name with `wc-`
Good call, @mikejolley
2015-08-12 12:59:06 -04:00
George Stephanis a59ed70774 Big changeover to JS templating for the table.
Switching over to building the table with JS — wp.template.

We are now using the same JS template for existing rows and newly
generated rows on the fly — this should simplify things moving forward.

I’ve also started building stuff in an external JS file rather than
straight on the page.  Will continue migrating things to it and
localizing as needed.

Saved ( 2 * displayed tax rates - 1 ) db queries per page load by doing
the locations all in one query and then parceling them out in php.

More coming.
2015-08-12 12:59:06 -04:00
George Stephanis cb4e3cb774 Tax Rate Search: First whack.
This is by no means complete.  A number of things need to be relocated
and optimized still, but it does a rough search, purely in JS, and
highlights the results in yellow.
2015-08-12 12:59:05 -04:00
Mike Jolley 817f8476ac Refund subjects when order contains downloadable product. 2015-08-12 17:50:57 +01:00
Mike Jolley 19e8cc4634 display_errors > error_reporting 2015-08-12 17:45:49 +01:00
Mike Jolley 7a58c5417c Only process downloads if valid order is found
Closes #8798
2015-08-12 17:21:07 +01:00
Mike Jolley 457283bc3c Ajax variations: stripslashes to fix attributes with quotes. 2015-08-12 17:08:21 +01:00
Mike Jolley 6a3f4ee969 Disable error_reporting during ajax requests to prevent malformed JSON. 2015-08-12 11:51:05 +01:00
Mike Jolley 2f79ab5e3a When merging shipping taxes with a shipping rate taxes, ensure shipping rate taxes is not malformed.
Closes #8790
2015-08-12 11:28:24 +01:00
Mike Jolley 0da69f2bef Query within wc_customer_bought_product(). 2015-08-12 10:44:44 +01:00
Mike Jolley f6f2d7f9df Ensure array is returned from wc_get_attribute_taxonomies 2015-08-11 17:10:34 +01:00
Mike Jolley 3bd52a78a5 Use wc_get_attribute_taxonomies instead of global 2015-08-11 17:10:34 +01:00
Claudio Sanches 23f6544ffc Stop jetpack markdown of add slashs in HTML, closes #8782 2015-08-11 12:06:59 -03:00
Mike Jolley 4dd19c3839 Stripslashes on text attributes
Fixes #8778 Closes #8771
2015-08-11 14:55:35 +01:00
Mike Jolley 7d27707043 Tax inclusive prices rounding issue
Remove rounding on cart_contents_total so total is calculated correctly.

Prevents issues with half rounded taxes and half rounded items.

Fixes #8776
2015-08-11 14:17:52 +01:00
Mike Jolley fafb6d5dca Tweak cart fix to avoid munging %%endpoint%% 2015-08-11 14:04:42 +01:00
Mike Jolley 3eedab457d return; don't break 2015-08-11 13:47:12 +01:00
Mike Jolley 61f7dd428e use shop_single instead of full image size for variations.
Closes #8764
2015-08-11 12:54:26 +01:00
Ninos Ego 98a1ae4b25 Add class arg to dropdown function 2015-08-11 13:17:52 +02:00
Mike Jolley 5b786261e1 Hide get_formatted_legacy notices when doing ajax. 2015-08-11 12:09:54 +01:00
Mike Jolley faa8ab02e0 * Fix - ordering_args in product_category shortcode. 2015-08-11 12:04:30 +01:00
Mike Jolley 8a0f4fcc67 Tweak update shipping logic 2015-08-11 11:53:51 +01:00
Mike Jolley 1078564fca Prevent double add to cart due to ajax endpoints. 2015-08-11 11:53:36 +01:00
Mike Jolley 1cae64f448 eval maths - output errors only if WP_DEBUG is on 2015-08-11 11:23:53 +01:00
Mike Jolley 15e3c545df Made checkout make use of new ajax endpoints.
Fixes #8763
2015-08-11 11:18:50 +01:00
Mike Jolley 42e99286c7 If all variations are out of stock, maintain pricing. 2015-08-11 10:33:47 +01:00
Nicola Mustone 1017798c6c instroducing WC_Session::delete 2015-08-11 10:11:36 +02:00
Claudio Sanches b1f0da9d76 Version 2.4.1 2015-08-10 18:44:32 -03:00
Claudio Sanches a572c40405 Added the update script for 2.4.1 2015-08-10 18:27:07 -03:00
Claudio Sanches f7c5d3d5f9 Fixed a typo 2015-08-10 18:26:06 -03:00
Claudio Sanches 7908d6e55a Improved 2.4.1 update script 2015-08-10 18:23:28 -03:00
Claudio Sanches 2ad4592324 WooCommerce 2.4.1 update script 2015-08-10 18:18:33 -03:00
Mike Jolley c1cd3f097c Fix notices when calling get_shipping_classes(). 2015-08-10 21:52:21 +01:00
Mike Jolley 1f5bca4daa Ensure emails are disabled during this update routine
Closes #8758
2015-08-10 21:37:49 +01:00
Mike Jolley 77b2316d80 Merge pull request #8754 from JeroenSormani/is_on_sale
FIx is_on_sale bug on variable products
2015-08-10 15:43:35 +01:00
JeroenSormani 95609928ba FIx is_on_sale bug on variable products 2015-08-10 16:36:40 +02:00
Mike Jolley 7363c85a2c Get filtered variation prices #8753 2015-08-10 15:34:10 +01:00
Mike Jolley 318f399081 Small tidy for scruitinizer 2015-08-10 14:56:02 +01:00
Mike Jolley d3f0fd1bb3 Correct docblocks 2015-08-10 14:42:10 +01:00
Mike Jolley 41e8cf74fb Unused vars 2015-08-10 14:40:14 +01:00
Mike Jolley f687a5a059 When setting up flat and international shipping during wizard, set availability based on base country 2015-08-10 11:03:36 +01:00
Mike Jolley 257010695e Readme, versions, develop blog links 2015-08-10 10:39:08 +01:00
Brent Shepherd a826330ad0 Reinstate default value for $items
That was (accidentally?) removed with SHA: 877e39064

Fixes "PHP Notice:  Undefined variable: items" when attempting to get
line items of a type that does not exist on the order, like coupons.
2015-08-07 12:12:08 -07:00
Claudio Sanches 8bc5e9e284 Merge pull request #8747 from thenbrent/add_api_permissions_filter
Add permissions in scope filter
2015-08-07 15:25:00 -03:00
Brent Shepherd 1681b0f9d5 Add permissions in scope filter
To allow extensions to display the permissions API keys will provide
for their objects, in addition to the permissions for core WC objects.
2015-08-07 11:19:21 -07:00
Claudio Sanches e9acb4f7cf Fixed api keys migration for 2.4, closes #8746 2015-08-07 15:15:34 -03:00
Doug Smith 46536b6374 Minor grammar fixes to the update welcome message 2015-08-07 11:21:49 -05:00
Claudio Sanches 0a657fdd96 Added missing dot 2015-08-07 10:37:45 -03:00
Claudio Sanches 38aa17b67b Fixed hardcoded string 2015-08-07 10:27:40 -03:00
Claudio Sanches c0179c8bb2 Fixed a typo/extra end of line 2015-08-07 10:18:30 -03:00
Mike Jolley 877e390646 Remove $type from prepare 2015-08-07 14:06:19 +01:00
Mike Jolley d6ceec0817 Flip esc_like and esc_sql, add % 2015-08-07 13:54:50 +01:00
Mike Jolley 800ae12552 Merge pull request #8742 from thenbrent/fix_truncated_key
Fix truncated_key value inserted on visual authentication request
2015-08-07 11:45:40 +01:00
Mike Jolley 5c9ac6a893 Avoid double escape when passing in arrays to sql queries. Use esc_sql 2015-08-07 11:37:19 +01:00
Mike Jolley c5cba283ed Remove numbered arguments from queries 2015-08-07 11:37:19 +01:00
Mike Jolley fcbdd35223 Clean and escape API search 2015-08-07 11:37:19 +01:00
Mike Jolley 4c8ef3ff33 Use esc_sql on item type instead of esc_attr 2015-08-07 11:37:19 +01:00
Brent Shepherd 19a91e3afc Fix truncated_key value inserted on visual auth
When inserting a new set of API keys via the visual API endpoint, only 5 format
values were specified in the 3rd param passed to the $wpdb->insert(); however,
6 values were specified in the 2nd param. This meant that the truncted_key value
was being formatted as an integer only the first numerical characters of the last
7 character of the consumer key were being stored. For example, given a consumer
key value of ck_e91f2aeae6c3dea3045293a3dbdf55c317ad762c the truncated_key value
should be 7ad762c but instead, it was being stored at 7.
2015-08-06 17:40:17 -07:00
Mike Jolley ddd97b64c3 Remove white space to fix appearance of new rows
Fixes #8730
2015-08-06 11:38:46 +01:00
Mike Jolley b91ccd32b9 Tweak wildcard tax handling to deal with 9 digit zip codes
Fixes #8736
2015-08-06 11:36:02 +01:00
Shiva Poudel 4cc26ab799 Backbone modal template to support wp.template 2015-08-06 10:22:53 +05:45
Shiva Poudel 0d1c2dc4dc Fix - calls for esc_* 2015-08-06 02:04:21 +05:45
George Stephanis 9269fd7432 Retooling how this is escaped.
Sanitize early, escape late.  Rather than double escaping, I figured
it’d be better to sprintf it in, and then escape that string — closer
to the output.

Also, I’m not sure why `urlencode` was used to escape a name?
2015-08-05 15:18:47 -04:00
George Stephanis c938fa24da More missing esc_attr calls, :( 2015-08-05 15:17:52 -04:00
Claudio Sanches b091f12393 Fixed some js conding standards 2015-08-05 15:57:15 -03:00
George Stephanis 95e6b84fbb Make sure we esc_attr translation results
Part 2 of … 2, I think.
2015-08-05 14:15:00 -04:00
George Stephanis 29d9a7da8c Found two missing `esc_js()` calls as well. 2015-08-05 14:10:10 -04:00
George Stephanis c7ee929325 Partial _e() => esc_attr_e() changeover.
There’s a lot of them, so I’m breaking them into multiple commits.

This is safeguarding stuff in case some translation uses a double
quote, it will no longer risk breaking out of the attribute.
2015-08-05 14:10:09 -04:00
Claudio Sanches 47492fb273 Merge branch 'master' of github.com:woothemes/woocommerce 2015-08-05 15:03:05 -03:00
Claudio Sanches 054dfe0c7b Changed default Underscore's template for wp.template in API Keys 2015-08-05 15:02:55 -03:00
Mike Jolley 7f3c2a78c5 Get total functions should respect rounding settings.
Closes #8707
2015-08-05 14:33:53 +01:00
Mike Jolley 737769174e Customer class using wrong meta keys for address_1/shipping_address_1
Fixes #8717
2015-08-05 14:05:03 +01:00
Mike Jolley e8ea978e9e Merge pull request #8697 from JeroenSormani/define-ajax
Define DOING_AJAX early
2015-08-05 13:53:40 +01:00
Mike Jolley afd0e9edd4 Pass $this to filters
#8722
2015-08-05 13:49:27 +01:00
Mike Jolley ccbe22164b Merge pull request #8722 from SiR-DanieL/cross-up-sells
Added cross and up sells IDs filters
2015-08-05 13:48:46 +01:00
Mike Jolley c97f845d7f Merge pull request #8727 from SiR-DanieL/order-items-fix
Fix possible fatal error on the order admin page
2015-08-05 13:48:11 +01:00
Mike Jolley d222dd4c37 Don't apply product discount if price is already 0
Closes #8725
2015-08-05 13:45:32 +01:00
Nicola Mustone bfb0aa95b3 fix possible fatal error on the order admin page 2015-08-05 14:10:23 +02:00
Nicola Mustone 9822edda0b better naming 2015-08-05 13:54:20 +02:00
Nicola Mustone 9140ca0f76 added cross and up sells IDs filters 2015-08-05 11:01:47 +02:00
Claudio Sanches 2954707118 Fixed rest_api_allowed_post_types filter 2015-08-04 13:49:24 -03:00
Claudio Sanches 8bcc926c63 Allowed products into wp.com rest api to enable jetpack related posts feature, closes #8712 2015-08-03 18:36:25 -03:00
Mike Jolley d6bd46c55d Move expand_item_meta to own method
Fixes notices in some extensions (deposits)
2015-08-03 13:21:44 +01:00
Mike Jolley ef798921aa woocommerce_can_reduce_order_stock filter
Needed for extension (deposits)
2015-08-03 10:37:58 +01:00
toddlahman 50d659f380 fix for array_filter() expects parameter 1 to be array, boolean given
array_filter() expects parameter 1 to be array, boolean given
/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-
product.php(171)

$exclude is evaluated as a boolean.
2015-08-02 00:35:58 -07:00
Fredrik Rossland 841beb95a6 Found a typo, "Permissons"
Changed "Permissons" to "Permissions"
2015-08-01 19:42:10 +02:00
Brent Shepherd 501f0b752f Save product type before saving variations
WooCommerce prior to WC 2.4 saved the product type before any variations were saved because
WC_Meta_Box_Product_Data::save_variations() was called by WC_Meta_Box_Product_Data::save().
However, in WC 2.4 the variations are saved independently of other data about the containing
variable product, including product type. Because the product type hasn't been saved yet,
extensions that need to save their own variation level meta data can't know when saving
variations if the product is of the type they want to act on. They also can't check `$_POST`
to find out when saving variations, because 'product-type' isn't passed to that as it's
variable level meta data, not variation level meta data.

This patch passes the product type along with the variation level meta data when saving variations.
It then uses that to save the product type if the variable product has not yet been saved (and
therefore the product type has never been stored, which means calling get_product() would instantiate
a 'simple' product, as that is the default product type). This can lead to fatal errors if callbacks
expect the product type to be variable and attempt to call methods that only exist on those product
types, like variable_product_sync().

It will also update the product type if it was previously saved but has since changed. This prevents
fatal errors like that mentioned above but caused by switching from one product type, like a simple
product, to another, like a variable product.
2015-07-31 11:42:21 -07:00
JeroenSormani 2c81a71f04 Define DOING_AJAX early 2015-07-31 20:15:17 +02:00
Mike Jolley e7dfff8687 Update wording and add tooltip
#8690
2015-07-31 17:14:28 +01:00
Mike Jolley 61cb48afd7 Tweak wc ajax to post to the CURRENT URL rather than a fixed endpoint 2015-07-31 12:56:27 +01:00
Mike Jolley 82f50cedb0 Allow menu_order sorting like in 2.3
Also allow setting manually to allow sorting between pages.

Fixes #8690
2015-07-31 12:39:23 +01:00
Mike Jolley 763c7dde35 Fix product image size saving
Fixes #8695
2015-07-31 11:29:04 +01:00
Claudio Sanches a215c4ed3c [API] Fixed variation without parent for v2 2015-07-30 21:53:00 -03:00
Claudio Sanches a42b25ec4e Merge pull request #8692 from Nils-Fredrik/master
Fix for #8691: Variation without parent will not cause 500.
2015-07-30 21:51:13 -03:00
Claudio Sanches 6c4893e0b2 Introduces the woocommerce_ajax_admin_get_variations_args filter, closes #8690 2015-07-30 19:11:53 -03:00
nils-fredrik@maksimer.no f4db67bcbc Fix for #8691: Variation without parent will not cause 500. 2015-07-30 23:32:24 +02:00
Claudio Sanches 09145181e5 [API] Removed deprecated products/sku endpoint 2015-07-30 17:35:14 -03:00
Claudio Sanches 002b5df763 Merge branch 'master' of github.com:woothemes/woocommerce 2015-07-30 15:07:52 -03:00
Claudio Sanches 0361a10e26 Removed instances of WC_Order in favor to wc_get_order(), closes #8689 2015-07-30 15:07:34 -03:00
Mike Jolley 64d38f6dd8 STOCK STATUS field for variations should never be hidden
Fixes #8687
2015-07-30 15:45:05 +01:00
Mike Jolley 622dc777f0 Correct number format in coupon total 2015-07-30 12:52:52 +01:00
Claudio Sanches b28c6db7f5 Added button to dismiss variation error notices 2015-07-29 19:56:33 -03:00
Mike Jolley 7b2aec4791 Take item qty into consideration when refunding orders
Fixes #8675
2015-07-29 13:13:41 +01:00
Mike Jolley b0ee9a8cc6 Handle text vs select attribute names vs slugs 2015-07-29 10:58:28 +01:00
Claudio Sanches ef5f41d748 Fixed textdomain for api key last access unknown, closes #8672 2015-07-28 12:44:20 -03:00
Mike Jolley 060fb16e2e Move Pre 2.4 handling for attributes - DRY
@claudiosmweb @franticpsyx
2015-07-28 16:20:51 +01:00
Mike Jolley 6626c68175 When syncing OLD products, update the attributes to 2.4 standard 2015-07-28 15:13:25 +01:00
Mike Jolley f19ba7a755 Send line item when no name is set
Closes #8666
2015-07-28 11:41:37 +01:00
Mike Jolley eb19532165 Show 'fee' label is empty 2015-07-28 11:32:53 +01:00
Mike Jolley e4a8602490 filter: woocommerce_widget_cart_is_hidden
Closes #8670
2015-07-28 11:06:31 +01:00
Mike Jolley 1b45bcde0b URL encode to preserve text attributes in permalinks 2015-07-28 10:37:24 +01:00
Mike Jolley 808c01cb90 Added woocommerce_single_variation hook for variation data and cart button to reduce code in template file and used hooks. @claudiosmweb
Removed woocommerce_before_variations_button @Ninos. Use
woocommerce_single_variation
2015-07-28 10:32:28 +01:00
WordCommerce 19205ec0e6 [2.4] Removed API status notification on the Settings 2015-07-27 23:59:08 +03:00
Claudio Sanches 30f9d81916 Fixed row actions to support WordPress 4.3, closes #8578 2015-07-27 16:14:41 -03:00
Mike Jolley 02243623ba Correct key for stock level
#8605
2015-07-27 19:07:11 +01:00
Mike Jolley 794af1c013 When the stock level is changed via update_post_meta ensure the stock_status is kept in sync
Closes #8605
2015-07-27 19:04:08 +01:00
Claudio Sanches b0ce578541 Show errors for admin ajax variations 2015-07-27 14:16:52 -03:00
Mike Jolley 236b493f3d Removed extract 2015-07-27 17:48:31 +01:00
Mike Jolley 7c9cae830a Populate variation_data with valid attributes only
@claudiosmweb
2015-07-27 17:48:30 +01:00
Mike Jolley 554a7f8141 Merge pull request #8657 from thenbrent/simplify_subscriptions_2_0
Update Simplify Commerce for Subscriptions v2.0
2015-07-27 16:57:03 +01:00
Mike Jolley 4d14ac8134 Missing closing tag 2015-07-27 16:50:55 +01:00
Mike Jolley 8d6858bb80 Sanitize not needed 2015-07-27 16:43:05 +01:00
Mike Jolley 9a7893ba23 Moved variation dropdowns logic into wc_dropdown_variation_attribute_options() 2015-07-27 16:42:22 +01:00
Mike Jolley 2ea6a2efab Merge branch 'pr/8607' 2015-07-27 13:17:27 +01:00
Mike Jolley 973c3d1d7a Tweak meta_is_product_attribute conditional to check for the existence of the get_variation_attributes method before running.
Closes #8660
2015-07-27 13:03:04 +01:00
Mike Jolley b425b9bce6 Avoid extract to keep original $file_path intact
Closes #8636
2015-07-27 12:44:29 +01:00
Mike Jolley 0ab151562a Fix issues with trailing slashes on permalinks
Closes #8658
2015-07-27 11:56:07 +01:00
Mike Jolley dcd273d343 Rename transient - 45 chars is max legnth 2015-07-27 10:57:14 +01:00
Claudio Sanches 506f87f138 Removed post filter count, closes #8654 2015-07-24 22:36:51 -03:00
Brent Shepherd aaaa5720f3 Simplify: Add support for multiple subscriptions
Nothing to see here. Easiest feature support ever.
2015-07-24 18:18:00 -07:00
Brent Shepherd 694929b0bf Simplify: Update change failling payment method
For Subscriptions v2.0.

 * Use new 'woocommerce_subscription_failing_payment_method_updated_' hook
 * Use new wcs_is_subscription() method to run process_subscription() when the
   transaction is for a subscription object.
 * Save the card and customer IDs on the 'shop_subscription' post from the renewal
   order rather than saving it on the order which purchased the subscription.
2015-07-24 18:17:57 -07:00
Brent Shepherd e6ccf437e9 Simplify: Update order_contains_subscription()
To use Subscriptions 2.0 methods to avoid deprecated notices and move
use of old methods to WC_Addons_Gateway_Simplify_Commerce_Deprecated
2015-07-24 18:17:57 -07:00
Brent Shepherd 73999c5daf Simplify: Remove meta from resubscribe orders
In Subscriptoins v2.0. Also deprecate the removal of it in 1.n, where
resubscribe orders were called "parent renewal orders".
2015-07-24 18:17:57 -07:00
Brent Shepherd 089485b3bf Simplify: Update renewal payments for Subs v2.0
* Add new save_subscription_meta() method to allow us to save customer ID both
  in Subscriptions 1.n on the original order and in 2.0 on the subscription/s
  created for the order)
* Use the new 'woocommerce_scheduled_subscription_payment_simplify' hook and
  deprecate use of the old 'scheduled_subscription_payment_simplify' hook by
  moving it to the WC_Addons_Gateway_Simplify_Commerce_Deprecated class
* Use core WC methods on the renewal order passed to scheduled_subscription_payment()
  to process the payment rather than having to call special Subscriptions API methods
  like WC_Subscriptions_Manager::process_subscription_payments_on_order() and
  WC_Subscriptions_Manager::process_subscription_payment_failure_on_order()
* Use the original order's total to determine the amount to charge up-front to
  save having to call WC_Subscriptions_Order::get_total_initial_payment()
* Use a description for recurring payments that is consistent with standard orders,
  i.e. "{Site Name} - Order {order_id}" instead of a description that does not include
  the renewal order's ID. This helps link payments to orders (which can then be traced
  to subscription/s).
2015-07-24 18:17:36 -07:00
Brent Shepherd 4c8e3788b3 Simplify: Support admin payment method changes
A new feature of Subscriptions v2.0.
2015-07-24 18:17:28 -07:00
Brent Shepherd e689fe8f15 Add WC_Addons_Gateway_Simplify_Commerce_Deprecated
To manage compatibility with Subscriptions 1.n
2015-07-24 18:06:35 -07:00
Tamara Zuk 1bd4cf8fad Define new `WC_DOING_AJAX` constant
This constant will allow extensions to selectively load files etc.
during a WC AJAX request.
2015-07-24 15:50:50 -04:00
Brent Shepherd c8405d3d29 Remove deprecated comments and commented out code
Because WC_Meta_Box_Product_Data::save_variations() doesn't need to be
deprecated.
2015-07-23 22:24:07 -07:00
Brent Shepherd ffdc13fb4b Remove duplication in WC_Ajax::save_variations()
And use the original WC_Meta_Box_Product_Data::save_variations() method instead.
2015-07-23 22:15:44 -07:00
Brent Shepherd 4100204344 Match the two save_variations()
Specifically, match WC_Meta_Box_Product_Data::save_variations() to the newer,
almost identical, WC_Ajax::save_variations(), added in SHA: ae18af8c (so that
we can eventually replace the newer WC_Ajax::save_variations().
2015-07-23 22:12:31 -07:00
Claudio Sanches 948c5c9cfc Fixed the sanitization for text-based default attributes 2015-07-22 21:40:06 -03:00
Claudio Sanches aa263ddc1e [API] Updated variable product attributes update for the new standard of WC 2.4 2015-07-22 21:07:05 -03:00
Claudio Sanches f3ac5657a4 Fixed link all variations when use text-based attributes 2015-07-22 18:57:50 -03:00
Claudio Sanches 1614696996 Fixed duplicated docblock 2015-07-22 12:05:25 -03:00
Claudio Sanches 6cac5e0f47 PayPal - Remove decimals when order currency is HUF, JPY or TWD, closes #8590 2015-07-22 11:43:12 -03:00
Claudio Sanches aec1e28549 [API] Check if REDIRECT_URL exists, closes #8632 2015-07-21 20:08:19 -03:00
Claudio Sanches 7b6680f4ef Just ignore round more if have a old version of PHP, closes #8629 2015-07-21 19:57:52 -03:00
Claudio Sanches 050d073678 Removed double ;; #8629 2015-07-21 19:49:05 -03:00
Claudio Sanches 70efb53934 Introduces the wc_cart_round_discount() function #8629 2015-07-21 19:45:13 -03:00
Claudio Sanches e1858d299b Changed WC_Download_Handler::count_download() from private to public, closes #8623 2015-07-21 19:03:40 -03:00
Claudio Sanches c95988bc8a Improve password sanitization in WC_Settings_API, closes #8627
@mikejolley
2015-07-21 18:37:12 -03:00
Claudio Sanches 7787673d33 Fix excluded posts ID in json_search_products() 2015-07-20 18:46:37 -03:00
Patrick Rauland c7cbe3e681 removing blank line. 2015-07-20 13:56:08 -06:00
Claudio Sanches f0b3d2fd9b Code tweaks for #8620 2015-07-20 14:36:12 -03:00
Claudio Sanches 9f7e1f3054 Merge pull request #8620 from JodiWarren/master
Moves the loop product title into a function and creates a new action for it.
2015-07-20 14:27:31 -03:00
Claudio Sanches 6f45872646 Disabled DFW feature pointer for products, closes #8595 2015-07-20 14:15:51 -03:00
Jodi Warren 2fb5f5bf78 Change product title to a hooked function. Fixes #8601 2015-07-20 18:10:56 +01:00
Claudio Sanches 0eac4914df [2.3] Fix check for relative downloadable product path, closes #8612 2015-07-20 13:56:28 -03:00
Claudio Sanches 6781f37fed Merge branch 'master' of github.com:woothemes/woocommerce 2015-07-20 13:41:26 -03:00
Claudio Sanches 791c20ae51 Added param for exclude posts from wc-product-search, closes #8613 2015-07-20 13:41:14 -03:00
Claudio Sanches 4ff87d26f7 Merge pull request #8615 from franticpsyx/additional-shipping-methods-filter
[2.4] Filter to enable deprecated addon rates
2015-07-20 12:56:18 -03:00
Claudio Sanches 3a0d2f7c89 [API] Fixed edit coupon description, closes #8614 2015-07-20 12:49:21 -03:00
Manos Psychogyiopoulos 79516ad2b4 typo 2015-07-20 12:13:29 +03:00
Manos Psychogyiopoulos 504f646310 enable deprecated addon rates 2015-07-20 12:08:39 +03:00
Manos Psychogyiopoulos 18a7c6b7fb back-compat with text-based attributes: defaults don't work in WC2.4 2015-07-18 12:34:41 +03:00
Claudio Sanches 095162df15 Merge branch 'master' of github.com:woothemes/woocommerce 2015-07-17 16:29:31 -03:00
Claudio Sanches d976cd8340 Disabled states for AX, closes #8594 2015-07-17 16:29:21 -03:00
Josh Koberstein 38856b29c4 Correcting indentation 2015-07-16 16:02:33 -07:00
Josh Koberstein 922715791c Passing array of term ids to wp_set_object_terms instead of term names. 2015-07-16 15:31:14 -07:00
Claudio Sanches ebcc3c1920 Fixed docblock typo 2015-07-16 16:57:42 -03:00
Claudio Sanches 9e41552342 Removed all "@return void" 2015-07-16 16:55:48 -03:00
Claudio Sanches 8d2a98eab1 Improved some docblocks 2015-07-16 16:29:01 -03:00
Claudio Sanches 83bdf82767 Fixed docblock for WC_API_Orders::get_variation_id() 2015-07-16 16:14:39 -03:00
Claudio Sanches eebd47ecf8 Improved truncated key description 2015-07-16 15:45:00 -03:00
Claudio Sanches bb0811643c Merge branch 'master' of github.com:woothemes/woocommerce 2015-07-16 15:42:11 -03:00
Claudio Sanches e0be5a2e9f Added truncated consumer key and last access fields in woocommerce_api_keys table 2015-07-16 15:42:00 -03:00
Mike Jolley d1db647c05 Fix validate_sale_items logic for variable products
Closes #8591
2015-07-16 17:53:52 +01:00
Mike Jolley cbf373ab3c kses store notice 2015-07-16 17:06:15 +01:00
Claudio Sanches 7cc0c6044f Return bool in WC_Emails::send(), closes #8593 2015-07-16 12:56:34 -03:00
Claudio Sanches 0806a66fc5 Fixed Grouping select, stop select if do not have parent_post and allow clear the selection, closes #8586 2015-07-16 12:51:38 -03:00
Mike Jolley 7285ce74e6 Tax display notice 2015-07-16 10:15:45 +01:00
Claudio Sanches b3f1d41974 Merge pull request #8583 from bekarice/fix-create-api-key-typo
[2.4] Fix typo while creating API keys
2015-07-15 19:25:45 -03:00
Beka Rice f227569659 Fix broken WooCommerce 101 video embeds 2015-07-15 18:19:47 -04:00
Beka Rice 54e00fc84a Fix typo while creating API keys
adds missing closing parentheses around user email:
https://cldup.com/pvTlBGBMot.png
2015-07-15 17:30:41 -04:00
Claudio Sanches 0ca5b9f892 Added woocommerce_order_status_changed to order updated webhook, closes #8581 2015-07-15 16:39:11 -03:00
Claudio Sanches 9aca8d689b Added HTML class row-title for coupons, orders, api keys and webhooks table lists 2015-07-15 15:45:57 -03:00
Mike Jolley f42fa85eab Variation tax status should always come from parent 2015-07-15 19:12:12 +01:00
Mike Jolley db61edcb36 Unused vars 2015-07-15 16:37:30 +01:00
Mike Jolley ed451f278f Unused var 2015-07-15 16:37:29 +01:00
Mike Jolley afbfd2b913 Tweak gzread 2015-07-15 16:37:29 +01:00
Mike Jolley 3749a10a4a empty $theme_file 2015-07-15 16:16:10 +01:00
Mike Jolley 47c47ab93c Avoid set_time_limit error supression 2015-07-15 16:14:32 +01:00
Mike Jolley 28c75c63dc Unused code 2015-07-15 16:04:49 +01:00
Mike Jolley db473cc369 Move refund logic into main order class.
These methods are not defined in the abstract.
2015-07-15 16:02:26 +01:00
Mike Jolley 9f703b96db delete_version_transients in blocks of 1000 to prevent timeouts
Uses cron. @claudiosmweb  Closes #8431
2015-07-15 15:12:54 +01:00
Mike Jolley b38fbed7c4 Merge pull request #8580 from thenbrent/item_meta_hideprefix
Add $hideprefix param to WC_Order_Item_Meta::get_formatted_legacy()
2015-07-15 14:36:22 +02:00
Mike Jolley 0f7342a70d Fix grouped product label 2015-07-15 13:33:45 +01:00
Brent Shepherd 83a87f238a Add $hideprefix param to get_formatted_legacy()
To honour the $hideprefix when dealing with legacy item meta data.
2015-07-14 19:15:31 -07:00
Shiva Poudel cebaf41d34 Tweak - Template check docs btn as primary 2015-07-15 04:48:46 +05:45
Shiva Poudel 3fb422a7c2 Fix - Nonce check when hide admin notices 2015-07-15 04:40:47 +05:45
Shiva Poudel 5f30308512 No longer use of frontend colors notice 2015-07-15 04:39:28 +05:45
Shiva Poudel 6c936a162d Tweak coding standard for update notice script 2015-07-15 04:38:32 +05:45
Claudio Sanches a28c1c1e33 Fixed language update for en_US, closes #8568 2015-07-14 12:18:51 -03:00
Claudio Sanches d2686f3d2e Don't show language update message for en_US #8568 2015-07-14 12:04:14 -03:00
Claudio Sanches 409dd81ab9 Fixed unit tests for WC_Cart::get_remove_url() 2015-07-14 12:02:32 -03:00
Claudio Sanches 08b59015c4 Merge pull request #8573 from vicky081/patch-6
get_permalink to wc_get_page_permalink
2015-07-14 11:22:32 -03:00
Mike Jolley c707f771ad serializeJSON to maintain POST data structure
@claudiosmweb
2015-07-14 13:49:45 +01:00
Mike Jolley c412a2eb3e Set $post during variation addition 2015-07-14 13:49:13 +01:00
Vignesh 0588c9fe1c get_permalink to wc_get_page_permalink
changed get_permalink to wc_get_page_permalink on class-wc-cart.php
2015-07-14 17:49:29 +05:30
Mike Jolley 8bf1cf60c5 Set $post global so its available like within the admin screens
@claudiosmweb
2015-07-14 12:28:31 +01:00
Mike Jolley 015ace770d Split up bulk edit ajax methods 2015-07-14 11:39:48 +01:00
Mike Jolley 9b21c1c7a1 Add deprecation notices for woocommerce_update_option_X and keep this action working.
Before this change, options would be overwritten by the new filters.
2015-07-14 10:10:07 +01:00
Claudio Sanches 57ab3dc0c2 Improved WC_Language_Pack_Upgrader #8568 2015-07-13 17:29:45 -03:00
Claudio Sanches 2cc7fcfa3f Fixed missing textdomains 2015-07-13 11:03:03 -03:00
Mike Jolley 53916e38bb Just return the URL 2015-07-13 11:00:10 +01:00
Mike Jolley ef89f82014 wc_get_page_permalink should check page_id was found 2015-07-13 10:59:34 +01:00
Vignesh e063d068d7 get_permalink to wc_get_page_permalink
Changed get_permalink to wc_get_page_permalink.
2015-07-13 15:01:52 +05:30
Mike Jolley 2f3cf18013 filter empty values during upgrade 2015-07-13 09:41:28 +01:00
Nicola Mustone 35d8572e0b new outdated templates tutorial link 2015-07-13 09:36:36 +02:00
Claudio Sanches eea72552f6 Added support for Jetpack Markdown in product short description, closes #8563 2015-07-11 21:35:47 -03:00
Max Rice a9f6f7fdfe Introduce woocommerce_order_full_refunded_status filter
In certain situations it’s undesirable to automatically change the
order status for an order that has been fully refunded. For example, an
order processed with a credit card whose charge has been authorized but
not yet captured is typically voided, not refunded since no funds have
actually been transferred. In that case, it’s ideal to allow gateways
to change the status to cancelled instead.
2015-07-10 19:51:02 -04:00
Claudio Sanches 9e4dc64f55 Merge branch 'master' of github.com:woothemes/woocommerce 2015-07-10 20:17:27 -03:00
Claudio Sanches b8a28bdab4 Admin variations - Cancel button reset the default form values
@mikejolley
2015-07-10 20:16:35 -03:00
Mike Jolley 86e0aa106e bulk_edit 2015-07-11 00:05:13 +01:00
Mike Jolley 3ec4003bbb Move add variation button and toolbars 2015-07-11 00:04:16 +01:00
Patrick Garman fb84486798 Update WC_Logger to include actions on add & clear methods
This allows for easy integrating with third party logging services.
2015-07-10 14:26:30 -05:00
Claudio Sanches a01660cbba Fixed WC_API_Products::clear_product() 2015-07-10 10:49:18 -03:00
Mike Jolley 157503a6d3 20 not 25 2015-07-10 14:26:39 +01:00
Mike Jolley 3446880705 Translators 2015-07-10 14:02:52 +01:00
Mike Jolley 33877624ac Welcome page content 2015-07-10 14:00:21 +01:00
Mike Jolley 2834eff221 Merge branch 'variations-8477'
Conflicts:
	assets/js/frontend/add-to-cart-variation.js
	assets/js/frontend/add-to-cart-variation.min.js
	assets/js/frontend/add-to-cart.min.js
	assets/js/frontend/checkout.min.js
	assets/js/frontend/geolocation.min.js
2015-07-10 11:37:05 +01:00
Mike Jolley 1cd2e558ed Remove add to cart variable from links
Closes #8554
2015-07-10 11:17:21 +01:00
Mike Jolley 8bf4469178 woocommerce_save_account_details_errors action
Closes #8532
2015-07-10 11:11:51 +01:00
Mike Jolley ea82ce9f06 Tweak display name to only change if set to an email
#8532
2015-07-10 11:09:14 +01:00
Mike Jolley a976d8e2ba Don't add hyphens for cities
Closes #8547
2015-07-10 11:02:08 +01:00
Mike Jolley d5a74203c2 Only need one numeric check 2015-07-10 10:48:29 +01:00
nils-fredrik@maksimer.no 3c2b54b360 Fix for #8550 2015-07-10 09:32:10 +02:00
Claudio Sanches 76b312b9e7 Use always min.js files on admin 2015-07-10 01:32:30 -03:00
Claudio Sanches 987a789367 Admin variations - Show link all variations bulk action 2015-07-10 00:49:52 -03:00
Claudio Sanches 3394277a86 Admin variations - Set _stock_status when link all variations 2015-07-09 18:28:02 -03:00
Claudio Sanches c5ae7b18c7 Created woocommerce_ajax_save_product_variations action 2015-07-09 17:43:46 -03:00
Claudio Sanches a64695b7f5 Admin variations - Added new triggers and removed data-product_id 2015-07-09 17:31:48 -03:00
Claudio Sanches ce08c336e9 Updated jquery.payment.js to version 1.2.4 2015-07-09 17:17:34 -03:00
Mike Jolley 506b5ef3f6 Set total after update_shipping
Based on add_shipping code Closes #8475
2015-07-09 16:48:34 +01:00
Mike Jolley 60193c7861 Pass product to woocommerce_ajax_variation_threshold 2015-07-09 16:31:46 +01:00
Mike Jolley 30b01ff9b6 Add filter to force price display 2015-07-09 16:15:05 +01:00
Mike Jolley 85855938ec woocommerce_ajax_variation_threshold 2015-07-09 16:04:46 +01:00
Mike Jolley 5f8a5bcb63 We don't need get_transient_version for children transients because other products do not affect this. 2015-07-09 16:02:26 +01:00
Mike Jolley eaed944048 Tweak template logic to load variations when needed 2015-07-09 15:58:58 +01:00
Mike Jolley 65f19d5ca7 Ajax variation handling
If there are more variations than the threshold allows (set to 20
currently) this loads the matching variation via ajax instead of inline
in the HTML. #8477
2015-07-09 15:56:20 +01:00
Claudio Sanches c4c2ebd038 Merge pull request #8536 from vicky081/patch-3
Class attribute added for Checkbox in settings
2015-07-09 11:43:00 -03:00
Vignesh 91faacb4c9 Return the output directly
Return the output directly instead of variable.
2015-07-09 13:39:29 +05:30
Mike Jolley 34f149bcbf Replace dash with colon 2015-07-08 23:51:44 +01:00
Mike Jolley fedfa53754 expand/close 2015-07-08 23:46:19 +01:00
Mike Jolley a219243e60 Move link all variations to bulk actions 2015-07-08 23:34:21 +01:00
Mike Jolley 8161cbd095 Change remove buttons into links 2015-07-08 23:08:07 +01:00
Claudio Sanches 042a6644e2 Ajaxify grouped product option, closes #7751 2015-07-08 18:38:17 -03:00
Claudio Sanches 89cef9ff02 Introduces methods to WC_Abstract_Order for get customer full name
New methods:

WC_Abstract_Order::get_formatted_billing_full_name()
WC_Abstract_Order::get_formatted_shipping_full_name()

closes #8535

cc: @mikejolley
2015-07-08 18:00:19 -03:00
Claudio Sanches 94aa610dc0 Admin variations - Prompt when changing page #6995 2015-07-08 17:45:19 -03:00
Claudio Sanches 0a820f055f Admin variations - Add cancel changes button #6995 2015-07-08 16:10:45 -03:00
Claudio Sanches 064af9a54c Admin variations - Split the save button from the link/add buttons #6995 2015-07-08 15:53:00 -03:00
Claudio Sanches bed51c6d0c Removed code test on WC_AJAX::save_variations() 2015-07-08 14:17:33 -03:00
Claudio Sanches ffef95f56f Fixed ajax variations posted data 2015-07-08 13:55:29 -03:00
Vignesh 8a4e7e34ca Update class-wc-admin-settings.php 2015-07-08 20:42:04 +05:30
Vignesh 4eef4bf846 Class attribute added for Checkbox in settings
Noticed class attribute missed in checkbox of admin settings function, this class name will help for developer also, can you please consider this as my proposal?
2015-07-08 20:24:36 +05:30
Mike Jolley 38d0d0dcad trim invalid chars from sum 2015-07-08 11:02:20 +01:00
Mike Jolley d19a7d2c2e Shipping debug for all users 2015-07-08 11:02:20 +01:00
Claudio Sanches 2ec12a7985 Prevent errors when variation don't have sale price dates 2015-07-08 04:05:08 -03:00
Claudio Sanches 843a55a6b5 Admin ajax variations 2015-07-07 20:53:36 -03:00
Claudio Sanches c03ea5625d Fixed the delete all variable products action 2015-07-07 19:51:50 -03:00
Claudio Sanches 4f3fb07dc9 Added new styles for variable pagenav 2015-07-07 19:06:51 -03:00
Claudio Sanches bbe3cb5b1b Added bulk variation edit for increase and decrease prices 2015-07-07 17:35:21 -03:00
Claudio Sanches 8b681fddf7 Created bulk edit actions for variable sale schedule 2015-07-07 16:39:59 -03:00
Claudio Sanches e69d172f6c Fixed bulk variation edit and added cases to save regular and sales prices 2015-07-07 16:07:09 -03:00
Claudio Sanches 11ca22ef1a Created _wc_save_product_price() private function 2015-07-07 16:06:34 -03:00
Mike Jolley 85dcee63ae Flat rate shipping costs should ignore virtual items.
Closes #8506
2015-07-07 10:41:56 +01:00
Claudio Sanches 268a696918 Initial bulk edit variations actions 2015-07-06 22:50:35 -03:00
Claudio Sanches de01133142 Save only updated/edited variations and fixed the variations sync and product cache/transients 2015-07-06 19:07:01 -03:00
Claudio Sanches af0b786104 Improved relative path check #8503 2015-07-06 15:02:15 -03:00
Claudio Sanches e888294caa [2.3] Fixed download URL for relative paths, closes #8503 2015-07-06 15:00:04 -03:00
Claudio Sanches ffd63efbe2 Merge pull request #8513 from paulwilde/woocommerce-form-field
Refactor woocommerce_form_field to remove duplication.
2015-07-06 14:07:33 -03:00
Mike Jolley fd6fd817a2 Merge pull request #8516 from Sk-Shaikat/master
Refund deleted hook parameter fix
2015-07-06 18:57:39 +02:00
Claudio Sanches 47eb3c5deb Merge pull request #8523 from adnanoner/master
Add variable $order to action 'woocommerce_order_item_' . $item['type'] . '_html'
2015-07-06 13:52:35 -03:00
Mike Jolley 6676ed08fa 500 response on IPN fail
Closes #8519
2015-07-06 17:48:46 +01:00
adnanoner 725e3ee4e0 Add $order to action 'woocommerce_order_item_' . $item['type'] . '_html'
This comes in handy when you want change the line_items loop.
In my case I wanted to have a single line for each order items (per quantity) so I could edit the order and change the product for individual items. Would be appreciated if this could be merged.
2015-07-06 18:09:06 +02:00
Mike Jolley 270eb785da Merge pull request #8522 from shivapoudel/wp_json_encode
Encode pointers into json, with some sanity checks
2015-07-06 18:07:02 +02:00
Mike Jolley e908055f31 Only check changelog for woothemes plugin URI plugins
Closes #8520
2015-07-06 16:02:34 +01:00
Mike Jolley 439ce9eed2 Merge branch 'save-fields-refactor-8495'
Closes #8495
2015-07-06 15:31:43 +01:00
Mike Jolley 2440717f72 live -> interactive 2015-07-06 14:52:41 +01:00
Shiva Poudel 3d328c92c4 Method should be conditional_includes 2015-07-06 15:34:31 +05:45
Shiva Poudel ba2afde068 Encode pointers into json, with some sanity checks 2015-07-06 15:30:10 +05:45
Mike Jolley 792536bd8e Prevent white space in report
Closes #8499
2015-07-06 10:18:23 +01:00
Claudio Sanches ae18af8cc7 Added method to save variations via ajax 2015-07-06 01:50:20 -03:00
Claudio Sanches 2dc0ef3f86 Added method to set the pagenav fields when add and remove variations 2015-07-06 01:09:36 -03:00
Claudio Sanches c3b5ad2337 Refactored the link all variations, remove variation and add variation methods 2015-07-05 23:55:08 -03:00
Claudio Sanches ee437bb646 Improved the navigation and tested if variations have some edition 2015-07-05 22:31:56 -03:00
Claudio Sanches 3de8405cc9 Created variations ajax pagination 2015-07-05 22:00:38 -03:00
Claudio Sanches b16b026647 Load initial variations when click on variations tab 2015-07-05 20:19:45 -03:00
Mike Jolley 18c6a940f1 Merge branch 'onboarding'
Conflicts:
	assets/css/admin.css
	assets/css/select2.css
	assets/css/woocommerce-layout.css
	assets/css/woocommerce.css
	assets/js/admin/order-backbone-modal.min.js
	includes/admin/class-wc-admin-help.php
	includes/admin/class-wc-admin.php
	includes/admin/views/html-admin-page-status-report.php
	includes/admin/views/html-notice-install.php
	includes/admin/views/html-notice-template-check.php
	includes/admin/views/html-notice-theme-support.php
	includes/admin/views/html-notice-tracking.php
	includes/class-wc-install.php
	includes/class-wc-language-pack-upgrader.php

includes/shipping/international-delivery/class-wc-shipping-international
-delivery.php
2015-07-04 23:11:12 +01:00
Mike Jolley 1257343006 Added missing locales based on popularity (from tracker) 2015-07-04 22:35:23 +01:00
Mike Jolley 45d89438c7 Ensure cart item key is set 2015-07-04 15:25:08 +01:00
Mohaiminul Islam 653bb17414 Add new parameter on refund deleted hook
This hook parameter dose not helps to get order id when trigger in action due to delete that post. This should add '$order_id' as parameter
2015-07-04 15:22:19 +06:00
Mohaiminul Islam 64f2e2bed0 Refund deleted hook parameter fix
This hook parameter dose not trigger in action due to delete that post. This should set '$order_id' as parameter
2015-07-04 14:17:05 +06:00
Paul Wilde e62291963f Set featured image labels for product image. 2015-07-03 20:57:16 +01:00
Paul Wilde 5c5e6fb015 Refactor woocommerce_form_field so that the container, label and description are not repeated for every field type. 2015-07-03 20:37:47 +01:00
Claudio Sanches 3d59933d6b Created initial methods to load variations by ajax 2015-07-02 17:42:22 -03:00
Andrew Wikel 968586f2ed Update to reflect current PayPal menu structure
Just update instructions to be more accurate.
2015-07-01 14:53:16 -05:00
Mike Jolley 02464c62cf Revised HELP tabs
Added links to education partners (@jobthomas) and included WooCommerce
101 videos in context.
2015-07-01 15:22:43 +01:00
Mike Jolley f779166bd1 onboarding site links #7829 2015-07-01 13:38:24 +01:00
Mike Jolley 84f0b541ed Tweak wording and US states 2015-07-01 13:30:34 +01:00
Mike Jolley 7d1a016502 Adjust sales report to deal with partial shipping refunds and full refunds 2015-07-01 12:11:21 +01:00
Mike Jolley 99b96daf70 Wording for inc/ex prices 2015-06-30 14:06:36 +01:00
Mike Jolley 049c95e724 Filter all item data
Closes #8361
2015-06-30 13:40:32 +01:00
Mike Jolley dc00921ced Merge pull request #8486 from justinshreve/get-price-suffix-price-param
Add $price and $qty parameters to get_price_suffix
2015-06-30 12:59:43 +02:00
Justin Shreve eb85cd1682 Add $price and $qty to get_price_suffix so custom values can be passed into get_price_including_tax and get_price_excluding_tax 2015-06-29 19:24:48 +00:00
Justin Sainton 4d5d018a34 Deprecate PHP4 constructor usage in widgets. This is deprecated in upcoming PHP versions. 2015-06-29 11:46:03 -07:00
Claudio Sanches c13409150f Fixed tests for get_woocommerce_currencies()
@mikejolley
2015-06-29 15:13:42 -03:00
Gregory Karpinsky 9094bb0662 Do not FATAL on $product->has_file 2015-06-29 09:08:16 -04:00
Mike Jolley eae15e9d72 Merge pull request #8453 from corsonr/low_stock_email_tweak
Add product stock in low stock email notification
2015-06-29 12:22:29 +02:00
Remi Corson 66b6536054 no more brackets 2015-06-29 11:06:41 +02:00
Remi Corson a2a903d71a fixed string 2015-06-29 09:57:58 +02:00
Mike Jolley d0a41989c9 Merge pull request #8451 from slash1andy/patch-1
Changed "pending" to "processing"
2015-06-28 16:48:03 +02:00
roykho c208928b0e remove hardcoded tree type 2015-06-27 07:41:24 -07:00
Claudio Sanches 289e44e1db Merge pull request #8471 from vicky081/patch-1
Removed Commented Code
2015-06-27 09:13:52 -03:00
Gerhard 230301e6da Don't reveal username when login failed on valid email login 2015-06-26 14:15:31 +02:00
Claudio Sanches ec0783f382 Fixed deprecated woocommerce_lostpassword_url() and lost password url on myaccount/form-login.php
ref #8459
2015-06-25 15:17:06 -03:00
Claudio Sanches 22ac2f56bf Added Argentine currency and symbol 2015-06-25 12:58:58 -03:00
Vignesh 1241dcee69 Removed Commented Code 2015-06-25 21:24:05 +05:30
Remi Corson 67400956eb add product stock in low stock email notification 2015-06-25 10:09:12 +02:00
Andrew Wikel 6b5cf56b66 Changed "pending" to "processing"
reflects more accurate order statuses.
2015-06-24 15:57:28 -05:00
Claudio Sanches 6e114d4f3c Updated the docblock for deprecated vars in woocommerce_get_product_thumbnail(), closes #8441 2015-06-23 12:46:37 -03:00
Claudio Sanches 349fc2f665 [API] post__in filter for v2 2015-06-23 11:51:40 -03:00
Claudio Sanches e003b7803f Merge pull request #8440 from kilbot/patch-4
Add post__not_in filter for REST API requests
2015-06-23 11:50:36 -03:00
Claudio Sanches 9dc28be577 Support HTTP_X_HTTP_METHOD_OVERRIDE in API old versions 2015-06-23 11:49:19 -03:00
Paul Kilmurray 9b848fb1bd Add post__not_in filter for REST API requests
To match the `post__in` filter above
2015-06-23 20:48:19 +08:00
Paul Kilmurray a030ab52cb Allow HTTP method to be overwritten by HTTP_X_HTTP_METHOD_OVERRIDE
For the same reasons [outlined here](https://github.com/WP-API/WP-API/issues/964), ie: Backbone uses X-HTTP-Method-Override.
2015-06-23 20:42:39 +08:00
Mike Jolley 71f2c25da4 Calc totals should not calc tax if disabled 2015-06-23 13:29:38 +01:00
Mike Jolley 84bc6e1b1a Merge branch 'geolocate-cache'
Conflicts:
	includes/class-wc-customer.php

Closes #7939
2015-06-23 12:26:03 +01:00
Mike Jolley 14c88b49bc Tweak option labelling 2015-06-23 12:20:13 +01:00
Mike Jolley 00d574a929 get_taxable_address() should get postcode and city too.
@SiR-DanieL Can you check this?
2015-06-23 11:50:15 +01:00
Mike Jolley 1801f57a39 Fix for permalink structures containing index.php 2015-06-23 11:45:04 +01:00
Mike Jolley 817e5355fd Pass $item object, not item meta array
Closes #8419
2015-06-23 10:24:13 +01:00
Claudio Sanches b43abff674 Merge pull request #8415 from justinshreve/oauth-7928
Fix issues with our OAuth implementation, including nonconformance to spec. Closes #7928
2015-06-22 15:00:51 -03:00
Justin Shreve 819a4fae0d wp_endswith doesn't actually exist (its a wpcom/jetpackism) - update with a simple substr check 2015-06-22 17:58:50 +00:00
Claudio Sanches c92bc6d865 Merge pull request #8406 from justinshreve/api-basic-auth-8256
Implement full basic authentication & query string auth without mixing the two, closes #8256
2015-06-22 14:06:07 -03:00
adnanoner d07e567050 add $args to woocommerce_refund_created action hook
#8432
2015-06-22 17:54:45 +02:00
Mike Jolley 9adbdd4a2c Tweak URL generation before redirect 2015-06-22 15:30:42 +01:00
Mike Jolley eb4cbaf69f get_taxable_address does not need to handle geolocation_ajax any more 2015-06-22 15:30:34 +01:00
Mike Jolley 8dbd30e76b Merge branch 'add-email-notification-for-partial-refunds-issue-8278' 2015-06-22 15:01:17 +01:00
Mike Jolley 07cc12049d Merge remote-tracking branch 'origin/add-email-notification-for-partial-refunds-issue-8278' into add-email-notification-for-partial-refunds-issue-8278 2015-06-22 14:59:51 +01:00
Mike Jolley f988aae387 Use hashes and server side redirection 2015-06-22 14:55:15 +01:00
davidlenehan d7538559a8 Pulling customs refund email fields from wp_options
Pulling customs refund email fields from wp_options correctly now and
overriding the basic lookup for subject and heading.
2015-06-22 14:18:44 +01:00
davidlenehan a171407bcb Adding form fields for partial refund emails
This is not a working solution yet, looking for feedback on ho west to
implement this
2015-06-22 13:36:47 +01:00
davidlenehan 47c18b1947 Fixing issue where email settings were blank
Fixing issue where email strings were blank for refunded orders in
wp-admin > WooCommerce > Settings > emails
2015-06-22 11:14:19 +01:00
Mike Jolley 5937a08696 Fix cat dropdown URL
Because a filter is not a fix :)

Closes #8412
2015-06-22 10:22:15 +01:00
Mike Jolley 0d6ec24a83 Merge branch 'pr/8413' 2015-06-22 10:14:31 +01:00
Mike Jolley e967c1e01c Tweak filters - move to format_string 2015-06-22 10:14:21 +01:00
fhugas e0c81c5fb8 Removed redundant strtolower()
Removed the redundant strtolower on line 43 in the private function get_file_name_from_class() which is only called from line 66 using a $class variable that is just strtolower()ed on line 65
2015-06-21 23:44:47 +02:00
Justin Shreve fcab013d53 $enc_type for http_build_query() is only available in PHP 5.4+
go back to a normalization approach
2015-06-19 23:03:45 +00:00
Justin Shreve 482303c0f9 Don't convert nested parameters to strings.
Switch to the native http_build_query instead of our own normalize function.
2015-06-19 16:11:17 +00:00
Justin Shreve 59bc17e0cb Check before building the current URL to see if a trailing slash should be appended or not, that way if a request includes one, the signature still matches. 2015-06-19 16:05:23 +00:00
Justin Shreve c43f9157c3 When generating the signature to compare, append a trailing &.
The OAuth spec (http://tools.ietf.org/html/rfc5849#section-3.4.2) states that a & character must be present, even if a token secret is not a part of the request.
2015-06-19 15:05:51 +00:00
Nicola Mustone c7e1540dea added filters for emails placeholders 2015-06-19 17:01:37 +02:00
Justin Shreve 9e2f0f55d8 Remove reauth endpoint. It's not going to work the way we want it to. If clients need to log out (like a browser), they can clear the sessions per browser. Also returns JSON error when auth is not returned correctly. 2015-06-19 13:42:10 +00:00
Justin Shreve 8da19e4dae Provide some directions in the Basic auth input box so the user knows where to provide the API key and secret. 2015-06-19 13:42:10 +00:00
Justin Shreve d63f7d014f Implement basic auth improvements and query string fall back.
If the key and secret query strings are provided, do auth based on those. If not, and the Basic auth headers are set, do full basic auth (including sending the correct headers).
Also implements a /reauth endpoint for basic auth.
2015-06-19 13:42:10 +00:00
Justin Shreve ade8db4f21 Load v2 files when v2 of the API is requested. Add rewrite support for v3 and load the 'default' API files for those requests. 2015-06-19 13:42:10 +00:00
Justin Shreve c9a2611d33 Version off the current api files into a v2 folder. 2015-06-19 13:42:10 +00:00
Mike Jolley 1e5d508675 woocommerce_removed_coupon
since the other action is ‘woocommerce_applied_coupon’ Closes #8404
2015-06-19 13:50:59 +01:00
Mike Jolley a8f88ec8d7 Merge pull request #8409 from justinshreve/prevent-duplicate-location-code-notice
Prevent duplicate key name 'location_type_code' MySQL error
2015-06-19 13:45:35 +01:00
Mike Jolley 5381dddff9 Merge remote-tracking branch 'origin/master' 2015-06-19 13:43:34 +01:00
Mike Jolley f5693309e2 Merge branch 'pr/8408' 2015-06-19 13:43:27 +01:00
Mike Jolley e08e123988 Note version since 2015-06-19 13:43:18 +01:00
Mike Jolley 126a662968 Merge pull request #8398 from justinshreve/sku-space-search-8395
Fix searching for SKUs with spaces (#8395)
2015-06-19 13:38:09 +01:00
Mike Jolley 7e2ba5e05a Ajax endpoint should always be relative 2015-06-19 13:30:57 +01:00
Mike Jolley c136d4ffd8 Merge branch 'master' into add-email-notification-for-partial-refunds-issue-8278 2015-06-19 13:05:52 +01:00
Mike Jolley 928b1cca2f Use DKK symbol 2015-06-19 12:15:14 +01:00
Paul Kilmurray 3538d02ca9 Allow decimal stock quantity via REST API
The WooCommerce default is to validate stock quantity as integer, however some users find it useful to override this to allow any float quantity, eg: 
```php
remove_filter('woocommerce_stock_amount', 'intval');
add_filter( 'woocommerce_stock_amount', 'floatval' );
```

Currently the API forces stock quantities to integer, this change will allow decimal quantities.
2015-06-19 12:07:10 +08:00
Justin Shreve 6a1d3f0032 In create_tables, drop the location_type_code index before doing a dbDelta, otherwise a duplicate key error occurs. 2015-06-19 00:47:18 +00:00
Gabor Javorszky 1dfb27f928 Adds WC_Abstract_Order->get_address
Adds a function to retrieve order address in non-localized, raw, non-formatted way.
2015-06-19 01:43:31 +01:00
James Koster 82df867276 text color. #7841 2015-06-18 14:46:25 +01:00
davidlenehan 4c2982affe Removing an unused file
Deleting a file no longer needed for this.
2015-06-18 12:00:14 +01:00
davidlenehan 718d550252 Merging refund email template files
Changing previous commit to merge templates for partial and full
refunds to cut down on files.
2015-06-18 11:34:21 +01:00
Mike Jolley af83181a25 Set to default locale if QS does not match customer data in store 2015-06-17 16:56:26 +01:00
Mike Jolley 389ccd5761 Remove base location from script and don't rely on session storage 2015-06-17 16:56:06 +01:00
davidlenehan 8b02b02145 Add email notification for partial refunds
fixes #8278

Emails are now sent to the customer when a partial refund is issued. I
referenced #7785 when doing this.

When a full refund happens the email the customer receives is clear
enough that they are getting a full refund. However I thought it would
be useful to add a new line in these new partial refund emails that
states exactly the value of the partial refund as it may not be that
clear.
2015-06-17 15:35:54 +01:00
Mike Jolley b8f644fe9e Remove line breaks 2015-06-17 15:19:04 +01:00
Justin Shreve 55317e69e3 Move the wp_posts ID check out of the string matching so we can find by ID _OR_ find based on sku match 2015-06-17 13:59:39 +00:00
Mike Jolley 4a9c2aece9 Update option wording 2015-06-17 14:27:42 +01:00
Mike Jolley b1441c05c1 Move geolocation to separate script 2015-06-17 14:16:35 +01:00
Mike Jolley 9886a805df Fix up standards #7939 2015-06-17 13:59:04 +01:00
Mike Jolley d939d7b395 Merge pull request #8391 from justinshreve/sale-date-8357
Make sure sale prices are properly applied when no from date is set and today is used as default (#8357)
2015-06-17 13:49:53 +01:00
Mike Jolley 5ac994f4f2 Nonces 2015-06-17 13:35:09 +01:00
Justin Shreve 8ae228f535 Do a less than or equals to check in meta-box-product-data in the case of $date_from being exactly the current time. 2015-06-17 12:18:57 +00:00
Mike Jolley 33c298fea7 Experiment with appending geolocation to query string to prevent caching 2015-06-17 12:12:49 +01:00
Mike Jolley 9843608cd4 Move country field with other address fields
Closes #8263
2015-06-17 10:17:41 +01:00
Evan Mattson 2181cd1d26 rename $email_id to $email_key
`$email_id` here is not the same as `$email->id`, renaming to show this, and for consistency with similar code
2015-06-16 21:37:54 -04:00
Evan Mattson c9c48b718e identify current section by email key to be consistent 2015-06-16 21:36:36 -04:00
Justin Shreve e1130005a5 When figuring out if to store a sale price, make sure $date_from is set to "today" when blank. The date meta was previously set, but the check to set the actual sale price saw $date_from as empty. 2015-06-16 20:00:16 +00:00
Tamara Zuk bd7f07d29f [2.3] Fix bug introduced in #8365
my mistake 🙀
2015-06-16 14:46:54 -04:00
Mike Jolley a31a1911cd Merge pull request #8388 from justinshreve/download-url-help-text
Update the help text to mention that we expect already encoded URLs
2015-06-16 18:09:12 +01:00
Claudio Sanches 1876227c9a Removed dead variable and fixed coding standards on wc_create_page() 2015-06-16 13:08:30 -03:00
Justin Shreve 5d8b17bd6f Update the help text to mention that we expect already encoded URLs. 2015-06-16 15:48:05 +00:00
Mike Jolley bf9265309e Merge pull request #8386 from jobthomas/onboarding
Edited copy text: consistency with second tab.
2015-06-16 15:45:59 +01:00
Mike Jolley e626545f67 Shipping costs for new settings 2015-06-16 15:43:39 +01:00
Mike Jolley b4574ba911 Remove code to view test product 2015-06-16 15:14:14 +01:00
Mike Jolley f8151f416c Merge branch 'text-attribute-handling' 2015-06-16 15:11:58 +01:00
Mike Jolley 622b11ae9f Add version check to prevent pre-2.4 logic kicking in when not needed
@claudiosmweb
2015-06-16 15:10:53 +01:00
Claudio Sanches dde7bc699b Merge pull request #8385 from jobthomas/master
Copy edit shipping settings
2015-06-16 10:54:19 -03:00
Job fd5fec705b Copy edit shipping settings
users > customer's
2015-06-16 15:51:36 +02:00
Mike Jolley 09fb3a604b [2.3] Small tweak to use email ID rather than classname directly
#8365
2015-06-16 14:47:03 +01:00
Mike Jolley 2501af0376 Merge pull request #8365 from tamarazuk/master
[2.3] Email settings save tweak
2015-06-16 14:43:07 +01:00
Mike Jolley f414ab99b4 Merge pull request #8375 from justinshreve/negative-refund-amount-8346
Prevent negative refund amounts (#8346)
2015-06-16 14:25:17 +01:00
Claudio Sanches 680605481f Merge pull request #8383 from woothemes/pages-cant-be-created-on-install-issue-8269
Allow trashed pages to be republished, closes #8269
2015-06-16 10:15:52 -03:00
Mike Jolley 93fbfe0bc3 Merge branch 'flat-rate-shipping-refactor' 2015-06-16 14:09:38 +01:00
Mike Jolley 583e1fc284 Typo closes #8381 2015-06-16 14:08:46 +01:00
Mike Jolley 71fc6c207e Free should only be used if costs set. If left blank, offer no rate
Closes #8380
2015-06-16 14:07:28 +01:00
davidlenehan 2fb7e0b52b Allow trashed pages to be republished
Expanding on @mehulkaklotar’s fix above. One issue is that is a deleted
store page has had its short code removed then it won’t be republished
and that page is still missing.

This fix catches pages that are in the trash but have no short code.
Those pages are now left in the trash and new page with the correct
short code is added in its place.

Fixes #8269
2015-06-16 12:31:15 +01:00
Mike Jolley 2347418c5b International shipping + legacy updater 2015-06-16 11:37:58 +01:00
Justin Shreve e832f1d132 Add some filters around order meta to enable filtering the output of meta/attribute information. 2015-06-15 22:16:44 +00:00
Justin Shreve b68244f3eb Prevent negative refunds in wc_create_refund by 0ing it out. 2015-06-15 20:20:31 +00:00
Justin Shreve 12a3a9d305 Return the 'Invalid refund amount' error for negative refunds. 2015-06-15 20:19:52 +00:00
Claudio Sanches ed20fd7921 Merge pull request #8372 from woothemes/add-empty-order-item-meta-issue8-339
Fixes issue with adding empty order item meta
2015-06-15 16:30:47 -03:00
Justin Shreve 910bcc7100 Index only the prefix of location_code when creating the tax_rate_locations table
Otherwise we hit a max key limit of 1000 with utf8 (since multiple bytes are stored per characater).
2015-06-15 16:45:30 +00:00
davidlenehan 925b46967a Removing the use of mb_strlen as it is always installed as standard. 2015-06-15 17:06:02 +01:00
davidlenehan 791317cfcf Fixes issue with adding empty order item meta
The changes just check to make sure that either a meta key or meta
value has been entered before it saves. Otherwise it deletes the order
item meta row that has been added. The user must add something to the
order item meta row now or it won’t get saved.

Not sure if this is the cleanest way to fix this issue. I was expecting
to see the function wc_update_order_item_meta() but it is not used in
this case.
2015-06-15 16:22:53 +01:00
Mike Jolley 75b01c5201 [2.3] woocommerce_downloadable_file_allowed_mime_types filter
#8362
2015-06-15 15:37:34 +01:00
Mike Jolley b3a161a744 Fix upgrade logic for per item type 2015-06-15 15:32:51 +01:00
Mike Jolley de1d818d4c remove functions and eval 2015-06-15 15:24:59 +01:00
Mike Jolley 6f90640ba3 Upgrade logic and option fallbacks 2015-06-15 15:24:51 +01:00
Mike Jolley 803714d088 BW compat for additional rates 2015-06-15 12:01:24 +01:00
Remi Corson 32a22b3337 replaced esc_attr by sanitize_html_class 2015-06-15 09:30:09 +02:00
Tamara Zuk 92c6d3d649 [2.3] Email settings save tweak
Allows emails to use a single common class as is done in Order Status
Manager
2015-06-13 10:15:58 -04:00
Remi Corson 61d7b156f4 added esc_attr 2015-06-12 21:59:51 +02:00
Mike Jolley d24461a9a5 Simplify flat rate shipping UI #8243 2015-06-12 16:19:43 +01:00
Mike Jolley af41e4bcd4 Eval Math Class 2015-06-12 14:27:50 +01:00
Remi Corson 40a56e2f9e Add debug tools classes 2015-06-12 15:07:01 +02:00
Mike Jolley 753a22734f Prevent Manage stock being forced on
Closes #8336
2015-06-12 11:22:54 +01:00
Mike Jolley 1398ac0feb Merge pull request #8331 from shivapoudel/nav-margin
Tweak nav tab margin for pretty messages
2015-06-12 11:09:45 +01:00
Mike Jolley 59d3fb5224 Merge pull request #8358 from justinshreve/colorpicker-integration
Implement the new color picker input and preview for integrations
2015-06-12 11:08:08 +01:00
Mike Jolley 05b2505c45 Revise links for @BFTrick 2015-06-11 16:18:01 +01:00
Mike Jolley 12396f4296 Attempted bw compat by comparing sanitised text to real text 2015-06-11 15:42:18 +01:00
Claudio Sanches 6d3ea23fac Added woocommerce_add_to_cart_redirect to ajax cart button, closes #8349 2015-06-11 11:40:26 -03:00
Justin Shreve 133b9ce969 Implement the new color picker + preview for integrations as well. 2015-06-11 14:40:06 +00:00
Mike Jolley 89f7e15052 Save full version of text based attributes when dealing with variations 2015-06-11 14:43:02 +01:00
Mike Jolley 02ef083eaf wc_get_text_attributes function 2015-06-11 14:42:37 +01:00
Shiva Poudel 292ca3a764 Tweak docs button for small screen device 2015-06-11 18:52:41 +05:45
Mike Jolley a3ed5efcd9 Merge pull request #8351 from MikeHansenMe/master
Fix broken password reset
2015-06-11 10:43:15 +01:00
Justin Shreve 5f627cf850 Move the color preview to its own separate "preview box" rather then changing the color of the input div box. 2015-06-11 07:15:51 +00:00
Mike Hansen 819f22df29 Update wc-page-functions.php 2015-06-10 17:53:34 -06:00
Diego Zanella 1faae5f4f5 Fixed reference in PayPal IPN class
* Using __CLASS__ in valid_response() prevents inheritance, as __CLASS__ is always resolved as the parent class. A descendant class would have to copy/paste the whole block of code for it to work correctly. Solution: replaced it with $this, as the valid_response() method is not static, and neither are any of the "payment_status_" methods.
2015-06-10 19:17:37 +01:00
Mike Jolley f3951a7490 [2.3] Fallback to serialized data if safe. 2015-06-10 18:28:34 +01:00
Mike Jolley aaaef5bfcf [2.3] Incorrect wc_product_total_stock_ transient
Closes #8337
2015-06-10 18:28:34 +01:00
Mike Jolley 21773ff9ba [2.3] JSON encode/decode PayPal response 2015-06-10 18:28:33 +01:00
Claudio Sanches 157a22a79c Merge pull request #8345 from justinshreve/product-api-download-url-8335
[2.3] Run URLs through esc_url_raw instead of wc_clean in the Products API (#8335)
2015-06-10 13:24:23 -03:00
Justin Shreve 66ccc8a75c Only run the file URL through esc_url_raw if it looks like an absolute URL, otherwise if it is a shortcode or relative URL, continue to use wc_clean. 2015-06-10 16:12:10 +00:00
Justin Shreve 7c3774e65f For file URLs and images, run the URL through esc_url_raw rather than wc_clean (which removes/strips things like entities). 2015-06-10 15:34:36 +00:00
Claudio Sanches fa026ea49d Normalize the "Order #" #8305 2015-06-10 12:09:18 -03:00
Claudio Sanches c9c3be6d3e [API] Use settings to auto generate passwords or not, closes #8342 2015-06-10 10:56:25 -03:00
Patrick Rauland 2d69a0d9c9 removing references to the community forum 2015-06-09 13:55:05 -06:00
Claudio Sanches eefd9a24f1 Merge pull request #8330 from justinshreve/api-tax-rounding-8328
Stop using the frontend display setting for tax rounding in the API (#8328)
2015-06-09 13:09:46 -03:00
Claudio Sanches f333bb68b2 Improved js for widget layered nav #8332 2015-06-09 13:06:50 -03:00
Claudio Sanches 16ddd24887 [2.3] Fixed & and , for layered nav dropdowns, closes #8332 2015-06-09 12:49:57 -03:00
Claudio Sanches c02052a206 [API] Stop undefined index erros for variations in orders endpoint
@justinshreve
2015-06-09 12:39:37 -03:00
Mike Jolley a148e867b0 [2.3] Fix sale item exclusion logic for variations
Closes #8324
2015-06-09 16:10:46 +01:00
Justin Shreve 1d8b6a58d6 Avoid rounding subtotal_tax and total_tax. Don't call wc_round_tax_total for subtotal, and avoid the call to get_line_tax directly which also calls wc_round_tax_total. 2015-06-09 15:06:30 +00:00
Mike Jolley 12eb7aa207 Move dashboard link to footer 2015-06-09 15:54:46 +01:00
Mike Jolley 922ca47cc1 [2.3] woocommerce_downloadable_file_exists filter 2015-06-09 15:27:28 +01:00
Claudio Sanches db8b343532 Merge pull request #8322 from justinshreve/api-product-variation-7951
Take product variation into account when creating orders from the API (fixes #7951)
2015-06-09 11:20:44 -03:00
Mike Jolley 9009b334e7 Merge branch 'test-price-filter' 2015-06-09 15:15:15 +01:00
Mike Jolley fe58e1b5e9 Account for tax classes 2015-06-09 14:58:27 +01:00
Justin Shreve 651b65f28e Add a unit test for get_variation_id so we know we are getting back the IDs that we want 2015-06-09 13:02:02 +00:00
Justin Shreve 937f93faa6 Clean up some naming and add a clarifying comment for the attribute & pa_ stripping. 2015-06-09 12:41:06 +00:00
Justin Shreve 251636c02e First pass at figuring out what the variation ID is based on variation information being passed in via the API. 2015-06-09 12:41:06 +00:00
Justin Shreve a7891750b7 Switch the permissions check for json_search_products to use the read_product capability. 2015-06-09 12:35:33 +00:00
Justin Shreve 3233eb471e Switch the json_search_products and json_search_downloadable_products_and_variations ajax functions to check for the `edit_shop_orders` cap instead of `edit_products`. 2015-06-09 12:35:33 +00:00
Mike Jolley eb4b9a7cd1 Merge pull request #8304 from krautnerds/quick-fix-variation-admin-stock-display
Quick fix stock display for product variations
2015-06-09 12:24:55 +01:00
Mike Jolley 6c557c21e5 woocommerce_duplicate_product_exclude_children, woocommerce_duplicate_product_exclude_meta, woocommerce_duplicate_product_exclude_taxonomies
Closes #8271
2015-06-09 12:07:29 +01:00
Mike Jolley 34f8536b20 Merge pull request #8306 from krautnerds/fix-customer-rest-api-pagination
Fixed pagination headers for customer REST API
2015-06-09 11:43:27 +01:00
Mike Jolley 5771969c2c Prevent notices in get_children 2015-06-09 10:32:40 +01:00
Claudio Sanches 1623ffd6ee Merge pull request #8326 from woothemes/api-tweaks
API Keys tweaks
2015-06-08 20:24:44 -03:00
Claudio Sanches 4698111dd2 Hide api key fields when generate a new keys 2015-06-08 20:22:49 -03:00
Claudio Sanches 151499db49 Fixed wc-api-keys script load 2015-06-08 20:14:46 -03:00
Patrick Rauland 77748fa923 tweaking onboarding wizard language. see #7829 2015-06-08 17:09:48 -06:00
Claudio Sanches 61c6e21f6c Added wc_api_hash() int he consumer_key on update for 2.4 2015-06-08 20:06:04 -03:00
Claudio Sanches 7ee65c0256 Improved the woocommerce_api_keys table 2015-06-08 20:04:29 -03:00
Claudio Sanches 91bb8c7ba9 Updated the api authentication 2015-06-08 19:58:38 -03:00
Claudio Sanches 51c5ef6b20 Removed extra <p> 2015-06-08 19:45:14 -03:00
Claudio Sanches 89ddda9ff6 Added new api key generation methods 2015-06-08 19:41:35 -03:00
Claudio Sanches 55efdc5077 Escaped js/url in widget layered nav when use the dropdown option, closes #8320 2015-06-08 13:10:23 -03:00
Claudio Sanches 3f45c874fe Created wc_api_hash() 2015-06-08 12:57:19 -03:00
Mike Jolley 303b66c445 Payment step 2015-06-08 16:34:13 +01:00
Claudio Sanches 3697ad9de2 Improved the API keys entropy 2015-06-08 12:01:54 -03:00
Claudio Sanches ef0f527b40 Created new woocommerce_validate_postcode filter
And added PT postcode validation

closes #8319
2015-06-08 11:50:21 -03:00
Mike Jolley 30f981f3ad Last step CTA and revised links
#7829
2015-06-08 15:25:59 +01:00
Sergey cfecd0af2d add woocommerce_get_product_terms filter 2015-06-08 16:41:11 +03:00
Job Thomas 610cf66cb9 Edited copy text: consistency with second tab. 2015-06-08 14:56:09 +02:00
Mike Jolley 9e125b37c7 Remove page options #7829 2015-06-08 13:24:57 +01:00
Mike Jolley 68974655d6 Tweak visible child product query and cache 2015-06-08 13:18:23 +01:00
Mike Jolley bb4c303c39 get_type has no args 2015-06-08 12:22:26 +01:00
Mike Jolley 983041209b Use get_type() in post_class function 2015-06-08 12:20:51 +01:00
Mike Jolley 3c87e39ce6 Product get_type() method 2015-06-08 12:20:39 +01:00
Claudio Sanches 0b861d6587 Fixed filetype check for digital downloads, closes #8316
@mikejolley
2015-06-07 22:39:32 -03:00
Florian Ludwig 994e4104e9 Fixed pagination headers for customer REST API
The old code didn’t ever work in my opinion, because WP_User_Query has
no attributes page and total_pages
2015-06-05 19:28:58 +02:00
Florian Ludwig 2b4e19d0b4 Quick fix stock display for product variations
This fixes bug #8302 in a very ugly way (in my opinion)
2015-06-05 19:22:32 +02:00
Justin Shreve 0fb9851164 When upgrading to WooCommerce 2.4, make sure that the order.updated webhook fires for woocommerce_order_edit_status as well. 2015-06-05 17:09:46 +00:00
Justin Shreve e88c1bfb9e When the status is changed via bulk actions or by the status button, execute order.updated. 2015-06-05 16:43:24 +00:00
Claudio Sanches 6fee82b377 [API] Added display and image info in product category endpoint, closes #8298 2015-06-05 11:37:46 -03:00
Mike Jolley 716302d76e Revised API endpoint
- Trigger an generic action on all API requests
- Set status header based on whether or not the API endpoint is
actually valid/being listened for
- No cache headers
- No longer try to init unknown class
- Init gateways before the request so their listeners are registered

cc @claudiosmweb
2015-06-05 14:36:50 +01:00
Mike Jolley 79629c5928 Merge pull request #8287 from aelia-co/master
Ensured that refunds have parent order's currency
2015-06-05 13:54:00 +01:00
Mike Jolley 541edc3570 Merge pull request #8274 from SiR-DanieL/patch-5
Filter wc_tax_enabled
2015-06-05 13:53:33 +01:00
Mike Jolley a4c2a73050 Max array keys 2015-06-05 13:37:45 +01:00
Mike Jolley 71673684fb [2.3] get_discounted_price needs to check if taxes are enabled
Closes #8267
2015-06-05 11:24:59 +01:00
Claudio Sanches b433f5e2ce Removed duplicated code in WC_AJAX::increase_order_item_stock() 2015-06-04 21:02:03 -03:00
Claudio Sanches 2d5c53942b Removed duplicated code in WC_AJAX::reduce_order_item_stock() 2015-06-04 20:57:43 -03:00
Diego Zanella 1d3713922b Restored original WC_Gateway_PayPal class 2015-06-04 09:04:33 +01:00
Diego Zanella c0051da5c5 Added logic to copy the refund currency from parent order 2015-06-04 08:55:24 +01:00
Diego Zanella edd831db94 Merge remote-tracking branch 'upstream/master' 2015-06-04 08:45:27 +01:00
Justin Shreve 01a19cc0c7 Round the total_pages calculation up so we always display the right number of pages. 2015-06-03 23:05:52 +00:00
Claudio Sanches b9442f2ffa [2.3] Check if rating is enabled before check if rating is required to a review, closes #8281 2015-06-03 16:57:36 -03:00
Mike Jolley a2f05dd368 Show notices before cat loops 2015-06-03 14:22:23 +01:00
Nicola Mustone 29e6082ab6 typo 2015-06-03 12:50:11 +02:00
Nicola Mustone 17eac9eaed added filter wc_tax_enabled 2015-06-03 12:49:10 +02:00
Job Thomas c20ebeb899 Some edits in the copy of the second step of the onboarding wizard.
** Setup (noun) > set up (verb)
** Singular "Customer" + plural verb -> Plural customers
** Notation of where to find settings options conform docs team standards
2015-06-03 12:09:48 +02:00
Shiva Poudel db107fac45 Check array in expression for json_search_* events 2015-06-02 22:58:52 +05:45
Shiva Poudel 27adbb2a0b Best practise to check array in expression :) 2015-06-02 22:55:02 +05:45
Mike Jolley 60dd4474db abstract email class should not exist ! legacy 2015-06-01 10:48:13 -03:00
Mike Jolley 2febc8f20a Add capability checks to ajax requests
Closes #15
2015-06-01 13:38:00 +01:00
Mike Jolley 1505424469 Define allowed_file_types
#13
2015-06-01 13:37:43 +01:00
Mike Jolley 527311d553 Validate file types when saving products. Closes #13
Handles 3 possible types of file;
  1. Relative path on server
  2. Absolute URL
  3. Shortcodes

URLs without extensions are not validated.
2015-06-01 13:37:39 +01:00
Mike Jolley 5b435024ea Use htmlspecialchars to ensure characters get encoded for select2
We cannot update to select2 4.0 until a major release. Closes #4
2015-06-01 13:37:26 +01:00
Mike Jolley c5bb4ad473 Fix tooltip implode 2015-06-01 13:37:21 +01:00
Mike Jolley cb2079deaa wc_send_frame_options_header
Prevent Clickjacking - prevent checkout and account pages from being
used in iFrames. Added via filter so this can be disabled.

Closes #8
2015-06-01 13:37:12 +01:00
Mike Jolley 3b45c0d46f Set nonce_user_logged_out to WC session ID, if set
Closes #9
2015-06-01 13:36:07 +01:00
Mike Jolley ed99be9aed Sanitize tooltips with htmlspecialchars and remove esc_attr usage
Part of #4
2015-06-01 13:36:03 +01:00
Claudio Sanches 51c8bbf87c wrong nonce verification 2015-06-01 13:33:51 +01:00
Mike Jolley ec5a693ad7 Use prepare for updating attributes
Closes #7
2015-06-01 13:29:02 +01:00
Claudio Sanches 9eb3b6ddf9 Changed all requests with wp_remote_* to wp_safe_remote_* 2015-06-01 13:28:55 +01:00
Alexander Concha c1db266e80 Explicitly cast as integer the rating comment meta.
On multisite this can contain arbitrary values.
2015-06-01 13:27:16 +01:00
Ben Bidner 27f1c15900 email templates can only be moved / deleted / edited if the user has `edit_themes` capabilities 2015-06-01 13:26:02 +01:00
Claudio Sanches 48094b9bf2 Added nonces and check capability when hide admin notices 2015-06-01 13:19:26 +01:00
Claudio Sanches 65608d3fd0 Added nonces and check capability to copy or delete email templates, closes #5 2015-06-01 13:12:25 +01:00
Claudio Sanches 5b00dee203 Implemented wp_safe_remote_* functions for webhooks requests #10 2015-06-01 13:09:21 +01:00
Claudio Sanches 166ec607c0 Escape columns 2015-06-01 13:08:33 +01:00
Alexander Concha f194330aeb Escape properly echoed values
The variables $base_slug/$structures may contain unsafe values due to
the use of urldecode. For example if the post slug is '%22%3E%3Cscript%3Ealert%281%29%3C%2Fscript%3E'
2015-06-01 12:59:03 +01:00
Alexander Concha f38bc86c5d Escape properly the metadata to be copied.
Fixes a SQL injection because the meta key can contain arbitrary values.
2015-06-01 12:58:56 +01:00
Alexander Concha 3c1b14d00d Escape properly the provided array of post codes
The callers only run wc_clean/esc_attr on the provided values which are
not functions meant to protect against SQL injections.
2015-06-01 12:58:51 +01:00
Ben Bidner 7d8db595f2 Fixes an (admin) SQLi when setting stock levels for product variations 2015-06-01 12:58:38 +01:00
Alexander Concha 7896b49684 fclose requires a resource, not a string. 2015-06-01 12:58:06 +01:00
Ben Bidner 2740db17c0 Merge conflict - esc customer data 2015-06-01 12:57:48 +01:00
Ben Bidner f46060a0dd Remove call to `wp_specialchars_decode()` in `wc_get_price_thousand_separator()` and `wc_get_price_decimal_separator()`.
Closes #6
2015-06-01 12:54:23 +01:00
Ben Bidner f3e3b5c209 add `$args` arguments to `WC_Product_Factory->get_product_class()` to allow `$product_type` to be overwritten by `$args['product_type']` 2015-06-01 12:54:18 +01:00
Ben Bidner 7b9a22208e readds the `$the_product` global variable 2015-06-01 12:54:14 +01:00
Ben Bidner f066a7bb21 pass correct number of arguments to `wc_lostpassword_url()`, `wc_nav_menu_items()`, `wc_nav_menu_item_classes()`, and `wc_change_term_counts()` 2015-06-01 12:53:51 +01:00
Ben Bidner 32e37b57d0 fixes too many arguments in function or method call: WC_Shortcode_My_Account::add_payment_method($wp->query_vars['add-payment-method']) 2015-06-01 12:52:10 +01:00
Ben Bidner 1aa020ca57 fixes undefined constant ('error_code' > '$error' typo) 2015-06-01 12:52:01 +01:00
Ben Bidner 5e22e13975 set default currency position format string (in case of missing or invalid `woocommerce_currency_pos` option value) 2015-06-01 12:51:56 +01:00
Mike Jolley 3d049ff379 [2.3] Clear expired transients on update 2015-06-01 11:39:03 +01:00
Mike Jolley 1ce272b385 [2.3] Tweak transient clear SQL 2015-06-01 11:38:43 +01:00
Mike Jolley b9708c4df9 Show refunded total shipping and taxes
Closes #8222
2015-06-01 11:06:11 +01:00
Mike Jolley bd7624e5b7 Check template code isset 2015-05-29 17:40:53 +01:00
Mike Jolley 1e3fcd0e6d [2.3] Avoid initialising classes when saving 2015-05-29 17:38:25 +01:00
Mike Jolley 803f4a9e85 [2.3] Delete correct transient when linking variations
Closes #8241
2015-05-29 15:34:27 +01:00
Mike Jolley 3222d1473e Merge pull request #8242 from n-dawson/master
Add a filter to override needs_shipping_address order method.
2015-05-29 15:28:49 +01:00
Mike Jolley a7a290e12a Merge pull request #8250 from kilbot/patch-1
Add capability_type to product_variation
2015-05-29 15:27:41 +01:00
Mike Jolley 0a3defd798 Move tax enabled check 2015-05-29 14:55:57 +01:00
Claudio Sanches b2711f3d64 [API] Fixed products tags in write-mode 2015-05-29 10:05:15 -03:00
Claudio Sanches 88003436a6 [API] Add properly sanitization for categories and tags in products endpoint, closes #8251 2015-05-29 10:04:02 -03:00
Claudio Sanches e6ae10ee9a Test 2015-05-29 10:01:43 -03:00
Paul Kilmurray b16d443709 fix missing comma 2015-05-29 19:35:31 +08:00
Paul Kilmurray b158d517e9 Add capability_type to product_variation
By default the product_variation has `capability_type = 'post'` which means that users need `edit_post` capability to edit. This change will make variation capabilities consistent with products, ie: `edit_product`
2015-05-29 17:42:33 +08:00
roykho b9eefa58fa use esc_textarea function 2015-05-28 16:08:22 -07:00
roykho 54b0a0ca54 changed dynamic variation description to allow limited HTML and some sanitized tweaks 2015-05-28 14:31:45 -07:00
Mike Jolley e51eae80c6 Merge pull request #8167 from roykho/dynamic-variation-description
Dynamic variation description
2015-05-28 15:53:03 +01:00
Nathan Dawson e535e005b7 Add a filter to override needs_shipping_address order method.
If an order doesn't have any shipping methods it's not possible to set needs_shipping_address to true. When 'woocommerce_cart_needs_shipping_address' is set to true the address needs to be shown on the front end and in confirmation emails.
2015-05-28 15:48:37 +01:00
Mike Jolley 4e5091adda Merge remote-tracking branch 'origin/master' 2015-05-28 14:42:45 +01:00
Mike Jolley 5cac639cff Merge branch 'improve-refund-reporting' Closes #8028
Conflicts:
	includes/admin/reports/class-wc-report-sales-by-date.php
	includes/updates/woocommerce-update-2.4.php
2015-05-28 14:41:20 +01:00
Claudio Sanches 903cb817f0 Fixed WC_Install::get_schema for woocommerce_api_keys table 2015-05-28 10:36:25 -03:00
Mike Jolley 5ef335b169 Merge pull request #8215 from JeroenSormani/order-tests
Order tests
2015-05-28 12:44:17 +01:00
Mike Jolley b77755af5c Merge pull request #8236 from n-dawson/master
[2.3] Resolve blank shipping information bug. Fixes #8235
2015-05-28 12:21:38 +01:00
Mike Jolley 4a9971193f Only track product views when widget is active
Closes #8212
2015-05-28 11:49:10 +01:00
James Koster 8c1e452514 proceed to checkout button template. closes #7507 2015-05-28 11:48:37 +01:00
Mike Jolley ba2e638e54 nocache download_file requests
Closes #8162
2015-05-28 11:44:47 +01:00
Nathan Dawson f9e43b874c Resolve blank shipping information bug. Fixes #8235
Setting the 'woocommerce_cart_needs_shipping' filter to true means the shipping fields can be shown for virtual products. Whether to check shipping details should be based on whether they're shown and not whether the cart needs shipping.
2015-05-28 00:54:05 +01:00
Claudio Sanches a76aa5218b Improved the new order and cancelled order emails descriptions, closes #8195 2015-05-27 16:57:57 -03:00
Claudio Sanches 676e09fdd3 Added new woocommerce_api_keys table in wpmu exclude and in status report 2015-05-27 16:46:43 -03:00
Claudio Sanches ebdcb0d9e8 [2.3] [API] Fixed subtotal_tax round and decimal dp, closes #8140 2015-05-27 16:18:02 -03:00
Claudio Sanches f503cda874 Improved hold stock input width, closes 8233 2015-05-27 14:26:12 -03:00
Claudio Sanches 169e72b824 Added extra arg to all woocommerce_order_item_name filters #8159 2015-05-27 13:29:15 -03:00
Claudio Sanches 88596b595e Improved PayPal get_icon_url() method 2015-05-27 13:23:21 -03:00
Claudio Sanches 6ff7215f3c Improved the error display for #7959 2015-05-27 13:19:44 -03:00
Mike Jolley 4fd9e1daf2 [2.3] Improved get_icon_url()
Closes #8211
2015-05-27 17:13:36 +01:00
Claudio Sanches 5c2b14d89f Standardise case of some strings closes #8125 2015-05-27 12:53:04 -03:00
Claudio Sanches 989dd5d88e Improved exclude_from_order_webhook check #8146 2015-05-27 12:46:44 -03:00
Claudio Sanches bc7d73f81f Merge pull request #8146 from mattallan/order_args_exclude_webhooks
New order post type param: exclude_from_order_webhook
2015-05-27 12:29:49 -03:00
Claudio Sanches cc9721ed9d Merge pull request #7959 from tivnet/patch-4
Check for non-existing attribute ID
2015-05-27 12:24:40 -03:00
Mike Jolley 5920b88d5d Add classes to tax and shipping labels/notices
Closes #8189
2015-05-27 16:17:36 +01:00
Mike Jolley 915342f38b [2.3] Only clear in delete_version_transients when version is set 2015-05-27 15:56:49 +01:00
Claudio Sanches 267c481d86 Improved admin bar visit store link #8196 2015-05-27 11:55:32 -03:00
Claudio Sanches e5e81e5516 Merge pull request #8196 from corsonr/visit_store_link
Added visit store link in admin bar
2015-05-27 11:35:49 -03:00
Nicola Mustone b5e193956b added action woocommerce_refund_deleted 2015-05-27 15:23:59 +02:00
Mike Jolley e383889957 [2.3] Optimise delete_version_transients
1. WC does not work network wide so _site_transient does not need
checking
2. The LIKE matches timeout and transient keys
2015-05-27 12:03:46 +01:00
Claudio Sanches 1caa5ebcee Improved WC_Geolocation support for IPv6 #8184 2015-05-26 17:32:47 -03:00
Claudio Sanches fcc9542608 Merge branch 'master' of github.com:woothemes/woocommerce 2015-05-26 14:41:24 -03:00
Claudio Sanches 44dba5036c Added geolocate IPv6 support, closes #8184 2015-05-26 14:41:13 -03:00
Mike Jolley 15e3d23022 Merge pull request #8209 from ChromeOrange/master
Update html-admin-page-status-report.php
2015-05-26 17:50:37 +01:00
Mike Jolley f1af777368 [2.3] Fix typo in validate_maximum_amount
Closes #8207
2015-05-26 17:40:07 +01:00
Claudio Sanches d53d21781b [2.3] Fixed product category media upload modal and some coding standards, closes #8227 2015-05-26 10:24:49 -03:00
Mike Jolley 28d838c5cd [2.3] Related posts tweaks
Remove real randomness and add transient caching to improve performance.

The above was not worth the cost of the query - only users refreshing a
product page would see a difference.
2015-05-25 15:40:28 +01:00
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