Commit Graph

20439 Commits

Author SHA1 Message Date
Matt Harvey 4326e39250 Leave other fee total logic alone, reduce the fee array to get a simple sum 2019-12-18 22:08:39 -08:00
David Levin 5df30cdbd6 rename method to get fee totals 2019-12-18 21:34:40 -08:00
Matt Harvey 73189340c8 Merge branch 'master' into update/order-details-4 2019-12-18 21:00:32 -08:00
Matt Harvey 4eeec4705d Abstract fee calculation and expose as method to abstract Object class. 2019-12-18 20:58:39 -08:00
David Levin c6cd7331f9 update order details summary with items subtotal and start to add fees 2019-12-18 20:51:45 -08:00
Justin Shreve a5ee52a6c6 Add WP version check before recommending WooCommerce Admin 2019-12-18 09:29:21 -05:00
Rohan V 83c88e47a5
Add fix to increase column size for existing installations 2019-12-18 13:24:18 +05:30
Rohan V 2541786ef5
Increase field size for new installation 2019-12-18 12:49:32 +05:30
vedanshujain ad2f76275a Applied coding standards 2019-12-17 19:13:19 +05:30
vedanshujain ba2d825800 Use DB timestamp to ensure consistency between servers. 2019-12-17 19:13:19 +05:30
vedanshujain 9b7343d23b Applied coding standards 2019-12-17 19:13:19 +05:30
vedanshujain 47ba1d49da Cascade to return null to prevent notice when array is empty.
Another situation where this change is required when there are two coupons in an order but only one coupon has limit. In this case array will be present but one of the coupon will not have a corresponding record which will throw a notice.
2019-12-17 19:13:19 +05:30
vedanshujain 53bfcea110 Use same filter for stocks and coupon for consistency. 2019-12-17 19:13:19 +05:30
vedanshujain 72545c44b7 Add support for `_held_for_checkout` records to improve performance.
This will also improve transactional stability and avoid race conditions by providing a way to lock usage counts.
2019-12-17 19:13:19 +05:30
Shamali Sulakhe ec09daeadc Merge remote-tracking branch 'upstream/master' into issue-24266-solution 2019-12-16 15:11:07 +05:30
Shamali Sulakhe e5e9d440a4 Merge branch 'master' of https://github.com/shamalisulakhe/woocommerce into issue-24266-solution 2019-12-16 15:08:30 +05:30
Rodrigo Primo ae1717cd4f Fix PHPCS violations automatically using PHPCBF 2019-12-13 17:51:14 -03:00
Rodrigo Primo f06ad5d78a Replace removed WordPress.Security.NonceVerification.NoNonceVerification
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:

```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```

(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31))

