Commit Graph

20978 Commits

Author SHA1 Message Date
Ron Rennick 7fbe912e19 use wp_timezone_string when available 2020-05-29 07:54:43 -03:00
Remi Corson c996434bc1 Fix #26633
Adds custom message upon taxonomies update
2020-05-29 10:58:36 +02:00
Nestor Soriano b43679c181 Schedule a deferred product sync for products with parent on delete.
Right now, when a product having a parent (e.g. a variation having a
parent variable product) is saved, wc_deferred_product_sync is
executed so that product sync is performed at the end of the request.
This commit implements the same when the product is deleted.
2020-05-28 14:07:51 +02:00
Peter Fabian 2394da73b4 Merge branch 'master' into refactor/23783 2020-05-28 11:19:03 +02:00
vedanshujain 3dc7df7af9 Use common code and round in subtotal.
We round in `get_subtotal` because its a front-end method. If more precision is required then `get_cart_subtotal_for_order` needs to be called. Also use same `get_cart_subtotal_for_order` method here as well for consistency.
2020-05-27 23:48:47 +05:30
Claudio Sanches 2acc24f489 Added missing trailing slash 2020-05-26 17:23:37 -03:00
vedanshujain 440f40a976 Changed back method to private because we figured a workaround in earlier test 2020-05-26 23:59:28 +05:30
vedanshujain e89ee25f36 Better option names to properly describe their intention.
Additionally, allow an option in `verify_base_tables` to call `create_table` method. This will be useful if someone wants to fix the their database.
2020-05-26 23:26:45 +05:30
Claudio Sanches a240798362 Don't allow redirection while checking for uploads directory 2020-05-25 10:31:58 -03:00
Mário Valney 04ceaa52f9
Fix: remove HTML from error message. 2020-05-22 21:14:43 -03:00
vedanshujain 57d336433a Fix regression caused by merging #25092 conflicting with #24828 2020-05-22 22:08:42 +05:30
vedanshujain 418741a0b2 Add unit test for verify_base_tables function 2020-05-22 18:32:04 +05:30
vedanshujain fafa44bde0 Modified notice to also handle when REST API does not have verify tool. 2020-05-22 18:32:03 +05:30
vedanshujain f5afddd4c9 Add support for notices 2020-05-22 18:32:03 +05:30
vedanshujain 3acc03c804 Add `verify_base_db` method to check if all base tables are present.
Optionally, also adds a notice in case all db tables are not present. Returns list of tables.

Note that we only check missing tables and don't care about exact table structure because many time tables are modified by merchants to better suit their needs (indexes, collations etc).
2020-05-22 18:30:11 +05:30
Christopher Allford 93811e0a56
Merge pull request #25753 from woocommerce/fix/25752-wc_get_shipping_method_count-check-enabled
Add is_enabled=1 check in wc_get_shipping_method_count()
2020-05-21 11:44:36 -07:00
Claudio Sanches 7534e2eba0 Allow set "date_created" while creating orders via CRUD 2020-05-20 18:04:49 -03:00
Claudio Sanches 5d034b83a9 Allow custom values in wc_generate_order_key() 2020-05-20 17:41:22 -03:00
Claudio Sanches ea19190d3b Allows to set custom order_key while creating an order 2020-05-20 17:14:17 -03:00
Jeffrey Scott French 9faee1d909 Sets Select a country option element value attribute to default. 2020-05-19 15:07:27 -04:00
Viktor Szépe 90c34a26a0
Fix PHPDoc in WC_Notes_Run_Db_Update
and correct a newbie mistake
2020-05-19 19:21:57 +02:00
Joshua Flowers b7bca44beb Call callback on tracking script load error 2020-05-19 18:19:19 +03:00
Vedanshu Jain 5adaa5667e
Merge pull request #26493 from woocommerce/fix/26466
Add function to allow client-side enabling of tracks
2020-05-19 16:30:45 +05:30
Vedanshu Jain 7fb1079137
Merge pull request #26399 from woocommerce/fix/uploads_htaccess
Disable directory listing for redirect download method
2020-05-19 15:56:37 +05:30
Boro Sitnikovski d1ac3731a5 Add actions before/after shipping calculation 2020-05-18 21:04:13 +02:00
Joshua Flowers 07b1887c2b Use var instead of const 2020-05-18 19:11:29 +03:00
Claudio Sanches eea062f9fa
Merge pull request #26519 from woocommerce/fix/csv-import-special-columns
Fixed the case conversion for meta key column mapping in product CSV imports
2020-05-18 11:33:50 -03:00
Peter Fabian e3e72e0423
Merge pull request #26500 from woocommerce/fix/26443
Refresh db update nonce on the Thank you notice
2020-05-18 14:36:13 +02:00
Albert Juhé Lluveras 9a34c4fe75 Update WC shipping settings so no shipping zones banner appears when all are deactivated 2020-05-15 16:32:12 +02:00
Néstor Soriano 8b0d4ef050
Merge pull request #26386 from woocommerce/fix/26355
Set an error ID for each WP_Error entry
2020-05-15 12:09:14 +02:00
Albert Juhé Lluveras 973e50ab64 Add param to wc_get_shipping_method_count() 2020-05-15 11:22:28 +02:00
Albert Juhé Lluveras de7ca06b41 Set is_enabled=1 instead of is_enabled=true 2020-05-15 11:02:12 +02:00
Albert Juhé Lluveras 33b0bef8c5 Add is_enabled=true check in wc_get_shipping_method_count() 2020-05-15 11:02:12 +02:00
Peter Fabian 0934f4a147 Merged should_show_notice and show_reminder and simplified logic.
Removed redundant calls to the same functions as this code runs on each admin pageload.
2020-05-15 10:24:30 +02:00
Néstor Soriano b9875a4fc1
Merge pull request #26445 from tsteur/issue_26414
Add hooks to "Add payment method form" to show additional fields and validate input
2020-05-15 10:16:53 +02:00
Peter Fabian 2f141eca77 PHPCS 2020-05-15 09:40:23 +02:00
Peter Fabian 50e386cbe8 Corrected the comment. 2020-05-15 09:26:17 +02:00
Christopher Allford 7bf9c31f64 Adjusted the column name normalization to avoid squashing meta key case sensitivity
Since we were converting the field to lowercase we ended up inserting meta in all lowercase, regardless of what it was in the CSV file. We should only be using the normalized field name when looking at the default columns, and should instead rely on a case-insensitive regex for the special columns.