This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Rodrigo Primo 9c4de8f5e7 Fix indentation 2019-12-13 16:48:17 -03:00
Rodrigo Primo d451b68488
Merge pull request #24929 from helgatheviking/feature/woocommerce_process_variation_object
Add woocommerce_admin_process_variation_object before $variation->save()
2019-12-13 16:46:22 -03:00
Rodrigo Primo 00c40dab1a
Add pay order product has enough stock filter (#25230)
* [#25021] Add filter when checking if product has enough stock while paying for order

* [#25021] Retain original < check, invert bool

* [#25021] Make filter more readable
2019-12-13 11:16:30 -03:00
Rodrigo Primo e963d7cfab Fix minor imprecision in wc_is_wp_default_theme_active() documentation 2019-12-13 09:59:20 -03:00
Peter Fabian 72925ef41c Centralize check for default themes.
This should make Storefront appear in the Setup Wizard again.
2019-12-11 18:35:04 +01:00
Claudio Sanches 2975b3a7b7 Rate limit feature 2019-12-11 01:38:19 -03:00
Claudio Sanches 589d8c4591 Updated WooCommerce::$version 2019-12-10 22:55:08 -03:00
Claudio Sanches f7632de06e
Merge pull request #25164 from om4james/webhook-delete-cache
Delete cached webhook data when a webhook is deleted
2019-12-10 22:45:42 -03:00
Claudio Sanches 02ae29c8fc Fixed support to older versions of WordPress 2019-12-10 22:12:50 -03:00
dsmithweb 5a17c63cc9 Update links 2019-12-10 18:41:55 -06:00
Claudio Sanches 57d5c88b13
Merge pull request #24876 from akshaya-rane/fix-product-bulk-edit
refs #24638 Fixed Stock status update on Bulk Edit
2019-12-10 12:29:48 -03:00
Peter Fabian d8f49787a4 Better reflect variable purpose with updated name. 2019-12-10 14:22:30 +01:00
Peter Fabian fd66112bb7 Add WP version number class to Setup Wizard/OBW body element. 2019-12-10 13:32:13 +01:00
Claudio Sanches 104f40c36e
Merge pull request #24281 from woocommerce/fix/24269
Handle multiple decimal points
2019-12-09 14:07:29 -03:00
Francesco Leanza 59af851069
Merge branch 'master' into fix/25091 2019-12-09 16:46:02 +01:00
Andrej Mernik d20d429e32 Add postcode validation for Slovenia (#25174)
Add postcode validation for Slovenia
2019-12-09 10:09:45 -03:00
Claudio Sanches 85635773e9 Fixed coding standards 2019-12-06 12:51:10 -03:00
Claudio Sanches 78e382e4d6 Fixed incorrect concatenation of variation sale prices with ".00" 2019-12-06 12:37:23 -03:00
Claudio Sanches 0d1d0d6653 Fixed coding standards 2019-12-06 11:18:13 -03:00
Claudio Sanches b4af5f3c89 Updated regex to allow only one decimal point 2019-12-06 11:11:47 -03:00
James Collins b262ac8e53 Fix for duplicate webhook deliveries 2019-12-06 09:54:24 +08:00
James Collins 0246b02a94 Merge branch 'master' into webhook-delete-cache 2019-12-06 08:57:54 +08:00
Khokan Sardar 51252a6f8e Fixed issue #24575 (#24586)
* Fixed issue #24575

* Fixed implementation for #24575
2019-12-05 21:23:40 -03:00
Juancho Pestana b8217fa080 Fix #24365: Prevent billing address from being updated on shipping update. (#24374)
* Prevent billing address from being updated on shipping update.

* Set billing address if empty.

* Fix coding standard issue.

* Fixed missing tab
2019-12-05 21:17:01 -03:00
Claudio Sanches 5dac360e8a
Merge pull request #24208 from woocommerce/fix/order-screen-tax-calculation-to-honor-rounding-setting
Honor tax rounding preference in edit item and refund flows
2019-12-05 20:52:48 -03:00
Claudio Sanches 2e94410dc4
Merge pull request #24683 from n-dawson/fix-archive-orderby-param
Refine static homepage check to exclude blog archive queries. Fixes #…
2019-12-05 20:41:59 -03:00
Claudio Sanches 4ea81923da
Merge pull request #24935 from woocommerce/fix/24845-wpcom-customizer
Do not run send_frame_options_header when on the customizer
2019-12-05 20:28:55 -03:00
Rodrigo Primo 27915dd696 Exception when WC_Product_Variation is instantiated with the wrong type
This commits changes WC_Product_Variation to raise an exception when the
class is instantiated with an ID that belongs to a post object that is
not a product variation.

This is necessary to avoid problems like the one described in #24956
where passing a variable product ID to WC_Product_Variation would result
in transparently modifying the variable product title and excerpt.
2019-12-05 15:45:48 -03:00
Rodrigo Primo 61a843679a Fix WPCS violations automatically using phpcbf 2019-12-05 15:45:12 -03:00
Claudio Sanches d7e2a98aaf
Merge pull request #24828 from woocommerce/fix/24695
Adds shared code between Orders and Cart calculation logic.
2019-12-05 12:39:50 -03:00
Peter Fabian 44d39c369e Fixed the PHPCS to reflect new rules. 2019-12-05 16:00:18 +01:00
Peter Fabian 4dfa68b62d More PHPCS fixes. 2019-12-05 15:46:13 +01:00
Peter Fabian 2e81f21e29 Improved variable naming and comments. 2019-12-05 15:37:33 +01:00
Peter Fabian 159199f254 Check the nonce before the rate limiting. 2019-12-05 15:36:50 +01:00
Peter Fabian 85c4a5beed PHPCS fixes. 2019-12-05 15:30:53 +01:00
Gerhard Potgieter 7d39222334
Merge pull request #25162 from woocommerce/fix/24018
Hid variable parent products from "Add Products" search on order page
2019-12-05 14:22:43 +02:00
Rodrigo Primo 6b61d5f025
Merge pull request #24934 from woocommerce/add/filter_invalid_variations_notice
Introduce show_invalid_variations_notice filter
2019-12-05 09:08:24 -03:00
Peter Fabian 0d3074a554 Added rate limiting to Add payment method. 2019-12-05 12:03:02 +01:00
Gerhard 216a86b558 Change filter name to woocommerce_show_invalid_variations_notice and also pass through the $product_object variable. 2019-12-05 08:08:07 +02:00
Christopher Allford b67d094601 Added support for comma-delimited lists of types to exclude 2019-12-04 14:39:41 -08:00
Rodrigo Primo 3af024fc5c
Merge pull request #25031 from woocommerce/feature/24956
Introduced wc_get_product_object() helper
2019-12-04 16:53:04 -03:00
Rodrigo Primo aaea7b1c55
Merge pull request #25001 from woocommerce/feature/inline-notices
Initial support to inline notices
2019-12-04 16:50:40 -03:00
Rodrigo Primo fe0c1c441e
Merge pull request #24852 from JacobMC/remove_function_causing_php_error
Refactor to remove PHP 7 Error
2019-12-04 16:29:11 -03:00
Claudio Sanches e3b2d9f10c Merge branch 'master' into feature/inline-notices 2019-12-04 16:26:10 -03:00
Claudio Sanches 5fdb880831
Merge branch 'master' into feature/24956 2019-12-04 16:18:39 -03:00
Claudio Sanches 8033d5751e Changed wc_get_product_classname function name to wc_get_product_object 2019-12-04 16:15:16 -03:00
Claudio Sanches a12c25862b
Revert "Add support for '_held_for_checkout` records to prevent race conditions." 2019-12-04 16:03:05 -03:00
Claudio Sanches 0686e6f1cd
Merge pull request #25000 from woocommerce/feature/pay-button-support
Initial support for "pay button"
2019-12-04 16:02:02 -03:00
Claudio Sanches f07ed76e43 Fixed coding standards 2019-12-04 15:53:48 -03:00
Rodrigo Primo 4af9a94129 PHPCS fixes 2019-12-04 15:52:20 -03:00
Claudio Sanches b76bebab8d Improved escaping and HTML formatting
Fixed coding standards
2019-12-04 15:52:00 -03:00
Claudio Sanches adbb4fd2d3
Merge pull request #24937 from jenkoian/wc-placeholder-attrs
Add support for custom attributes to wc_placeholder_img().
2019-12-04 15:42:41 -03:00
Claudio Sanches 24c473f932
Merge pull request #24991 from woocommerce/add/new-onboarding-ab-test
Onboarding - Show the new experience to 10% of new users
2019-12-04 11:00:23 -03:00
James Collins b29f8cc1bd Deleted cached webhook data when deleting a webhook 2019-12-04 12:04:35 +08:00
Christopher Allford d3a7266848 Hid variable product types from "Add Products" search on order management page 2019-12-03 14:17:51 -08:00
Christopher Allford d1e25c9118 Added support for excluding certain product types from AJAX product searches 2019-12-03 14:14:47 -08:00
Claudio Sanches 3519b5bd5c
Merge pull request #25049 from woocommerce/fix/24953
Prevent creating products before registering related post types and taxonomies.
2019-12-03 18:02:22 -03:00
Claudio Sanches 3beb581215
Merge pull request #25074 from woocommerce/fix/24959
Added Photoswipe and jQuery-UI CSS minification
2019-12-03 17:59:51 -03:00
Claudio Sanches 258066dc2b
Merge pull request #25077 from woocommerce/update/coupon-object-update-hook
Fix second param of action hook woocommerce_coupon_object_updated_props
2019-12-03 17:53:04 -03:00
Claudio Sanches 174a722adf
Merge pull request #25131 from woocommerce/remove-wccom-site-api-permalink-require
Remove permalink reliance
2019-12-03 17:48:23 -03:00
Claudio Sanches 924109b80c
Merge pull request #25160 from bgrgicak/update/wccom-6777
Fix PHP Notice:  Undefined index: folder_exists
2019-12-03 17:48:05 -03:00
Claudio Sanches 0c486785ad
Merge pull request #25089 from woocommerce/fix/24009
Add support for '_held_for_checkout` records to prevent race conditions.
2019-12-03 17:47:22 -03:00
Claudio Sanches 3d394dd72c Use wc_get_order() instead of "new WC_Order" 2019-12-03 16:43:00 -03:00
Claudio Sanches 988b72e461 Updated filter name to woocommerce_hold_stock_for_checkout
Also fixed coding standards
2019-12-03 16:38:17 -03:00
Bero df21888b59 check if isset folder_exists in move_product step 2019-12-03 20:03:17 +01:00
Claudio Sanches 8b64471f3a Remove extra variable 2019-12-03 15:35:06 -03:00
Claudio Sanches 6a395e2485
Merge pull request #25064 from woocommerce/fix/24315
Optimize variable product duplication slug generation
2019-12-03 15:28:55 -03:00
Claudio Sanches cd4b2ac5b8
Merge pull request #25084 from woocommerce/fix/25004
Fixed manual sorting for products shortcode
2019-12-03 15:15:30 -03:00
Christopher Allford 91877b8f42 Revert "Changed the default sorting for the products shortcode to "menu_order""
This reverts commit 4a8645c9b4.
2019-12-03 09:54:23 -08:00
Claudio Sanches 15ffaeee6b
Merge pull request #25101 from woocommerce/remove-call_user_func_array
Remove a few calls to func_get_args() and call_user_func_array()
2019-12-03 14:51:43 -03:00
Rodrigo Primo 02ae8d1206
Merge pull request #24292 from woocommerce/fix/24116
Prevent PHP notices in WooCommerce widgets using Gutenberg's Legacy Widget Block
2019-12-03 14:25:05 -03:00
Rodrigo Primo 123169baa5
Merge pull request #24892 from woocommerce/update/check-textdomain
Check text domains in libraries
2019-12-03 14:12:07 -03:00
Claudio Sanches cbeb95379e Fixed PHPCS warnings and code clean up 2019-12-03 14:04:15 -03:00
Gerhard da33f216ea PHPCS fixes 2019-12-03 16:22:13 +02:00
Gerhard 1f678767a9 Introduce woocommerce_order_payment_status_changed action and logic around it when an order progresess from a pending payment to a paid status, in prep for Order status work. 2019-12-03 16:20:24 +02:00
Justas Butkus 34f54071bb Revert "Build the REST API URL before checking for wccom-site"
This reverts commit 0674b421ec.
2019-12-03 09:20:28 +02:00
Claudio Sanches 3122d28472 Fixed text domains 2019-12-02 18:38:21 -03:00
Rodrigo Primo 7edd0561d3
Merge pull request #25098 from woocommerce/fix/wccom-back-url-encode
Url encode "wccom-back" param in in-app purchase product link
2019-12-02 18:00:55 -03:00
Claudio Sanches af849fbd8a
Merge pull request #25112 from woocommerce/add/wccom-installer-api-error-code
Improve error codes for plugin installer API authentication
2019-12-02 17:46:31 -03:00
Claudio Sanches 0674b421ec Build the REST API URL before checking for wccom-site 2019-12-02 17:37:48 -03:00
Rodrigo Primo 00896ffb11
Merge pull request #25026 from woocommerce/fix/25022
Made usage tracking link in setup more transparent
2019-12-02 17:19:10 -03:00
Rodrigo Primo 10e1c61731
Merge pull request #25071 from woocommerce/add/tracks-processing-orders
Include processing orders in tracker data.
2019-12-02 17:09:57 -03:00
Claudio Sanches 2133ae9acb
Merge pull request #25132 from woocommerce/fix/24812
Added empty categories to the product exporter admin view
2019-12-02 17:01:41 -03:00
Justas Butkus e0613db386 Account for early start-up phase
Using `$wp` doesn't work in certain scenarios, where the entire system
didn't complete bootstrapping.
The raw query, after escaping the values, should sufficiently cater for
the need.
2019-12-02 21:56:42 +02:00
Rodrigo Primo c86116a001
Merge pull request #24986 from woocommerce/fix-variation-missing-image-notice
Prevent notice in PHP 7.4 when a variable product has no images
2019-12-02 16:53:41 -03:00
Rodrigo Primo 86f59dff09
Merge pull request #24961 from woocommerce/fix/admin-caching-incr
Changed wp_cache invalidation from using increment to using microtime.
2019-12-02 15:32:17 -03:00
Claudio Sanches c6b2581a0c
Merge pull request #25140 from bgrgicak/update/wccom-6777
Return folder_exists error as success
2019-12-02 15:25:34 -03:00
Rodrigo Primo ebc9551c6e
Merge pull request #24849 from woocommerce/feature/24839
Introduced woocommerce_kses_notice_allowed_tags filter
2019-12-02 15:21:59 -03:00
Bero 33d9f33fa3 folder_exists plugin info added 2019-12-02 16:11:44 +01:00
4selin 8007c7c3a3 Address in shipping calculator malformed for Canada #25094 2019-11-30 19:55:35 +03:00
Christopher Allford baeae0652c Added a check to prevent variable product parents from being added to orders. 2019-11-29 17:06:50 -08:00
Christopher Allford 928ec871fa Code style fixes 2019-11-29 17:06:33 -08:00
Bero db112275c2 Return folder_exists error as success 2019-11-29 15:40:53 +01:00
Peter Fabian fa38299ad1 Added abstraction for checking the modus of order creation. 2019-11-29 15:32:38 +01:00
Peter Fabian 9a91341334 Only update the IP address when order gets created from admin.
This should prevent potential conflicts/race conditions with callbacks from payment gateways updating the order in parallel.
2019-11-28 15:10:33 +01:00
Peter Fabian 309c48ab0e Deprecated old cache function and replaced it with a new one. 2019-11-28 14:03:57 +01:00
Christopher Allford 44aed47f4d Added empty categories to the product exporter admin view 2019-11-27 12:08:56 -08:00
Justas Butkus dbc0c5ab85 Remove permalink reliance
Some sites don't have permalinks enabled (e.g. local dev environments) and
can't use the WC site API functionality.

The `rest_get_url_prefix` elsewhere is only used in permalink context (e.g.
`get_rest_url` uses it conditionally), while `$wp->query_vars` are always
populated, even in rewrite condition, thus making them more accessible.
2019-11-27 21:45:21 +02:00
Peter Fabian 278cf53f2f
Merge pull request #25125 from woocommerce/fix/25029.3
Fix select2 style and admin screen button alignments in WP 5.3
2019-11-27 17:58:46 +01:00
Peter Fabian 8379e46772
Merge pull request #24278 from woocommerce/fix/23299
Display schema for the latest 5 reviews inside product's schema
2019-11-27 17:56:54 +01:00
Peter Fabian 8a0a5805e4
Merge pull request #25085 from woocommerce/fix/24648
Improve WC & Twenty twenty compatibility
2019-11-27 17:54:44 +01:00
Viszt Péter 3d6c3b3551 Fixes for alignment issues on the settings screen introduced by WP 5.3 2019-11-27 13:05:20 +01:00
vedanshujain aaa85ac74c Use standard way to calculate total in `get_subtotal_to_display` for consistency.
We were calculating subtotal to display slightly differently then we would have calculated subtotal in the cart. This was affecting subtotal value in invoices and in order confirmation screen.

This patch updates how we calculate subtotal to display such that we calculate in same way.
2019-11-27 04:43:23 +05:30
vedanshujain 8c2c83d488 Use `wc_round_tax_total` to make it consistent with how we round taxes.
When price includes taxes, we round down. This patch uses the correct method to round taxes depending on the mode instead of plain rounding.
2019-11-27 03:13:39 +05:30
Peter Fabian f50d8ffdd1 Fixed PHPCS. 2019-11-26 20:54:04 +01:00
vedanshujain 2ac3a0dfc8 Code standard fixes. 2019-11-26 18:36:23 +05:30
vedanshujain 5ef41f1ecc Empty cart before test to make sure everything in cart exists 2019-11-26 18:21:24 +05:30
vedanshujain 1de30e8963 Refactor so that trait don't have class specific functions. 2019-11-26 01:30:45 +05:30
Denis Dvali 4bc4faf7af Adding new explicit error codes for WC.COM installer API authentication errors. 2019-11-25 19:32:10 +03:00
vedanshujain 60cd7b3651 Refactor Order Class to use shared calculation logic.
We added a trait to move shared logic betweem Orders and Cart. This commit refactors Order class to use that shared logic.
Also adds a test for a failing case.
2019-11-25 17:53:14 +05:30
vedanshujain bee7ea4490 Add trait which contains common total calc logic.
`WC_Abstract_Order` and `WC_Cart_Totals` have their own logic to calculate totals. This means that we would have to fix in two places. This commit adds a trait which can be used to place shared logic between above two classes.
2019-11-25 17:53:14 +05:30
Paul Dechov 7f65a33fe8 Honor tax rounding preference in edit item and refund flows
The default value ('no') of the setting to round taxes at subtotal was not being honored on the Edit Order screen, which resulted in off-by-one discrepancies between the checkout item total and the edited or refunded item total.

This change is to round to the proper precision (w.r.t. the 'woocommerce_tax_round_at_subtotal' setting) for the default value of the form, as well as when the values are dynamically recomputed.
2019-11-25 17:49:43 +05:30
Denis Dvali 234bb9139f Move "no permissions" error data (error code, message, http code) to
a constant within a dedicated error messages class.
2019-11-25 13:46:07 +03:00
Peter Fabian f3892359f3 Make thumbnail larger, improve shop layout. 2019-11-24 09:51:15 +01:00
Rodrigo Primo 36cdc3cf8f Simplify and modernize WC_Emails::queue_transactional_email()
This commit replaces calls to call_user_func_array() with the spread operation.
2019-11-22 15:25:44 -03:00
Rodrigo Primo 9bebc4e69e Simplify and modernize wc_walk_category_dropdown_tree()
This commit replaces calls to call_user_func_array() and func_get_args() with the spread operation. Both to make more explicit that this is a variadic function and to do argument unpacking when calling the walker method.
2019-11-22 15:25:44 -03:00
Rodrigo Primo 193395ddf5 Simplify and modernize two methods
This commit replaces calls to call_user_func_array() with argument unpacking using the spread operator that was added in PHP 5.6 in the following methods:

- WC_Admin_Setup_Wizard::run_deferred_actions()
- WC_Mail::send()
2019-11-22 15:25:08 -03:00
Peter Fabian 9c74bf79ea Rather than setting the background in CSS, use the color picked in the
customizer.

This also fixes the background in the block editor and tinymce.
2019-11-22 15:37:54 +01:00
Denis Dvali 0810c4a027 Url encode value of "wccom-back" GET param in product links on in-app marketplace. 2019-11-22 15:02:58 +03:00
Justin Shreve 1fabf2f145 Handle PR feedback 2019-11-21 12:23:05 -05:00
Christopher Allford a0c4d54b4a Updated NonceVerification code sniff suppressions
The suppressions come in two flavors, a warning and an error. The suppressions have been updated to respect those states accordingly.
2019-11-21 09:19:56 -08:00
Justin Shreve ff68f30c2c Update opt-in value to 'yes' 2019-11-21 12:00:05 -05:00
Justin Shreve 18925f2218 Adds an a/b test for the new onboarding experience 2019-11-21 12:00:04 -05:00
Christopher Allford 8066f43188 Merge branch 'master' into fix/25004 2019-11-21 08:14:03 -08:00
Rodrigo Primo e292e95542 Update WPCS rule name that was change after an update 2019-11-21 12:17:10 -03:00
Rodrigo Primo 49b1294494 Simplify and modernize wc_print_r()
Replaces a call to call_user_func_array() with argument unpacking using the spread operator.
2019-11-21 12:04:08 -03:00
Rodrigo Primo 6cd08dc7bd Use the spread operator instead of call_user_func_array() in WC_Data_Store
This commit replaces a call to call_user_func_array() in WC_Data_Store::__call() with argument unpacking using the spread operator which was introduced in PHP 5.6. This change should improve WooCommerce performance a tiny bit since WC_Data_Store::__call() is called somewhat frequently and call_user_func_array() has a bad performance reputation. I added one unit test to make sure this change doesn't break the functionality of the altered method.
2019-11-21 11:52:47 -03:00
vedanshujain 70a54d0639 Added Unit Tests for `held_for_checkout` records. 2019-11-21 18:11:37 +05:30
Francesco Leanza dd3427958b Fixed order totals calculation if it contains taxable and non-taxable products and percentage coupons
Added PHPUnit tests
2019-11-21 11:28:22 +01:00
vedanshujain 882b441bfb Remove order_id param because order is not pending (see desc).
In the query inside method `wc_get_hold_stock_quantity` we have a clause of `status = wc_pending`. Call for this method here is already nested inside an `if` condition which checks that order is not pending. So this parameter is not needed here and only adds complexity to the final query.
2019-11-21 13:49:49 +05:30
Jacob McKinney 0d35e2e5eb Removed variable and set exception paramater to array containing the order id. 2019-11-20 22:52:04 -06:00
Christopher Allford 8fd99a74b9 Added descriptive text to the usage tracking documentation link in the setup wizard 2019-11-20 12:47:56 -08:00
vedanshujain e87024bb81 Add support for '_held_for_checkout` records to prevent race conditions.
When creating an order, if manage inventory is enabled then add a `_held_for_checkout` record with a expiry timestamp embedded. This is added in an atomic manner along with making a check whether we have current stock or not.
This record is removed when order status goes to either `processing` or `completed`.
2019-11-21 01:21:08 +05:30
Christopher Allford 661f2b7722
Added a comment clarifying the suffix substring when checking slug uniqueness 2019-11-20 10:02:34 -08:00
Christopher Allford 55f49ae26a Added an appropriate @since tag to the generate_unique_slug method 2019-11-20 09:55:35 -08:00
Christopher Allford 4a8645c9b4 Changed the default sorting for the products shortcode to "menu_order"
In order to take advantage of the "Sorting" admin feature, we need to make use of the menu order sorting. Initially we were using the title, which would ignore whatever the user set.
2019-11-20 09:19:54 -08:00
Christopher Allford b12574e9e4 Fixed code sniffs 2019-11-20 08:16:19 -08:00
Christopher Allford 358825f006 Added a transient clear when product ordering is changed 2019-11-20 06:50:32 -08:00
Gerhard 2a4a1a5842 Remove unused $updated_props variable 2019-11-20 14:47:44 +02:00
Michael Weichselgartner 2092da00c4 Fix second param of action hook woocommerce_coupon_object_updated_props
Changed second param from $updated_props to $this->updated_props
2019-11-20 14:42:09 +02:00
Gerhard Potgieter 95a0a4c0a4
Merge pull request #24930 from arnofo/feature/empty-cart-action-new-parameter
pass the clear persistent cart variable to the cart emptied actions
2019-11-20 12:52:36 +02:00
Gerhard Potgieter 3e116716cd
Merge pull request #24944 from AdelDima/patch-1
Update abstract-wc-csv-batch-exporter.php
2019-11-20 12:33:40 +02:00
Christopher Allford c2bc312e97 Added Photoswipe and jQuery-UI CSS minification 2019-11-19 10:40:28 -08:00
Peter Fabian daf4a53acf Make single images larger. 2019-11-19 19:36:10 +01:00
Peter Fabian bc04b8f45b Added basic declaration for WC support to Twentytwenty. 2019-11-19 17:58:16 +01:00
Rodrigo Primo 81187dc359
Merge pull request #25062 from itzmekhokan/fix/25056
Fixed issue #25056
2019-11-19 11:58:25 -03:00
Gerhard 3581a6c578 Include tracker fields for processing order totals and dates. 2019-11-19 15:10:43 +02:00
Christopher Allford 753f39ff27 Added unique slug generation for variable product duplication
The standard wp_unique_post_slug() function will run one query per name collision, leading to a large number of queries being made when a product template is duplicated repeatedly. We can avoid this by doing the unique generation ourselves.
2019-11-18 13:49:41 -08:00
Christopher Allford 7f44e23813 Resolved all of the phpcs errors 2019-11-18 13:43:03 -08:00
Rodrigo Primo 8675e26c28
Merge pull request #24884 from woocommerce/fix/24881
Return correct country code if default location isn't found
2019-11-18 17:10:35 -03:00
Rodrigo Primo 28bc4b242c
Merge pull request #25028 from woocommerce/feature/25019
Introduced hooks before and after settings form
2019-11-18 16:49:11 -03:00
Rodrigo Primo ec37b2bb27
Merge pull request #25041 from woocommerce/fix/25039
Fixed "Add payment method" menu highlight in My Account page
2019-11-18 15:57:52 -03:00
Rodrigo Primo 0a5ca3f144
Merge pull request #24756 from woocommerce/fix/24723
Changed thank you page text to follow PayPal guidelines
2019-11-18 15:29:59 -03:00
Claudio Sanches dd97b00815 Added "reviewBody" to review schema
Update get_comment_* functions args
2019-11-18 11:47:56 -03:00
khokan-cn 55e2a0e199 Fixed issue #25056 2019-11-18 18:03:59 +05:30
Gerhard Potgieter 822d1ebb40
Merge pull request #24879 from woocommerce/add_order_note_before_do_action
Add order note before do_action() to maintain order of notes
2019-11-18 14:02:03 +02:00
Gerhard Potgieter aaee28fe1e
Merge pull request #24798 from woocommerce/fix/24792
Do not set tracking cookie on ajax requests
2019-11-18 14:00:21 +02:00
Peter Fabian 38db309e07 Updated documentation. 2019-11-15 16:00:51 +01:00
Peter Fabian 45ca8eb867 Prevent creating products before registering related post types and taxonomies. 2019-11-15 15:50:18 +01:00
Shamali Sulakhe 64fbb197d7 Removed patch file and merged changed with ver 3.9.0-dev 2019-11-15 17:58:54 +05:30
Rodrigo Primo dd54b73280
Merge pull request #24870 from woocommerce/update/formatted-address-filters
Pass "$this" to Order's formatted address filters
2019-11-14 17:38:12 -03:00
Rodrigo Primo 5ee7197c0f Fix PHPCS errors using PHPCBF 2019-11-14 17:32:24 -03:00
Rodrigo Primo 967fc364be
Merge pull request #24846 from woocommerce/fix/tracker-php-warning
[Tracker] Prevent PHP warning when order date is empty [part 2]
2019-11-14 17:28:15 -03:00
Claudio Sanches a7ba80a1f7 Fixed My Account menu highlight when adding payment methods 2019-11-14 09:51:49 -03:00
Claudio Sanches ba0773d12e Apply wc_get_product_classname() in the current code base 2019-11-13 15:30:09 -03:00
Claudio Sanches 24c5bf41c8 Set the ID in the current class 2019-11-13 15:30:06 -03:00
Claudio Sanches b7514b0bfc Fixed coding standards 2019-11-13 15:30:00 -03:00
Claudio Sanches 24560f93bf Introduced wc_get_product_classname function 2019-11-13 15:29:55 -03:00
Claudio Sanches 0f28a61910
Merge pull request #25017 from itzmekhokan/add/25016
woocommerce_upsells_display order filter added
2019-11-13 13:38:42 -03:00
Claudio Sanches 0624894462 Introduced hooks before and after settings form 2019-11-13 13:20:18 -03:00
Christopher Allford 357cd28b77 Made the usage tracking information link in the setup wizard more transparent 2019-11-12 13:27:31 -08:00
itzmekhokan 0716648c28 woocommerce_upsells_display order filter added 2019-11-11 22:35:32 +05:30
Luminus Olumide Alabi 36821c88a8 Add 8 more countries to the list 2019-11-09 10:54:09 +00:00
Luminus Olumide Alabi a09efed82e Update the list of non-EU countries using VAT 2019-11-08 17:14:18 +00:00
Claudio Sanches d8fed95403 Convert all notice data into HTML data 2019-11-07 20:34:49 -03:00
Claudio Sanches af4ef7ea0d Pass input ID to wc_add_notice() 2019-11-07 20:25:06 -03:00
Claudio Sanches 7024fc8483 Change notices to accept extra data 2019-11-07 20:23:30 -03:00
Claudio Sanches fdd391e10e Introduced wc_get_pay_buttons() function 2019-11-07 17:23:38 -03:00
Claudio Sanches d53b73b56c Added support for "pay button" feature 2019-11-07 17:22:33 -03:00
Luminus Olumide Alabi f8709ab83f Account for non-EU countries that collect VAT and rename tax to VAT on the frontend for them 2019-11-07 19:48:05 +00:00
David Stone 0d5c697123 Check that is really an attachment and not the global $post object.
Prevents Notices of Trying to access array offset on value of type bool because $src variables will be false.
2019-11-06 00:26:10 -07:00
Peter Fabian b3115bccc5 Changed caching invalidation by using increment to using microtime.
This is a similar problem that WP core faced in https://core.trac.wordpress.org/ticket/23448.
2019-11-03 14:14:53 +01:00
Peter Fabian a2cd974d79 Don't display Downloads section on refund emails. 2019-11-01 15:51:30 +01:00
itzmekhokan 3abae6db1b Fixed coding standards for this comment. 2019-11-01 15:35:23 +01:00
itzmekhokan 8b99e00b2d Fixed wordpress coding standard 2019-11-01 15:35:08 +01:00
itzmekhokan e9833c1ea0 Fixed issue #24430 2019-11-01 15:34:50 +01:00
Adel Tahri 859a041e80
Update abstract-wc-csv-batch-exporter.php
Update "Exit if accessed directly"
2019-10-31 15:58:54 +01:00
Gerhard f03c82d749 Fix method call and unit test 2019-10-31 11:28:19 +02:00
Gerhard 00ade79647 Remove GB from WC_Countries::get_european_union_countries and add them to WC_Countries::get_vat_countries 2019-10-31 09:33:14 +02:00
Gerhard 34e486940d Refactor WC_Countries::get_european_union_countries method to exclude VAT handling.
Add new WC_Countries::get_vat_countries for returning countries supporting VAT.
2019-10-31 09:18:34 +02:00
Ian Jenkins 2340f269cf Add support for custom attributes to wc_placeholder_img().
When displaying a list of images you often want a specific class to be
attached to each image, therefore you pass through a custom class using
the attr parameter. Unfortunately this doesn't get passed through to a
placeholder image should one be needed. This means that, for example, if
you're custom class center an image or something, it won't be honoured
for placeholders, which can lead to some wonky image listings.

You can work around this currently by leverging the
`woocommerce_product_get_image` filter, but it's a bit gnarly as you
need to do some regexing or string splitting or something and checking
class names and what not. This provides a much easier way, by
supporting custom attrs on placeholder images as is the case for non
placehodler images.
2019-10-30 15:08:19 +00:00
Gerhard 0cda53580f Do not run send_frame_options_header when on the customizer 2019-10-30 15:37:04 +02:00
Gerhard 40faecc8e7 Add show_invalid_variations_notice filter to hide the invalid variations notice. 2019-10-30 15:17:31 +02:00
Arnaud Faucon e8b1d617a1 pass the clear persistent cart variable to the cart emptied actions 2019-10-30 09:14:45 +01:00
Kathy Daring e55af6431c Add woocommerce_admin_process_variation_object before $variation->save() 2019-10-29 11:50:52 -06:00
vedanshujain 4a375e3e9c Revert PR 24526.
This reverts PR 24526 because in the refund mail this completely removes the downloadble product. We should instead only remove the downloadble link and keep the details of the product.
2019-10-27 18:14:44 +02:00
Prince Ahmed 5ae6d9a8d6
remove unnecessary codes 2019-10-27 00:07:31 +06:00
Claudio Sanches f49f516077
Merge pull request #24848 from woocommerce/fix/24838
Remove selectWoo as script dependency since allow to disable selectWoo
2019-10-25 06:59:08 -03:00
Vedanshu Jain 8b04f37d22
Merge pull request #24810 from woocommerce/add/in-app-purchases-subs-cache-cleaning
Clean subscriptions' cache for auto-install flow
2019-10-25 10:27:47 +04:00
Claudio Sanches 2c965fcd4f Fixed translatable string, and duplication in WP_Background_Process 2019-10-24 10:22:43 -03:00
Menaka S 0ec7da3925 Add new function WC_Order::add_status_transition_note 2019-10-24 12:53:42 +05:30
Claudio Sanches 9b87f512d2 Return correct country key if default location not found 2019-10-23 14:27:11 -03:00
Claudio Sanches 237a047e26 Removed itemReviewed since is already nested to Product schema 2019-10-22 18:00:25 -03:00
Menaka S 3f99d2264b Add order note before do_action() is called so that the order of order notes is maintained 2019-10-22 11:13:15 +05:30
Akshaya Rane 19e3131d5e Modified comment message 2019-10-22 10:56:08 +05:30
Akshaya Rane b8cdeb2164 Fixed standards error 2019-10-22 00:21:44 +05:30
Akshaya Rane 8ed29fad7f refs #24638 Fixed Stock status update on Bulk Edit 2019-10-21 22:45:05 +05:30
Claudio Sanches c8a7b341fc Included order object to formatted address filters 2019-10-18 18:24:38 -03:00
Julia Amosova 14e5d6b3ea Capitalize `T` in `Move to trash` on order page 2019-10-18 14:44:47 +01:00
tgglv 386aedd73d Move flushing subscriptions' cache upper to run in once per install
Relates: https://github.com/Automattic/woocommerce.com/issues/6535
2019-10-18 10:36:30 +05:00
Rodrigo Primo bb4ded8324 Update links to bug report and feature request issue templates
The name of the bug report and feature request issue templates was
changed in #24844. This commit updates two places where links pointing
to those templates were outdated.
2019-10-17 16:28:01 -03:00
tgglv b3c5dec0e7 Merge remote-tracking branch 'origin/master' into add/in-app-purchases-subs-cache-cleaning 2019-10-17 09:52:41 +05:00
tgglv 34e873ca33 Move WC Helper subscriptions' cache cleaning before asking for subs
Relates: https://github.com/Automattic/woocommerce.com/issues/6535
2019-10-17 09:52:00 +05:00
Claudio Sanches 0112ee58a3
Merge pull request #24843 from sisou/patch-2
Use full year and 24h format in order note tooltip
2019-10-16 17:05:58 -03:00
Claudio Sanches 8a85136561 Introduced woocommerce_kses_notice_allowed_tags filter 2019-10-16 16:45:50 -03:00
Claudio Sanches 9f01e546fb Remove selectWoo as script dependency since allow to disable selectWoo 2019-10-16 16:26:47 -03:00
Claudio Sanches ff80f08353 Fixed coding standards 2019-10-16 15:49:03 -03:00
Claudio Sanches 3604c4939a Prevent PHP warning in tracker 2019-10-16 15:47:32 -03:00
Claudio Sanches 63c2bdafd2
Merge pull request #24793 from xristos3490/fix/24791
Fix/24791
2019-10-16 15:41:51 -03:00
tgglv 2ca1aeac42 Merge remote-tracking branch 'origin/master' into add/in-app-purchases-subs-cache-cleaning 2019-10-16 20:14:54 +05:00
Sören Schwert 8d0e37e6ca
Use full year and 24h format in order note tooltip 2019-10-16 14:59:36 +02:00
Jacob McKinney 34036d8f7d Replaced call to func_get_args() in WC_Order_Factory::get_order() with a variable to store the original passed arguments. 2019-10-15 22:11:44 -05:00
vedanshujain 451139e68e Use MIN_PHP and MIN_WP constants in PHP_MIN_REQUIREMENT value so that we don't have to change it everytime. 2019-10-15 16:07:03 +05:30
vedanshujain ec490409ea Refactor to use constant so that we have easy way to reset admin notice version 2019-10-15 16:07:02 +05:30
xristos3490 9eafb785e9 Cleanup 2019-10-15 12:37:21 +03:00
xristos3490 16dac4864b Add use of wp_unslash 2019-10-15 12:36:14 +03:00
tgglv 2c1663446b Run WC Helper subs cache cleaning before getting product info
Relates: https://github.com/Automattic/woocommerce.com/issues/6535
2019-10-11 18:01:09 +05:00
tgglv c277696b65 Make WCCOM helper subs cache cleaning public
Relates: https://github.com/Automattic/woocommerce.com/issues/6535
2019-10-11 17:59:39 +05:00
Gerhard e22a024473 Cookies should only be set in wp-admin, avoid setting when doing ajax requests since that is seen as an admin request as well. 2019-10-10 08:29:10 +02:00
Gerhard badb135bd6 Add 404 check when creating add to cart url for single products. 2019-10-09 12:44:47 +02:00
Claudio Sanches af59ab4a2a Exit after redirect 2019-10-09 12:35:24 +02:00
xristos3490 4e2205e17d Fix file perms 2019-10-09 11:26:32 +03:00
xristos3490 d776c19dd4 Replace stripslashes with stripslashes_deep on non-scalar setting values 2019-10-09 11:25:41 +03:00
boghy933 97c609d75c Round total value only once 2019-10-09 00:17:49 +02:00
Gerhard Potgieter af01e9374d
Merge pull request #24759 from rafsuntaskin/patch-1
Added delimiter property with filter
2019-10-08 11:23:12 +02:00
Gerhard Potgieter 2d796f825e
Merge pull request #24760 from jorostoyanov/jorostoyanov-patch-1
Add woocommerce_after_order_refund_item_name hook
2019-10-08 11:21:51 +02:00
boghy933 3bf721b023 Option for free shipping if should ignore discounts or not 2019-10-06 02:11:01 +02:00
Rafsun Chowdhury 59c503b1c7
Update with suggested review changes 2019-10-05 19:47:16 +06:00
vedanshujain 20e1584654 Update `$version` to `3.8.0` because its used for checking DB Upgrades 2019-10-03 12:11:31 +05:30
vedanshujain cd2a63c293 Update version to 3.8-beta.1 2019-10-03 12:07:16 +05:30
Joro Stoyanov 5c55eea31c
Add woocommerce_after_order_refund_item_name hook 2019-10-03 08:53:10 +03:00
Rafsun Chowdhury b3d21cb8ae
Added delimiter property with filter
Added support for custom delimiter #24579
2019-10-03 08:43:04 +06:00
Timothy Jacobs b9bb4a7c6a
Use a separate first parameter for the WP_Error
This matches the pattern used elsewhere in WooCommerce and allows access to the original `WC_Product` object if an error is to be returned.
2019-10-02 15:01:09 -04:00
Vedanshu Jain f36580a77e
Merge pull request #24757 from woocommerce/fix/display-post-type-count
Fixed post type count only when avaliable in REST API
2019-10-03 00:27:26 +05:30
Vedanshu Jain cb12010627
Merge pull request #24295 from woocommerce/fix/24096
Remove %20 from fields in External Products form
2019-10-03 00:15:52 +05:30
Claudio Sanches 78452a3f0f Fixed post type count only when avaliable in REST API 2019-10-02 15:03:46 -03:00
Claudio Sanches 2453dc9fe1 Fixed check for the method 2019-10-02 14:36:05 -03:00
Claudio Sanches 4c023c5e8a Changed thank you page text to follow PayPal guidelines
Also fixed coding standards
2019-10-02 14:21:12 -03:00
Claudio Sanches 3c9b9ac6a0 Revert changes from PayPal 2019-10-02 14:20:13 -03:00
Claudio Sanches 20ee6c7aed Fixed coding standards 2019-10-02 14:18:03 -03:00
Claudio Sanches b655af2e3b Changed thank you page text to follow PayPal guidelines 2019-10-02 14:17:25 -03:00
Vedanshu Jain c671e89769
Merge pull request #24750 from woocommerce/fix/24667
Handle 0 attribute value for variations correctly.
2019-10-02 21:28:23 +05:30
Peter Fabian 3cbea2a902 Simplify 'any-check' to only include empty string. 2019-10-02 16:58:45 +02:00
Claudio Sanches 71d7ac5741 Removed duplicated include of WC_Admin_Importers 2019-10-02 11:35:27 -03:00
Claudio Sanches 830553accd Fixed coding standards 2019-10-02 11:21:19 -03:00
Peter Fabian 4cfe22eef9 Made the attribute value comparison strict. 2019-10-02 16:05:44 +02:00
Gerhard Potgieter c01a0916c3
Merge pull request #24559 from itzmekhokan/fix/24458
Fix backordered product missing backordered label on frontend
2019-10-02 15:28:26 +02:00
Vedanshu Jain f15353cce5
Merge pull request #24745 from woocommerce/fix/24489
Also consider refunded item quantity while increasing stock.
2019-10-02 18:39:03 +05:30
Peter Fabian 258e49a8de Allow attribute value 0 to work correctly with variations (especially add to cart and select variation). 2019-10-02 14:58:40 +02:00
Vedanshu Jain 98f8cf3c2c
Merge pull request #24741 from woocommerce/add-filter-to-get-european-union-countries
Add filter to the method WC_Countries::get_european_union_countries()
2019-10-02 18:26:01 +05:30
Vedanshu Jain 7081c64115
Merge pull request #24294 from woocommerce/fix/24106
Make WC_Product_Query capable to sort products by "include" order
2019-10-02 18:02:06 +05:30
Vedanshu Jain 743d04fa91
Merge pull request #24749 from nicomollet/patch-5
Coupon expiry date tooltip to help understand behaviour
2019-10-02 17:30:45 +05:30
Vedanshu Jain bea65d43dc
Merge pull request #24699 from sisou/patch-1
Correct comments in stock increase methods
2019-10-02 17:27:10 +05:30
vedanshujain 3c7e74f72d Return early when diff is 0.
Earlier we were also update  `_reduced_stock` meta everytime, but we don't need to when diff is 0 because this means that everything is already consistent.
2019-10-02 17:24:16 +05:30
Nico Mollet 8365365037
Removed space at the end of the line 2019-10-02 13:42:26 +02:00
Vedanshu Jain 26794c12f2
Merge pull request #24738 from woocommerce/feature/24595
Introduced "woocommerce_output_cart_shortcode_content" filter
2019-10-02 15:57:42 +05:30
Vedanshu Jain 9641963001
Merge pull request #24740 from woocommerce/feature/24654
Make WC_Abstract_Order::recalculate_coupons() public
2019-10-02 15:56:36 +05:30
Nico Mollet 5bcc35c24e
Coupon expiry date tooltip to help understand behaviour
Help understand if the date is included or excluded
2019-10-02 11:48:15 +02:00
Vedanshu Jain 7bb1a0babd
Merge pull request #24536 from nikhil-webkul/patch-3
Add back post type count to system status report
2019-10-02 14:47:48 +05:30
Vedanshu Jain 2188f9b788
Merge pull request #24341 from woocommerce/fix/24238
Check for max discount to be -ve to prevent overwriting fee.
2019-10-02 14:32:15 +05:30
vedanshujain d2d0bf8466 Also consider refunded item quantity while increasing stock.
When updating an order, we call `wc_maybe_adjust_line_item_product_stock` to see if any item stock needs adjusting. We were not considering if an item has been refunded, which was causing incorrect stock adjustments.
This fix also takes in to account that an order has been refunded partially or fully.

Fixes #24489
2019-10-02 13:42:19 +05:30
Gerhard Potgieter 52cd7370b3
Merge pull request #24722 from woocommerce/fix/wpml-homepage-compatibility
Geolocation home URL WPML compatibility
2019-10-02 09:31:09 +02:00
Gerhard Potgieter db539803bf
Merge pull request #24737 from woocommerce/fix/24594
Fixed description of failed order email
2019-10-02 08:43:29 +02:00
Vedanshu Jain 487b510953
Merge pull request #24690 from woocommerce/add/wccom-installer-requirements-check-rest-api-endpoint
Add WCCOM requirements check to /installer REST API endpoint
2019-10-02 09:30:28 +05:30
Claudio Sanches 3c92523d92 Fixed comments orderby 2019-10-01 18:04:18 -03:00
Rodrigo Primo 1457de1c14 Add filter to the method WC_Countries::get_european_union_countries()
This commit adds a filter called `woocommerce_european_union_countries`
to the method WC_Countries::get_european_union_countries(). This is to
let third party code to customize the list of countries returned by the
method.
2019-10-01 17:25:28 -03:00
Claudio Sanches 8c88cd9b6f Make WC_Abstract_Order::recalculate_coupons() public 2019-10-01 17:19:33 -03:00
Rommel Castro 4fabaed498
Implements WC_WCCOM_Site_Installer_Requirements_Check::met_requirements() validation on GET /install 2019-10-01 13:45:30 -06:00
Gerhard Potgieter 1b9a38f662
Merge pull request #24542 from woocommerce/feature/24541
Allow override payment token classes
2019-10-01 21:09:12 +02:00
Claudio Sanches acc57ec853 Introduced "woocommerce_output_cart_shortcode_content" filter 2019-10-01 14:28:31 -03:00
Claudio Sanches 3d73025fa4 Fixed description of failed order email 2019-10-01 13:55:45 -03:00
Claudio Sanches e85b405e97 Fixed method name 2019-10-01 12:30:29 -03:00
Gerhard 414d31d191 Bump PHP recommended version to 7.0 and WP recommended version to 5.0 2019-10-01 12:21:51 +02:00
Rommel Castro 6567271840
Update status error to 400 2019-09-30 18:31:23 -06:00
Rommel Castro 803f3e6cc6
Implements WC_WCCOM_Site_Installer_Requirements_Check::met_requirements() validation on POST /install 2019-09-30 15:20:11 -06:00
Rommel Castro 67091782f8
Includes WC_WCCOM_Site_Installer_Requirements_Check class 2019-09-30 15:15:11 -06:00
Rommel Castro 6e5210657b
Adds WC_WCCOM_Site_Installer_Requirements_Check class 2019-09-30 15:14:52 -06:00
Gerhard 6d09d0efcf Fix OWB sell in person vertical alignment 2019-09-30 19:31:50 +05:30
Gerhard Potgieter fdbdb5c73a
Merge pull request #24677 from woocommerce/fix/illegal-offset-bug
Small refactor in WC_Order methods to get formatted address
2019-09-30 15:00:34 +02:00
Gerhard 9e3cb22dff Fix WPCS for #24657 2019-09-30 14:51:51 +02:00
Miguel Pinto 1d5809e5b2 Update class-wc-frontend-scripts.php 2019-09-30 14:51:30 +02:00
Miguel Pinto f2e23add73 code standards for fix with wpml 2019-09-30 14:51:30 +02:00
Miguel Pinto c32b95579a Fix for compatibility with WPML
With WPML, query parameter lang is added on home_url which means that geolocalization.min.js will not find any href with that query parameter. We need to remove this parameter from the home_url, otherwise it will not match the regex for the query in the JS function.
2019-09-30 14:51:29 +02:00
Gerhard 35ff7e3149 Bump @since for woocommerce_order_get_formatted_shipping_address and woocommerce_order_get_formatted_billing_address filters 2019-09-30 14:42:06 +02:00
Gerhard Potgieter 7870717995
Merge pull request #24347 from juliquiron/fix/country-select-selectwoo
Added selectWoo as dependency of country-select.
2019-09-30 13:57:33 +02:00
Gerhard 6870d756d1 Merge branch 'avoid-unnecessary-session-saving' of git://github.com/AmazeCom/woocommerce into AmazeCom-avoid-unnecessary-session-saving 2019-09-30 13:54:58 +02:00
Vedanshu Jain 436ee5de3a
Merge pull request #24680 from woocommerce/update/tracking-opt-in
Update usage tracking UI, default to opted-out.
2019-09-30 09:14:56 +05:30
Gerhard Potgieter 6c000bfe39
Merge pull request #24526 from itzmekhokan/fix/24430
Fixed issue #24430
2019-09-27 14:00:43 +02:00
Gerhard Potgieter eecc0f9a60
Merge pull request #24545 from woocommerce/fix/24537
Fixed add to cart link for simple products on feed
2019-09-27 13:53:05 +02:00
Gerhard Potgieter 145b6f72db
Merge pull request #24652 from uok/patch-2
Prevent browser cache when using back/forward buttons on non-cached pages
2019-09-27 13:40:52 +02:00
Gerhard Potgieter a8fed61dcc
Merge pull request #24682 from mpjason/master
Update downloadable/virtual case in wc_update_product_lookup_tables_column( $column )
2019-09-27 13:26:20 +02:00
Sören Schwert c22fcfd98f
Correct comments in stock increase methods
Fixes some comments and a variable name in the stock increase methods.

There is however a logic problem remaining, I think, where the value taken for the per-item `_reduced_stock` meta value falls back to `true` when the meta key does not exists (line 266), however the key is deleted at the end of the loop (line 281), thus allowing the `wc_increase_stock_levels` methods to increase the stock again when re-run directly.
2019-09-27 11:28:46 +02:00
Rodrigo Primo 364661df4e
Merge pull request #24614 from yash-webkul/patch-3
Fixed escaping in class-wc-admin-dashboard.php
2019-09-26 13:41:34 -03:00
Justin Shreve 9dfdfbf532 Check the box if the user goes back to setup and previously checked it 2019-09-26 11:31:46 -04:00
Yash Kapoor 3ed83341fc
Fixed escaping in class-wc-admin-dashboard.php
Added that space which was removed in previous commit by mistake.
2019-09-26 10:12:34 +05:30
Rodrigo Primo 2f93d3a2f7
Merge pull request #24535 from woocommerce/fix/22939-2
Fixed incorrect docs URL for failed order emails
2019-09-25 20:42:24 -03:00
Rodrigo Primo 4550bb6661
Merge pull request #24544 from woocommerce/fix/checkout-permalink
Prefer wc_get_checkout_url() instead of wc_get_page_permalink( 'checkout' )
2019-09-25 20:38:38 -03:00
Rodrigo Primo 6f1b814b33
Merge pull request #24613 from yash-webkul/patch-1
Fixed escaping.
2019-09-25 20:29:00 -03:00
Rodrigo Primo ddad208df1
Merge pull request #24688 from aaronkirkham/master
Fix admin sub-menus becoming unaligned when scrolling #24671
2019-09-25 19:43:44 -03:00
Vedanshu Jain 2abd1e99f1
Merge pull request #24280 from woocommerce/feature/24273
Introduced woocommerce_sort_fees_callback filter
2019-09-26 02:04:59 +05:30
aaronlad 6bca35ddbe fix #24671 2019-09-25 18:28:32 +01:00
Nathan Dawson 4d25b058c1 Refine static homepage check to exclude blog archive queries. Fixes #24582 2019-09-24 23:41:57 +02:00
Rodrigo Primo e7c0c894b2
Merge pull request #24154 from ryangjchandler/master
Fix #24153 - Added filter to disable password change notification
2019-09-24 18:08:04 -03:00
Rodrigo Primo 272f99981e
Merge pull request #24158 from johncodeos/master
Hide Vietnam's state field
2019-09-24 18:07:11 -03:00
Rodrigo Primo 24c11182b6
Merge pull request #24159 from ceich/refine-held-order-qty
Tweak: only consider orders created via checkout to hold stock
2019-09-24 18:04:36 -03:00
Rodrigo Primo 964ec24a9b
Merge pull request #24203 from malviyaritesh/fix/24160
Parse attribute_id as int not string
2019-09-24 18:02:44 -03:00
Rodrigo Primo b033c110db
Merge pull request #24229 from rynaldos/woocommerce_update_product_stock_query-changes
Use $new_stock in woocommerce_update_product_stock_query
2019-09-24 18:01:10 -03:00
Rodrigo Primo b63ecca450
Merge pull request #24249 from miguelfspinto/patch-2
Avoid duplicated process for IPN and PDT payment
2019-09-24 17:59:56 -03:00
Rodrigo Primo 281cbf4119
Merge pull request #24399 from Jon007/patch-3
add $this param to woocommerce_email_additional_content_
2019-09-24 17:56:59 -03:00
Rodrigo Primo 44f1ad2fbc
Merge pull request #24412 from Tyratox/master
Add new import filter in addition to existing action
2019-09-24 17:55:57 -03:00
Rodrigo Primo ebb6126499
Merge pull request #24650 from Ayesh/pr-typo-wc-gateway
Fix a typo in WC Payment Gateway abstract '3rd party gateway size'
2019-09-24 17:53:06 -03:00
mpjason 519d2c3fc1
Update wc_update_product_lookup_tables_column()
Adds prepared statement to the 'downloadable' and 'virtual' cases of wc_update_product_lookup_tables_column(). Suggested fix for issue #24681.
2019-09-24 15:00:59 -04:00
Justin Shreve 0c3fc315c5 Update tracking opt-in UI. 2019-09-24 14:26:21 -04:00
Vedanshu Jain 641968d50f
Merge pull request #23991 from aslamshekh/issue-23913
Fix - 23913, Delete product query transients when removing terms via …
2019-09-24 21:47:55 +05:30
Claudio Sanches 52108c1577 Fixed "Illegal offset" error caused by #24146
Introduces new filters to better handle order's formatted addresses
2019-09-24 13:15:35 -03:00
Aslam Shekh 9f8d279b19
Update class-wc-post-data.php
Thanks for the feedback @vedanshujain. As per your suggestion, I have changed hooked to deleted_term_relationships. Please let me know if any.
2019-09-24 11:14:43 +05:30
Rodrigo Primo 1b699621be
Merge pull request #24639 from itowhid06/master
use `esc_html__` instead of  `esc_html`
2019-09-23 12:32:23 -03:00
Rodrigo Primo 7cb614b41d
Merge pull request #24630 from nikhil-webkul/patch-5
Update class-wc-meta-box-product-images.php
2019-09-23 12:30:43 -03:00
Rodrigo Primo 2b9f1fe020
Merge pull request #24601 from nikhil-webkul/patch-4
Update abstract-wc-legacy-order.php
2019-09-23 12:28:41 -03:00
Rodrigo Primo 5681cfe70c
Merge pull request #24618 from yash-webkul/patch-14
Added escaping.
2019-09-23 12:24:23 -03:00
Rodrigo Primo 01b86568aa
Merge pull request #24616 from yash-webkul/patch-13
Fixed escaping function.
2019-09-23 12:22:27 -03:00
Rodrigo Primo 36f691e7de
Merge pull request #24615 from yash-webkul/patch-4
Added escaping.
2019-09-23 12:20:41 -03:00
Ben S 2888278601
Info no-transform 2019-09-18 17:10:11 +02:00
Ben S 1ee48bb7d4
Prevent browser cache when using back/forward buttons 2019-09-18 16:52:52 +02:00
Ayesh Karunaratne eec96d367c
Fix a typo in WC Payment Gateway abstract '3rd party gateway size' 2019-09-18 10:22:16 +05:30
Towhidul Islam 0d54a139fc fixed some typos 2019-09-15 21:41:27 +06:00
Towhidul Islam 780584230a use `esc_html__` instead of `esc_html` 2019-09-15 21:27:49 +06:00
Nikhil Chaudhary 951c57ada1
Update class-wc-meta-box-product-images.php
Added escaping function where required.
2019-09-14 09:13:48 +05:30
Yash Kapoor df8c0855a4
Added escaping. 2019-09-11 15:37:39 +05:30
Yash Kapoor 5c1a64026a
Fixed escaping function. 2019-09-11 15:12:34 +05:30
Yash Kapoor e8c6fd272b
Added escaping. 2019-09-11 15:06:00 +05:30
Yash Kapoor 6ed6a753db
Fixed escaping in class-wc-admin-dashboard.php 2019-09-11 15:02:10 +05:30
Yash Kapoor 07ce4b9e1c
Fixed escaping. 2019-09-11 14:53:52 +05:30
Nikhil Chaudhary fe43184455
Update abstract-wc-legacy-order.php
Added escaping
2019-09-10 10:40:16 +05:30
itzmekhokan 5a54c87c55 Fixed issue #24588 2019-09-07 12:23:33 +05:30
Rodrigo Primo fe2ec80b18
Merge pull request #24546 from woocommerce/fix/24534
Fixed markup in Storefront banner
2019-09-06 12:11:03 -03:00
Rodrigo Primo 2ed006585c
Merge pull request #24564 from woocommerce/update/cldr
Declare support to Unicode CLDR recommendation
2019-09-06 12:05:14 -03:00
Claudio Sanches d13d6543f7
Merge pull request #24451 from woocommerce/add/in-app-connect
Add support to allow connect and install for in-app purchase flow.
2019-09-03 21:33:39 -03:00
Claudio Sanches 3dec01ce38 Include note about follow Unicode CLDR recommendation 2019-09-03 12:46:44 -03:00
vedanshujain 6f2d64dcb4 Check for max discount to be -ve to prevent overwriting fee.
When we refund fee and some other line item whose value is more than fee in a single requst, value of line item will overwrite refund fee.

This is because where we check to make sure that we do not discount more than total possible value (to prevent negative total), we do not account for the fact that sometimes the cart could contain refund items. In those cases max_discount * -1 will always be larges then fees total.

This commit adds a check to make sure that max discount * -1 is indeed negative before overwriting fee total.
2019-09-03 20:45:33 +05:30
itzmekhokan dcf3d71c79 Fixed issue #24458 2019-09-02 12:40:44 +05:30
Claudio Sanches 0ea56e0bab Fixed coding standards 2019-08-30 14:33:59 -03:00
Claudio Sanches 49af62ba8b Allow some HTML markup on addons banner 2019-08-30 14:29:08 -03:00
Claudio Sanches 282d6073ff Fixed add to cart link for simple products on feed 2019-08-30 14:22:28 -03:00
Claudio Sanches e814105728 Prefer wc_get_checkout_url() instead of wc_get_page_permalink( 'checkout' ) 2019-08-30 13:06:50 -03:00
Claudio Sanches 90a7057a88 Updated docblock 2019-08-30 12:46:52 -03:00
Claudio Sanches 2e53447ea3 Applied new method into WC_Payment_Tokens and updated filter name 2019-08-30 12:43:56 -03:00
Claudio Sanches e9978cfa77 Fixed coding standards 2019-08-30 12:40:50 -03:00
Claudio Sanches f32da45b7e Introduced WC_Payment_Tokens::get_token_class 2019-08-30 12:40:13 -03:00
Rodrigo Primo b1c9243c1e
Merge pull request #24505 from webdados/patch-2
wc_mail returning the same as $mailer->send
2019-08-30 10:08:25 -03:00
Rodrigo Primo e7b8e3ed7b Fix typo in order note
PR #24501 fixed a typo in a order note string. This commit fix the same
problem in another place where the same string is used.
2019-08-30 10:01:55 -03:00
Nikhil Chaudhary 47e3f9bd3b
Update html-admin-page-status-report.php
Added the missing post type count section.
2019-08-30 11:46:04 +05:30
itzmekhokan a21c18ee9c Fixed coding standards for this comment. 2019-08-30 07:35:17 +05:30
Claudio Sanches a7cd0c1fff Fixed incorrect docs URL for failed order emails 2019-08-29 17:31:10 -03:00
Claudio Sanches df887bccc8
Merge pull request #24518 from pinalj/master
Add new hook for add-order-item
2019-08-29 16:48:13 -03:00
Claudio Sanches 9bb72ecf34
Merge pull request #24529 from nikhil-webkul/patch-2
Update class-wc-admin-duplicate-product.php
2019-08-29 16:46:42 -03:00
Marco Almeida 1df96da7f8
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() 2019-08-29 08:49:11 +01:00
Marco Almeida 238e0f2337
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() 2019-08-29 08:47:31 +01:00
Marco Almeida 80c2ecd692
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() 2019-08-29 08:46:25 +01:00
Marco Almeida 4800fda66c
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() 2019-08-29 08:45:41 +01:00
Marco Almeida 7dc5f0d4c1
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() 2019-08-29 08:43:42 +01:00
Pinal 7418ed123f Hook name changes
Updated the hook name as suggested.
2019-08-29 12:42:33 +05:30
Nikhil Chaudhary f2f0db602b
Update class-wc-admin-duplicate-product.php
Add escaping where required.
2019-08-29 12:39:09 +05:30
itzmekhokan c572d26170 Fixed wordpress coding standard 2019-08-29 10:25:32 +05:30
itzmekhokan 5234b85144 Fixed issue #24430 2019-08-28 22:25:14 +05:30
Claudio Sanches 386e4e6e7a
Merge pull request #24485 from woocommerce/php-7.4
Remove call to get_magic_quotes_runtime() as it is deprecated as of PHP 7.4
2019-08-28 12:53:02 -03:00
Claudio Sanches e545833c0a
Merge pull request #24524 from yash-webkul/patch-22
Update html-variation-admin.php
2019-08-28 12:51:58 -03:00
Claudio Sanches 866a48db00
Merge pull request #24523 from yash-webkul/patch-21
Update class-wc-admin-addons.php
2019-08-28 12:45:24 -03:00
Claudio Sanches ec1ba8db9c
Merge pull request #24522 from yash-webkul/patch-20
Update html-admin-page-addons.php
2019-08-28 12:45:06 -03:00
Claudio Sanches 0453cca9fd
Merge pull request #24521 from yash-webkul/patch-18
Update class-wc-admin-setup-wizard.php
2019-08-28 12:44:29 -03:00
Yash Kapoor be141f3231
Update html-variation-admin.php
Fixed escaping function for attribute value.
2019-08-28 19:43:02 +05:30
Yash Kapoor 84d2fb7df5
Update class-wc-admin-addons.php
Fixed escaping function for attribute value.
2019-08-28 19:31:58 +05:30
Yash Kapoor 18208163d6
Update html-admin-page-addons.php
Fixed escaping function for attribute value.
2019-08-28 19:26:36 +05:30
Yash Kapoor 83b5450ceb
Update html-admin-page-shipping-zone-methods.php
Fixed escaping function for attribute values.
2019-08-28 19:23:01 +05:30
Yash Kapoor 6443515064
Update class-wc-admin-setup-wizard.php
Fixed escaping function for attribute values.
2019-08-28 19:16:24 +05:30
Pinal e47f835f7a Add new hook for add-order-item
Added a new hook for validations in the add_order_item() called in
WC->Orders->Add/Edit Orders.

Allow plugins to perform validations/changes to the order before a
product is added the order.
2019-08-28 17:30:24 +05:30
Marco Almeida 788893bafa
Update wc-core-functions.php
Add docblock about @return
2019-08-27 22:33:32 +01:00
Miguel Pinto 60ac27ba3e
Update class-wc-gateway-paypal-response.php 2019-08-27 22:30:33 +01:00
Claudio Sanches cdd03f5f48
Merge pull request #24478 from marccoup/master
Fixed incorrect page setting id
2019-08-27 17:52:18 -03:00
Claudio Sanches 06a341df65
Merge pull request #24474 from mohsinrasool/fix/24461
Fix/24461
2019-08-27 17:47:09 -03:00
Claudio Sanches 0ea70c095e
Merge pull request #24464 from yash-webkul/patch-3
Update wc-template-functions.php
2019-08-27 17:19:06 -03:00
Claudio Sanches 6f2b91ab8e
Merge pull request #24481 from yash-webkul/patch-17
Update html-product-csv-import-form.php
2019-08-27 17:16:40 -03:00
Marco Almeida 14e3d762f7
wc_mail returning the same as $mailer->send
When using wc_mail, third-party developers should be able to get the value from $mailer->send so that can take measures if it returns false.

Closes #24504
2019-08-26 19:52:37 +01:00
Mithu A Quayium fa62be3fa1
Typo fix in line: 428
The string "Payment could not captured" in line:428 should be "Payment could not be captured" instead, since it is appropriate grammatically.
2019-08-26 11:32:40 +06:00
Rodrigo Primo 1f69fbcf33 get_magic_quotes_runtime() is deprecated as of PHP 7.4
Remove call to get_magic_quotes_runtime() as this function is deprecated
as of PHP 7.4 (see https://wiki.php.net/rfc/deprecations_php_7_4). This
part of the code was only needed for PHP <= 5.3 and this version is not
supported anymore by WooCommerce.
2019-08-23 15:58:13 -03:00
Rodrigo Primo 0128a0686b
Merge pull request #24396 from woocommerce/fix-implode-parameter-order
Use correct parameter order for implode.
2019-08-23 11:14:50 -03:00
Rodrigo Primo 444dffdda2
Merge pull request #24391 from woocommerce/fix-hex-is-light
Fix typo in function_exits check so function can be properly overridden
2019-08-23 11:14:07 -03:00
Rodrigo Primo d89e0cee84
Merge pull request #24176 from woocommerce/fix/issue-23750
Add more specific reason for why products cannot be purchased so plug…
2019-08-23 11:13:31 -03:00
Rodrigo Primo e09b285a5a
Merge pull request #24460 from woocommerce/fix-braces-notice
Use brackets instead of braces to avoid deprecation notice in PHP 7.4
2019-08-23 11:11:55 -03:00
Yash Kapoor 9517cd7877
Update html-product-csv-import-form.php
Fixed line indentation issue on line no 52.
2019-08-23 18:22:28 +05:30
Yash Kapoor ef2d38097d
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:04:52 +05:30
Yash Kapoor 9eed3757ae
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:03:59 +05:30
Yash Kapoor c3c91298b5
Update html-product-csv-import-form.php
Fixed data-showtext value.
2019-08-23 17:18:01 +05:30
Marc Coupland bc42517c1a Fixed incorrect page setting id 2019-08-23 11:16:29 +01:00
Mohsin Rasool ad21e90ddd
Changed 'action-scheduler' to 'woocommerce'
Changed 'action-scheduler' to 'woocommerce'
2019-08-23 01:01:01 +05:00
Mohsin Rasool 85cfcca188
Changing 'action-scheduler' domain to 'woocommerce'
Changing 'action-scheduler' domain to 'woocommerce'
2019-08-23 00:59:10 +05:00
Vedanshu Jain 5d1a70bfcc
Merge pull request #24450 from woocommerce/fix/24405
Remove Emoji from default additional email content
2019-08-22 21:52:54 +05:30
Rodrigo Primo 6ddbd2f9e1
Merge pull request #24469 from mohit-webkul/patch-2
Update html-admin-page-addons.php
2019-08-22 09:55:37 -03:00
Rodrigo Primo 180f260f7f
Merge pull request #24468 from yash-webkul/patch-14
Update html-oauth-start.php
2019-08-22 09:52:35 -03:00
Rodrigo Primo 91501175d5
Merge pull request #24466 from mohit-webkul/patch-1
Update class-wc-admin-menus.php
2019-08-22 09:50:51 -03:00
Rodrigo Primo 14ca7805f3
Merge pull request #24467 from yash-webkul/patch-13
Update class-wc-admin-setup-wizard.php
2019-08-22 09:49:03 -03:00
Yash Kapoor c3791673ef
Update class-wc-admin-setup-wizard.php 2019-08-22 17:14:34 +05:30
Mohit Verma 71db4b4068
Update html-admin-page-addons.php
Added alt tag translation.
2019-08-22 17:01:08 +05:30
Yash Kapoor 478f8eae17
Update html-oauth-start.php
Added translation.
2019-08-22 16:47:01 +05:30
Yash Kapoor 365a701d34
Update class-wc-admin-setup-wizard.php
Added translation.
2019-08-22 16:40:57 +05:30
Mohit Verma c97ca103c1
Update class-wc-admin-menus.php
Fixed escaping in attribute.
2019-08-22 16:21:23 +05:30
Yash Kapoor e4456144f9
Update wc-template-functions.php 2019-08-22 12:35:38 +05:30
Yash Kapoor bd6c7cfb13
Update wc-template-functions.php
Fixed spelling of woocommerce_gallery_thumbnail_size
2019-08-22 12:10:54 +05:30
Yash Kapoor b6e0c0308b
Update class-wc-shipping.php
Fixed spelling of WooCommerce.
2019-08-22 11:57:27 +05:30
David Stone 7a7151bd44 Use brackets s instead of braces to avoid deprecation notice in PHP 7.4 2019-08-21 16:32:23 -06:00
Rodrigo Primo 58618caeb9
Merge pull request #24375 from itzmekhokan/add/woocommerce_shipping_show_shipping_calculator
Added a filter for reposition shipping calculator
2019-08-21 17:08:48 -03:00
Rodrigo Primo 524fe5a4d5
Merge pull request #24384 from woocommerce/fix/24368
Check if order exists before create downloads hash
2019-08-21 16:56:14 -03:00
Rodrigo Primo c3262eea3e
Merge pull request #24385 from woocommerce/fix/24356
Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean
2019-08-21 16:52:13 -03:00
Rodrigo Primo 9c9715ac8d
Merge pull request #24435 from strayobject/fix-show-error-in-myaccount-when-order-missing
fix: show error message in myaccount if order does not exist.
2019-08-21 16:29:10 -03:00
Rodrigo Primo 5392463dd2
Merge pull request #24438 from woocommerce/fix/24431
Fixed Namibian currency symbol
2019-08-21 16:27:21 -03:00
Rodrigo Primo fdca2b8323
Merge pull request #24437 from woocommerce/tweak/load-order-twice
Prevent load order twice
2019-08-21 16:26:40 -03:00
Rodrigo Primo bfc469123f
Merge pull request #24441 from woocommerce/fix/24416
[Tracker] Prevent PHP warning when order date is empty
2019-08-21 16:14:49 -03:00
Rodrigo Primo 147307f1e6
Merge pull request #24442 from woocommerce/fix-error-log-notice
Check if error_get_last() is not null
2019-08-21 15:36:55 -03:00
Claudio Sanches 2c02d21277 Remove Emoji from default additional email content 2019-08-20 11:54:21 -03:00
Daniël van der Linden 0c885b8c24
Fix typo webhopk -> webhook in WC_Webhook 2019-08-20 08:43:50 +02:00
Nico Hauser 5c84557984
Updated filter name 2019-08-20 08:05:19 +02:00
David Stone 1c47315b89 Fix trying to access array offset on a boolean notice 2019-08-19 20:11:43 -06:00
Claudio Sanches 8a278d3d96 Fixed coding standards 2019-08-19 20:42:42 -03:00
Claudio Sanches 6bc080fef0 Prevent PHP warning when date is null 2019-08-19 20:41:30 -03:00
Claudio Sanches e50953bc24 Fixed Namibian currency symbol 2019-08-19 19:40:19 -03:00
Claudio Sanches 4b45905f18 Prevent load order twice 2019-08-19 18:19:36 -03:00
Michal Zdrojewski b2e9584a53 fix: show error message in myaccount if order does not exist. 2019-08-19 16:47:17 +01:00
Akeda Bagus 62b42893b2
Rename URL param from wccom-helper-nonce to wccom-connect-nonce. 2019-08-17 22:37:02 +07:00
Akeda Bagus aae802f319
Add support to allow in-app purchase installation after connected. 2019-08-17 00:36:28 +07:00
Nico Hauser 5291767228
Add new filter in addition to existing action
Currently there is no way to change the data fed into the importer. An example use of it is the following filter:

    add_filter('woocommerce_product_import_before_process_item', "product_import_before_process_item", 10, 1);
    function product_import_before_process_item($data){
        //modify the data before importing e.g. prevent inserting an empty name!
        foreach($data as $key => $value){
            if(isset($data[$key]) && empty($value)){
                unset($data[$key]);
            }
        }
    return $data;
    }
2019-08-15 22:00:31 +02:00
Jonathan Moore d88fdb6adf
add $this param to woocommerce_email_additional_content_
add $this param to woocommerce_email_additional_content_ filter to be consistent with 'woocommerce_email_subject_' .  and 'woocommerce_email_heading_' .  filters.
2019-08-14 08:02:04 +01:00
David Stone d685964df6 Use correct parameter order for implode. Solves deprecation notice in PHP 7.4 2019-08-13 13:03:09 -06:00
David Stone 3a74d03705 Fix typo in function_exits check so function can be properly overridden 2019-08-12 16:55:08 -06:00
Gerhard 5a1615a152 PHPCS fix 2019-08-12 20:26:34 +02:00
Rodrigo Primo f687412acd
Merge pull request #24353 from woocommerce/fix/24334
Avoid PHP notice when getting order item type
2019-08-12 14:11:41 -03:00
Claudio Sanches 66dbb44100 Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean 2019-08-12 12:45:43 -03:00
Claudio Sanches 8ef99cf1de Check if order exists before create downloads hash 2019-08-12 12:18:35 -03:00
Yash Kapoor 5b9b67ace1 Make matched shipping zone notice translatable (#24366)
* Update class-wc-shipping.php

Added translation.

* Update class-wc-shipping.php

Added translation.

* Update class-wc-shipping.php

Fixed phpcs error.

* Update class-wc-shipping.php
2019-08-12 10:32:44 -03:00
itzmekhokan 148f22ac1d Added a filter for reposition shipping calculator 2019-08-10 19:22:32 +05:30
Claudio Sanches 1b2b9d528a Fixed Netherlands postcode formatting (#24284)
* Fixed Netherlands postcode formatting

Trim all spaces, fixes issues when postcode is empty.

* Always trim spaces

* Updated unit test for test_wc_format_postcode()
2019-08-09 15:00:40 -03:00
Rodrigo Primo 6c263c97b6
Merge pull request #24239 from Chouby/fix/delete_variations_actions
Fire related actions when deleting all product variations
2019-08-08 16:47:39 -03:00
Rodrigo Primo 7cea80a86a
Merge pull request #24291 from woocommerce/prod-shipping-class-alphabetical
Sort shipping classes under products alphabetically
2019-08-08 16:41:30 -03:00
Rodrigo Primo 353945f638
Merge pull request #23384 from CasperBraske/CasperBraske-patch-1
Moved HTML from widget code to template file
2019-08-08 15:46:45 -03:00
Rodrigo Primo 3039d84736
Merge pull request #24336 from shoheitanaka/patch-16
Update address setting for Japanese
2019-08-08 15:27:12 -03:00
Rodrigo Primo 638a5cfef7
Merge pull request #24351 from woocommerce/fix/duplicate-tooltip-text-emails
Remove duplicate tooltip text in emails additional content
2019-08-08 10:49:13 -03:00
Rodrigo Primo b5cf46efde
Merge pull request #24199 from MahdiY/add/get-zone-criteria-filter
Add filter hook to get zone criteria
2019-08-08 09:56:49 -03:00
Rodrigo Primo 21418bb28b Avoid PHP notice when getting order item type
This commit changes WC_Order_Item_Data_Store::get_order_item_type() to
avoid a PHP notice ("Notice: Trying to get property 'order_item_type' of
non-object") when there is no entry in the database for the order item
ID passed.
2019-08-07 18:03:26 -03:00
Gerhard 7484bd9199 Remove duplicate tooltip text 2019-08-07 17:49:38 +02:00
Julià Mestieri d1236021bb Added selectWoo as dependency of country-select. 2019-08-07 11:21:11 +02:00
Mahdi Yousefi 449a258781
Remove whitespace at end of line 2019-08-07 11:26:28 +04:30
Mahdi Yousefi c2d05b1fc0
Update class-wc-shipping-zone-data-store.php 2019-08-07 08:34:14 +04:30
Shohei Tanaka 4312dc4834
add space
I added space
2019-08-06 21:41:16 +09:00
Gerhard 44421facfe convert string to lowercase before checking value in wc_string_to_bool 2019-08-06 14:10:31 +02:00
Shohei Tanaka 0aa2f160a9
Update address setting for Japanese
Update setting for Japanese Name and postcode and Prefecture.
2019-08-06 20:10:15 +09:00
Rodrigo Primo bccb7c3283
Merge pull request #24191 from woocommerce/fix/24188
Only add the image node to structured data if product has image
2019-08-05 16:45:30 -03:00
Gerhard 5ea1b72b6a PHPCS fixes 2019-08-05 13:51:46 +02:00
Daniel Bitzer b59e633b15 Fix output escaping for menu titles
Menu title contains HTML
2019-08-05 13:51:45 +02:00
Claudio Sanches 375b989322 Added validation for multiple decimal points 2019-08-02 13:58:02 -03:00
Rodrigo Primo 7c776e1593
Merge pull request #24279 from woocommerce/feature/23582
Introduced filter to prevent adjust product stock
2019-08-02 11:58:09 -03:00
Luis 0d80af01dc
Fixing code standards violations 2019-08-02 00:10:11 -03:00
Rodrigo Primo aa590c8acd
Merge pull request #24283 from woocommerce/fix/24240
Make wc_get_endpoint_url() follow WordPress permalink settings
2019-08-01 17:36:26 -03:00
Claudio Sanches 843df9c8b9 Remove %20 from strings when building a form from query strings 2019-08-01 17:24:32 -03:00
Claudio Sanches d624bb57d5 Fixed coding standards 2019-08-01 15:56:02 -03:00
Claudio Sanches decea3d28c Allow sort products by "include" order 2019-08-01 15:55:32 -03:00
Rodrigo Primo ad6d9ec8fe
Merge pull request #24282 from woocommerce/feature/24243
Introduced filter to change default redirect URL in wc_logout_url()
2019-08-01 15:20:09 -03:00
Claudio Sanches 78c5a37b4b Prevent PHP notices in WooCommerce widgets using Gutenberg's Legacy Widget Block 2019-08-01 14:43:59 -03:00
Jesse Pearson 009b0f030d Sort shipping classes under products alphabetically 2019-08-01 13:07:05 -04:00
Miguel Pinto ae4eba45ec
Update class-wc-gateway-paypal-response.php 2019-08-01 16:19:17 +01:00
Rodrigo Primo d33505b33a
Merge pull request #24198 from woocommerce/fix/24190
Prevent run wc_load_cart() before before_woocommerce_init
2019-08-01 11:26:37 -03:00
Claudio Sanches c4afd53749 Make wc_get_endpoint_url() compatible with WordPress use_trailing_slashes settings 2019-07-31 20:57:55 -03:00
Claudio Sanches 52ba85c977 Introduced filter to change default redirect url in wc_logout_url() 2019-07-31 20:35:10 -03:00
Claudio Sanches 83c0e69637 Update wc_format_decimal() tests to check for multiple decimals points 2019-07-31 19:54:58 -03:00
Claudio Sanches a646d96bec Make wc_format_decimal() strip multiple decimal separators 2019-07-31 19:48:22 -03:00
Claudio Sanches 1ece5e1310 Introduced woocommerce_sort_fees_callback filter 2019-07-31 18:31:49 -03:00
Claudio Sanches 1e6785f758 Introduced filter to prevent adjust product stock 2019-07-31 17:37:33 -03:00
Claudio Sanches d9dc4fd82e Display schema for the latest 5 reviews inside product's schema 2019-07-31 17:15:09 -03:00
David Stone 83d789ffba Restore translators comment 2019-07-31 12:58:37 -06:00
Miguel Pinto 77f4a3e25b
Update class-wc-gateway-paypal-response.php 2019-07-31 09:48:41 +01:00
Miguel Pinto de978dad28
Update class-wc-gateway-paypal-response.php 2019-07-30 21:31:55 +01:00
Miguel Pinto d7b54ccb35
Update class-wc-gateway-paypal-response.php 2019-07-30 20:56:43 +01:00
Gerhard Potgieter 9709382f31
Merge pull request #24213 from woocommerce/update/3-7-beta-tweaks
Deprecate instead of remove
2019-07-29 13:18:26 +02:00
Gerhard 4fa1e7d431 Only remove 2019-07-29 11:53:15 +02:00
Gerhard 978f0ef88d Add backward compatible functionality to the new table if maybe_remove_tax_class_rates happens to get called. 2019-07-29 10:56:13 +02:00
Miguel Pinto ce4f0edc3a
Avoid duplicated process for IPN and PDT payment
Currently, Woocommerce is processing twice the payment when IPN and PDT notifications are enable. This mean that stock is reduced twice.
2019-07-29 09:25:30 +01:00
Frédéric Demarle 0fa582a25f Coding standards 2019-07-26 13:40:13 +02:00
Frédéric Demarle e3dd09d021 Fire related actions when deleting all product variations 2019-07-26 11:55:30 +02:00
rspublishing bb2c929fba Use in woocommerce_update_product_stock_query 2019-07-25 09:31:37 +02:00
David Stone 487b38e0ae Use two different filters instead to avoid unexpected behavior 2019-07-24 16:54:51 -06:00
Gerhard Potgieter ba517650a1
Merge pull request #24178 from james-allan/deprecate_before_quantity_zero_action
Deprecate the `woocommerce_before_cart_item_quantity_zero` action
2019-07-22 14:38:40 +02:00
Gerhard Potgieter 1a3e9a668f
Merge pull request #24173 from woocommerce/fix/order-create-track
[Beta fix] Return early if post status is `auto-draft` to prevent fatal.
2019-07-22 14:36:44 +02:00
Gerhard e586379c3c Delete woocommerce_tax_classes option after transfering it to the new tax class table. 2019-07-22 14:16:17 +02:00
Gerhard 0e316c238d Add back WC_Tax::maybe_remove_tax_class_rates removed in #23093 and deprecate it instead. 2019-07-22 14:11:11 +02:00
David Stone db089c3f9d Only use default message to avoid showing too much information to user 2019-07-19 15:37:10 -06:00
Claudio Sanches 94d0516ba2 Fixed translator notation 2019-07-19 13:29:38 -03:00
Jaden 83a3c2362a
Fix Missing Translation for Subtotal 2019-07-19 12:53:59 +00:00
rmalviya f22dbd53ff Parse attribute_id as int not string
In legacy API v3 for product attribute terms, the `$attribute_id` is
received as string, but is required as int for proper handling.
Use `absint` to make sure it is a valid int id and hence fix #24160.
2019-07-19 15:52:06 +05:30
MahdiY 040a617cd1 Add filter hook to get zone criteria 2019-07-19 09:35:04 +04:30
Claudio Sanches 488eefd7ec Don't allow before before_woocommerce_init 2019-07-18 23:43:32 -03:00
Claudio Sanches fd42c439f9 Prevent run wc_load_cart() before woocommerce_loaded 2019-07-18 23:34:13 -03:00
Rodrigo Primo 0e317ac82e Only add the image node to structured data if product has image
This commit adds a check to verify if a given product has a image before
adding the image node to the structured data output. If there is no
image, the image node should be omitted instead of display with `false`
as its value.
2019-07-18 10:24:42 -03:00
James Allan dd47170c7d Deprecate the woocommerce_before_cart_item_quantity_zero action
This action was removed in 921cc754b9.
It will need to be deprecated so third-parties are made aware the new alternative.
2019-07-18 11:18:21 +10:00
David Stone b2e262f6cc Add more specific errors for all product type which are unpurchasable 2019-07-16 17:14:02 -06:00
vedanshujain 6ab03e6acd Return early if post status is `auto-draft` to prevent fatal.
While creating an order, if we remove an item after adding, `pre_post_update` hook gets called. Since the order is not created yet, `$order->get_date_created()` will be null, and this will cause a fatal in the event tracker which checks for and tracks edit in order created date.

We now return early when order status is `auto-draft` to prevent these kind of errors.
2019-07-17 00:21:18 +05:30
David Stone 50d9c73809 Add more specific reason for why products cannot be purchased so plugin can custimize these messages 2019-07-16 12:49:50 -06:00
Chris Eich 354b248b28
Only count orders created via checkout in held stock qty
Plugins may create orders without the meta tag "_created_via"="checkout" for various purposes, e.g. a balance-due order for purchases via deposit, because only the deposit order should reduce stock on checkout. The SUMO Payment Plans plugin does exactly this, but core WC handles such orders inconsistently:
- wc_get_held_stock_quantity() counts their items against held stock, but
- wc_cancel_unpaid_orders() only cancels old orders with a meta tag of "_created_via"="checkout"

This PR fixes that inconsistency, which on my site was preventing a user from adding an in-stock product to her cart, just because a balance-due order for the same product was pending.

Workaround: clear the setting WC > Products > Inventory > Hold Time (default 60 minutes), which inhibits the use of wc_get_held_stock_quantity().
2019-07-15 21:59:02 -07:00
John 052a6c6489
Hide Vietnam's state field
When you choose the country 'Vietnam' from a woocommerce website, the state field is hidden. So I added to be hidden in this class too.
2019-07-16 02:23:59 +03:00
haszari 8c5eb16c78 shorten in-app-purchase url param keys 2019-07-16 08:30:19 +12:00
Gerhard Potgieter 3958e347cd
Merge pull request #24123 from woocommerce/add/wccom-site-rest-api
Add WCCOM Site REST API
2019-07-15 19:34:14 +02:00
Claudio Sanches 1f77efae4b Don't use WP_REST_Server::get_raw_data() inside REST API endpoints 2019-07-15 13:30:17 -03:00
Claudio Sanches eac2d39edf Better naming for REST API endpoints 2019-07-15 13:19:03 -03:00
Claudio Sanches 3fd0eb7391 Merge branch 'add/wccom-site-rest-api' of github.com:woocommerce/woocommerce into add/wccom-site-rest-api 2019-07-15 13:13:53 -03:00
Claudio Sanches 396bbe4cf5 Fixed doc blocks and coding standards 2019-07-15 13:13:16 -03:00
Akeda Bagus 3f9bbf5a3b
Replace __DIR__ with WC_ABSPATH. 2019-07-15 23:07:34 +07:00
Claudio Sanches d339a29468 Fixed standards 2019-07-15 12:58:41 -03:00
Claudio Sanches 73f27d030b Use trailingslashit 2019-07-15 12:57:16 -03:00
Akeda Bagus c8812a205b
Add helper method get_authorization_header.
This to support scenario in which HTTP_AUTHORIZATION being stripped
and use getallheaders as a fallback. This helper method is copied from
class-wc-rest-authentication.php.
2019-07-15 22:47:07 +07:00
Akeda Bagus 47db7588d7
Use hash_equals when checking access_token. 2019-07-15 22:03:31 +07:00
rgjchandler 687197f234 Fix #24153 - Added filter to disable password change notification 2019-07-15 16:00:13 +01:00
Akeda Bagus 0ffd4db630
Move authentication to WCCOM Site API to wccom-site main class. 2019-07-15 21:59:48 +07:00
Akeda Bagus 20325f2db6
Remove duplicate state download_link in favor of download_url. 2019-07-15 21:41:53 +07:00
Akeda Bagus 0891e0c85f
Remove extra docblock line. 2019-07-15 18:45:50 +07:00
Akeda Bagus 45bf842ea3
Add @ since tag. 2019-07-15 18:44:51 +07:00
Akeda Bagus 284239ee44
Replace SERVER['REQUEST_URI'] in favor of add_query_arg. 2019-07-15 18:28:33 +07:00
Peter Fabian 1e43a2f9e3
Merge pull request #24145 from woocommerce/add/new-cart-hooks
New hooks for cart and minicart templates
2019-07-15 12:22:31 +02:00
Peter Fabian f230452caf
Merge pull request #24146 from woocommerce/fix/get_formatted_shipping_address
WC_Order::get_formatted_shipping_address refactor
2019-07-15 11:53:59 +02:00
Peter Fabian cb9d94ed9b
Merge pull request #24147 from woocommerce/revert-23705-fix/23696
Revert "Prevent negative prices on products"
2019-07-15 11:28:25 +02:00
Akeda Bagus f51265e58d
Add @since tag. 2019-07-15 15:42:36 +07:00
Akeda Bagus 59a5c6d754
Disable few phpcs rules instead of all. 2019-07-15 15:17:40 +07:00
Gerhard Potgieter 043fd478bc
Merge pull request #23687 from rekkitatu/master
Delete guest cart session if user logs in, solves #23686
2019-07-15 09:54:39 +02:00
Gerhard Potgieter 7c0d0251ee
Merge pull request #23883 from woocommerce/add/new-edit-order-tracks
Track more events on the edit order screen for future design validation.
2019-07-15 09:36:01 +02:00
Gerhard Potgieter aa706fd68f
Merge pull request #24075 from woocommerce/add/in-app-purchase-params
Add in-app-purchase params to extensions screen & suggestions
2019-07-15 09:18:51 +02:00
Gerhard Potgieter 52f1eb4060
Revert "Prevent negative prices on products" 2019-07-15 08:50:11 +02:00
haszari dab7cb328a use add_query_arg to determine current page url 2019-07-15 18:07:57 +12:00
haszari f97fa34c01 rename button style param/variable for clarity 2019-07-15 08:50:08 +12:00
Gerhard Potgieter 556a238dfb
Merge pull request #24021 from AndyMardell/feature/allow-notice-type-changes
Allow notice type changes when updating cart contents
2019-07-14 21:06:20 +02:00
Gerhard fe2d46799f This PR reworks the intention of #23859 which causes failing unit tests due to $this->get_address( 'shipping' ) always returning an array even when no shipping address is present. 2019-07-14 20:34:30 +02:00
Gerhard Potgieter 6693b44a98
Merge pull request #23859 from RistoNiinemets/master
Allow filtering formatted shipping address
2019-07-14 20:24:44 +02:00
Gerhard Potgieter f9697eb03e
Merge pull request #24034 from woocommerce/fix/23508
Fix: check if DB_NAME is defined before using it
2019-07-14 19:54:04 +02:00
Gerhard Potgieter eee56a254f
Merge pull request #23479 from parmarhardip/23381
enhance #23381 Prevent the Cart, checkout and my account page from be…
2019-07-14 19:49:37 +02:00
Gerhard 6e4e818170 Introduce woocommerce_widget_shopping_cart_subtotal function and move minicart template subtotal to use it. New woocommerce_before_cart_collaterals, woocommerce_widget_shopping_cart_total and woocommerce_widget_shopping_cart_after_buttons actions for making the cart and mini cart templates more flexible without having to override it. 2019-07-14 19:27:42 +02:00
Gerhard Potgieter 60b385ea93
Merge pull request #23268 from Spreeuw/patch-8
store tax rate percent in tax line items
2019-07-14 18:42:10 +02:00
Tatu ed7f98a584
Coding standards fix 2019-07-12 23:18:29 +03:00
Tatu d9254cedb2
Prevent conflict with multiple logged in users
Previous code would delete the session of previously logged in user in the rare case that multiple users would be logged in on the same browser. Added check to see if there is user account exists with the old_session_key and if not then the old session is from a guest user which can be deleted from database during logging in. Also returned old_session_key as optional parameter to prevent issues.
2019-07-12 22:53:01 +03:00
Claudio Sanches 77191a97f8
Merge pull request #23705 from woocommerce/fix/23696
Prevent negative prices on products
2019-07-12 12:56:34 -03:00
Claudio Sanches 78702ca423 Fixed docblock 2019-07-12 12:56:04 -03:00
Claudio Sanches 60c18ce544
Merge pull request #23067 from woocommerce/pr/23043
Allow matching of "any" attributes in find_matching_product_variation…
2019-07-12 12:40:53 -03:00
Claudio Sanches 3b9b186035
Merge pull request #24140 from woocommerce/fix/jetpack-tracks-id
Fix namespaced Jetpack tracks_get_identity
2019-07-12 12:35:40 -03:00
Marcin Bot bd9961703b Fix namespaced Jetpack tracks_get_identity 2019-07-12 15:35:49 +01:00
Rodrigo Primo f21723f17a
Merge pull request #23402 from bekarice/tweak/update-paying-customer
Tweak: update paying customer information on payment complete
2019-07-12 10:15:21 -03:00
haszari 8c6a09e7e4 pass current wp-admin path to WCCOM as url param (for "back" link) 2019-07-12 14:50:14 +12:00
haszari 46f2b98bca add in-app-purchase url params to marketplace suggestions buttons 2019-07-12 13:42:35 +12:00
haszari 9652d8f42c add in-app-purchase url params to addons screen cards (in category tabs) 2019-07-12 13:42:35 +12:00
haszari 80f59f3819 fix linter errors (2 phpcbf, 31 manual) 2019-07-12 13:42:34 +12:00
haszari b597ff067a add in-app-purchase url params to addons screen button 2019-07-12 13:42:33 +12:00
haszari 6f29905ece fix phpcs errors (4 phpcbf, 40 manual) 2019-07-12 13:42:33 +12:00
Tatu c52e7bd75a
Dropped redundant persistent cart check code
Changing the not equal check between current_user_id and old_session_key to loose type allowed leaving out persistent cart related check.
2019-07-11 23:40:56 +03:00
Ewout Fernhout 0b69a19401 coding standard 2019-07-11 17:21:56 +02:00
Ewout Fernhout 8b51f55856 remove unused variable 2019-07-11 16:11:14 +02:00
Ewout Fernhout 324ac63376 code readability 2019-07-11 15:56:36 +02:00
Ewout Fernhout 1a7955d8f5 default tax rate percent to null 2019-07-11 15:56:28 +02:00
Ewout Fernhout 40a1f268f1 fix setting rate percent in checkout 2019-07-11 15:56:02 +02:00
Rodrigo Primo 52ecc2f357
Merge pull request #24056 from woocommerce/fix/obw-tracks-events
OBW: Fix event recording in OBW
2019-07-11 10:00:22 -03:00
Akeda Bagus fc7cacb711
Fix coding standard issues. 2019-07-11 19:58:16 +07:00
Ewout Fernhout 6fe857f718 Merge remote-tracking branch 'origin/master' into patch-8 2019-07-11 14:44:39 +02:00
Akeda Bagus e1743bfadb
Remove extra new line. 2019-07-11 18:22:39 +07:00
Akeda Bagus 40201eb9c3
Register wccom-site rest in main class.
With API moved to its own package (see #23957), controllers for wccom-
site namespace are now registered in wccom-site main class.
2019-07-11 18:19:08 +07:00
Akeda Bagus 5756766a03
Reset current_step state when installing. 2019-07-11 16:01:53 +07:00
Akeda Bagus 7d07e70958
Adjust products parameter so it can pass installation args. 2019-07-11 16:01:53 +07:00
Akeda Bagus d51e843190
Move WCCOM Site related files to `/wccom-site` directory.
Also use queue when installing products so API can respond immediately.
2019-07-11 16:01:53 +07:00
Akeda Bagus 0f2e22de9a
Add docblock in controller class. 2019-07-11 15:59:10 +07:00
Akeda Bagus a41b66c602
Rename helper to wccom-site. 2019-07-11 15:59:10 +07:00
Akeda Bagus c59e1c3553
Fix minor wording issue in error message. 2019-07-11 15:58:06 +07:00
Akeda Bagus 9d047fd912
Make sure to flush cache before checking wccom updates. 2019-07-11 15:58:06 +07:00
Akeda Bagus 18b503dbd6
Add support for theme installation. 2019-07-11 15:58:06 +07:00
tgglv c0d9fc7fc3
Make WP.org plugin support installation method names more precise 2019-07-11 15:58:06 +07:00
tgglv 6eeefd1341
Add WP.org plugin support into Product Activation 2019-07-11 15:58:05 +07:00
tgglv 1fae1d7ba2
Remove redundant line 2019-07-11 15:58:05 +07:00
tgglv 527fbca149
Store product's `installed_path` 2019-07-11 15:58:05 +07:00
tgglv 1dff186076
Add @return types into annotations 2019-07-11 15:58:05 +07:00
tgglv be63fba4cd
Fix typo 2019-07-11 15:58:05 +07:00
tgglv 5bde7b5161
Fix PHP CodeSniffer issues 2019-07-11 15:58:05 +07:00
Akeda Bagus 52a68177a0
Add product info retrieval step before downloading product. 2019-07-11 15:58:04 +07:00
Akeda Bagus 6854f3bdca
Update the state when installation finished. 2019-07-11 15:58:04 +07:00
Akeda Bagus 7ac8232d2c
Make sure to init the upgrader and clean plugins cache before activate. 2019-07-11 15:58:04 +07:00
Akeda Bagus b57f05fde9
Add missing description in docblock. 2019-07-11 15:58:04 +07:00
Akeda Bagus 69a4aa926a
Fix typo in error message. 2019-07-11 15:58:04 +07:00
Akeda Bagus 7adc256344
Move subscription check as part of installation steps. 2019-07-11 15:58:03 +07:00
Akeda Bagus a6e089e47b
Use WP_REST_Server::get_raw_data to get body from the request. 2019-07-11 15:58:03 +07:00
Akeda Bagus 4cf69e350e
Rename filename for helper REST API controller. 2019-07-11 15:55:16 +07:00
Akeda Bagus 72ba4ed2e5
Include helper product install class in main helper class. 2019-07-11 15:55:16 +07:00
Akeda Bagus 61b0d974f4
Add reset state. 2019-07-11 15:55:16 +07:00
Akeda Bagus 0f5a33d543
Add authentication for helper request. 2019-07-11 15:55:16 +07:00
Akeda Bagus d088aea85d
Initial work of adding product install API on top of helper. 2019-07-11 15:55:11 +07:00
Beka Rice 3c2e3cc9aa Only set paying customer prop when required 2019-07-10 18:36:43 -04:00
Rodrigo Primo e5857e91f9 Merge branch 'master' into fix/23508 2019-07-10 16:11:07 -03:00
Claudio Sanches c63cd802aa
Merge pull request #23957 from woocommerce/feature/feature-plugin-packages
Include external feature plugins as packages
2019-07-10 15:47:48 -03:00
Claudio Sanches 5b8694e92a
Merge pull request #23915 from woocommerce/fix/23544
[Setup] Make PostCode optional as few countries don't use them
2019-07-10 15:45:32 -03:00
Claudio Sanches 22726bd74d
Merge pull request #24120 from woocommerce/fix/24110
add filter for product import image separator
2019-07-10 14:30:34 -03:00
Ron Rennick 71d7f2c1bb remove trailing space 2019-07-10 14:01:38 -03:00
Gerhard Potgieter 2734b190c1
Merge pull request #23881 from ionutcalara/master
Update find matching variation method inner query
2019-07-10 15:53:30 +02:00
Gerhard Potgieter 49adf8169b
Merge pull request #23672 from woocommerce/fix/23366-2
Auto generate usernames when a username is blacklisted by WP
2019-07-10 15:44:44 +02:00
Gerhard Potgieter 9ca6dad11e
Merge pull request #23433 from justlevine/master
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
Ron Rennick 64476263b8 add filter for product import image separator 2019-07-10 09:13:05 -03:00
Mike Jolley c928188831 Update from master 2019-07-10 12:57:02 +01:00
aslamshekh 3df0769366 I have done with few changes which is suggested. 2019-07-10 14:52:59 +05:30
Gerhard 98c24b1090 Merge branch 'master' into pr/23043 2019-07-10 10:34:52 +02:00
aslamshekh 15eaaebdeb Fix-24115, Downloads report not getting 503 any more, If previously downloaded files are removed from product 2019-07-10 12:58:07 +05:30
Gerhard Potgieter 600da8cee2
Merge pull request #24112 from woocommerce/fix/tax-class-initialization
Fix Tax Class table initialization
2019-07-10 08:38:31 +02:00
Claudio Sanches 08d301779b Set max index length for slug in tax class table 2019-07-09 17:59:16 -03:00
Andy Mardell 9d4e7f2e12 Rename filters 2019-07-09 21:22:41 +01:00
Claudio Sanches d18c3f8ed1
Merge pull request #24069 from woocommerce/add/coupon-code-generator
Add generate coupon code button
2019-07-09 16:50:24 -03:00
Claudio Sanches 18b876a95c Always load generate code button
Some improvements in the button label and names
2019-07-09 16:46:17 -03:00
Claudio Sanches 6e6ca196f9
Merge branch 'master' into fix/23340 2019-07-09 16:32:43 -03:00
Rodrigo Primo 53df16b2b5
Merge pull request #23781 from woocommerce/try/obw-changes
OBW: Switch shipping labels and shipping zones placement
2019-07-09 16:06:38 -03:00
Claudio Sanches 0e5c0eeccd
Merge pull request #23091 from woocommerce/fix/23087
Move settings save functionality to wp_loaded hook
2019-07-09 15:47:41 -03:00
Rodrigo Primo 2827b57060
Merge pull request #23785 from woocommerce/update/14361
Use WP 5.0 determine_locale() function
2019-07-09 15:46:47 -03:00
Claudio Sanches da00ef76cc
Merge pull request #24111 from alerobertson/add/tag-operator-shortcode
Add tag_operator to products shortcode
2019-07-09 15:37:43 -03:00
Claudio Sanches 6c0ef10016 Do not save create taxes with empty names 2019-07-09 15:26:07 -03:00
Claudio Sanches 56240c9633 Prevent saving empty tax classes into the database 2019-07-09 15:23:46 -03:00
Claudio Sanches b178f1be1f Set initial tax classes 2019-07-09 15:13:02 -03:00
Claudio Sanches 1425b0c3b6 Crate tables before create options 2019-07-09 15:12:34 -03:00
Claudio Sanches 958a970255 Include missing wc_tax_rate_classes in WC_Install::get_tables 2019-07-09 15:02:07 -03:00
Rodrigo Primo 34e5018137
Merge pull request #23262 from woocommerce/fix/23257
CSV Import - check if sku or id column exists when updating products from csv
2019-07-09 14:25:03 -03:00
alerobertson b7ab7b81c9 Add tag_operator to products shortcode
Allow user to decide how products are filtered by tag, instead of defaulting to IN
2019-07-09 13:06:35 -04:00
Claudio Sanches 92253ea862
Merge pull request #23773 from woocommerce/fix/23744
PayPal pass billing address when shipping address option disabled
2019-07-09 12:48:07 -03:00
Claudio Sanches 32996d2fdd Merge branch 'master' into pr/23043 2019-07-09 12:39:40 -03:00
vedanshujain dd783615cc Use helper method instead of `wp_list_pluck` to avoid notices
In country locales, many times configuration for postcodes may not be defined. In these cases, using `wp_list_pluck` will throw notices.

We now use a small helper method to extract post code configuration from country locales.
2019-07-09 18:13:27 +05:30
Diego f95f73c548 Added arguments to filter `woocommerce_ajax_order_item` 2019-07-09 13:31:47 +01:00
vedanshujain e2577b3a06 [Setup] Make PostCode optional as few countries don't use them
Some countries like Hong Kong, UAE etc don't use post codes, in which case this commit will make the field optional.
If its not known whether a country uses postcode or not, it will be required.
2019-07-09 14:37:03 +05:30
Gerhard Potgieter a7b6d7bfa4
Merge pull request #24024 from woocommerce/fix/23917/code
Round late when rounding at subtotal to reduce rounding error.
2019-07-09 11:05:40 +02:00
Gerhard Potgieter 013ee83b47
Merge pull request #23189 from woocommerce/tracks/coupons
Tracks: Add coupons view events
2019-07-09 11:04:43 +02:00
Gerhard 7038c73ab4 Merge branch 'master' into update/exclude-compiled-assets-from-git 2019-07-09 10:57:40 +02:00
Claudio Sanches 01f5a09d27
Merge pull request #23338 from woocommerce/update/23335
More useful actions in during CRUD save events
2019-07-08 18:56:14 -03:00
Claudio Sanches 55692cba87
Merge pull request #23255 from woocommerce/shopify-column-mapping
Mapping for default Shopify fields
2019-07-08 18:53:57 -03:00
Claudio Sanches c1223e3890 Fixed meta: label 2019-07-08 18:52:03 -03:00
Claudio Sanches 8b04f8d6cc
Merge pull request #23150 from woocommerce/fix/23135
Made WooCommerce roles translatable
2019-07-08 18:39:33 -03:00
Claudio Sanches fb19ffe48f Avoid infinity loop caused by PHP warning 2019-07-08 18:38:03 -03:00
Claudio Sanches db06d3dbae Merge branch 'master' into update/22164-tax-rate-class-table 2019-07-08 18:12:23 -03:00
Claudio Sanches b54997d9f5 Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221 2019-07-08 17:55:07 -03:00
Claudio Sanches adc543f8f1
Merge pull request #24058 from woocommerce/add/wc-admin-obw-recommended
OBW: Add wc-admin to recommended page
2019-07-08 16:56:49 -03:00
Claudio Sanches c131225825
Merge pull request #24050 from woocommerce/update/23930
Add support for namespaced Jetpack tracks_get_identity
2019-07-08 16:48:01 -03:00
Claudio Sanches a4b8184464
Merge pull request #23950 from parmarhardip/fix-23944
Currency changes applied for 'São Tomé and Príncipe dobra' and 'Mauritanian ouguiya'
2019-07-08 16:12:53 -03:00
Claudio Sanches da99bc8ca0 Merge branch 'master' into feature/feature-plugin-packages 2019-07-08 14:33:21 -03:00
Paul Sealock 2d2ef711b8 Pass in select id 2019-07-08 11:41:52 +12:00
Paul Sealock bc23340909 Use #doaction to target bulk actions 2019-07-05 17:02:30 +12:00
Paul Sealock 7af9d1813d Tracks: Add coupons view events 2019-07-05 16:46:58 +12:00
Paul Sealock 8777dc4c01 Revert title to WooCommerce Admin 2019-07-05 16:11:35 +12:00
Paul Sealock 1116e5516d update 'free' usage and wc-admin description 2019-07-05 16:10:10 +12:00
Rodrigo Primo b648647893
Merge pull request #23741 from woocommerce/feature/23728
Allows customize buyer name in orders list screen
2019-07-04 16:23:43 -03:00
Rodrigo Primo 9eed45af4e
Merge pull request #23740 from woocommerce/fix/23735
Rename "Postcode / ZIP" to "Postal code" when select Canada
2019-07-04 16:20:11 -03:00
Rodrigo Primo 4712f75f67 Merge branch 'master' into fix/23508 2019-07-04 16:13:01 -03:00
Rodrigo Primo 4de12633d6
Merge pull request #24073 from woocommerce/fix/status-helper-disconnected-typo
Fix missing space and closing <strong> tag in WooCommerce.com disconnect message
2019-07-04 16:05:59 -03:00
Rodrigo Primo 9325e233d7
Merge pull request #23190 from woocommerce/tracks/status-events
Tracks: Status page events
2019-07-04 15:21:07 -03:00
oscargare 2c8e45830a Added new action "woocommerce_product_read" (#23181)
* Added new action "woocommerce_read_product_data"

* Added new action woocommerce_product_read
2019-07-04 14:17:34 -03:00
vedanshujain 8ab6cb2b5a Round late when rounding at subtotal to reduce rounding error.
We were earlier rounding different tax rate values while they are merged, even if rounding at subtotal setting is enabled. This increases the rounding error, especially when prices are inclusive of taxes, and thus there is a chance that the total will be slightly different from when add the original values. For egs: https://github.com/woocommerce/woocommerce/issues/23917 .

This commit changes this behavior to round *after* we have summed all the precise unround values. Similar for items prices, we now round as late as possible, if rounding at subtotal is enabled.
2019-07-04 22:34:29 +05:30
Rodrigo Primo a26f38f3a1
Merge pull request #23133 from woocommerce/update/23111
If variations are missing prices, show notice
2019-07-04 10:08:41 -03:00
Gerhard Potgieter 213e52852c
Merge pull request #23968 from woocommerce/fix/23954
Allow display multiple error messages through registration validation
2019-07-04 13:17:39 +02:00
Gerhard Potgieter a91d271ae2
Merge pull request #23776 from woocommerce/fix/23699
Moved the JS enqueue from get_instance_form_fields to admin_footer hook.
2019-07-04 13:13:35 +02:00
Gerhard Potgieter 12fbfa5677
Merge pull request #22927 from woocommerce/update/22895
Allow "Thanks" wording in emails to be reworded by admin
2019-07-04 12:43:00 +02:00
Gerhard 52ef1d0b5f Remove esc_html call, it messes with the code tags. 2019-07-04 11:33:05 +02:00
Gerhard Potgieter c484fdd6d9
Merge pull request #24023 from woocommerce/fix/engine-php-notice
DB received `ENGINE` instead of `engine`, so PHP notices appear
2019-07-04 10:55:03 +02:00
Gerhard d4eb233843 Deprecate email_footer_replace_site_title and use replace_placeholders 2019-07-04 09:36:05 +02:00
Daniel Bitzer 20625e9a45 Fix missing space and closing <strong> tag
Strong tag was not being echoed and space was missing after full stop.
2019-07-04 16:57:50 +09:30
Gerhard Potgieter c3a25bb6bf
Merge pull request #23884 from woocommerce/fix/23875
Prevents taxes columns from being removed when the order is no longer editable
2019-07-04 09:25:49 +02:00
Gerhard Potgieter 007fc457a3
Merge pull request #24020 from woocommerce/fix/plural-forms-usage
Correct singular form usage in class-wc-admin-report.php
2019-07-04 09:23:14 +02:00
Gerhard Potgieter 762f051080
Merge pull request #24071 from woocommerce/add/action_log-excluded-comment-type
WC_Comments: Add action_log to excluded types in wp_count_comments
2019-07-04 09:18:03 +02:00
Gerhard Potgieter 54cab8086c
Merge pull request #23998 from yash-webkul/patch-1
Update class-wc-ajax.php
2019-07-04 09:17:03 +02:00
Gerhard 5d604329fc Reword postfix to suffix 2019-07-04 09:07:02 +02:00
Gerhard 9e2ba43d3b Forgot the 9 2019-07-04 09:05:05 +02:00
Gerhard 164f09e9c7 Remove abiguous characters that are dificult to read. 2019-07-04 09:00:15 +02:00
Paul Sealock 08224c06f2 Add facebook and wc-admin to 'obw_recommended' Tracks event properties 2019-07-04 13:07:18 +12:00
Timmy Crawford e5b9f508bc WC_Comments: Add action_log to excluded comment_types in wp_count_comments 2019-07-03 15:06:21 -07:00
Gerhard 538edcaac0 Make button text translatable. 2019-07-03 22:57:08 +02:00
Gerhard 24fc4948c0 Add generate coupon code button for quick coupon code generation. 2019-07-03 22:48:30 +02:00
rmalviya b5447cd060 Filter meta value even if key not found
Resolves #24062.
2019-07-03 22:25:51 +05:30
Mark Senff 9c013b132b
Update html-product-attribute.php 2019-07-03 07:30:32 -04:00
Gerhard 8a972ee5c3 Add check for empty string when checking meta_value since checking an empty string in mysql against an int results in a 0 value. 2019-07-03 12:37:28 +02:00
Gerhard 7ff9788450 Use plugin_path instead of plugin_url. 2019-07-03 11:49:51 +02:00
Gerhard 77e8e36f72 Add notice when assets are not built, introduce grunt assets task for compiling and minifying assets. 2019-07-03 11:46:28 +02:00
Paul Sealock 01f428d34f install plugin 2019-07-03 13:12:24 +12:00
Paul Sealock b65ce3dd26 OBW: Add wc-admin to recommended page 2019-07-03 13:02:07 +12:00
Timmy Crawford 6f6265f8e3 Track views of the last step in the OBW. 2019-07-02 14:56:08 -07:00
Timmy Crawford 3f6d5eb49a Tracks: Fix marketing signup track. 2019-07-02 14:47:41 -07:00
Peter Fabian 6727fdba62 Updated constants' names to better reflect their usage. 2019-07-02 18:44:43 +02:00
Claudio Sanches cb12b30c85 Fixed @since tag version 2019-07-02 12:51:36 -03:00
Rodrigo Primo 737f6af5e8 Introduce file type check for tax rate importer 2019-07-02 10:44:21 -03:00
Rodrigo Primo cabf9de71a Added nonce check to CSV importer actions 2019-07-02 10:37:46 -03:00
Rodrigo Primo 18813662dd Fix link to documentation about WordPress and PHP minimum requirements 2019-07-02 09:19:39 -03:00
Gerhard f74c32c17b Add return 2019-07-02 10:25:32 +02:00
Gerhard e08279d190 Add support for namespaced Jetpack tracks_get_identity from Jetpack 7.5 2019-07-02 10:20:57 +02:00
Andy Mardell 821d387c19 Add full-stop to inline comment 2019-07-01 08:31:10 +01:00
Rodrigo Primo b08fd05a7d Fix: check if DB_NAME is defined before using it
WooCommerce relies on the constant DB_NAME to display information about the database tables in the system status page. The problem is that this constant is not always defined (e.g., when the plugin HyperDB is used to replace the standard wpdb class). When that is the case, WooCommerce will incorrectly say that its core tables are missing and the following PHP warning will be generated:

```
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP)
wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-system-status-v2-controller.php:708
```

To fix this, this commit checks to see if DB_NAME is defined before using it. When the constant is not set, WooCommerce will display the following message to the users instead of the list of supposedly missing tables:

```
Database information: Unable to retrieve database information. Usually, this is not a problem, and it only means that your install is using a class that replaces the WordPress database class (e.g., HyperDB) and WooCommerce is unable to get database information.
```
2019-06-28 17:57:54 -03:00
Jeff Stieler 3bf58f2d48 Tracks: fix blog ID retrieval from Jetpack options.
JavaScripty syntax resulted in boolean values.
2019-06-27 14:15:17 -06:00
Boro Sitnikovski a7f5d87f5e DB received `ENGINE` instead of `engine`, so PHP notices appear 2019-06-27 17:34:08 +02:00
Rodrigo Primo 68f5ccabc1
Merge pull request #23811 from woocommerce/feature/23807
Allow enforce password strength meter on checkout
2019-06-27 11:39:00 -03:00
Rodrigo Primo f3b0d755fd Correct singular form usage in class-wc-admin-report.php
For more information see https://github.com/woocommerce/woocommerce/issues/24004
2019-06-27 11:03:35 -03:00
Andy Mardell f2152e665e Allow notice type changes when updating cart 2019-06-27 14:54:35 +01:00
Rodrigo Primo 3f2cacb1be Use phpcbf to fix phpcs violations in class-wc-admin-report.php 2019-06-27 10:48:31 -03:00
Rodrigo Primo 12d03d8d57
Merge pull request #23863 from Jon007/patch-2
Avoid attempting to cache expired sessions
2019-06-27 10:15:39 -03:00
Kris Shannon 3945694e37 Force string comparison for customer_id
In 203dba5 a check against the current user id was introduced.

This check is always failing because of a type mismatch causing an unnecessary insert/update query against the database.
2019-06-27 18:40:39 +10:00
Gerhard Potgieter 698625ce1d WP & PHP Upgrade Notices (#23975)
This commit introduces a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.

* Add backward compatible function wp_check_php_version for sites running WP version smaller than 5.1

* Refactor some messaging, move widget to top of WC dashboard widgets, add buttons linking out to WP pages with instructions.

* Add missing variables for adding nag class

* Add styling to dashboard widget

* Rework css to use exclamation instead

* Clean up widget, make sure no widget is registered when dismissed. Add banner that links to widget and make it dismissable.

* Update constant to reflect minimum requirements.

* Don't show banner. Fix undefined variable.

* Remove dashboard widget

* Update banner link to docs site

* Add link to docs page where instructions live for updating

* Change button text

* Add UTM params to docs link

* Moved the msg logic from template to php file.

* Bail out early when PHP and WP versions are ok.

* Added missing translation functiog

* Extracted notice function from reset_admin_notices.

To follow suit with other similar functions in the file.

* Synchronize fetching of WP version.

* Removed unused functions.

* Corrected indent.

* Reduce number of variables and fixed coding standards

* Updated wording of the notice.
2019-06-26 14:09:20 -03:00
Mike Jolley a0a58cfb15 update from master 2019-06-26 15:26:47 +01:00
Mike Jolley 48e1dc5bec Remove init_packages from class-woocommerce 2019-06-25 13:12:14 +01:00
MD0123-Hardip 60cafccb37 added new line in update-function.php file 2019-06-25 15:20:26 +05:30
MD0123-Hardip 530d53c428 added new 370 function for currency updater. 2019-06-25 15:17:16 +05:30
Yash Kapoor 84fd2bbca9
Update class-wc-ajax.php
Removed unused code.
2019-06-25 10:58:56 +05:30
Claudio Sanches deec93f8ca
Merge pull request #23769 from mch0lic/master
Forward query (GET) parameters when executing a batch REST API request.
2019-06-24 12:39:36 -03:00
Claudio Sanches 1f73c63a57
Merge pull request #23909 from woocommerce/fix/23895
Explicitly check 0 value attributes when looking up variations.
2019-06-24 12:35:39 -03:00
Claudio Sanches 45f1ac63e0
Merge pull request #23935 from malviyaritesh/fix/23931-sale-tooltip
Change misleading tooltip for product sale meta box
2019-06-24 12:35:04 -03:00
Claudio Sanches fe4dfea8eb
Merge pull request #23771 from woocommerce/fix/23756
Fix Top rated shortcode results
2019-06-24 12:18:57 -03:00
Claudio Sanches 912ee38836
Merge pull request #23812 from woocommerce/fix/rest-api-customers-type
Fixed a typo in customers endpoint
2019-06-24 12:18:15 -03:00
Claudio Sanches 606c0417a9
Merge pull request #23837 from woocommerce/fix/23834
Make NL postcode validation more flexible
2019-06-24 12:17:53 -03:00
Claudio Sanches 8d0e2f632b
Merge pull request #23878 from woocommerce/fix/23865
Shows city as an optional field for Singapore
2019-06-24 12:17:30 -03:00
Claudio Sanches c04f7b79f9
Merge pull request #23919 from woocommerce/fix/codex-memory-limit-link
Updated documentation about increasing memory allocated to php
2019-06-24 12:12:11 -03:00
Claudio Sanches 35c4183cad
Merge pull request #23966 from woocommerce/fix/23946
Fixed database update tool, fixing System Status, REST API and CLI
2019-06-24 12:11:47 -03:00
Claudio Sanches 09408d9296
Merge pull request #23967 from woocommerce/fix/23947
Fix phone number format to accept "(", and ")"
2019-06-24 12:09:09 -03:00
aslamshekh dce3f4907f Fix - 23913, Delete product query transients when removing terms via wp_remove_object_terms() 2019-06-24 18:58:20 +05:30
Mike Jolley 558a330291 Update version/path getters 2019-06-21 20:00:03 +01:00
Mike Jolley 6bfe8d63c5 Load Packge files 2019-06-21 19:58:38 +01:00
Mike Jolley d31f6f70a2 Package init method 2019-06-21 17:28:46 +01:00
Mike Jolley e3dc79481d Init the blocks library using autoloading 2019-06-21 15:03:28 +01:00
Mike Jolley ed0a4aae1f update shipping saving in setup wizard 2019-06-21 13:59:51 +01:00
Mike Jolley 3a1c401a5b update status report 2019-06-21 13:59:40 +01:00
Mike Jolley 833ad116c6 Update webhooks 2019-06-21 13:59:32 +01:00
Mike Jolley ab37649474 get_endpoint_data helper 2019-06-21 13:59:25 +01:00
Mike Jolley 5b105d0c7f Init the API and add to status report 2019-06-21 13:40:53 +01:00
Mike Jolley 950f31a9e0 Remove abstract rest class that is in the package 2019-06-21 13:40:10 +01:00
Mike Jolley 8b41b03f2e Remove blocks files 2019-06-21 12:23:41 +01:00
Gerhard c4096a1d8f Cater for blank paths, do not prepend ABSPATH when template path blank. 2019-06-20 15:10:58 +02:00
Gerhard 9212ee5082 Add check before calling wc_delete_order_item for taxes to make sure order is editable. 2019-06-20 15:01:01 +02:00
Gerhard 7f4c0d0334 Store template cache value without ABSPATH to avoid issues with multi container environments. 2019-06-20 14:43:19 +02:00
Peter Fabian a6a26633a4 Removed extra check if the code is executed within admin. 2019-06-20 14:07:52 +02:00
MD0123-Hardip a01d59e581 added db currency updater for both currency 2019-06-20 16:17:23 +05:30
Claudio Sanches 02aafa1948
Merge pull request #23911 from woocommerce/update/23887
Update auto username generation description
2019-06-19 20:22:02 -03:00
Claudio Sanches 88100b8f8e
Merge pull request #23926 from malviyaritesh/fix/23922-quote-in-pass
Stop unslashing password while registering user
2019-06-19 19:39:39 -03:00
Claudio Sanches e759317ef4
Merge pull request #23891 from malviyaritesh/fix/23888
Send boolean as expected, not string
2019-06-19 19:36:34 -03:00
Claudio Sanches 569e8a5b8f
Merge pull request #23925 from webdados/patch-2
Display Status > Logs timestamp with the Y-m-d H:i:s format
2019-06-19 19:11:13 -03:00
Claudio Sanches 84c8a2c165
Merge pull request #23936 from malviyaritesh/fix/23923-categories-link
Add missing post_type=product query var in url
2019-06-19 18:59:20 -03:00
Claudio Sanches 6989532274 Allow display multiple error messages through registration validation 2019-06-19 18:09:28 -03:00
Claudio Sanches 7073c6b3a2 Allow "(", and ")" in wc_format_phone_number() 2019-06-19 17:39:08 -03:00
Claudio Sanches d17b96646c Fixed database update tool, fixing System Status, REST API and CLI 2019-06-19 17:19:13 -03:00
Mike Jolley 145cf3b770 Remove rest includes and controllers init 2019-06-19 11:56:51 +01:00
Mike Jolley ce3a6cbbf8 Remove old include 2019-06-19 11:54:55 +01:00
Mike Jolley 78f9ea59ed Moved auth and exception classes to main includes directory - these are shared between legacy and new API. The package may replace these in the future. 2019-06-19 11:52:50 +01:00
Mike Jolley 7451659b24 Delete REST API abstract classes 2019-06-19 11:49:28 +01:00
Mike Jolley 03e60ebb7c Delete REST API classes 2019-06-19 11:48:12 +01:00
Mike Jolley 6ca9dac7d7 Remove REST API autoloader 2019-06-19 11:44:57 +01:00
Mike Jolley 9a07e92eba Remove parent construct call since init() is used. 2019-06-19 11:31:04 +01:00
Mike Jolley 038bac16f5 Update paths to legacy API and implement init method. 2019-06-19 11:29:49 +01:00
Mike Jolley 00a8ef5d4d Move legacy API files from /api/ to /legacy/api 2019-06-19 11:23:47 +01:00
Albert Juhé Lluveras 9e641e08dd
Merge pull request #23953 from woocommerce/fix/tracks-pixel-fixed
Set Tracks image position to fixed
2019-06-19 10:41:39 +02:00
Jonathan Moore d8470aa45a
implementing review from @claudiosanches 2019-06-18 21:20:39 +01:00
Claudio Sanches 4061f870a2
Merge pull request #23720 from parmarhardip/FIX-23589
fix- 23589 I have fixed pricing issue.
2019-06-18 16:04:45 -03:00
Claudio Sanches e18481e795
Merge pull request #23824 from woocommerce/fix/23799
Update Emogrifier library
2019-06-18 16:03:40 -03:00
Claudio Sanches e849a5e044
Merge pull request #23877 from jdeeburke/fix/apply-coupon-fatal
Fix fatal error when applying a virtual coupon to an order placed by a guest
2019-06-18 16:00:39 -03:00
Claudio Sanches a36dcf8aae
Merge pull request #23849 from woocommerce/fix/wc-tracker-reviews
Tracker: fix review count
2019-06-18 15:52:25 -03:00
Claudio Sanches 96787d62f9
Merge pull request #23828 from Jon007/patch-1
Avoid outputting a rating of zero when product has comments without a review rating.
2019-06-18 15:51:55 -03:00
Claudio Sanches bf01eccfcd
Merge pull request #23840 from unfulvio/23839-do-not-throw-notice-rest-api-includes
[#23839] Do not throw autoloader notice if following notice instructions
2019-06-18 15:51:22 -03:00
Albert Juhé Lluveras 26c2d49586 Set Tracks image position to fixed 2019-06-18 13:05:30 +02:00
MD0123-Hardip 715528e58e changes applied 2019-06-18 12:07:55 +05:30
rmalviya 4190e9fd4b Add missing post_type=product in url
Show Products->Categories active when clicked on "Make Default" link
under any product category and fix #23923.
2019-06-14 12:28:08 +05:30
rmalviya 0e896f82fa Change misleading tooltip for product sale meta box
Clarify the sale start and end time by changing the tooltip for
product sale price dates and fix #23931.
2019-06-14 11:12:54 +05:30
rmalviya 5df3621640 Do not unslash password when resetting
Similar to PR(#23926) don't unslash password fields when posted
while resetting password or changing account details.
2019-06-14 09:16:21 +05:30
rmalviya 01025f9628 Stop unslashing password while registering user
After 79ff1b10e password is not unslashed while logging in but
this missed removing `wp_unslash` from password while registering.
This causes the mismatch of password if user registered with a
password containing quote (`"`).
Fixes #23922.
2019-06-14 09:16:21 +05:30
Marco Almeida 3b7be608e4
Display Status > Log timestamp with the Y-m-d H:i:s format
Display WooCommerce > Statis > Log timestamp, when using WC_Log_Handler_DB, with the Y-m-d H:i:s format instead of the WordPress global date and time format options, because we need more detail on the shown timestamps and that might not be compatible with what we want for our global options.
2019-06-13 10:58:41 +01:00
Claudio Sanches 3ce6acec74 Updated outdated codex URLs 2019-06-12 19:31:01 -03:00
Claudio Sanches 5624af43a7 Updated docs about increasing memory allocated to php 2019-06-12 19:04:24 -03:00
Gerhard 84b6fa144f Update description for automatic username generation to reflect how it actually works. 2019-06-12 12:13:41 +02:00
Gerhard 3894d156e6 Explicitly check 0 value attributes when looking up variations. 2019-06-12 11:27:27 +02:00
justlevine efb8b9af57
Added missing quote
Quote missing between `placeholder` and `data-input-classes` attributes.
2019-06-11 20:47:22 +03:00
rmalviya 5bf8adf2dd Send boolean as expected, not string
Originally checkout.js:336 expected string but changed to boolean
with 4ad370985. Send boolean for `reload` in json and fix #23888.
2019-06-08 20:12:44 +05:30
Claudio Sanches 47c370809e Prevents taxes columns from being removed when the order is no longer editable 2019-06-07 10:07:32 -03:00
Jeff Stieler 05fd441145 Add payment method to order status change tracking. 2019-06-07 12:52:22 +02:00
Jeff Stieler 1bd9a7d9a7 Use a consistent tracks event naming scheme. 2019-06-07 12:31:42 +02:00
Jeff Stieler e251557550 Track when users click “add order” from an order edit screen. 2019-06-07 12:21:04 +02:00
Ionut Calara 26dfe11493 Update find matching variation method inner query
Fix variation query to prevent the order by being ignored in some mysql
and mariadb versions. The order by has been moved outside and a left
join was added.
2019-06-07 13:05:01 +03:00
Jeff Stieler 6c90d9da57 Track order actions. 2019-06-07 10:55:33 +02:00
Claudio Sanches c0a9b57d72 Shows city as an optional field for Singapore 2019-06-06 20:13:55 -03:00
Jared Burke 332c94c13a Fix fatal error when applying a virtual coupon to an order placed by a guest 2019-06-06 15:37:08 -05:00
Dan Wyman 3edd30757b Tracker: apply coding standards. 2019-06-06 13:23:11 -07:00
Jeff Stieler f9d064e778 Track changes to order creation date. 2019-06-06 17:09:50 +02:00
Fulvio Notarstefano aba51d4c76 [#23839] Use false arg in class_exists() 2019-06-06 09:56:30 +08:00
Risto Niinemets dbc9719d76 Use order raw address instead of formatted for filter 2019-06-04 08:13:40 +03:00
Jonathan Moore 9e8debd7ba
Avoid attempting to cache expired sessions
get_session() attempts to cache a session even if it is already expired.
The code used passes negative expiry seconds to wp_cache_add if the session expired in the past:
wp_cache_add( $this->get_cache_prefix() . $customer_id, $value, WC_SESSION_CACHE_GROUP, $this->_session_expiration - time() );

Depending on the caching layers used this will give errors in the logs such as:
ERR invalid expire time in setex in /var/www/html/wp-content/plugins/redis-cache/includes/predis/src/Client.php:370
as reported on: https://wordpress.org/support/topic/error-when-trying-to-get-a-get-a-cache-not-available/
2019-06-03 22:11:46 +01:00
Ajay Ghaghretiya c9bcce3a31 #23850 Fixed the coupon usage limit issue when apply coupon from admin panel (#23851)
* fix the coupon usage limit issue

* fix the if condition for the usage limit

* fixed coding standard

* fix the if conditions for coupon usage limit per user
2019-06-03 10:47:32 -03:00
Risto Niinemets de1dfbb1b4 Allow filtering formatted shipping address 2019-06-03 09:18:36 +03:00
Claudio Sanches 3a47453d68 Improve regex 2019-06-01 11:52:15 -03:00
Dan Wyman 7355fadfdd Tracker: fix review count.
Fixes #23848
2019-05-30 12:45:47 -07:00
Fulvio Notarstefano ab1ba58128 [#23839] Do not throw an autoloader notice if following the notice recommendation 2019-05-29 12:47:26 +08:00
Claudio Sanches b5da70c74a Introduced woocommerce_search_products_post_statuses filter 2019-05-28 21:05:26 -03:00
Claudio Sanches e04e9ae521 Make NL postcode validation more flexible
Allows postcode without spaces and in lowercase.
2019-05-28 20:51:07 -03:00
Claudio Sanches 2e90e9ab65
Merge pull request #23743 from Sisanu/issue-23717-enhancement-hook
Implement the info & extra actions new filter for Product gallery
2019-05-28 18:22:33 -03:00
Claudio Sanches 2fdf6de827
Merge pull request #23764 from jorgept/patch-1
Update class-wc-countries.php
2019-05-28 18:19:41 -03:00
Claudio Sanches c28af404ad
Merge pull request #23814 from woocommerce/add/x-sendfile-file-filter
Add filters to file paths passed to the different xsendfile like backends
2019-05-28 17:41:49 -03:00
Jonathan Moore 5d6574a00a
rating optional = generate_product_data incorrect
If rating is not mandatory on comments, generate_product_data() produces incorrect output.
For example items with comments but no reviews are output with rating of zero which is getting flagged in google webmasters tools under the heading "Rating is missing required best and/or worst values".

The output google is objecting to is eg:
"aggregateRating":{"@type":"AggregateRating","ratingValue":"0","reviewCount":1}}

postmeta in this case is:
_wc_average_rating 0
_wc_rating_count 0.0
_wc_review_count 1

product lookup table is reporting
rating_count 0
average_rating 0.00

the meta is correct and reflected in the product object, it is the test that is wrong since
if $product->get_review_count() 
may be true even if there are no ratings.

This is solved by substituting get_rating_count() which has the correct number of ratings.
2019-05-28 07:38:07 +01:00
Rodrigo Primo 000c95ea88
Merge pull request #23659 from woocommerce/add/wc-admin-install-nudge
Add wc-admin notice.
2019-05-27 12:29:43 -03:00
Rodrigo Primo ff1020a787
Merge pull request #23787 from woocommerce/fix/tracks-cookie-set-action
Tracks: set cookie on admin_init insead of wp_loaded
2019-05-27 12:16:27 -03:00
Rodrigo Primo 67663836c0
Merge pull request #23739 from woocommerce/fix/23737
Remove administrative message from refund reason
2019-05-27 12:12:07 -03:00
Rodrigo Primo ce6f6a6ddb
Merge pull request #23772 from woocommerce/fix/OBW-tracks-not-enabled
Tracks: Add check for OBW is-opting-in
2019-05-27 12:09:00 -03:00
Gerhard Potgieter b2ed079520 Manual orders coupon usage limits by email (#23775)
* Add functionality to wp-admin order to check for coupon usage based on email addresses, similar to how WC_Cart handles this seperately, included unit tests.

* Only do the coupon by email usage check if order is from a guest. Fix issue with unit test.
2019-05-27 11:45:29 -03:00
Gerhard f5c5ced6b8 Update Emogirifier library 2019-05-27 11:39:33 +02:00
Peter Westwood 4448235a16
Coding Standards: Add missing space. 2019-05-24 18:15:24 -06:00
Peter Westwood f70dcc6a01 Add filters to file paths passed to the different xsendfile like backends.
Different server configurations can require different paths to be sent and it isn't always possible for a plugin to know the correct path for a platform.
These filters will allow a hosting provider to install a platform level configuration via an `mu-plugin` to make sure things work in there configuration.
2019-05-24 17:10:17 -06:00
Claudio Sanches 3a79970289 Fixed a typo in customers endpoint 2019-05-24 15:34:25 -03:00
Claudio Sanches 61346720c7 Allow enforce password strength meter on checkout 2019-05-24 15:27:26 -03:00
Valerie 136613f539 OBW Shipping: Update labels description
- replace "Print shipping labels at home" heading with
"Did you know you can print shipping labels at home?"
- Use new description for WooCommerce Services:
"'Use WooCommerce Shipping (powered by WooCommerce Services & Jetpack)
to save time at the post office by printing your shipping labels
at home."
- do not capitalize post office
2019-05-23 22:17:17 -04:00
Valerie b379739ea6 OBW Shipping: Switch label and zone sections 2019-05-23 22:17:13 -04:00
Valerie 6d77056e77 OBW: Fix stranded ul closing tag 2019-05-23 22:17:03 -04:00
Iulia Cazan f49cec5108 Coding standard updates 2019-05-23 08:58:13 +03:00
Claudio Sanches 17da960abe
Merge pull request #23137 from woocommerce/fix/23051
Change coupon amount field type based on coupon type
2019-05-22 21:19:03 -03:00
Claudio Sanches 15aa298585
Merge pull request #23159 from woocommerce/fix/23157
If orderby is used on static homepage, force query to be a page query
2019-05-22 21:17:01 -03:00
Claudio Sanches dc35b89df7
Merge pull request #23178 from davidofug/master
Uganda Billing/Shipping address
2019-05-22 21:07:09 -03:00
Claudio Sanches 793519137a
Merge pull request #23794 from woocommerce/update/23792
Introduce wc_load_cart to dynamically load the cart
2019-05-22 20:51:09 -03:00
Claudio Sanches 28d49031d3
Merge pull request #23695 from james-allan/calc-base-zip-city
Calculate base store taxes including the store's zip and city
2019-05-22 20:49:57 -03:00
Claudio Sanches 8ea6c7c80e
Merge pull request #23651 from woocommerce/update/register-rest-routes
Set register_rest_route override to TRUE in Blocks REST API
2019-05-22 20:49:15 -03:00
Claudio Sanches 359fd9d7d5
Merge pull request #23791 from woocommerce/fix/23630
Clear notices when calling cart-errors.php template
2019-05-22 20:40:21 -03:00
Claudio Sanches 91a8592ebb Fixed conditional logic 2019-05-22 20:16:10 -03:00
Claudio Sanches 688d35e206
Merge pull request #23562 from benhuson/update/23558-related-product-order
Update/23558 Related product order
2019-05-22 19:59:25 -03:00
Claudio Sanches 3cc3565e61
Merge pull request #23774 from connorhu/patch-1
fixed availability schema protocol
2019-05-22 18:07:05 -03:00
Gerhard f6d9faa062 Introducde wc_load_cart to dynamically load the cart, this allows for functionality outside of frontend to initialise the cart. 2019-05-22 12:24:31 +02:00
sergey.r 98586f10f4 Catch WC_REST_Exception while calling do_action( "woocommerce_rest_insert_{$this->post_type}_object" 2019-05-22 13:00:34 +03:00
Gerhard 3a49e7a53b Clear notices after calling checkout/cart-errors.php to avoid duplicate notices on the cart page. cart-errors.php does not output notices but a general notice message yet error notices are still enqueued before calling the template. 2019-05-22 09:49:53 +02:00
Paul Sealock f7e56be638 Tracks: set cookie on admin_init 2019-05-22 12:14:28 +12:00
Claudio Sanches 196d5e77cb
Merge pull request #23041 from woocommerce/update/21701
Add hooks for helper subscription changes
2019-05-21 18:27:15 -03:00
Paul Sealock c74d5b30ca Tracks: use woocommerce_apply_user_tracking and woocommerce_apply_tracking 2019-05-22 09:18:34 +12:00
Claudio Sanches edd0e7de8c Bump template versions 2019-05-21 17:53:03 -03:00
Claudio Sanches 22f9cdcb0d Allow {woocommerce} placeholder in lowercase 2019-05-21 17:47:54 -03:00
Claudio Sanches 4a99a11009 Merge branch 'master' into update/22895 2019-05-21 17:46:16 -03:00
Rodrigo Primo 870ea9a935
Merge pull request #23704 from woocommerce/fix/23703
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-21 17:24:43 -03:00
Claudio Sanches bd36434174 Use WP 5.0 determine_locale() function 2019-05-21 17:19:50 -03:00
Rodrigo Primo fbdfb7b87f
Merge pull request #23468 from woocommerce/update/23366
Return WP_Error messages from wp_insert_user()
2019-05-21 17:10:32 -03:00
Rodrigo Primo ae50379f7e
Merge pull request #23325 from woocommerce/fix/rest-api-purge-invalid-orders
[REST API] Stop orders being created if invalid data is sent
2019-05-21 16:36:04 -03:00
Rodrigo Primo 5a15713f95
Merge pull request #23207 from woocommerce/update/23205
Introduce `parse_published_field` in CSV importer
2019-05-21 16:24:03 -03:00
Rodrigo Primo c21a69ff6d Complement WC_Product_CSV_Importer::parse_published_field() phpdoc
Add a phrase to WC_Product_CSV_Importer::parse_published_field() phpdoc
to note that 'true' and 'false' are also supported to set product
published status.
2019-05-21 15:55:41 -03:00
Rodrigo Primo 3fed0d7cbc
Merge pull request #23112 from woocommerce/fix/persistent-cart-filter
Persistent cart improvements
2019-05-21 15:07:55 -03:00
Karoly Gossler a135f02f41
fixed availability schema protocol
As you can see in the example, the scheme only can be on http:
https://schema.org/InStock
The Google Search console has also marked it invalid.
2019-05-21 09:10:56 +02:00
Iulia Cazan 051277d26e Rename the hook 2019-05-21 09:20:46 +03:00
Iulia Cazan 1187563c93 Transform the filter into action, rewrite the piece of code to pass the coding standards, remove markup restriction. 2019-05-21 09:18:15 +03:00
Gerhard 70231461b2 Refactor logic for passing no_shipping, it should only be passed when no shipping items are available. 2019-05-21 08:11:36 +02:00
Paul Sealock ca4e79bdd1 Tracks: Add check for OBW is-opting-in 2019-05-21 12:20:25 +12:00
Claudio Sanches a2301dc0cb Removed deprecated PHPCS flags 2019-05-20 17:06:41 -03:00
Claudio Sanches 5eaf71b483 Fixed coding standards 2019-05-20 17:04:24 -03:00
Claudio Sanches cc6d7996fd Restored WC_Shortcode_Products::order_by_rating_post_clauses 2019-05-20 16:57:14 -03:00
Gerhard 8332bed7bc Do not pass no_shipping when not using send shipping address options in paypal, it still needs to use the billing details. 2019-05-20 14:59:48 +02:00
Peter Fabian 91839ce078 Moved the JS enqueue from get_instance_form_fields to admin_footer action hook.
This should prevent multiple enqueues.
2019-05-20 12:56:01 +02:00
Mindaugas Budreika d67381148a Forward query (GET) parameters when executing a batch REST API request. 2019-05-20 14:24:48 +04:00
jorgept e214a85a8c
Update class-wc-countries.php
Add MZ array
postcode => false, 
hidden => true
2019-05-19 22:23:36 +01:00
Ibrahim 0db84aec56
Fixes #23756 2019-05-18 21:04:13 +05:30
Timmy Crawford 01f1749684 Change version compare. 2019-05-17 13:53:38 -07:00
Timmy Crawford 43cd7dc04c Add wc-admin notice. 2019-05-17 13:53:37 -07:00
Rodrigo Primo f8642f2fbb Remove code duplication from OBW payment gateway logic
In #23690 we implemented a few changes to the logic to decide which
payment gateways to display in the onboarding wizard. When working on
this code, we noticed that there was a bit of duplication in it that was
not necessary (see
https://github.com/woocommerce/woocommerce/pull/23690#discussion_r284004924).
We opted to remove this duplication in a different commit, since that PR
was included in a patch release.
2019-05-17 10:32:06 -03:00
Iulia Cazan a1ac64aa30 Implement a new filter that allows for custom info or extra actions to be exposed for each of the attachments selected in the Product gallery 2019-05-17 12:03:40 +03:00
Claudio Sanches d807119121 Introduced woocommerce_admin_order_buyer_name filter 2019-05-16 19:02:57 -03:00
Claudio Sanches 144f011065 Rename "Postcode / ZIP" to "Postal code" when select Canada 2019-05-16 18:27:08 -03:00
Claudio Sanches f5bab51c6a Improve refund reason when changing order status to refunded
Refund reasons are public, can be visualized on emails, and shall not
contain any sensitive data or administration information.
2019-05-16 17:57:28 -03:00
Gerhard Potgieter afd7e72c03
Merge pull request #23690 from woocommerce/update/obw-stripe
Update OWB Payment Gateway structure
2019-05-16 18:26:29 +02:00
Gerhard 0eef8654f6 payapal enabled setting defaults to false 2019-05-16 16:08:46 +02:00
Gerhard 99b183e5bb Refactor paypal and stripe combined logic, add fallback to specified settings when previously saved settings were detected by no option present for the enabled setting. 2019-05-16 15:35:29 +02:00
Gerhard b0a831b64f OWB: Check PayPal by default when Stripe not available. 2019-05-16 15:26:58 +02:00
Gerhard Potgieter 945330c219
Merge pull request #23634 from woocommerce/fix/23626
Update PayPal capture_payment method triggers
2019-05-16 15:17:58 +02:00
Gerhard Potgieter 173b706ccb
Merge pull request #23734 from woocommerce/fix/23676-2
Dashboard stock queries should only include published products
2019-05-16 15:16:18 +02:00
Rodrigo Primo a247e08ad0 Fix query used to get the number of low stock products in the dashboard
This commits changes the query used to get the number of low stock
products in the WooCommerce Status widget in the admin dashboard. This
query should only count published products and ignore products with
other statuses to match the behavior used in the low stock report.
2019-05-16 09:45:44 -03:00
Gerhard Potgieter 10abe6d4be
Merge pull request #23731 from djboris88/fix/wc-order-wrong-param-type-phpdocs
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 14:43:30 +02:00
Rodrigo Primo 6e976c7f0c Remove unnecessary conditions from out of stock query
In the query to get the number of out of stock products for the admin
dashboard widget, it is not necessary to use `1=1` and also not
necessary to use `posts.post_type IN ( 'product', 'product_variation' )`
as only products are added to wp_wc_product_meta_lookup.
2019-05-16 09:41:52 -03:00
Gerhard Potgieter 58a04d42e5
Merge pull request #23697 from sokolby/patch-1
Add Filter for wc_prices_include_tax() function return
2019-05-16 14:37:50 +02:00
Gerhard Potgieter 9f0e1a6e64
Merge pull request #23534 from woocommerce/fix/233880-alt
Revise update stock logic
2019-05-16 14:15:13 +02:00
Gerhard Potgieter d8f145c2ca
Merge pull request #23714 from woocommerce/fix/23692
Add back backward compatibility for coupon expiry_date meta field
2019-05-16 14:10:03 +02:00
Gerhard Potgieter 2cfc7b64c1
Merge pull request #23713 from woocommerce/fix/webhooks-object-caching
Use WC_Cache_Helper::get_cache_prefix for webhook count cache
2019-05-16 14:07:27 +02:00
Gerhard Potgieter f76cf57ce8
Merge pull request #23546 from woocommerce/fix/23533
Version template caching
2019-05-16 14:01:25 +02:00
Boris Djemrovski c45e06a130 get_formatted_line_subtotal takes Item object instead of an array 2019-05-16 12:04:34 +02:00
Peter Fabian 207042f7df Put back the manage stock check for lookup table. 2019-05-16 10:57:42 +02:00
parmarhardip 470b0a5424 I have updated the code with suggestion and tested it. Please review from your side. 2019-05-16 10:24:00 +05:30
Rodrigo Primo 33ee11dd62
Merge pull request #23638 from woocommerce/update/23632
woocommerce_product_post_type_link_parent_category_only filter
2019-05-15 15:59:12 -03:00
Peter Fabian 9f0fb0b404 Foxed the use to correct stock quantity parameter. 2019-05-15 16:18:24 +02:00
Peter Fabian 1d29b36c4c Removed comments that are no longer relevant. 2019-05-15 15:46:53 +02:00
Gerhard Potgieter 30ce9ff6a3
Merge pull request #23689 from woocommerce/add/get_used_coupon_codes
Deprecate get_used_coupons in favor of get_coupon_codes
2019-05-15 15:34:40 +02:00
Peter Fabian af7950910c Removed the transaction and locking code.
NOWAIT is not supported on MySQL server 5.5,

SELECT ... FOR UPDATE can leave lingering locks on InnoDB ("When InnoDB performs a complete rollback of a transaction, all locks set by the transaction are released. However, if just a single SQL statement is rolled back as a result of an error, some of the locks set by the statement may be preserved. This happens because InnoDB stores row locks in a format such that it cannot know afterward which lock was set by which statement.", via https://dev.mysql.com/doc/refman/5.5/en/innodb-deadlock-detection.html)
2019-05-15 15:09:16 +02:00
Peter Fabian 68a325249f Removed the extra parameter that didn't make sense.
Also get_data_for_lookup_table should not be checking db value of  _manage_stock as that can be in the process of being changed.
2019-05-15 14:20:27 +02:00
parmarhardip d5337fac70 fix- 23589 I have fixed pricing issue. 2019-05-15 17:49:46 +05:30
Gerhard aadc7a1069 Add todo 2019-05-15 11:23:41 +02:00
Gerhard 8ed1a647bc Restore backward compatibility meta_key for coupon date_expires. @todo: migrate expiry_date in next release to date_expires 2019-05-15 11:21:52 +02:00
Gerhard 3d57a4b474 Use WC_Cache_Helper::get_cache_prefix for prefixing webhook count cache, fixes issue with cache not clearing when incrementing the prefix. 2019-05-15 10:47:50 +02:00
sokolby cb9f765eb2 Fix prefix filter name 2019-05-15 11:44:54 +03:00
James Allan 6069854d9f Replace wc_get_base_location() with individual getters 2019-05-15 15:43:15 +10:00
Claudio Sanches b68b35336f Prevent negative prices for products 2019-05-14 13:22:06 -03:00
Claudio Sanches 9fd6e6d974 Added new $abs arg to wc_format_decimal() function 2019-05-14 13:15:42 -03:00
Claudio Sanches 836083c064 Fixed number of args for woocommerce_valid_order_statuses_for_cancel 2019-05-14 12:52:54 -03:00
Andrey Barashkov 58132056bd
Add Filter for wc_prices_include_tax() function return
It's great to have a filter, because there are some scenarios when it is necessary to create custom logic for displaying prices.
2019-05-14 13:14:50 +03:00
Tatu 968a0561bb
Add additional check for cart persistence 2019-05-14 12:47:06 +03:00
Gerhard Potgieter b7facc0674
Merge pull request #23663 from danielbitzer/add_get_coupons_method
Add WC_Abstract_Order::get_coupons()
2019-05-14 11:35:21 +02:00
Gerhard 486321161c Update usage of get_used_coupon_codes to get_coupon_codes 2019-05-14 11:21:27 +02:00
Gerhard efe3e4c5d6 Move get_used_coupons to WC_Abstract_Legacy_Order and renamed get_used_coupon_codes to get_coupon_codes. 2019-05-14 11:19:48 +02:00
Tatu 44c6d0b36c
Compatibility for persistent cart disabled case
If woocommerce_persistent_cart_enabled filter was set to false the cart would be emptied while logged in. This fixes also that case. Now the guest session is removed from the woocommerce_sessions table after successful login whether the persistent cart is set enabled or disabled and the guest session cart is carried over to logged in user session.
2019-05-14 11:24:21 +03:00
Daniel Bitzer 0705730121 Add WC_Abstract_Order::get_coupons() 2019-05-14 15:46:48 +09:30
Gerhard b694efcb63 Klarna should not be featured. 2019-05-14 07:36:15 +02:00
James Allan 45b461639e Calculate base store taxes including the store's zip and city 2019-05-14 13:43:57 +10:00
Gerhard e131b01133 Modify payment gateway placement, defaults and new logos. 2019-05-13 15:54:44 +02:00
Gerhard 31acfbcb4a Deprecate WC_Abstract_Order::get_used_coupons in favor of WC_Abstract_Order::get_used_coupon_codes, this reflects the actual data being returned better. 2019-05-13 14:40:54 +02:00
Tatu 71e94e9c08
Add mention of $old_session_key parameter 2019-05-13 15:20:39 +03:00
Tatu bfad881f32
Removes the $old_session_key default value
Fix for the issue #23686
2019-05-13 14:27:28 +03:00
Tatu 4266cc9eaa
Update class-wc-session-handler.php 2019-05-13 12:27:01 +03:00
Gerhard 36cab83d76 Update out of stock dashboard widget to use same query as in reporting, this only counts published products. 2019-05-13 11:02:50 +02:00
Tatu 4a725f3f3e
Delete guest session after user logs in
Logging in to the user account makes a copy of the guest session and possible cart content. This causes conflicts in situations where there are only single quantities of products left and real time product availability checks are in place. While this kind of single quantity items are at time in two carts for the same visitor the checking of product availability fails. Deleting the same visitors guest cart solves this issue.
2019-05-13 02:14:52 +03:00
Hassan Yousefi a50464d781 WC_Structured_Data::generate_product_data() no more hooked in to woocommerce_shop_loop ,which has been removed in #22912 2019-05-11 20:45:54 +04:30
Mike Jolley f5768bfd25 Naming improvements 2019-05-10 23:33:12 +01:00
Mike Jolley 6077ef0fd8 Tweak paths 2019-05-10 17:59:17 +01:00
Mike Jolley 9d2440e961 Test version - api copied from core with loader 2019-05-10 17:56:07 +01:00
Claudio Sanches c96ed877af
Merge pull request #23660 from gocodebox/master
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Gerhard Potgieter 249ee5ecda
Merge pull request #23478 from woocommerce/fix/23476
Force delete rather than trash variations on product type change
2019-05-10 11:41:14 +02:00
Gerhard Potgieter a228975801
Merge pull request #23671 from woocommerce/fix/wc-tracker-order-totals
Corrects WC Tracker's order total calculation.
2019-05-10 11:23:55 +02:00
Gerhard Potgieter 64a76ea0fa
Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version
WC Update CLI DB Version
2019-05-10 11:21:58 +02:00
Gerhard Potgieter b9a75c474a
Merge pull request #23579 from n-dawson/fix-23578
Fixes #23578 - Check taxes enabled before adding totals row to order
2019-05-10 11:21:19 +02:00
Gerhard Potgieter 32769d0d76
Merge pull request #23625 from woocommerce/fix/23549
Use attribute's orderby option to sort terms in product's edit screen
2019-05-10 11:19:08 +02:00
Gerhard Potgieter 18e2332cfc
Merge pull request #23590 from woocommerce/fix/23587
Stock sorting issue when Yoast installed
2019-05-10 11:17:26 +02:00
Gerhard Potgieter 8c665d6572
Merge pull request #23615 from parmarhardip/23596
#23596 - I have solve this issue.
2019-05-10 11:16:06 +02:00
Gerhard Potgieter 902cc1f0b0
Merge branch 'master' into fix/23606 2019-05-10 11:12:54 +02:00
Gerhard Potgieter 46bcf42559
Merge pull request #23611 from woocommerce/fix/23583
Prevents undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-10 11:02:13 +02:00
Gerhard Potgieter 364093056d
Merge pull request #23580 from woocommerce/report-bug-link
Change the link of the "Report a bug" button
2019-05-10 10:59:24 +02:00
Gerhard Potgieter 0e80030f0b
Merge pull request #23601 from woocommerce/fix/23547
Fix to show WC plugin updates in System status report
2019-05-10 10:57:47 +02:00
Gerhard Potgieter 984357fb41
Merge pull request #23597 from woocommerce/fix/23509
Added confirmation before saving empty list of countries to sell to.
2019-05-10 10:56:13 +02:00
Gerhard Potgieter 6fc498e0d9
Merge pull request #23528 from parmarhardip/23521
Fixes #23521 - Billing Email and Country now autofill for newly regis…
2019-05-10 10:48:13 +02:00
Gerhard Potgieter d2c7d8c86e
Merge pull request #23535 from woocommerce/fix/23518
Fix: parameter values should be converted back as well when building form fields
2019-05-10 10:43:28 +02:00
Gerhard Potgieter ab90cefad4
Merge pull request #23519 from woocommerce/fix/OBW-tracks-scripts
Tracks: Fix OBW scripts
2019-05-10 10:41:37 +02:00
Gerhard Potgieter 81bfb9cacb
Merge pull request #23529 from woocommerce/update/23512
Define $wpdb tables as early as possible, before init
2019-05-10 10:38:15 +02:00
Gerhard Potgieter 07ea25377a
Merge pull request #23517 from woocommerce/fix/23506
Fix dismiss button in two WC admin notices
2019-05-10 10:37:01 +02:00
Gerhard Potgieter 250d891c48
Merge pull request #23515 from woocommerce/fix/default-api-version-webhooks
Bump default WC API version used when creating webhook
2019-05-10 10:34:43 +02:00
Gerhard Potgieter 002b5ebade
Merge pull request #23499 from woocommerce/fix/23497
[3.6.x] Stop removing backslash from passwords
2019-05-10 10:30:13 +02:00
Gerhard Potgieter af574f6484
Merge pull request #23456 from woocommerce/fix/23447
Disable export of scheduled action posts
2019-05-10 10:27:34 +02:00
Gerhard Potgieter df7d82f744
Merge pull request #23429 from dimadin/rs/address-format
Add address format for Serbia
2019-05-10 10:23:06 +02:00
Gerhard Potgieter 5c630271c8
Merge pull request #23430 from dimadin/rs/no-states
Do not use state for Serbia
2019-05-10 10:18:11 +02:00
Thomas Patrick Levy 4e58b098e5 update filter 2019-05-09 15:49:03 -07:00
Claudio Sanches 04c598be09 Revert sanitization 2019-05-09 17:28:19 -03:00
Claudio Sanches caf68b1405 Sets $new_user_args as array by default 2019-05-09 17:08:15 -03:00
Claudio Sanches 96c65d1a4d Uses "." instead of empty spaces to join words and avoid illegal username 2019-05-09 17:04:48 -03:00
Claudio Sanches fb8af18eb4 Sanitize only one time 2019-05-09 17:04:27 -03:00
Claudio Sanches b8d86ccce3 Introduced new woocommerce_new_customer_username filter 2019-05-09 17:02:47 -03:00
Claudio Sanches 20cd0152e8 Improve woocommerce_generated_customer_username filter 2019-05-09 17:01:30 -03:00
Claudio Sanches c2836c5e75 Try prevent errors caused by illegal logins 2019-05-09 16:56:47 -03:00
Dan Wyman 6123c6066d Corrects WC Tracker's order total calculation.
Fixes #23669
2019-05-09 12:03:33 -07:00
Rodrigo Primo 84f0f4ebea Bump WC version since 3.7.0 development has begun 2019-05-09 15:14:34 -03:00
Gerhard 84b75c31ad Three equals 2019-05-09 12:57:25 +02:00
Gerhard c633c46045 When no update is found then just call WC_Install::update_db_version(); to ensure db version is set to current WC version, same as per WC_Admin_Notices::update_notice 2019-05-09 11:24:49 +02:00
Thomas Patrick Levy 57bbcf94b7 add filter to allow disabling endpoint 404 behavior, per #23622 2019-05-08 17:35:28 -07:00
Mike Jolley 6c3e1bbd01 Set register_rest_route override to TRUE 2019-05-08 11:27:26 +01:00
Gerhard 48e0a25f2f Add woocommerce_product_post_type_link_parent_category_only to only include the parent category in the slug instead of parent/child 2019-05-07 15:51:49 +02:00
Gerhard af678dfc84 Switch paypal capture_payment method to use woocommerce_order_status_processing and woocommerce_order_status_completed instead to avoid issues with custom from status transitions.
Update get_post_meta usage with $order->get_meta instead.
2019-05-07 12:57:59 +02:00
Gerhard 6eb51a9047 WC_VERSION instead of WC()->version 2019-05-07 08:47:42 +02:00
Claudio Sanches 490219de7c Use attributes orderby options to sort terms in product's edit screen 2019-05-06 20:39:36 -03:00
Claudio Sanches 27c3f5c7e5 Always return string 2019-05-06 19:49:02 -03:00
Claudio Sanches 77b96b5972 Get only the first item 2019-05-06 19:46:37 -03:00
Gerhard 4c80c6fd3b Include version in the implode call. 2019-05-06 14:53:03 +02:00
Gerhard 48e6083adc Restore param and return for backward compatibility. 2019-05-06 14:47:27 +02:00
Gerhard b1e2a0119a Fix system status connected to woocommerce.com status 2019-05-06 10:11:59 +02:00
parmarhardip 12985e107a #23596 - I have solve this issue. 2019-05-06 11:43:56 +05:30
Claudio Sanches 36a99e2935 Prevent undefined offset for empty arrays in wc_change_get_terms_defaults 2019-05-03 22:21:10 -03:00
Peter Fabian a601151ed0 Fixed use of available_updates variable. 2019-05-03 10:34:59 +02:00
Peter Fabian 98edbd2f78 Added confirmation before saving an empty list of countries to sell to in general WC settings. 2019-05-02 21:26:29 +02:00
Peter Fabian 3caee4451d Fixed PHPCS. 2019-05-02 21:20:08 +02:00
Peter Fabian 35c63ee475 Added some comments to hopefully make the function a bit clearer. 2019-05-02 20:19:28 +02:00
Peter Fabian 375880e06b Made the increase and decrease operations atomic, set is atomic as it's not fetch-and-update, just update. 2019-05-02 19:41:15 +02:00
Peter Fabian 44f1803c53 Tweaked update lookup table to add the possibility to ignore manage_stock value from the database.
E.g. if manage_stock property has been changed in the object/local copy of the product while updating it, but the product has not been saved to the db yet, the lookup table update would ignore stock quantity update.
2019-05-02 19:29:28 +02:00
Peter Fabian b891bfe238 Removed unused variables. 2019-05-02 17:53:50 +02:00
Gerhard 48000e63a1 Move remove_ordering_args calls from the_posts filter to query_filters method, this avoids conflicts with other plugins also hooking in and modify the args. 2019-05-02 14:31:30 +02:00
Gerhard 6a6b58daf6 Wrap version appending inside sanitize_key 2019-05-02 14:13:16 +02:00
Gerhard da00f93869 Make the version part of the cache key and not a value in the cache 2019-05-02 14:10:31 +02:00
Rodrigo Primo 5ed76fd067 Change the link of the "Report a bug" button
Changes the link of the "Report a bug" button from https://github.com/woocommerce/woocommerce/issues?state=open to https://github.com/woocommerce/woocommerce/issues/new?template=Bug_report.md. When users click on this button, they should go directly to the new issue page, instead of the page that list issues.
2019-05-01 22:58:55 -03:00
Nathan Dawson 6088f7c353 Fixes #23578 - Check taxes are enabled before adding totals row to orders 2019-05-01 22:05:46 +01:00
Ben Huson d81fc1d26d Allow ordering by ‘none’ when ordering a products array (avoids random ordering). #23558
This provides the same functionality as WP_Query. Shuffle/rand remains the default order for backward compatiblity.
2019-04-30 18:46:45 +01:00
Ben Huson 70064b5eb1 Allow disabling of shuffling related posts via `woocommerce_product_related_posts_shuffle` filter. #23558
This filter ensures backwards compatibility is maintained.
2019-04-30 18:36:02 +01:00
Beka Rice 0e1a926721 Fire wc_paying_customer for completed orders, too 2019-04-29 13:06:32 -04:00
Gerhard cbfea2ec24 Also apply version caching to wc_get_template 2019-04-29 15:37:50 +02:00
Gerhard 8a0cf500d6 Version template caching to avoid issues with symlinked plugins in versioned folders. 2019-04-29 15:04:08 +02:00
Rodrigo Primo 45c2c78ea2 Fix: parameter values should be converted back as well when building form fields
PR #23196 added a workaround to `parse_str()` limitation when dealing with full-stops, pluses, and spaces in the parameter key. This workaround involved temporarily replacing those three characters with placeholders before calling `parse_str()` and then replacing back to the original form. This commit fixes a bug in this logic that was replacing back only parameters keys and not parameters values.

For example, if the query string is `?query.parameter=foo.bar`, the resulting <input> field contained `foo{dot}bar`, instead of the expected `foo.bar`.
2019-04-26 13:58:27 -03:00
Mike Jolley 0cd5c1da66 Allow stock to be force read without a change 2019-04-26 17:24:11 +01:00
Mike Jolley ae7436d37c Select for update, returning the new stock value 2019-04-26 17:23:45 +01:00
Mike Jolley 1a1b3e7654 Improved wc_update_product_stock
Allow product object to be passed through, remove cache clearing which is done during save(), and allow the caller to define whether or not an update routine is already in progress.
2019-04-26 17:20:50 +01:00
Mike Jolley a7279bd261 Revert double saving change 2019-04-26 17:19:41 +01:00
Mike Jolley afdd2fe7b1 define wpdb tables as early as possible, before init 2019-04-26 14:03:23 +01:00
parmarhardip 6b92769626 Fixes #23521 - Billing Email and Country now autofill for newly registered customers 2019-04-26 17:21:40 +05:30
Paul Sealock ef12058326 Tracks: Fix OBW scripts 2019-04-26 09:54:13 +12:00
Rodrigo Primo 00128fec58 Fix dismiss button in two WC admin notices
The dismiss button in the WC admin notices `legacy_shipping` and `no_shipping_methods` was not fully clickable due to a custom CSS applied to them. This custom CSS was used to add a background image to those notices. More specifically, the problem was caused by the use of `position: relative` applied to `<p>` elements. I couldn't find an easy way to fix this problem keeping the custom background image, so I opted to remove it to make the design of all notices identical (besides the background image, the custom CSS also added a few other differences to those to notices like the font size of the notice title).
2019-04-25 14:19:35 -03:00
Rodrigo Primo 5c1936bfdd PHPCS fixes 2019-04-25 14:12:45 -03:00
Rodrigo Primo 0785f2b72a Bump default WC API version used when creating webhook
This commit bumps the default WC API version used when users are creating a new webhook. Before this change the default version would be v2, and after this change it is v3 which is the latest API version.

In the future we might want to create a method in WC_API class or somewhere else that returns the latest WC API version and use it in `includes/class-wc-webhook.php` instead of hard-coding the version number.
2019-04-25 11:41:31 -03:00
Peter Fabian abf1b7450d Save the product before calling wc_update_product_stock to ensure data consistency and set quantity in local copy after saving it to db in wc_update_product_stock.
wc_update_product_stock reads product from the db twice, so if it's out of sync, strange things are happening.
Also, changes dependant on stock status might get reverted if local copy of $product is not updated after wc_update_product_stock.
2019-04-25 14:57:08 +02:00
parmarhardip 8ffd78372f - coding standard improve 2019-04-25 10:25:17 +05:30
Claudio Sanches 79ff1b10e7 Stop removing backslash from passwords 2019-04-24 19:37:07 -03:00
Mike Jolley 036a91d20c
Merge pull request #23484 from woocommerce/update/marketplace-queue-handling
Marketplace queue handling - avoid recurring event
2019-04-24 17:00:40 +01:00
Mike Jolley 7795ac53ff
Merge pull request #23486 from woocommerce/fix/23475
Improved batching for _wc_rating_count lookup table
2019-04-24 16:37:00 +01:00
Mike Jolley 9776e346b3 cancel_all 2019-04-24 16:28:28 +01:00
Mike Jolley 1efcecddc5
Merge pull request #23469 from dfeuster/master
corrected anchor href from old codex to new location
2019-04-24 16:11:32 +01:00
Mike Jolley ac0229c68a
Merge pull request #23397 from oskosk/update/jetpack-tracks-client-library-filepath
Update Jetpack Tracks Client library reference to not have a hardcoded directory path.
2019-04-24 16:08:54 +01:00
Mike Jolley 9bf2081869
Merge pull request #23477 from woocommerce/fix/23466
Default category sorting order should be overwritten if defined by get_terms
2019-04-24 16:00:33 +01:00
Mike Jolley 37e362047c
Merge pull request #23483 from woocommerce/fix/23481
Correct postcode validation on account page
2019-04-24 15:57:05 +01:00
Mike Jolley 087f490b10
Merge pull request #23489 from woocommerce/fix/23414
update action scheduler to version 2.2.5
2019-04-24 15:48:58 +01:00
Mike Jolley e7ea67da03
Merge pull request #23399 from woocommerce/renovate/woocommerce-block-library-2.x
Update dependency @woocommerce/block-library to v2.0.1
2019-04-24 15:42:16 +01:00
Mike Jolley 0962b447f6
Merge pull request #23482 from woocommerce/fix/23473
Fix attribute matching in `get_attribute_taxonomy_name`
2019-04-24 15:40:13 +01:00
Mike Jolley 4518bff6b1
Merge pull request #23444 from woocommerce/fix/23443
Order webhook check order type args if we should skip
2019-04-24 14:57:07 +01:00
Mike Jolley 98dfb8e8c2
Merge pull request #23446 from woocommerce/fix/23439
Product list table shipping class tax_query
2019-04-24 14:56:00 +01:00
Mike Jolley c42750504d
Merge pull request #23377 from woocommerce/fix/23374
[3.6] Fix product class name theme conflict due to missing global
2019-04-24 14:54:34 +01:00
Mike Jolley 2810e6cdf3
Merge pull request #23451 from woocommerce/fix/23387
Array handling in `get_catalog_ordering_args` to prevent notices
2019-04-24 14:52:47 +01:00
Mike Jolley b2e428d4cc
Merge pull request #23455 from woocommerce/update/23388
During initial product lookup table generation, set an option
2019-04-24 14:51:47 +01:00
Mike Jolley fbdc06188a
Merge pull request #23449 from woocommerce/fix/23436
Wrap wc_terms_clauses query in brackets to group meta_key where clause
2019-04-24 14:50:41 +01:00
Mike Jolley 9d9f7bec59
Merge pull request #23383 from woocommerce/update/update-notices
[3.6] More useful update notices if cron is disabled
2019-04-24 14:49:44 +01:00
Mike Jolley 3d2be7a63f
Merge pull request #23465 from woocommerce/fix/23403
Updated the meta_key for average rating when generating lookup tables.
2019-04-24 14:47:47 +01:00
Mike Jolley 7e091b2a0d
Merge pull request #23457 from woocommerce/fix/23407-2
Fixed use of get_term_meta in REST API endpoints
2019-04-24 14:34:28 +01:00
parmarhardip 7b8d7d7390 - autoload false and check Travis CI build 2019-04-24 19:03:19 +05:30
Mike Jolley ab5ff7576d
Merge pull request #23380 from woocommerce/fix/23378
Added missing wp_unslash to order data meta box save
2019-04-24 14:31:14 +01:00
Ron Rennick fc86e574cd update action scheduler to version 2.2.5 2019-04-24 10:08:06 -03:00
Mike Jolley 192fecc0d8 Remove filter only needs priority
Co-Authored-By: Dragoș Mocrii <dragosmocrii@users.noreply.github.com>
2019-04-24 13:54:12 +01:00
Mike Jolley 6176f565d7 Improved batching for _wc_rating_count lookup table 2019-04-24 13:37:15 +01:00
parmarhardip 4c90f566bb - Prevent the Cart, checkout and my account page from being set to the same page. 2019-04-24 17:31:20 +05:30
Mike Jolley 618e98f4e0 Avoid queue on init 2019-04-24 13:00:23 +01:00
Mike Jolley db67172b75 Queue single event only as needed 2019-04-24 13:00:16 +01:00
Mike Jolley c523c379b4 Correct postcode validation on account page 2019-04-24 12:23:48 +01:00
Mike Jolley 76f0c015dd Fix attribute matching in get_attribute_taxonomy_name 2019-04-24 12:05:44 +01:00
parmarhardip 2122a84d8b - coding standard check 2019-04-24 16:34:28 +05:30
parmarhardip f643c516d1 enhance #23381 Prevent the Cart, checkout and my account page from being set to the same page. 2019-04-24 15:59:14 +05:30
Mike Jolley f24a607842 Force delete rather than trash variations on product type change 2019-04-24 11:16:41 +01:00
Mike Jolley 121f06b030 Added way of telling if default is in use or not 2019-04-24 10:39:00 +01:00
oskosk 120fdb2028 Use jetpack_require_lib_dir() instead of JETPACK__PLUGIN_DIR 2019-04-23 20:40:25 -03:00
Daniel Feuster dfe8ac43bf corrected anchor href from old codex to new location 2019-04-23 16:54:44 -05:00
Claudio Sanches 59f63f1b22 Return WP_Error messages from wp_insert_user() 2019-04-23 18:52:22 -03:00