One thing to note is that we're still defaulting the $headers array to the normalized field, as we don't want to change what is being passed to the filter for unmapped columns.
2020-05-14 21:20:55 -07:00
Thomas Steur 630b7f436d apply review feedback: better naming and coding style fix 2020-05-15 09:08:35 +12:00
Mat Lipe bf42110179
Fix set cache loop when no attributes exist
Test strictly for false to prevent an endless set cache loop when
you are not using attribute taxonomies or don't have any set.
Prevents `wc_get_attribute_taxonomies` function from calling `wp_cache_set` 
on every page load.
2020-05-14 12:37:29 -05:00
Claudio Sanches c09a269589
Revert "Fix duplicated custom fields after import products from .csv file" 2020-05-14 14:06:01 -03:00
koko 54db5f07c4
Fix error message in wc_get_template
If the filtered template does not exist the error should report the filtered template, not the original
2020-05-14 17:10:06 +02:00
Knyazevich 9458730a1c Fix parameter type and add an empty line in wc_update_product_stock_status 2020-05-14 03:36:13 +03:00
Joshua Flowers ef131029a5 Add function to enable tracking client-side 2020-05-13 17:44:26 +03:00
Peter Fabian 6b11451b88 Replaced repeated code from get_current_notice with the function call. 2020-05-13 16:36:09 +02:00
Peter Fabian a2f985414e Added freshness check also for 'done' notice. 2020-05-13 16:34:23 +02:00
Peter Fabian ed64c0c731 Y U no nonce here? 2020-05-13 16:33:27 +02:00
Peter Fabian eb0879cd1a Extracted actions to the beginning of the function to allow usage in note_up_to_date check. 2020-05-13 16:32:42 +02:00
Joshua Flowers 3f9db6a558 Add property to check if wcTracks is enabled 2020-05-13 16:53:57 +03:00
Joshua Flowers 07087c79a7 Always show tracks function in footer 2020-05-13 16:49:54 +03:00
Peter Fabian a7203ec4d0 Added clean up of duplicate notes, if there are any.
There has been some reports about duplicate notes in the db, so this should remove the duplicates and keep the first one.
2020-05-13 15:00:04 +02:00
Sergey Ratushnuy 9d711a6afa Add filters for status_widget_stock_rows queries 2020-05-13 11:02:44 +03:00
Claudio Sanches f01c5a3b79 Start 4.3.0 development 2020-05-12 17:49:20 -03:00
Christopher Allford a34bb53d9c
Merge pull request #26207 from woocommerce/feature/26186
Added notice to check if uploads directoy is public
2020-05-12 11:22:49 -07:00
Claudio Sanches 281459914b
Fixed space in URL 2020-05-12 15:16:36 -03:00
Claudio Sanches 8d6e13952a
New docs URL 2020-05-12 15:16:11 -03:00
Christopher Allford ef8e7114b7 Merge branch 'privacy-exporter-group-description' of git://github.com/garretthyder/woocommerce into garretthyder-privacy-exporter-group-description 2020-05-12 09:40:17 -07:00
Christopher Allford 7f45c56417
Merge pull request #26072 from garretthyder/privacy-policy-update
Privacy policy update
2020-05-12 09:33:28 -07:00
Christopher Allford f41cb52e0c
Merge pull request #26251 from xristos3490/fix-wp-54-styles
[WC4.1 RC] WP 5.3 select2 css fixes broken in WP 5.4
2020-05-12 07:39:10 -07:00
Christopher Allford ee01d42192
Merge pull request #26411 from barryhughes/patch-1
Pass the result of _n() through sprintf() to ensure placeholders are replaced
2020-05-11 20:06:54 -07:00
Christopher Allford 37f0ed27f9
Merge pull request #26409 from woocommerce/add/26381/order-search-tracks
Add tracking event on order search.
2020-05-11 20:04:55 -07:00
Christopher Allford 278cadea67
Merge pull request #26080 from yoavf/fix/helper-toggle-rtl
Addons/Helper: fix toggles in RTL mode
2020-05-11 19:58:45 -07:00
Christopher Allford 8332410939
Merge pull request #26308 from vandekul/master
Fix matching zones query for working with sqlite
2020-05-11 19:58:17 -07:00
Christopher Allford 71c49e9ef9
Merge pull request #26296 from abhishek-pokhriyal/fix/incorrect-argument-count
Correct argument count for action hooked on `woocommerce_process_shop…
2020-05-11 19:57:53 -07:00
Christopher Allford c52a6ffc2c
Merge pull request #26387 from woocommerce/fix/26329
Allow schedule coupons via CRUD
2020-05-11 19:57:16 -07:00
Christopher Allford 7e2e9b8695
Merge pull request #26167 from woocommerce/fix/25889
Removed  legacy notification to connect with WooCommerce
2020-05-11 19:56:46 -07:00
Christopher Allford 75d23712ff
Merge pull request #26272 from tolu-paystack/hide-ghana-postcode
Hide Postcode/Zip field on billing/shipping form when Ghana is selected
2020-05-11 19:55:48 -07:00
Christopher Allford 888a5c40cd
Merge pull request #26163 from abhishek-pokhriyal/fix/typo-though
Change "though" to "through"
2020-05-11 19:47:36 -07:00
Christopher Allford 452e53d8af
Merge pull request #25630 from woocommerce/fix-25603
Replace {site_address} by {site_url} for consistency
2020-05-11 19:43:08 -07:00
Christopher Allford bf396aec14
Merge pull request #25598 from johncodeos-forks/master
Hide Germany's, Denmark's and Sweden's state field
2020-05-11 19:42:46 -07:00
Christopher Allford f76be96af3
Merge pull request #25517 from grey-rsi/duplicated-custom-fields-after-import
Fix duplicated custom fields after import products from .csv file
2020-05-11 19:41:50 -07:00
Christopher Allford 4639d4a914
Merge pull request #26361 from dominic-p/iss-25787
Pass $customer to woocommerce_match_rates hook.
2020-05-11 19:40:58 -07:00
Christopher Allford cb7f89a5ef
Merge pull request #26022 from grey-rsi/wc_attribute_label_filter
Always pass attribute name to a 'woocommerce_attribute_label' filter
2020-05-11 19:36:44 -07:00
Daniel Stanciu 946c342b1d Fix 24885 currency position RTL
Wrapped price and currency inside a BDI tag, in order to prevent the
bidirectional algorithm to produce confusing results.
2020-05-11 23:57:13 +03:00
Vedanshu Jain 31b648d479
Merge pull request #26358 from woocommerce/fix/26348
Clear only plugin cache if WC header are not present to load with WC headers.
2020-05-11 18:14:39 +05:30
Vedanshu Jain 53a6c0e3ba
Merge pull request #26025 from woocommerce/enhancement/orders
Add method to get base data from order object.
2020-05-11 17:55:32 +05:30
Thomas Steur e10702625c
Add filter to validate add payment method action 2020-05-11 13:08:45 +12:00
Kevin Ruscoe 6fa5977579 Add filters
Adds woocommerce_cart_product_cannot_add_another_message, woocommerce_cart_product_out_of_stock_message, woocommerce_cart_product_not_enough_stock_message
2020-05-09 12:03:43 +01:00
Matt Sherman c6fb4aefbc Add `wcadmin_categories_view`, `wcadmin_categories_seach`, `wcadmin_tags_view`, and `wcadmin_tags_search` Tracks events. 2020-05-08 14:08:33 -04:00
Matt Sherman 540558b9f6
Merge pull request #26417 from woocommerce/add/26381/product-view-and-search-tracks
Add tracking events on products view and search.
2020-05-08 13:49:20 -04:00
Claudio Sanches 8b4e207f59
Merge pull request #26415 from jasonandmonte/patch-1
Fix variable name typo in class-wc-admin-addons.php file
2020-05-08 13:38:43 -03:00
Matt Sherman da1dd76a68 Only log `products_search` event if search query is non-empty 2020-05-08 11:20:28 -04:00
Vedanshu Jain 276ab00d86
Merge pull request #26044 from woocommerce/add/menu-order-count-filter
Added new filter for modification of order processing count in menu
2020-05-08 18:13:55 +05:30
Matt Sherman b1a32f4144 Add `wcadmin_products_search` Tracks event. 2020-05-07 21:24:17 -04:00
Leon Francis Shelhamer 718943c4df Address / Addresses strings in correct order for _n()
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-05-07 20:57:30 -04:00
Jason 8ae5b4d5a6
Update class-wc-admin-addons.php
Fix variable name typo. `$parameters`
2020-05-07 16:19:31 -07:00
Matt Sherman df97b1f74e Add `wcadmin_products_view` Tracks event 2020-05-07 18:39:19 -04:00
Claudio Sanches 224559e73f
Updated since tag and removed global variable 2020-05-07 18:57:53 -03:00
Timmy Crawford 94bf2eb518 Updates per feedback. 2020-05-07 13:32:45 -07:00
Barry Hughes 2fdf4b6a0c
Pass the result of _n() through sprintf() to ensure placeholders are replaced with values 2020-05-07 13:32:05 -07:00
Claudio Sanches 7ee559004b Change notice class to error 2020-05-07 16:05:45 -03:00
Timmy Crawford 2420b8013d Add tracking event on order search. 2020-05-07 12:05:11 -07:00
Claudio Sanches 77c6ddda92 Make display_prices_including_tax() aware of tax display changes 2020-05-07 00:03:48 -03:00
Claudio Sanches 16ec0007cf Set "Options -Indexes" for redirect download method
Stop the .htaccess to get removed and stop directory listing
2020-05-06 23:42:33 -03:00
Claudio Sanches dcabbcb964 Open file in binary mode 2020-05-06 23:25:33 -03:00
Claudio Sanches 39633855f3 Only fetch the uploads info and do not attempt to create the uploads directory 2020-05-06 23:21:31 -03:00
Claudio Sanches 7634f54235 Use "Options -Indexes" for redirect download method 2020-05-06 23:20:56 -03:00
Claudio Sanches 16027eb33e Updated the notice 2020-05-06 21:50:01 -03:00
Claudio Sanches 8fecbcf9bf Make safe 2020-05-06 21:49:20 -03:00
Claudio Sanches 191bc7f134 Check if uploads/woocommerce_uploads is protected 2020-05-06 21:41:04 -03:00
Claudio Sanches 8e21f10b3d
Update since tags 2020-05-06 14:07:46 -03:00
Joshua T Flowers 43ab840e1a
Add a put method to the WC_Helper_API (#26262)
* Merge wc api authorization headers with given headers

* Add put method to WC_Helper_API

* Add unit test coverage around WC_Helper_API request methods

* Add tests for WC_Helper_API url method
2020-05-06 19:25:23 +03:00
Claudio Sanches 85d7cdbbb4 Allow schedule coupons via CRUD 2020-05-05 16:35:10 -03:00
Jonathan Sadowski 2db4da7055 Update variation_attributes to filter out any attributes, as they must be specified 2020-05-05 14:16:37 -05:00
Claudio Sanches f3dc64679d Set an error ID for each WP_Error entry 2020-05-05 15:56:16 -03:00
Jonathan Sadowski f8066a8141 Swap order of array_merge so that posted attributes do not get clobbered 2020-05-05 13:32:14 -05:00
Jonathan Sadowski 0c2b97ead2 Load variation attributes when adding to cart by variation id 2020-05-05 13:32:14 -05:00
Claudio Sanches d6a17aad4e Request is internal 2020-05-05 14:05:53 -03:00
Claudio Sanches 1208f79476 Included view 2020-05-05 14:04:42 -03:00
Claudio Sanches d8b8601601 Updated uploads directory check and saved results on transients 2020-05-05 14:03:12 -03:00
Claudio Sanches 040944fda6 Updated notice 2020-05-04 22:20:03 -03:00
Claudio Sanches fdea6de347 Check for user meta data first 2020-05-04 22:12:24 -03:00
Claudio Sanches 54625f9712 Fixed check 2020-05-04 22:11:56 -03:00
Claudio Sanches 15f71015e6 Improved method naming 2020-05-04 22:11:02 -03:00
Leon Francis Shelhamer 7f5dd5c997 Use function to handle plurals
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-05-02 18:11:35 -04:00
Dominic c38e059ce8 Pass $customer to woocommerce_match_rates hook.
This allows tax related plugins to get more data on the customer and
make better decisions on the correct tax rate to apply.

Fixes #25787
2020-05-01 13:49:55 -07:00
vedanshujain 62ef169940 Simplified logic for better readability. 2020-05-02 00:31:54 +05:30
vedanshujain e97fd683c6 Add extra comments 2020-05-01 21:19:25 +05:30
vedanshujain 57e2e82961 Clear plugin cache if WC header are not present to load with WC headers.
WC headers are added in filter `extra_plugin_headers`, however, in case when WooCommerce is activated/updated, `get_plugins` will be called and cache will be set before this filter can be cached.

Also, `get_plugins` call is expensive even with update cache present, so we should clear it very conservatively.
2020-05-01 21:14:21 +05:30
xristos3490 cb9dc9ed44 Add param doc comment 2020-04-30 11:34:01 +03:00
xristos3490 09b55f7390 fix CS on docblock 2020-04-30 11:04:40 +03:00
Claudio Sanches 3a987b3367 Fixed coding standards 2020-04-29 18:23:57 -03:00
Claudio Sanches 986c68c221 Fixed user cap required to view the order count indicator 2020-04-29 18:19:25 -03:00
Claudio Sanches b62457dd01 Validate page template 2020-04-29 17:53:04 +05:30
Vedanshu Jain 3dd2cb1a66
Merge pull request #26247 from woocommerce/fix/wccom-helper-plugins-cache
Reset cache before retrieving plugin list on WooCommerce.com Subscriptions tab
2020-04-29 16:27:21 +05:30
Leon Francis Shelhamer 3a585c4e23 Conditionally change my account dashboard desc
Conditionally change my account dashboard description to reflect whether or not shipping has been disabled in WooCommerce > Settings > General > General options.

Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-04-28 21:37:55 -04:00
Susanna 07eef2d717
Fix matching zones query for working with sqlite
And probably other databases too.
2020-04-27 18:31:52 +02:00
tolu-paystack a151c11042 made postcode field visible but not required 2020-04-27 16:53:51 +01:00
Bogdan Arizancu cbf6b33c9e fixup! fixup! Allows avoiding performance bottlenecks caused by get_available_variation(). 2020-04-27 15:46:34 +02:00
abhishek-pokhriyal 968fbe0228 Correct argument count for action hooked on `woocommerce_process_shop_order_meta` 2020-04-26 16:01:40 +05:30
Bogdan Arizancu d69cf172db fixup! Allows avoiding performance bottlenecks caused by get_available_variation(). 2020-04-24 17:58:55 +02:00
Bogdan Arizancu 8584ac2638 Allows avoiding performance bottlenecks caused by get_available_variation().
Co-authored-by: Daniel Kudwien <daniel@netzstrategen.com>
2020-04-24 17:57:40 +02:00
Job c2a8af8331
Tweak explanation for coupon discounts
There was still some unclarity on the function. The explanation and tooltips were updated.
2020-04-24 15:47:02 +02:00
tolu-paystack 43db909665 removed postcode label and changed state label 2020-04-24 10:08:11 +01:00
tolu-paystack cab7c5b8a1 hide postcode field for Ghana addresses 2020-04-24 00:23:30 +01:00
Vedanshu Jain 5f0badbdf7
Merge pull request #26107 from webdados/master
Revert deprecation of $type on the get_european_union_countries method
2020-04-23 19:20:11 +05:30
xristos3490 f43426c46e Fix typo 2020-04-23 01:19:27 +03:00
xristos3490 b6b6bba1a0 minor updates 2020-04-23 01:17:40 +03:00
xristos3490 dfee6ab2e4 Add body class and change styles 2020-04-22 23:32:26 +03:00
Denis Dvali ee9e838918 Reset plugin cache before retrieving plugin list on Subscriptions tab. 2020-04-22 19:55:13 +03:00
Vedanshu Jain d663631f32
Merge pull request #26235 from woocommerce/update/ignore-coupons-discounts
Update `Ignore coupons discounts` title & description for Free Shipping
2020-04-21 22:19:39 +05:30
Julia Amosova 2b95f7b795 Update the string next to `coupons discounts` checkbox 2020-04-21 12:45:25 -04:00
Julia Amosova 8845b9a5c2 Update `Ignore coupons discounts` title & description for Free Shipping 2020-04-21 11:25:12 -04:00
Vedanshu Jain ee119e0a7e
Revert "Introduce a `reserved stock` class and database table to prevent race conditions during checkout" 2020-04-21 15:37:21 +05:30
Mike Jolley 88c7ad1bd2 Don't "get" cart 2020-04-20 12:47:20 +01:00
Mike Jolley 232ae16940 Load dependencies in wc_load_cart 2020-04-20 12:30:44 +01:00
Claudio Sanches 67a0a68689 Fixed uploads_directory_is_public trigger 2020-04-17 18:39:15 -03:00
Claudio Sanches 0eae470c0f Added notice to check if uploads directoy is public 2020-04-17 18:21:29 -03:00
Fitim c28c8e6472 Add filter woocommerce_cart_has_enough_stock_for_product in WC_Cart::check_cart_item_stock method 2020-04-16 12:16:11 +02:00
Fernando Marichal 134c0ea0db The function '_prompt_helper_connect' was deleted
After removing the legacy code the method '_prompt_helper_connect' wasn't useful anymore so it was removed.
2020-04-15 13:35:56 -03:00
Fernando Marichal f83e5d32a4 Removed legacy notification to connect with WooCommerce
Removed legacy JITM for connecting with WooCommerce.com
2020-04-12 13:49:38 -03:00
abhishek-pokhriyal b049d29a8a Change "though" to "through" 2020-04-11 19:35:13 +05:30
Marco Almeida ea734d2500
Fix comment
Fix comment for PR #26107
2020-04-10 10:46:46 +01:00
vedanshujain fcd4057218 More preventive check for order object in tracks. 2020-04-08 11:43:20 +00:00
vedanshujain e573390356 Add protective checks around order to prevent issues when order is drafted. 2020-04-08 09:56:18 +00:00
Marco Almeida 80576cb149
Revert deprecation of the $type parameter on the get_european_union_countries method
See woocommerce#26105
2020-04-07 23:01:46 +01:00
Christopher Allford 2fedf9306e Corrected the filter prefix for get_path_define_tokens 2020-04-07 10:25:57 -07:00
Vedanshu Jain c2d6d230f9
Merge pull request #26094 from woocommerce/bump/min-wp-version
Updated min WP version to 5.2
2020-04-07 17:26:06 +05:30
Nestor Soriano 0eed82b3b7 Fix code standards violations introduced in #25092 2020-04-07 12:28:30 +02:00
Claudio Sanches 58db7314a8 Added validation for product fields. 2020-04-07 11:29:54 +02:00
Peter Fabian 5a1ad5daf1 Updated min WP version to 5.2 2020-04-07 11:25:29 +02:00
Vedanshu Jain 46caa40854
Merge pull request #26085 from woocommerce/add/25849-implement-additional-tracks-take-2
Implement additional tracks take 2
2020-04-07 14:48:19 +05:30
Christopher Allford 172ceb51e8
Merge pull request #26084 from woocommerce/add/cart-checkout-block-settings-data
add customised cart & checkout block settings to wc-tracker snapshot
2020-04-06 18:22:24 -07:00
Rua Haszard 7b55096288 fix logic errors in get_blocks_from_page:
- declare closure use (dependency) on $block_name from surrounding func
- re-index the filtered array so $blocks[0] returns first filtered block
2020-04-07 10:23:03 +12:00
Rua Haszard bc8553f3d5 refactor block tracker data into standard function:
- use parse_blocks to detect block instead of SQL match
- method is now generic, can get data about any block on any woo page
2020-04-07 09:40:22 +12:00
Vedanshu Jain 3bf473517d
Merge pull request #25708 from woocommerce/update/reserve-stock-for-checkout
Introduce a `reserved stock` class and database table to prevent race conditions during checkout
2020-04-07 02:16:22 +05:30
Vedanshu Jain 057b352de7
Merge pull request #26016 from woocommerce/fix/26010
Setup Wizard: Default 100% of users to new OBW.
2020-04-07 02:10:09 +05:30
Claudio Sanches e95f34e81e Fixed coding standards and hooks priority 2020-04-06 17:10:09 -03:00
Vedanshu Jain dff7d8fd44
Merge pull request #26039 from soulseekah/master
Fix WC_Product_Data_Store_CPT::update_product_stock race condition
2020-04-07 00:44:33 +05:30
Vedanshu Jain 237463c39b
Merge pull request #25800 from woocommerce/fix/25748
Fixes tax rounding issues
2020-04-07 00:24:34 +05:30
Vedanshu Jain 5adb16e287
Merge pull request #25904 from woocommerce/fix/25073
Change string for untested WC extensions to avoid confusion
2020-04-06 23:18:42 +05:30
Christopher Allford b43ad106ef Added WPMU_PLUGIN_DIR and removed the path define token for ABSPATH
There's no need for the ABSPATH define since the WC plugin is always a child of a plugin directory anyway.
2020-04-06 07:17:01 -07:00
Vedanshu Jain 251e1ea273
Merge pull request #25851 from woocommerce/add/tracks-props-filter
Tracks: Add Ability to Filter Event Props
2020-04-06 18:25:58 +05:30
Vedanshu Jain a8d60a8864
Merge pull request #25856 from woocommerce/fix-reset-action-scheduler-db-update-routine
Fix minor inconsistencies in the WC 4.0 database update routines
2020-04-06 18:07:39 +05:30
Vedanshu Jain e3eb30c509
Merge pull request #26066 from woocommerce/fix/26002
Fix/26002
2020-04-06 18:05:47 +05:30
Vedanshu Jain 52ded367f5
Merge pull request #26075 from woocommerce/fix/26015
Prune elements with display none to fix regression.
2020-04-06 18:03:45 +05:30
Néstor Soriano 13765d9e91
Merge pull request #25092 from leanzafrancesco/fix/25091
Fix/25091 - Wrong totals in orders with taxable and non-taxable products and percentage coupons
2020-04-06 12:31:07 +02:00
Rebecca Scott 3807b809b4 Localise edit product header in products tracking 2020-04-06 11:22:24 +10:00
Rebecca Scott b8c2ce48b8 Revert "Revert "Implement additional tracks""
This reverts commit c24b565477.
2020-04-06 10:27:45 +10:00
Rua Haszard 3f42fbbeba remove stale/redundant comments 2020-04-06 12:10:35 +12:00
Rua Haszard e93bb453e1 use anonymous functions for array_filter when finding cart etc blocks 2020-04-06 12:08:37 +12:00
Rua Haszard 029e27cc25 add customised cart & checkout block settings to wc-tracker snapshot 2020-04-06 11:59:31 +12:00
Christopher Allford a7c0dec33a Added a function to fetch all of the path define tokens that may be present in template paths 2020-04-05 13:21:50 -07:00
Christopher Allford 33e81654a9 Made the path tokenization deterministic
Since the tokens are replaced in a first-discovered first-replaced order, we may accidentally create tokenized paths like '{{ABSPATH}}/test' instead of the desired '{{WP_CONTENT_DIR}}test'. By ordering them according to specificity however, we ensure that we tokenize as much of the path as possible.
2020-04-05 12:41:39 -07:00
Christopher Allford e270dfce2e Extracted the template path tokenization so that it can be applied to more than one define more readily 2020-04-05 12:06:04 -07:00
Christopher Allford 91c608f38e Merge branch 'master' into refactor/23783 2020-04-05 10:55:00 -07:00
Yoav Farhi af288e6ae1 make sure the woocommerce-helper rtl css file is loaded 2020-04-05 10:59:32 +03:00
Christopher Allford e3c120c1d9
Merge pull request #26034 from woocommerce/fix/package-update-error
Corrected error messaging on update for expired WooCommerce.com subscriptions
2020-04-03 08:35:46 -07:00
Mike Jolley 1acae4ef92 woocommerce_payment_complete priority 2020-04-03 15:58:59 +01:00
Mike Jolley f248902454 Update versions 2020-04-03 15:56:43 +01:00
Mike Jolley 4faea42c23 Change priorities 2020-04-03 15:55:15 +01:00
Mike Jolley e965f854d6 Missing class name 2020-04-03 15:55:15 +01:00
Mike Jolley 62e099bd84 Add table schema 2020-04-03 15:55:15 +01:00
Mike Jolley c983677a6f Implement stock functions 2020-04-03 15:55:15 +01:00
Mike Jolley 802fff94c2 Remove stock methods from order class 2020-04-03 15:55:14 +01:00
Mike Jolley 910a13f544 Fire action hooks rather than call stock holding functions directly 2020-04-03 15:55:14 +01:00
Mike Jolley 02cf328afe Remove check for held stock minutes during stock checks - this will be handled elsewhere 2020-04-03 15:55:14 +01:00
Mike Jolley 51aca598b9 Only implement get_query_for_stock in data store 2020-04-03 15:55:14 +01:00
Mike Jolley 7228d67799 Remove helpers from order functions 2020-04-03 15:55:14 +01:00
vedanshujain 3bd34184e4 Fixed bool error on when to disable feature 2020-04-03 15:55:14 +01:00
Claudio Sanches 2ebd86f2dc Revert "Revert "Add support for '_held_for_checkout` records to prevent race conditions."" 2020-04-03 15:55:13 +01:00
vedanshujain 6612d1f859 Prune elements with display none to fix regression.
In an earlier emogridier version (til WC 3.9.3) this was happening by
default, however now we have to do this explicitly since we update
emogrifier to > 3.x.
2020-04-03 13:47:04 +00:00
Garrett Hyder fadb5d0704 Merge branch 'privacy-policy-update' of github.com:garretthyder/woocommerce into privacy-policy-update 2020-04-02 13:11:24 -07:00
Garrett Hyder a1ea941947 Updated CSS to use branch-5 instead of branch-5-0 after testing. Updated check to include privacy.css to account for core#43895 which reorganized the privacy files. 2020-04-02 13:10:50 -07:00
Claudio Sanches 83609d4844 Improved escaping 2020-04-02 14:25:09 -03:00
Claudio Sanches f02780e764 Update theme update available message 2020-04-02 14:22:50 -03:00
Claudio Sanches 9345eb3624 Improved dependency and update message style 2020-04-02 14:17:38 -03:00
vedanshujain 8adb474149 Enforce per user coupon usage limit for guest user checkout.
In a previous commit, a regression was introduced where we were no
longer checking for usage limit of guest user in an install. This
commit adds back that check.
2020-04-02 15:00:06 +00:00
Garrett Hyder 99279211c5
Merge branch 'master' into privacy-policy-update 2020-04-01 16:37:41 -07:00
Garrett Hyder 89336488e9 Introduced privacy.scss with custom back-compat shim for handling the ul elements of WooCommerce privacy policy content and ensuring consistent styling with the default WordPress content. 2020-04-01 16:32:54 -07:00
Claudio Sanches 5356fb1bf6 Removed undefined variable 2020-04-01 19:22:44 -03:00
Claudio Sanches 37a949f7bd Fixed coding standards 2020-04-01 14:56:04 -03:00
Claudio Sanches c24b565477
Revert "Implement additional tracks" 2020-04-01 11:34:54 -03:00
Bec Scott 3e322793ec
Merge pull request #25942 from woocommerce/add/25849-implement-additional-tracks
Implement additional tracks
2020-04-01 09:54:05 +10:00
Claudio Sanches 1f9c8069c9 Introduces woocommerce_menu_order_count filter 2020-03-31 17:43:50 -03:00
Claudio Sanches 2d27927124 Merge branch 'brakf/master' into add/menu-order-count-filter 2020-03-31 17:41:11 -03:00
Claudio Sanches 8ae9df58ed
Merge pull request #25901 from woocommerce/fix-code-documentation
Fix PHP docblock for WC_Plugin_Updates::get_untested_plugins()
2020-03-31 15:20:54 -03:00
Gennady Kovshenin ca996a8941 Fix race condition in update_product_stock
Modify the increment and decrement SQL query in
WC_Product_Data_Store_CPT::update_product_stock to be atomic. This fixes
a race condition in concurrent order placement.
2020-03-31 16:01:26 +03:00
Christopher Allford 23e555823b
Merge pull request #25943 from woocommerce/fix/25810
Fixed remainder application for percent coupons
2020-03-30 14:13:03 -07:00
Christopher Allford 4b454a8b3d Replaced the default error text for upgrades of expired WooCommerce.com plugin subscriptions 2020-03-30 14:11:02 -07:00
Christopher Allford 26516e11ac
Merge pull request #25932 from woocommerce/add/tracker-cart-checkout-info
Add cart & checkout block/shortcode info to tracker data
2020-03-30 13:18:23 -07:00
vedanshujain 8f3d8f0495 Also cache with WC_ABSPATH to account for when WC is out of ABSPATH.
We already substitute ABSPATH with {{ABSPATH}} token to make sure that exact template path is not cached to support deployment with multiple servers.

This patch also add tokenizing WC_ABSPATH to account for when WooCommerce is installed outside of ABSPATH.
2020-03-30 18:05:13 +00:00
Miguel Pinto 3def0534fe
fix typo in variable 2020-03-27 19:36:00 +00:00
vedanshu.jain f684c749fc Add method to get base data from order object.
This method can be used when we need basic data about the object without
querying for lot more (and expensive) data from DB.
2020-03-27 20:09:29 +05:30
Sergey Ratushnuy 459b757015 Always pass attribute name to a 'woocommerce_attribute_label' filter 2020-03-27 10:55:42 +02:00
Rebecca Scott e998cc963c Remove stock level set tracking as this is done in JS now 2020-03-27 15:23:51 +10:00
Rebecca Scott 4136a42e1e Just include the ISO8601 date instead of the full WC_DateTime object 2020-03-27 15:19:18 +10:00
Rebecca Scott 39f654124c Fix event name 2020-03-27 14:54:48 +10:00
Rebecca Scott b31878440e Revert function event 2020-03-27 14:52:24 +10:00
Rebecca Scott 5a45d6a3f2 Use var instead of const/let because IE11 2020-03-27 14:51:26 +10:00
Rebecca Scott 17d5f42228 remove order id from order tracking as it isn't required 2020-03-26 11:12:26 +10:00
Rebecca Scott db6a4c630f fix coupon tracking method name 2020-03-26 11:09:37 +10:00
Rebecca Scott 768a3a3f4f Track product updates using client side scripting to avoid double bouncing on the server 2020-03-26 10:55:31 +10:00
Timmy Crawford 9edaffa632 Default 100% of users to new OBW. 2020-03-25 13:37:42 -07:00
Rebecca Scott 75a9971e9d Fix single_order_view event name 2020-03-25 13:04:54 +10:00
Rebecca Scott 496b602eb4 Remove commented out stock quantity value 2020-03-24 12:09:32 +10:00
Rebecca Scott f580b34aa7 Add tracks for quantity updates 2020-03-24 12:03:36 +10:00
Rebecca Scott a4e6b48aa3 Track when a coupon is created/updated 2020-03-24 11:49:00 +10:00
Rebecca Scott 5eab1cbdba Get product type instead of category IDs and split out virtual and downloadable 2020-03-24 11:48:38 +10:00
Lee Willis f1b6b488b8 Add label to unlabelled taxonomies 2020-03-20 14:58:12 +00:00
Peter Fabian 0e0b1d646d
Merge pull request #25882 from woocommerce/fix/25845
Set usage count before usages query
2020-03-18 15:44:49 +01:00
Peter Fabian 38c75cae1b
Merge pull request #25858 from woocommerce/fix/wccom-installer-api-product-arg-type
Change "products" argument type from array to object in plugin installer API
2020-03-18 15:05:13 +01:00
Rebecca Scott 928529880d Track viewing an order 2020-03-18 13:14:31 +10:00
Timmy Crawford 5d4e3ced65 Convert js filter to underscores too, to match wc-admin 2020-03-17 16:09:37 -07:00
Peter Fabian 692df536f7
Merge pull request #25884 from woocommerce/fix/25875
Use admin_url instead of using absolute url to support subfolder
2020-03-17 18:20:04 +01:00
Peter Fabian b3357fee79
Merge pull request #25898 from woocommerce/fix/25881
Fixes typo in download help text
2020-03-17 17:47:19 +01:00
Peter Fabian 9431b34f0d
Merge pull request #25946 from woocommerce/fix/25928
Send dummy parameters so that cost is evaluated correctly.
2020-03-17 16:51:36 +01:00
Vedanshu Jain e35aaf1cff
Merge pull request #25885 from grigorijurasov/master
Change Serbian currency symbol from дин. to рсд, solves #25441
2020-03-17 19:02:17 +05:30
Peter Fabian 2a05f7c000
Merge pull request #25916 from woocommerce/fix/revert-25128
Made the is_package_shippable check more permissive
2020-03-17 14:14:23 +01:00
vedanshujain 861b9de692 Send dummy parameters so that cost is evaluated correctly.
Also added a warning for subclasses that cost and qty are required keys.
2020-03-17 16:54:01 +05:30
vedanshujain 82575a0c74 Don't echo error when doing AJAX because it invalidates JSON
We already append errors in JSON response in `error` array, so echoing separately is not required.
2020-03-17 16:49:52 +05:30
Christopher Allford ed55034867 Added a check to prevent coupon cent remainders from decreasing the item cost below zero 2020-03-16 21:32:25 -07:00
Rebecca Scott 7adabc9a6a Remove unnecessary use statement 2020-03-17 11:51:50 +10:00
Rebecca Scott 4bdcd3eccd Start tracking product_update 2020-03-17 11:27:57 +10:00
Timmy Crawford 356e5a562f Protect _ui and _ut props, move JS filter below product count 2020-03-16 17:00:25 -07:00
Rua Haszard 0b79a65829 fix various issues with post_contains_text:
- correct table name / prefix
- ensure search string has wildcards before & after
- return value is '0' or '1', fix return logic (was returning 'Yes' no
matter what)
2020-03-17 09:21:31 +13:00
vedanshujain cfed958bac Fix typo 2020-03-16 16:55:09 +05:30
vedanshujain 3ef491631f Better messaging to inform that remote files will not be affected 2020-03-16 16:52:35 +05:30
Rua Haszard 8e6f5da2e1 add cart info to tracker:
- adds a new key 'cart_checkout'
- adds boolean props indicating if store cart & checkout use blocks or shortcodes
2020-03-16 17:21:58 +13:00
Timmy Crawford 2c8195ca8a remove console.log 2020-03-13 17:09:13 -07:00
Timmy Crawford 5880ef902d Add ability to filter props for js-based tracks. 2020-03-13 16:31:06 -07:00
Jeff Stieler 6a8d8b27d9
Fix missing notes table on 4.0.0 upgrade. (#25891)
* Don't attempt to create a WC-Admin note before the tables exist.
2020-03-13 12:20:41 -06:00
Christopher Allford 8c0f4a1204 Made the is_package_shippable check more permissive
Initially it was made more precise to avoid calculating estimates for incomplete addresses. Due to some bad working in template files though, as well as historical precedent, we need to change it back.
2020-03-13 09:15:31 -07:00
Rodrigo Primo e61e865a4a Change string for untested WC extensions to avoid confusions
This commit changes the string that is displayed to the users in the system status report page when an old version of a WC extension is installed and it doesn't declare support for the current WC core version.

The original message was:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - 2.4.12 is available - Not tested with the active version of WooCommerce"

The new message is:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - This version is not tested with the active version of WooCommerce (update is available)"

The problem with the original message is that it gives users the impression that even the newest version (2.4.12 in the example above) is not tested with the active version of WooCommerce.
2020-03-12 12:01:35 -03:00
Rodrigo Primo 4dde5ee453 Remove unused variable 2020-03-12 11:24:35 -03:00
Rodrigo Primo d067a2bd12 Fix PHP docblock for WC_Plugin_Updates::get_untested_plugins()
The documentation of the method
WC_Plugin_Updates::get_untested_plugins() said that it only considers
active plugins when getting the list of untested plugins, but it
actually considers all installed plugins. This commit simply updates the
documentation to reflect the method behavior.
2020-03-12 11:01:36 -03:00
Rodrigo Primo b9165c66a8 Refactor code that lists plugins to avoid duplication
This commit creates a new method called
WC_Admin_Status::output_plugins_info() that is used to display the
plugins that are installed on the site in the system status report page.
It is used to display both the active and inactive plugins sections and
it was created to remove code duplication.

I don't think that adding this code as a method to WC_Admin_Status is
an ideal solution but it is the best that I could think and it is better
than duplicating code. Suggestions of other places are welcome.
2020-03-12 10:47:54 -03:00
vedanshujain 7dad11dfc2 Also used add_query_args for better compatibility 2020-03-12 16:30:08 +05:30
vedanshujain 75c3583ff5 Use admin_url instead of using absolute url to support subfolder installs 2020-03-11 21:30:35 +05:30
vedanshujain 509b2c180d Set usage count as its required by usages query 2020-03-11 20:44:52 +05:30
Rodrigo Primo 83691541c2 Bump WooCommerce version since 4.1.0 development has begun 2020-03-11 11:37:35 -03:00
Denis Dvali 955bb2ca7e Change "products" argument type from array to object. 2020-03-10 17:41:39 +03:00
Rodrigo Primo f32c062739 The db update routine that updates the db version should be the last one
This commit simply changes the order of the database update callbacks
for WC 4.0 to make sure that wc_update_400_db_version is the last one.
2020-03-10 09:31:45 -03:00
Rodrigo Primo cd75870267 Add the wc_update_400_ prefix to db update routine
The db update routine that resets action scheduler migration status was
missing the wc_update_400_ prefix. Doing this for the sake of
consistency.
2020-03-10 09:27:30 -03:00
Timmy Crawford 0c1f468692 Add filter for php-based tracks event properties. 2020-03-09 12:46:40 -07:00
Rodrigo Primo d65cd6204e
Merge pull request #25823 from michaelignacio/fix/25781
Remove guided tour videos link on setup wizard
2020-03-09 09:34:16 -03:00
Peter Fabian 2eca326825 Improve translatability of version string. 2020-03-09 13:07:32 +01:00
vedanshujain 22392546f6 Add documentation links for settings 2020-03-09 10:47:32 +01:00
Michael Ignacio d2a00bff04 Remove mention of guided tour videos on setup wizard 2020-03-08 19:33:28 +08:00
Rodrigo Primo fb1001b14a
Merge pull request #25825 from woocommerce/fix/etc-comma
Add comma before 'etc.' in address 2 placeholder
2020-03-06 14:50:14 -03:00
Rodrigo Primo 1910420896
Merge pull request #24776 from boghy933/feature/24754
Option for free shipping if should ignore discounts or not
2020-03-06 13:10:45 -03:00
Rodrigo Primo 709d3f64a3
Merge pull request #25835 from woocommerce/add-rtl-style-to-obw
Add RTL style to the onboarding wizard
2020-03-06 12:01:12 -03:00
Rodrigo Primo b3724a38c7 Add RTL style to the setup wizard
Kudos to @kadimi who is the original author of this change (see #24623).
I'm doing this commit as we were not able to merge their PR due to a
conflict and we were also not able to cherry-pick their commit as GitHub
is reporting that the PR was created from a unknown repository.
2020-03-06 11:41:38 -03:00
Rodrigo Primo 9b6d66cf1f
Merge pull request #25609 from SamirMahmudzade/patch-3
Update KZT (₸) symbol wc-core-function.php
2020-03-06 11:36:11 -03:00
Rodrigo Primo e1aaa6c63c
Merge pull request #25611 from tyrann0us/patch-1
Fix typo in DocBlock of `woocommerce_template_loop_product_link_close()`
2020-03-06 09:26:31 -03:00
Rodrigo Primo 5ef13786e4
Merge pull request #25830 from woocommerce/fix/wc-admin-system-status-logic
Update system status info about WC Admin.
2020-03-05 15:31:20 -03:00
Peter Fabian a9e262cb38 Make inactive plugin more visually distinctive. 2020-03-05 19:19:20 +01:00
Peter Fabian 381386bdaf Rename $path to prevent clashing with global variable. 2020-03-05 19:11:56 +01:00
grigorijurasov 06f44f386b Update wc-core-functions.php 2020-03-05 18:41:14 +01:00
Rodrigo Primo e39db20eca
Add woocommerce_emogrifier action (#25829)
* add woocommerce_emogrifier action

* fix formating issue

* fix formating, again :"
;
2020-03-05 14:02:29 -03:00
Rodrigo Primo b53bde72d9
Merge pull request #25811 from adams-specialty-products/master
Fixes "screen-reader-text" label_class set as string
2020-03-05 13:59:41 -03:00
Rodrigo Primo e12b2a0af7
Merge pull request #25728 from leanzafrancesco/add/can-restock-refunded-items-filter
Add woocommerce_can_restock_refunded_items filter
2020-03-05 13:53:53 -03:00
Peter Fabian 0bd518cf52 Update system status info about WC Admin.
The check now also tests whether wc admin is active to prevent notice about undefined constant when running on WP 5.2 and older, or with inactive WC Admin.
2020-03-05 17:50:55 +01:00
Rodrigo Primo 8e006a962f
Merge pull request #25826 from jobthomas/jobthomas-help-tab-review
"Help" tabs review
2020-03-05 13:48:56 -03:00
Rodrigo Primo e40ddc5291
Merge pull request #25727 from leanzafrancesco/add/order-tax-location-filter
Add woocommerce_order_get_tax_location filter
2020-03-05 13:48:40 -03:00
Peter Fabian 9b42f6a4fc
Merge pull request #25828 from woocommerce/fix/admin-notices
Display only wc-admin notices when enabled to avoid duplicate notices
2020-03-05 16:47:09 +01:00
Christopher Allford d165f91c71
Merge pull request #25682 from woocommerce/fix/25637
Escape MaxMind database URL
2020-03-05 07:44:50 -08:00
Claudio Sanches 85ca36919b
Use urlencode 2020-03-05 11:54:41 -03:00
vedanshujain 9ac9970a77 Also display on selected pages outside of wc-admin 2020-03-05 17:07:10 +05:30
vedanshujain 4b3977868b Display only wc-admin notices when enabled to avoid duplicate notices 2020-03-05 16:53:10 +05:30
Job 1cd3ae0088
Remove the "Education" tab from Help
We still had an education tab there, but we have no active agreements with any of the recommended resources. I think we can just delete thme from core.
2020-03-05 11:39:08 +02:00
Job 1bac3ae62c
Updated the Help & Support tab
The Help & Support tab didn't correspond in terminology to what we're using on WooCommerce.com. Notable changes:

* "Helpdesk" --> "WooCommerce.com Support"
* URL for getting help on WooCommerce.com updated
* More active voice in instructions
2020-03-05 11:35:13 +02:00
Albert Juhé Lluveras 515f5604f4 Add comma before 'etc.' in address 2 placeholder 2020-03-05 10:31:19 +01:00
Rodrigo Primo 05cfc7eece Add @since tag to get_woocommerce_currency_symbols()
See #25733
2020-03-04 16:26:07 -03:00
Rodrigo Primo 62d3a1fa44 Fix typo 2020-03-04 16:25:33 -03:00
Rodrigo Primo c529273973
Merge pull request #25733 from TimBHowe/fix/25732
Added the get_woocommerce_currency_symbols function to allow develope…
2020-03-04 16:23:50 -03:00
Rodrigo Primo 0aa438e031 Add version to @since tag of WC_Coupon_Data_Store_CPT::updated_props
See #25755
2020-03-04 15:57:17 -03:00
Rodrigo Primo 831b02a0a6
Merge pull request #25755 from nefeline/fix/undefined-property-coupon-post-meta-update
Fix > Undefined property error when updating the coupon post meta
2020-03-04 15:56:24 -03:00
Daniel Morell 7b7934e237
Fixed screen-reader-text label class set as string
The field 'label_class' should be an array not a string. This fix makes it an array.
2020-03-03 14:06:52 -06:00
vedanshujain d8388ef266 Remove rounding because we already appropriately round in `get_rounded_items_total`. 2020-03-03 16:34:35 +05:30
vedanshujain a0c209193b Remove rounding because individual lines would already have been rounded at this point if needed. 2020-03-02 15:19:16 +05:30
vedanshujain 15d4bd7381 Don't individual tax lines to honour "Round at subtotal" setting. 2020-03-02 15:19:16 +05:30
vedanshujain 3546e60d96 Use common rounding method for consistency. 2020-03-02 15:19:16 +05:30
vedanshujain 740e2c8a92 Treat individual tax totals as line items because they will be totalled later.
This means that we won't round them individually unless we have setting for round at line item enabled.
2020-03-02 15:19:16 +05:30
vedanshujain 48e63adf77 Make rounding methods consistent in orders and cart 2020-03-02 15:19:16 +05:30
vedanshujain f5e5eda946 Refactor `create_order` to make it more testable 2020-03-02 15:19:00 +05:30
Vedanshu Jain 6f2b232fc7
Merge pull request #25734 from woocommerce/fix/25650
Fixed caching for order item on deletion
2020-02-27 13:48:44 +05:30
Christopher Allford 37ff503855 Adjusted the ordering of the cache clear on order item deletion to prevent leaving behind a ghost cache entry 2020-02-26 09:36:28 -08:00
Christopher Allford 165138fc30 Renamed the WC_Order_item_Data_Store::clear_cache method to be consistent with other data stores. 2020-02-26 09:34:27 -08:00
Peter Fabian 150c77ba29 Improve coupon name output handling. 2020-02-26 12:24:04 +01:00
Peter Fabian 1edddebbde
Merge pull request #25701 from woocommerce/fix/25700
change the namespace of the WC Admin Package class
2020-02-26 12:10:14 +01:00
Peter Fabian d9c90dc873
Merge pull request #25757 from woocommerce/fix/25756
move edited attribute message to consistent location
2020-02-26 11:28:29 +01:00
Peter Fabian 7fdee5b03e
Merge pull request #25707 from woocommerce/fix/as-460
Mark AS migration pending when updating WC to ensure migration happens.
2020-02-25 22:03:45 +01:00
Peter Fabian 4271eb94d7
Merge pull request #25736 from woocommerce/try/db-update-notice
Added the WC Admin enabled db update notice.
2020-02-25 20:19:38 +01:00
Ron Rennick 25ab5596a2 fix composer.lock conflict 2020-02-25 15:00:55 -04:00
Ron Rennick 4e43b27aed update status report to correctly show active plugin 2020-02-25 14:51:22 -04:00
Patricia Hillebrandt c3379482a2 Updating docblock 2020-02-25 16:53:40 +01:00
Ron Rennick 84c2c7fb00 move edited attribute message to location consistent with other edited messages 2020-02-25 11:28:11 -04:00
Peter Fabian d9f702c3d4
Merge pull request #25670 from woocommerce/fix/25664-2
Replaced deprecated Jetpack::is_staging_site call
2020-02-25 15:20:11 +01:00
Peter Fabian 63486a1cb0 Force the saving of notices for the 'install' notice to prevent performance problems for all notices, while also making it less prone to race conditions during the installation. 2020-02-25 15:00:37 +01:00
Peter Fabian 992c6538dc Force the saving of notices only for the 'update' notice to prevent performance problems. 2020-02-25 14:58:02 +01:00
Peter Fabian f3dceae5df Added more exclusions for the DB notice show_reminder method.
Also, moved `woocommerce_hide_update_notice` outside those exclusions in case
it would get triggered from cron or via AJAX.
2020-02-25 14:51:09 +01:00
vedanshujain f5220383a5 Add defensive checks because `configure` is not present in older jetpack version 2020-02-25 15:03:15 +05:30
Peter Fabian d4933d9a5d Run configure for Jetpack plugin before attempting to try_registration.
This should prevent the fatal error otherwise occuring when connecting with Jetpack
during the OBW if Jetpack is inactive/not installed.
2020-02-24 17:47:07 +01:00
Peter Fabian 27b5210fdf Merge branch 'master' into fix/25664-2 2020-02-24 13:34:24 +01:00
Peter Fabian 3dcb3e0106 Correct the fallback check logic for is_staging_site().
There are JP versions where \Automattic\Jetpack\Status exists, but does not
contain is_staging_site() function, so this commit should correctly handle
those cases as well.
2020-02-24 11:01:44 +01:00
brakf a0ebe12cc2
reverted my changes as I moved the filter to wc-order-functions 2020-02-24 08:24:12 +01:00
brakf 050d702f49
move filter to wp-order-functions.php 2020-02-24 08:22:34 +01:00
Peter Fabian 7ec65a1b35 Added the WC Admin enabled db update notice. 2020-02-23 21:59:03 +01:00
Christopher Allford 6a292de9f9 Cleared the cache when order items are added, updated, or deleted 2020-02-23 12:41:33 -08:00
Christopher Allford e2a09ac1a7 Added a cache clearing method to the order item data store
The order items utilize caching, but the cache is never cleared. This will allow us to resolve this issue in a way consistent with other data stores.
2020-02-23 12:11:23 -08:00
TimBHowe 34bec7d839 Added the get_woocommerce_currency_symbols function to allow developers to get an array of all the currency symbol registered with woocommerce 2020-02-23 13:51:19 -05:00
Patricia Hillebrandt bd53e2eb60 Prevents the Undefined property error when updating the post meta for a given coupon 2020-02-23 14:07:18 +01:00
Francesco Leanza c90a275bc7 Added woocommerce_can_restock_refunded_items filter 2020-02-21 19:15:09 +01:00
vedanshujain 6f53f42da6 Add checks to prevent if AS loaded is different version than we expect. 2020-02-21 16:35:37 +05:30
Francesco Leanza 5dfb618ff9 Add woocommerce_order_get_tax_location filter 2020-02-21 11:45:06 +01:00
Christopher Allford bfac625cdc
Merge pull request #25667 from jacoswan/fix-25666
Fix 25666 - Schema rating markup is missing required bestRating and worstRating
2020-02-19 18:09:23 -08:00
Peter Fabian 88b8c006db Extracted the test to a function and fixed is_callable call. 2020-02-19 14:44:16 +01:00
vedanshujain 90ab985cfb Mark AS migration pending when updating WC to ensure migration happens.
Ideally https://github.com/woocommerce/action-scheduler/pull/470 should take care of this issue, but since we have AS 3.x in the wild without fix in the PR, this change is also necessary.
2020-02-19 18:19:11 +05:30
Christopher Allford 18d42d5880
Merge pull request #25697 from woocommerce/fix/autoloader-conflict
Avoid `Automattic\Jetpack\Constants` in main woocommerce class
2020-02-18 14:07:59 -08:00
Christopher Allford 9557b2e15a
Merge pull request #25681 from woocommerce/fix/25638
Apply new filter in MaxMind database migration
2020-02-18 12:10:09 -08:00
Mike Jolley a67ece743d Avoid Automattic\Jetpack\Constants in main woocommerce file 2020-02-18 15:13:30 +00:00
Claudio Sanches 63fcbab7b4 Escape MaxMind database URL 2020-02-16 18:55:49 -03:00
Claudio Sanches fd488e5d2c Apply woocommerce_maxmind_geolocation_database_path filter in maxmind migration 2020-02-16 18:47:03 -03:00
Peter Fabian 80a5ee087c Replaced deprecated is_staging_site call. 2020-02-14 12:01:30 +01:00
Yaku 9191068068 Added missing schema markup
Take 3. Aanhouer wen. Viewed invisible to compare my changes to the rest of the doc. All seems the same now.
2020-02-14 10:51:41 +02:00
Yaku 816b3b3251 Added missing schema markup
Second attempt, fixed spacing of previous added values
2020-02-14 10:18:37 +02:00
Yaku 0a24ea44ea Update class-wc-structured-data.php
Adds bestRating and worstRating where requried as per Schema.org
2020-02-13 22:18:58 +02:00
picocodes 91b01ccaff
fix typo 2020-02-12 17:13:13 +03:00
Remi Corson c9092d5dbf backwards compatibility 2020-02-11 16:35:40 +01:00
Remi Corson 89f07da20d Replace {sitde_address} by {site_url} for consistency
Replace {sitde_address} by {site_url} for consistency in WooCommerce emails, for better consistency.
2020-02-11 10:46:32 +01:00
Philipp Bammes 0097beef17
Fix typo in DocBlock of `woocommerce_template_loop_product_link_close()`
Replace `opening` with `closing`.
2020-02-07 16:51:12 +01:00
SamirMahmudzade 443429bd14
Update KZT (₸) symbol wc-core-function.php
Update the Kazakhstani tenge symbol KZT (₸) symbol wc-core-function.php
2020-02-07 18:23:36 +04:00
vedanshujain ee0e94e909 Change how filter is implemented to help both 3PD and translators 2020-02-07 17:54:54 +05:30
vedanshujain 707a9bf9a0 Bump versions 2020-02-07 17:54:54 +05:30
vedanshujain cc26fdb2e3 Updated docs link 2020-02-07 17:54:54 +05:30
vedanshujain b29219969c Addressed code review comments 2020-02-07 17:54:54 +05:30
vedanshujain ca5fd12103 Add setting to configure hash appends 2020-02-07 17:54:54 +05:30
vedanshujain 56176e0479 Append unique hash to filename for added security 2020-02-07 17:54:54 +05:30
vedanshujain 44677bbab7 Fallback to force for remote file because xsendfile don;t support it by default 2020-02-07 17:54:54 +05:30
vedanshujain dc060fe700 Add notice when "redirect only" download method is selected.
This download is insecure as it reveals the original file location. We will try to nudge user to use any of the other download method instead.
2020-02-07 17:54:54 +05:30
vedanshujain d7bac6313c Add suffix "Insecure" to indicate that this method is insecure 2020-02-07 17:54:54 +05:30
Peter Fabian 1441d8c07b
Merge pull request #25597 from woocommerce/try/obw-jn-as-race-cond
Try to fix the setup wizard trouble on JN
2020-02-07 13:04:06 +01:00
Rodrigo Primo 1183619cfc
Updated version to 4.0.0-beta.1 (#25591)
* Updated version to 4.0.0-beta.1

* Used the final desired version in class WooCommerce.
2020-02-07 09:02:20 -03:00
Peter Fabian 4f485a14de Added explanation comments. 2020-02-07 12:58:31 +01:00
Peter Fabian 5fc2e8fba9 Only skip the store_notices during new install in AS. 2020-02-07 11:06:35 +01:00
John f92bbf249a
Hide Germany's, Denmark's and Sweden's state field
When you choose the country 'Germany'(or Denmark or Sweden) from a woocommerce website, the state field is hidden. So I added to be hidden in this class too.
2020-02-07 02:10:38 +02:00
Peter Fabian 4c4f9f1164 Don't save notices when running from AS. 2020-02-07 00:21:03 +01:00
Peter Fabian 06d0bbefc4 Don't run setup wizard redirects from AS. 2020-02-07 00:20:42 +01:00
Peter Fabian 68fe4d9f0e Used the final desired version in class WooCommerce. 2020-02-06 21:33:22 +01:00
Christopher Allford b5d5be7df1 Removed the admin screen checking in favor of good old fashioned request parameters for COD gateway setting loading 2020-02-06 12:29:01 -08:00
Christopher Allford 30fd538acf Added function_exists check to COD gateway settings check 2020-02-06 10:03:26 -08:00
Peter Fabian 422d8787f5 Updated version to 4.0.0-beta.1 2020-02-06 14:00:43 +01:00
Peter Fabian 7233dc8a2e
Merge pull request #25011 from woocommerce/try/add-wc-admin
wc-admin: Include package
2020-02-06 12:09:25 +01:00
Peter Fabian ee865fe0b4
Merge pull request #25504 from woocommerce/update/order-detail-summary
Enhance order details and payment summary
2020-02-06 11:40:45 +01:00
Claudio Sanches 4de580dca8
Merge pull request #25573 from mgibbs189/master
Adds a `woocommerce_shortcode_products_query_results` hook
2020-02-05 18:42:06 -03:00
Peter Fabian 5c23d013d7 Added info about packages to System Status Report. 2020-02-05 21:54:05 +01:00
Rodrigo Primo 44ecb0ec9e Only display the "Paid by customer" section if the order has been paid
This commit changes the condition in the if the statement that decides
whether or not to display the "Paid by customer" section in the order admin
page. Before it, this section was displayed for all orders that
contained one of the following statuses: 'processing', 'completed' or 'refunded'.

The problem with this approach is that offline payment gateways, like
'Cash on Delivery', set the order status to processing when the order is
placed but before the customer pays for it. So the "Paid by customer"
section was being displayed in some cases where the order was not
actually paid yet creating a confusing experience to store managers.

To fix this, this commit also checks for the presence of the
`_date_paid` order meta. If this order meta is present and the order
status corresponds to one of the three statuses listed above, it means that
the order has been paid and we can display the "Paid by customer"
section. If this order meta is not present, we don't display the "Paid
by customer" section.
2020-02-05 16:08:13 -03:00
Rodrigo Primo 7c9d6110e2 Fix typo in code comment 2020-02-05 15:48:40 -03:00
Peter Fabian d3a33f8d05
Merge pull request #24943 from woocommerce/refactor/eu-vat-brexit
Brexit and VAT refactor
2020-02-05 19:41:40 +01:00
Peter Fabian b385404861 Fixed deprecated since version. 2020-02-05 19:18:08 +01:00
Matt Gibbs f57f1c6293
Requested commenting & hook tweaks 2020-02-05 13:08:40 -05:00
Christopher Allford 92708dde1f
Merge pull request #25512 from woocommerce/fix/25438.2
Fixed unnecessary loading when constructing COD payment gateway
2020-02-05 10:02:38 -08:00
Peter Fabian 46dd915044 Improve coupon notice handling. 2020-02-05 18:50:40 +01:00
Peter Fabian 5ba2cdafa5
Merge pull request #25183 from om4james/webhook-de-duplication
Fix for Duplicate Webhook deliveries
2020-02-05 18:38:15 +01:00
Peter Fabian fe9a5be828
Merge pull request #25528 from woocommerce/update/wccom-installer-api-authentication
Use query params as fallback for obtaining authentication data in plugin installer API
2020-02-05 18:13:06 +01:00
Claudio Sanches 5b9937ad48 Merge branch 'master' into try/add-wc-admin 2020-02-05 13:02:51 -03:00
Christopher Allford 8140f7e0a1 Extracted shipping method loading for COD field into its own method 2020-02-05 06:59:02 -08:00
Christopher Allford 2f024ff024 Added tab check to COD gateway options loading 2020-02-05 06:49:33 -08:00
Claudio Sanches 2dbebdfb29 Updated deprecated message 2020-02-05 11:20:23 -03:00
Claudio Sanches f5d2c98c3e Updated unit test 2020-02-05 11:16:29 -03:00
Claudio Sanches aa9082d54d Fixed variable 2020-02-05 11:11:46 -03:00
Claudio Sanches 8b2651a353 Deprecated old method 2020-02-05 11:11:24 -03:00
Rodrigo Primo f539d3e04b Merge branch 'master' into update/emogrifier 2020-02-05 10:01:38 -03:00
Rodrigo Primo ff05b06e6b Merge branch 'master' into update/emogrifier 2020-02-05 09:56:03 -03:00
Peter Fabian 87e42acd56
Merge branch 'master' into try/add-wc-admin 2020-02-05 13:02:20 +01:00
vedanshujain 946aecae9e Show notice when logged in user pays for gues order 2020-02-05 15:42:15 +05:30
Jeff Stieler 3cf9d76ed4 Fix wc_admin_daily event schedule persistence.
Avoid an option update race condition.
2020-02-04 16:04:27 -08:00
Christopher Allford b9ceabaa52 Utilized the constants package to fix the failing tests 2020-02-04 15:50:23 -08:00
Christopher Allford 1d15df860e Merge branch 'master' into fix/25438.2 2020-02-04 15:06:26 -08:00
Christopher Allford 57734ca8ce Merge branch 'master' into refactor/add-jetpack-constants 2020-02-04 14:36:35 -08:00
Christopher Allford 4ae1e1f5fc Extracted the repetitive Constants::get_constant( 'WC_VERSION' ) calls where possible 2020-02-04 14:02:57 -08:00
Garrett Hyder 3dd6489c69 Update Suggested Privacy Policy text to utilize css class instead of as it was deprecated. Also wrap the contents in the div to style the section to match WordPress. This follows from WPCoreTrac#49282 and although back-compat is being introduced in WP5.4 as of WPChangeset#47112 this change will better support users of WP5.1-5.4 2020-02-04 13:24:55 -08:00
Garrett Hyder 6295534fbb Adds support for group_description for privacy exporters which was added in WP5.3 through WPCoreChangeset#45825 and WPCoreTracTicket#45491 2020-02-04 12:57:31 -08:00
Peter Fabian 147266f44f Updates to reflect PR feedback. 2020-02-04 21:43:29 +01:00
Matt Gibbs e4e0755bbc
Adds a `woocommerce_shortcode_products_query_results` hook
This hook makes it easier to grab a shortcode's results (product IDs, pager data)
2020-02-04 15:01:56 -05:00
MD Sultan Nasir Uddin 95ef4544a2
Fix get_discount function return type (#25567)
* Fix get_discount function return  type
2020-02-04 16:59:26 -03:00
Claudio Sanches 6d123e0cc3 Tweaks on style inline method 2020-02-04 16:27:20 -03:00
Peter Fabian 5001e14086 Renamed Discounts to Coupons. 2020-02-04 18:27:53 +01:00
Claudio Sanches 6eb74eef8a
Merge pull request #25572 from woocommerce/update/25418
Bump template versions for #25418
2020-02-04 14:22:47 -03:00
Claudio Sanches e0ee96cd37
Merge pull request #25418 from helgatheviking/feature/quantity-placeholders
Add support for placeholders in quantity inputs
2020-02-04 14:05:39 -03:00
Claudio Sanches f021a6559f
Merge pull request #25562 from woocommerce/fix/25560
Removed WC Admin from the Setup Wizard if it's already active.
2020-02-04 14:03:55 -03:00
Peter Fabian e5e5d5997e Better name for the new function. 2020-02-04 17:53:28 +01:00
Peter Fabian 0bd2730963
Merge pull request #25253 from rohanvakharia/master
Fixed the datatype for min_price & max_price size
2020-02-04 17:44:37 +01:00
Claudio Sanches 6f37df1961
Merge pull request #25502 from woocommerce/fix/25488
[4.0] Remove wc-admin install nudge.
2020-02-04 13:19:57 -03:00
Claudio Sanches 3fa9c79d94 Remove old notice file 2020-02-04 13:17:36 -03:00
Claudio Sanches 94d1b742ad
Merge pull request #25545 from woocommerce/prep/after-3.9
Bumped versions for the upcoming release.
2020-02-04 13:05:27 -03:00
Claudio Sanches ab147f7a71
Merge pull request #25532 from woocommerce/update/wccom-helper-api-authentication
Add query params as fallback for passing authentication data to WC Helper API
2020-02-04 13:04:11 -03:00
Rohan V e2cb1dea73
Fix codestyle 2020-02-04 19:44:05 +05:30
Rohan Vakharia 4be33acd66
Merge branch 'master' into master 2020-02-04 19:23:22 +05:30
Peter Fabian 52e335ae5c
Merge pull request #25428 from woocommerce/update/product-lookuo-table-tax-columns
Add product lookup table tax columns
2020-02-04 14:20:50 +01:00
Peter Fabian 4a506ebcf7
Merge pull request #25530 from woocommerce/fix/country-region-label
Fix/country region label
2020-02-04 13:54:22 +01:00
Peter Fabian e971d14265 Updated the privacy-related strings as well. 2020-02-04 13:25:47 +01:00
Peter Fabian 57917c8fa2
Merge pull request #25404 from woocommerce/update/action-scheduler-external
move action scheduler to external via composer
2020-02-04 11:39:48 +01:00
vedanshujain ee274be95a Modified "Country" to "country / Region" for more inclusiveness 2020-02-04 13:46:13 +05:30
Peter Fabian 7a24aaecd5 Updated versions to 4.0. 2020-02-03 23:36:52 +01:00
Peter Fabian d588218eb6 PHPCS 2020-02-03 23:18:12 +01:00
Peter Fabian 12fe0e6815 Corrected tax amount displayed in the summary. 2020-02-03 23:09:59 +01:00
Peter Fabian f9c9498e7c Replaced deprecated call with a substitute function. 2020-02-03 23:09:19 +01:00
Christopher Allford bf02776a3b Corrected inconsistent uses of the Constants library 2020-02-03 13:15:12 -08:00
Christopher Allford c5e1fc6c45 Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants 2020-02-03 11:50:16 -08:00
Denis Dvali e496d6ea3f Adding doc comments to comply with coding standard. 2020-02-03 22:14:00 +03:00
Peter Fabian 04c4732e13 Unified the check for presence of WC Admin. 2020-02-03 18:04:18 +01:00
Peter Fabian aa8e8992cc Merge branch 'master' into fix/25560
# Conflicts:
#	includes/admin/class-wc-admin-setup-wizard.php
2020-02-03 17:59:24 +01:00
Peter Fabian 670dbbc5e7 Removed WC Admin from the OBW if it's already active.
Also, removed info about plugin installation if the plugin is active.
2020-02-03 17:41:50 +01:00
Peter Fabian 152a5cd52c
Merge pull request #25527 from woocommerce/fix/25526
Use enable onboarding path instead of manually setting onboarding option
2020-02-03 17:18:02 +01:00
Rohan V 0d9462d110
Fix for existing column 2020-02-03 19:50:37 +05:30
Denis Dvali 15ad616a2f Pass request uri argument for more explicit function call. 2020-02-03 15:47:04 +03:00
Denis Dvali b6be0b31f8 Add arguments declaration for install REST API endpoint. 2020-02-03 14:23:03 +03:00
Christopher Allford 1d1413b4ee Replaced direct access of many constants with the Constants library 2020-01-31 22:18:47 -08:00
Peter Fabian 132ced6039 Fixed test for 4.0. 2020-01-31 21:05:50 +01:00
Peter Fabian e83934edff Bumped versions for the upcoming release. 2020-01-31 17:53:02 +01:00
Ron Rennick e242d84877 fix merge conflicts 2020-01-31 10:11:01 -04:00
Peter Fabian 331b953c0c Harmonize aria-label with other labels. 2020-01-31 08:59:52 +01:00
Peter Fabian e87cea8688
Merge pull request #25501 from woocommerce/fix/25487
[4.0] Increase Onboarding A/B Test to 50%
2020-01-31 08:54:14 +01:00
Joshua Flowers 236bae9b6a Check for wc_admin_url function in onboarding redirect 2020-01-31 10:56:44 +08:00
Joshua Flowers 28af08a1cb Move exit 2020-01-31 10:52:49 +08:00
Christopher Allford 8a046ab0cd Cleaned up the template path replacement and fixed the wc_cache_set positioning 2020-01-30 16:24:07 -08:00
Claudio Sanches 0bec8443f4
Merge pull request #25137 from woocommerce/fix/24936
Only update the customer IP address when order gets created from admin
2020-01-30 19:41:08 -03:00
Christopher Allford e86efca828 Merge branch 'master' into refactor/23783 2020-01-30 13:29:21 -08:00
Claudio Sanches 0883b5b977
Merge pull request #24907 from princeahmed/master
remove unnecessary codes
2020-01-30 15:32:30 -03:00
Claudio Sanches 9974083903
Merge pull request #25474 from woocommerce/remove-hash-equals
Remove hash_equals() polyfill as it is no longer needed
2020-01-30 14:54:36 -03:00
Peter Fabian 248e69960b Merge branch 'master' into update/order-detail-summary 2020-01-30 17:41:32 +01:00
Peter Fabian ec8d477b09 PHPCS fix. 2020-01-30 17:09:33 +01:00
Denis Dvali 9e25706467 Add query params as fallback for passing authentication data to WC Helper API. 2020-01-30 15:17:50 +03:00
Peter Fabian 7c07b192af Changed country to country/region label. 2020-01-30 12:42:41 +01:00
林博仁(Buo-ren Lin) 4887159146 Use "Country / Region" for country selection drop-down label to (try to) avoid political complaints (#24425)
Due to the One China Policy, vendors will be blamed on if a certain region is labeled as either "Country" or "Province of Country", avoid this problem in advance by generalizing the label of selecting them.

Refer-to: #24237 add Hong Kong, Taiwan as Chinese states; fix name of Macao by nobodxbodon · Pull Request #24425 · woocommerce/woocommerce <https://github.com/woocommerce/woocommerce/pull/24425>
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2020-01-30 12:26:35 +01:00
Denis Dvali cdb611e924 Small refactor to improve readablity. 2020-01-30 12:56:52 +03:00
Denis Dvali ed918f5105 Adding fallback in case "Authorization" or "X-Woo-Signature" headers are not present.
Check if access token and request signature set in query arguments if the headers are missing.
2020-01-30 12:53:57 +03:00
Peter Fabian 00f8e787be Bumped version string. 2020-01-30 10:16:19 +01:00
Joshua Flowers 74917a1548 Use enable onboarding path instead of manually setting onboarding option 2020-01-30 12:52:05 +08:00
Claudio Sanches 2cb564d0ab Updated since tag to 3.10.0 2020-01-29 18:35:07 -03:00
Christopher Allford ceeba16014
Merge pull request #24919 from TimBHowe/fix/20921
Fix/20921 - Throw error for invalid character in flat rate cost.
2020-01-29 13:32:49 -08:00
Christopher Allford 53e0087318 Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants 2020-01-29 12:31:29 -08:00
Claudio Sanches a52287c824 Remove old Emogrifier library 2020-01-29 15:57:45 -03:00
Claudio Sanches 382e17817a Use Emogrifier composer package 2020-01-29 15:57:22 -03:00
Claudio Sanches 2ec4492074 Simplify MaxMind integration title 2020-01-29 13:43:27 -03:00
Sergey Ratushnuy c2f857a4d8 Fix duplicated custom fields after import products from .csv file 2020-01-29 13:09:27 +02:00
Christopher Allford 6ad091a9b7 Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages 2020-01-28 21:21:29 -08:00
Rodrigo Primo 3d97718094
Merge pull request #25485 from woocommerce/update/25336
Allow filter file path on WC_Download_Handler::download_product()
2020-01-28 20:41:21 -03:00
Christopher Allford bb09a8a4ea Prevented the COD payment gateway's "enable_for_methods" option loading outside of correct use-cases
Note: The tests fail in this commit because of the defines. Ran individually there are no problems, but I'm going to make another PR to merge in a package to make testing constants possible, and then come back to fix this after it gets merged.
2020-01-28 14:33:53 -08:00
Claudio Sanches cacf5c4f91
Merge pull request #25472 from woocommerce/fix/25463
Apply rounding only if value is integer to display "-" when needed.
2020-01-28 18:09:22 -03:00
Rodrigo Primo 151984a9cd
Merge pull request #25489 from woocommerce/fix/25338
Check if wp_delete_user() exists before use
2020-01-28 17:34:30 -03:00
Rodrigo Primo 6d96acbcce
Merge pull request #25496 from gerdneuman/patch-1
Fix wrong context help for translators
2020-01-28 17:29:28 -03:00
TimBHowe f488f46b37 remove the pattern constraint on the flatrate input in the setup wiz 2020-01-28 11:01:13 -05:00
TimBHowe e7a575222a Updated if statment to allow 0 values 2020-01-28 10:44:37 -05:00
TimBHowe d377f002aa Added pattern attribute to the flat rate cost input field to only allow US and EU currency formating 2020-01-28 10:44:37 -05:00
TimBHowe 8b71dc0abb Updated the wc_setup_shipping_save() function to sanitize the flatrate cost input 2020-01-28 10:44:36 -05:00
Tim Howe 3b5e44ccf1 Added a call to the evaluate_cost function in the sanitize_cost function to throw an exception if there is an illegal character in the input. 2020-01-28 10:44:35 -05:00
Peter Fabian 30dde8f53c The JS might still be needed as merchants can manage/change settings even for a disabled gateway. 2020-01-28 14:13:03 +01:00
Peter Fabian 217c9d2adc Fix incorrect comment. 2020-01-28 14:10:10 +01:00
Peter Fabian 8600987591 Functions are not needed when the gateway is disabled. 2020-01-28 14:07:50 +01:00
Peter Fabian dc9d4496e9 Require order object to prevent error. 2020-01-28 14:06:02 +01:00
David Levin ee2c6b8096 Change net payment to net total 2020-01-27 21:10:11 -08:00
David Levin 3c92aacfcb update shipping methods 2020-01-27 19:22:04 -08:00
Timmy Crawford 9bfc7db3fb Remove wc-admin install nudge. 2020-01-27 09:24:46 -08:00
Timmy Crawford 081afa256c Change a/b test size of new onboarding to 50 percent. 2020-01-27 09:01:27 -08:00
Claudio Sanches 6aa118c8aa Added since tag 2020-01-27 13:19:16 -03:00
Claudio Sanches 2a63091829 Fixed coding standards 2020-01-27 13:17:36 -03:00
Claudio Sanches b3ea0b17b4 Merge branch 'master' into refactor/eu-vat-brexit 2020-01-27 13:15:54 -03:00
Claudio Sanches f132dbc8e1 Fixed undefined function 2020-01-27 11:49:13 -03:00
gerdneuman 8057946904
Fix wrong context help for translators
I found this very confusing at https://translate.wordpress.org/projects/wp-plugins/woocommerce/stable/de/default/?filters%5Bterm%5D=ending+in&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=desc that the comment is wrong for translator.

Here's a fix.
2020-01-26 17:55:17 +01:00
Claudio Sanches e109258583 Check if wp_delete_user() exists before use 2020-01-24 18:49:21 -03:00
Claudio Sanches 42864cdfdb Fixed coding standards 2020-01-24 15:01:12 -03:00
Claudio Sanches 86d59257f4 Introduced woocommerce_download_product_filepath filter 2020-01-24 15:00:55 -03:00
Claudio Sanches 30e0c6ad87 Prevent empty notices to get added 2020-01-24 13:31:05 -03:00
Claudio Sanches 9d8dd197b5 Added @version flag in updated notice functions 2020-01-23 16:46:01 -03:00
Rodrigo Primo 8de3e9e839 Merge branch 'master' of github.com:woocommerce/woocommerce 2020-01-23 15:25:48 -03:00
Rodrigo Primo 2cd4ae6fd4 Fix typo 2020-01-23 15:25:12 -03:00
Rodrigo Primo b7aee86b2c Remove hash_equals() polyfill that is no longer needed
This polyfill was added back in 2015
(1f62a53e0e). WP includes the same polyfill
since version 3.9.2 and WC requires WP >= 5.0
(7d672c38a4). So we don't need to maintain our own version of this function anymore.
2020-01-23 14:36:37 -03:00
Rodrigo Primo 1078b4fe87
Merge pull request #25320 from grey-rsi/top-rated-widget-args
Add `woocommerce_top_rated_widget_args` filter for WC_Widget_Top_Rate…
2020-01-23 12:31:38 -03:00
Peter Fabian 1f9cd9eae9
Merge pull request #24066 from malviyaritesh/fix/24062
Filter meta value even if key not found
2020-01-23 14:59:39 +01:00
brakf 326c2f2320
Adjusted spacing as recommended by travis 2020-01-23 13:27:30 +01:00
vedanshujain d768fcb139 Apply rounding only if value is integer to display "-" when needed. 2020-01-23 17:36:49 +05:30
Claudio Sanches 8ee6337aea Move validation to the top 2020-01-22 12:39:19 -03:00
Claudio Sanches d9cc0910ef Trim whitespaces and strip slashes from MaxMind License Key 2020-01-22 12:38:10 -03:00
brakf 213a8c532c
Added new filter for modification of order count processing count in menu
In my add-on I added a new order status. Those orders I would like to also display via the order count "bubble".
2020-01-21 20:18:57 +01:00
Sergey Ratushnuy bd647cd9cf Small fix 2020-01-21 18:03:01 +02:00
Sergey Ratushnuy 2d1ce22e25 Changed filter name 2020-01-21 17:29:58 +02:00
Claudio Sanches 5c169bf54c Fixed default value for wc_get_customer_default_location() 2020-01-21 11:53:45 -03:00
Christopher Allford a6981fc1c0 Added a file existence check to the MaxMind country lookup method to prevent warnings 2020-01-20 21:20:32 -08:00
Kathy Daring 917795d78f Add woocommerce_quantity_input_placeholder filter 2020-01-20 10:27:45 -07:00
Rodrigo Primo 6333d11bc7
Merge pull request #25431 from woocommerce/update/maxmind-integration-docs
Updated MaxMind's license key field description
2020-01-20 13:54:38 -03:00
Claudio Sanches 66fcc31f00 Updated MaxMind's license key field description 2020-01-20 13:18:52 -03:00
Christopher Allford c8c66cabee Expanded the license key invalid error to consider the case where the key is not active yet 2020-01-20 07:57:44 -08:00
Mike Jolley 2638879bdc Add columns to schema and update routine 2020-01-20 14:21:42 +00:00
Mike Jolley 314cc8eee6 Add columns to data store 2020-01-20 14:17:42 +00:00
Mike Jolley 083c87338b Add columns to wc_update_product_lookup_tables 2020-01-20 14:17:25 +00:00
Gerhard Potgieter dc5712db84
Merge pull request #25426 from rvdsteege/unique-meta-is-vat-exempt
Add order meta `is_vat_exempt` with unique meta key.
2020-01-20 14:31:24 +02:00
Gerhard Potgieter 6bed0db518
Merge pull request #25149 from 4selin/feature/25094
Address in shipping calculator malformed for Canada #25094
2020-01-20 14:24:35 +02:00
Reüel van der Steege 97456e7d78 Add order meta `is_vat_exempt` with unique meta key. 2020-01-20 12:06:32 +01:00
Rodrigo Primo 4e58f77575
Merge pull request #25322 from woocommerce/pr-25242
Prevent fatal error in set_current_gateway with no WC session
2020-01-17 09:54:03 -03:00
Rodrigo Primo f0ccd9bd50
Merge pull request #25395 from woocommerce/fix/25394
Check for the WooCommerce Admin class before adding notice
2020-01-17 09:52:38 -03:00
Christopher Allford 82cecbc6e8 Merge branch 'master' into refactor/23783 2020-01-16 17:18:23 -08:00
Kathy Daring bcb17b62c2 Add support for placeholders in quantity inputs
(cherry picked from commit 99eb5074f3)
2020-01-16 12:47:15 -07:00
Rodrigo Primo 8489d1bd33 Merge branch 'master' into fix/25394 2020-01-16 16:35:43 -03:00
Rodrigo Primo 2668bf6025
Merge pull request #25314 from woocommerce/fix/24746
Removed the lowercase conversion of product search terms
2020-01-16 16:29:07 -03:00
Rodrigo Primo 5a7075813c
Merge pull request #25344 from woocommerce/bug/valid_order_status_filter
Add second parameter to `woocommerce_valid_order_statuses_for_payment` filter.
2020-01-16 16:01:09 -03:00
Rodrigo Primo cb85c981ac Merge branch 'master' into pr-25242 2020-01-16 15:30:58 -03:00
Rodrigo Primo 3fd6a66229
Merge pull request #25405 from woocommerce/fix/25385
Use wp_mail() default args in WC_Email
2020-01-16 15:23:30 -03:00
Claudio Sanches bccb93fa3c
Merge pull request #25378 from woocommerce/fix/25361
Add license key support to MaxMind GeoLite2 database downloads
2020-01-15 20:51:14 -03:00
Claudio Sanches eedf82da38 Fixed coding standards 2020-01-15 20:40:55 -03:00
Christopher Allford e56e5dfc50 Pushed the first woocommerce_geoip_updater execution to fifteen days in the future
This will prevent the routine from deleting the pre-update archive that we just moved in the previous update routine.
2020-01-15 10:25:51 -08:00
Christopher Allford 2b503e0409 Changed the MaxMind database update process to move the existing archive instead of deleting it 2020-01-15 10:24:13 -08:00
Claudio Sanches d9c22d60be Use wp_mail() default args in WC_Email 2020-01-15 13:33:12 -03:00
Ron Rennick fda63f4536 move action scheduler to external via composer 2020-01-15 10:31:04 -04:00
Claudio Sanches 5bafac3012 Improved maxmind_missing_license_key_notice logic 2020-01-14 23:32:55 -03:00
Christopher Allford 42269f965c Added clarification that the MaxMind license key is not strictly necessary 2020-01-14 14:09:51 -08:00
Christopher Allford 27bcba1ac7 Added a deprecation to the old Geolite library wrapper class' public methods 2020-01-14 13:44:41 -08:00
Christopher Allford c34a5b6ffe Added an update task to increase the database version 2020-01-14 13:39:47 -08:00
Christopher Allford 1ac8eebac3 Added clarity to the file path in the integration settings 2020-01-14 13:32:59 -08:00
Christopher Allford e851160927 Removed the erroneous space on the woocommerce_geoip_updater scheduled event 2020-01-14 13:20:41 -08:00
Rodrigo Primo 241c6cd590 Make context for admin notice documentation more clear 2020-01-14 17:07:12 -03:00
Claudio Sanches 92478b4739 Introduced woocommerce_maxmind_geolocation_update_database_periodically filter 2020-01-14 16:57:07 -03:00
Rodrigo Primo efb200799d Merge branch 'fix/25361' of github.com:woocommerce/woocommerce into fix/25361 2020-01-14 16:47:06 -03:00
Rodrigo Primo 23e1abe1dc Fix typo in php docblock 2020-01-14 16:45:57 -03:00
Claudio Sanches f9c31589c6 Fixed conditional code 2020-01-14 16:44:01 -03:00
Claudio Sanches 10cdbf88be Use shop base address as default customer location 2020-01-14 16:29:48 -03:00
Claudio Sanches 992e13fb08 Updated implementation of geolite2 2020-01-14 16:24:07 -03:00
Claudio Sanches 46110fa39c Introduced woocommerce_get_geolocation filter 2020-01-14 15:54:24 -03:00
Claudio Sanches 978c5b5fb9 Apply woocommerce_maxmind_geolocation_display_notices filter in notices class 2020-01-14 15:22:53 -03:00
Claudio Sanches b3b4e92fe1 Moved HTML to a single file 2020-01-14 12:20:46 -03:00
Christopher Allford 0f18570827 Added the database path to the integration page for documentation purposes 2020-01-13 21:02:22 -08:00
Christopher Allford b577b8a386 Changed the geoip update cron to run every 15 days to better comply with MaxMind's TOS 2020-01-13 17:02:41 -08:00
Claudio Sanches 1c874264d8 Removed MaxMind from System Status page 2020-01-13 21:48:23 -03:00
Christopher Allford 25dbc47da9 Added a note that the MaxMind integration will only do country lookups. 2020-01-13 14:43:00 -08:00
Christopher Allford 7a5083e47b Revert "Added a database option to allow for selecting different MaxMind databases"
This reverts commit d32c470cea.
2020-01-13 14:41:24 -08:00
Christopher Allford d32c470cea Added a database option to allow for selecting different MaxMind databases 2020-01-13 14:10:08 -08:00
Claudio Sanches f9d8b85c04 Remove notice when license key is present 2020-01-13 17:40:10 -03:00
Christopher Allford ef0eccf0ac Added upgrade step for removing the legacy MaxMind database 2020-01-13 11:18:14 -08:00
Christopher Allford 48d819ebeb Added support for non-standard upload folder paths 2020-01-13 11:00:23 -08:00
Christopher Allford 6d3a3053c5 Moved the database file into the woocommerce_uploads folder 2020-01-13 08:53:43 -08:00
Christopher Allford 4f6aec61fd Added support for a randomized MaxMind database file prefix 2020-01-13 08:16:44 -08:00
Joshua Flowers 902e1cc184 Check for the WooCommerce Admin class before adding notice 2020-01-13 17:43:27 +08:00
Joel Rowley d6771dc681 Prevent fatal error in set_current_gateway with no WC session 2020-01-13 14:18:49 +05:30
Christopher Allford f5d07c954c Adjusted the MaxMind license key notice to be clearer 2020-01-10 13:07:26 -08:00
Claudio Sanches 107720dc08 Make is_package_shippable less strict 2020-01-10 17:05:28 -03:00
Claudio Sanches 49aed6f6ca Remove alternatives for deprecated methods 2020-01-10 16:31:27 -03:00
Claudio Sanches c3abe8ac65 Added missing license key notice and triggers 2020-01-10 15:07:05 -03:00
Claudio Sanches 48547143f4 Fixed integration ID 2020-01-10 15:02:56 -03:00
Claudio Sanches 91ec28f167 Updated integration ID and included methods to display notices 2020-01-10 15:02:11 -03:00
Claudio Sanches cfeb07eaf7 Removed legacy code 2020-01-10 13:18:25 -03:00
Claudio Sanches 8aa7e62a21 Fixed fatal error in system status page 2020-01-10 12:22:42 -03:00
Claudio Sanches 2554cbf6e0 Prevent fatal error if MaxMind Reader is not installed 2020-01-10 12:16:53 -03:00
Claudio Sanches 0e119cb97a Fixed missing methods, added deprecated notices and @since 2020-01-10 11:58:53 -03:00
Christopher Allford 93e1d606ed Fixed a bug where empty database paths might break the update 2020-01-10 02:47:23 -08:00
Christopher Allford 19ded6609d Refactored the MaxMind database class to not use static methods in order to make testing the integration class easier 2020-01-10 02:09:51 -08:00
Christopher Allford 26e0b71fce Added support for mod_maxminddb's MM_COUNTRY_CODE server variable 2020-01-10 01:23:06 -08:00
Christopher Allford 0f6da046a1 Refactored the IP geolocation method 2020-01-10 00:08:24 -08:00
Christopher Allford b7521368a7 Fixed the response for the geolocation filter 2020-01-10 00:07:55 -08:00
Christopher Allford bbbfc3bfab Moved the MaxMind geolocation lookup into the integration class 2020-01-09 23:46:25 -08:00
Christopher Allford 02ee3f695e Moved the database update from the WC_Geolocation class to the MaxMind-specific integration 2020-01-09 23:22:42 -08:00
Christopher Allford 6e41f370a5 Added a documentation link to the license key setting description 2020-01-09 21:39:28 -08:00
Christopher Allford 2df3af1e63 Deprecated the WC_Geolocation::get_local_database_path method 2020-01-09 21:31:12 -08:00
Christopher Allford f91ff82806 Moved the loading of the database class into the integration 2020-01-09 21:29:47 -08:00
Christopher Allford d45a3541f4 Removed the unnecessary GeoLite2 version check 2020-01-09 20:58:42 -08:00
Christopher Allford 0d4b8f4bd3 Added sanitization to the license key in download URLs 2020-01-09 20:44:13 -08:00
Christopher Allford 6af0edfd94 Added a deprecation notice for the GEOLITE2_DB constant 2020-01-09 16:21:33 -08:00
Christopher Allford 72a84911ea Simplified the URL generation for geolocation database downloads 2020-01-09 16:18:20 -08:00
Christopher Allford 7cdd19da3f Fixed the erroneous return in WC_Geolocation::get_local_database_path 2020-01-09 16:16:34 -08:00
Christopher Allford bf057927ae Moved the loading of integration classes into the WC_Autoloader 2020-01-09 15:46:01 -08:00
Christopher Allford 98119047bf Added back the WC_Geolocation's get_local_database_path method since it was publicly used 2020-01-09 00:56:22 -08:00
Christopher Allford 3e597e6f68 Replaced the Geolocation database fetching functionality with MaxMind integration 2020-01-09 00:31:51 -08:00
Christopher Allford 000a75c23b Fixed the validation for MaxMind license keys 2020-01-08 22:56:24 -08:00
Christopher Allford 95e59fc777 Made the database service class methods static for convenience \ 2020-01-08 21:59:04 -08:00
Christopher Allford 1eb49ef8b8 Added filterable support for fetching the database path
This replaces the corresponding geolocation class functionality. We are deprecating the woocommerce_geolocation_local_database_path filter in favor of the woocommerce_maxmind_geolocation_databse_path filter. Since we want the option to turn this into a feature plugin, it's wise to make sure nothing is too generic.
2020-01-08 21:48:05 -08:00
Christopher Allford 46d7f16b19 Added support for downloading and extracting the GeoLite2 database 2020-01-08 21:09:35 -08:00
Christopher Allford 45157ff4e1 Added a default integration settings page for managing MaxMind Geolocation services 2020-01-08 21:08:25 -08:00
Christopher Allford a477f9367d Added support for creating default integrations 2020-01-08 21:05:14 -08:00
Christopher Allford 300064187b Moved the MaxMind DB Reader library into composer and pinned the latest version 2020-01-07 15:25:58 -08:00
Claudio Sanches cd137915b8 Set correct post type for product variation
And catch any WC_Data_Exception
2020-01-06 21:36:54 -03:00
Claudio Sanches 3ebda4a431 Use WC_Data_Exception in WC_Product_Variation_Data_Store_CPT 2020-01-06 21:35:23 -03:00
Claudio Sanches 85a077b939 Coupon race condition prevention 2020-01-06 19:44:24 -03:00
Jeremy Pry 19684ceb6c
Add second parameter to `woocommerce_valid_order_statuses_for_payment` filter.
Everywhere the `woocommerce_valid_order_statuses_for_payment` filter is used, a second parameter is passed: the `WC_Order` object. This parameter was missed in #25158.

Omitting this parameter can cause errors in other extensions expecing that it will be present when hooking into the filter.
2019-12-31 15:13:50 -05:00
Vedanshu Jain 842861005c
Merge pull request #25312 from woocommerce/fix/25268
Fixed number of filter args in WC_Emails
2019-12-26 16:59:17 +05:30
Sergey Ratushnuy e3ac006420 Add `woocommerce_top_rated_widget_args` filter for WC_Widget_Top_Rated_Products widget 2019-12-26 11:51:34 +02:00
Christopher Allford a7daebc6fd Fixed an exception that was thrown when a country had no states when checking for package shippability 2019-12-26 13:55:42 +05:30
Christopher Allford e800b40ad6 Made packages with incomplete destinations unshippable 2019-12-26 13:55:41 +05:30
Christopher Allford 874be93c14 Removed the lowercase conversion of product search terms
When searched in a case sensitive manner, the conversion to lowercase causes uppercase matches that would have been found to be lost. This change increases the tolerance of the OR search format while also removing this unintended side-effect.
2019-12-24 15:00:40 -08:00
Claudio Sanches eb57532740 Fixed number of filter args in WC_Emails 2019-12-24 12:09:50 -03:00
Claudio Sanches 7701d4b57c
Merge pull request #25286 from woocommerce/fix-phpcs-violations
Fix PHPCS violations automatically using PHPCBF
2019-12-23 12:22:42 -03:00
David Levin 40c76b83a2 update order to play nice with gateways, add paid by customer when order is paid in full 2019-12-22 20:14:31 -08:00
David Levin e4fcfc4d1a add net payment calculation, and re-order refund item to bottom of rows 2019-12-20 14:28:06 -08:00
David Levin 34ff4544ff trying to get net payment to work 2019-12-20 12:27:17 -08:00
David Levin b7c455c9d1 Add line for net payment post refund 2019-12-20 12:06:11 -08:00
Rodrigo Primo 7337ab60c2 Fix PEAR.Functions.FunctionCallSignature violations
This commit fixes all violations of the PEAR.Functions.FunctionCallSignature sniff automatically using phpcbf.
2019-12-20 15:25:23 -03:00
Rodrigo Primo 86c1b61f03 Fix Generic.WhiteSpace.ScopeIndent violations
This commit fixes all violations of the Generic.WhiteSpace.ScopeIndent sniff automatically using phpcbf.
2019-12-20 14:48:11 -03:00
Rodrigo Primo 2c74233be2 Fix WordPress.WhiteSpace.DisallowInlineTabs violations
This commit fixes all violations of the WordPress.WhiteSpace.DisallowInlineTabs sniff automatically using phpcbf.
2019-12-20 14:27:07 -03:00
Rodrigo Primo 487f96d844 Fix WordPress.DateTime.CurrentTimeTimestamp vilations
This commit fixes all violations of the WordPress.DateTime.CurrentTimeTimestamp sniff automatically using phpcbf.
2019-12-20 14:23:05 -03:00
Rodrigo Primo 62d6b05b58 Fix Generic.Formatting.MultipleStatementAlignment violations
This commit fixes all violations of the Generic.Formatting.MultipleStatementAlignment sniff automatically using phpcbf.
2019-12-20 14:21:08 -03:00
Rodrigo Primo 179dd7003e Fix Generic.Arrays.DisallowShortArraySyntax violations
This commit fixes all violations of the
Generic.Arrays.DisallowShortArraySyntax sniff automatically using
phpcbf.
2019-12-20 14:18:04 -03:00
Rodrigo Primo 94373f78ea Fix WordPress.Arrays.MultipleStatementAlignment errors automatically using phpcbf 2019-12-20 13:51:26 -03:00
Rowayda.Khayri f6574e3f91 fix a typo 2019-12-20 18:45:34 +02:00
David Levin b5bdb3dae0 change the order of shipping and fees in order line items 2019-12-19 12:11:50 -08:00
David Levin 25603cc190 display actual item price before discount in order item cost 2019-12-19 08:14:03 -08:00
David Levin 7ecae84d99 Rename coupons to discounts in order summary 2019-12-19 08:00:21 -08:00
David Levin 8c62fc72a6 update order summary totals 2019-12-19 07:53:35 -08:00
David Levin d25178b793 rename fee method again 2019-12-18 22:19:34 -08:00
Matt Harvey 11ee9525b3
Merge branch 'update/order-details-3' into update/order-details-3 2019-12-18 22:09:59 -08:00
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