Ewout Fernhout
c51f748855
check return type on log file fopen
2021-03-16 12:05:06 +01:00
Peter Fabian
f33c80186f
Updated the wording of the tooltip.
2021-03-16 08:51:29 +01:00
Claudio Sanches
3f50ab3278
Handles errors in fault installations of PHP Intl
2021-03-15 17:48:49 -03:00
Mahmoud Saeed
0e13eb1320
Fix taxes endpoint not returning multiple postcodes/cities
2021-03-15 22:16:36 +02:00
Peter Fabian
bb5c56c148
Set correct placeholder value for variation--first the parent, then the store-wide default.
2021-03-15 18:41:55 +01:00
Peter Fabian
e6cdd74a79
Add parent's default for low stock if notthing is set on individual variation.
...
I.e. use variation low stock amount value, if not available, use parent product's value, if not available, use the store-wide default.
2021-03-15 18:31:31 +01:00
Roy Ho
57569c5168
Merge pull request #29232 from Dartui/trunk
...
Pass checkout submit result to triggered handler
2021-03-15 09:46:31 -07:00
Peter Fabian
2ae5ec59ba
Improve the description of the low stock threshold tooltip.
2021-03-15 12:42:10 +01:00
Peter Fabian
8bfa97d633
Use null rather than empty string to signify unset value.
2021-03-15 12:37:39 +01:00
Claudio Sanches
32baae989d
Fixed just one PHPCS error to trigger messages in PR
2021-03-13 21:08:20 -03:00
Krzysztof Grabania
aebdf869d9
Add order_id to checkout result response
2021-03-13 10:52:08 +01:00
roykho
efdf76634b
Fix docblock defaults to false closes #29367
2021-03-12 11:59:18 -08:00
Roy Ho
ee90c02f63
Merge pull request #29218 from wywarren/fix/27553
...
Fix for issue #27553 - REST API v3 not supporting settings type `order` and `class` for settings type on shipping zone methods
2021-03-11 09:22:34 -08:00
Peter Fabian
aac4ecc943
Added comment documenting the history of the function.
2021-03-11 16:58:51 +01:00
Peter Fabian
1f8f8580d1
Better wording of the tooltip--being more specific about what the amount relates to.
2021-03-11 16:26:41 +01:00
Peter Fabian
b48a389264
Add support for low stock amount to REST API v3. Ref #27371 .
2021-03-11 16:21:43 +01:00
Néstor Soriano
b446417be6
Merge pull request #29281 from woocommerce/fix/issue-25375-cache
...
Fix/issue 25375 cache
2021-03-11 08:30:41 +01:00
roykho
1df38c2f6b
Refactor and moved filter to _wc_recount_terms function
2021-03-10 12:33:46 -08:00
Peter Fabian
f7755f123e
Enable bulk updates of variations with low stock amount.
2021-03-10 18:15:31 +01:00
Peter Fabian
e2e589b049
Don't take the low stock amount info from the parent of the variation, but the variation itself.
...
Potentially bw incompatible.
2021-03-10 17:57:56 +01:00
Peter Fabian
685be2a791
Connect the UI to the db to allow updates of the values.
2021-03-10 17:24:52 +01:00
Peter Fabian
b92d1d1391
Harmonize the id and name with simple product.
2021-03-10 15:38:49 +01:00
Daniel Rey López
1fc1b604b9
IE 11 compatibility for the site tracking enable function
2021-03-10 11:52:01 +00:00
Peter Fabian
a6b45d08bf
Added low stock threshold input to the Admin UI.
2021-03-10 11:47:22 +01:00
Claudio Sanches
f6b4614225
Return 0 if order isn't available
2021-03-09 16:57:08 -03:00
roykho
cf634987b4
Prepare default branch
2021-03-09 06:11:41 -08:00
Jacob Arriola
5b02c440d7
New filter: stock check message
...
Adds a new filter to allow customization of the stock check message when a product is out of stock, but accounting for what's already in the cart. It mimics the existing woocommerce_cart_product_not_enough_stock_message filter.
2021-03-08 10:38:23 -08:00
Saggre
24167a5eed
Fix typos in docs
2021-03-05 11:19:58 +02:00
roykho
71d8f760b0
Apply recount term per product with filter to product data store
2021-03-04 13:54:09 -08:00
roykho
cb0b92750b
Extract recount terms logic into own function closes #25375
2021-03-04 09:06:03 -08:00
Roy Ho
20c8cbee0c
Merge pull request #29008 from inc2734/patch-1
...
The order of the full name returned by WC_Countries::get_formatted_address()
2021-03-04 07:31:45 -08:00
Claudio Sanches
d8735d7225
Merge pull request #29151 from woocommerce/hide_coupon_on_incomplete_checkout
...
Prevent displaying coupon form on checkout requiring login
2021-03-03 17:05:53 -03:00
Roy Ho
9ba49a0e4b
Merge pull request #29117 from tyler-paulson/docs
...
Fixes to documentation of WC_Shipping_Rate
2021-03-03 11:54:02 -08:00
Moon
00a272fa85
Merge pull request #29174 from woocommerce/add/28568-dashboard-widget-finish-setup
...
Add/28568 dashboard widget - setup
2021-03-02 16:46:51 -08:00
Moon
d013d7f765
Move init logic to should_display_widget
2021-03-02 16:06:10 -08:00
Néstor Soriano
1181c4be4a
Merge pull request #28535 from woocommerce/add/disable_wc_admin_tracking
...
Tracker: Add tracking of woocommerce_admin_disabled usage.
2021-03-02 09:35:38 +01:00
Claudio Sanches
6df220c2cc
Merge pull request #29121 from hsingyuc/fix/28868
...
Remove extra content wrapper
2021-03-01 14:09:13 -03:00
Claudio Sanches
df191037c6
Merge pull request #29241 from woocommerce/update/28936
...
Merging 28936
2021-02-26 20:55:45 -03:00
Claudio Sanches
d133ee9d08
Fixed docblock
2021-02-26 20:54:40 -03:00
Claudio Sanches
3ed9e4b259
Merge pull request #28936 from Mindsize/wc-26857-add-action-remove-order-item
...
WC Issue: 26857 - Add action remove order item
2021-02-26 20:53:23 -03:00
Claudio Sanches
bcdfe3cb68
Merge pull request #29182 from woocommerce/fix/26973-get-customer-location
...
Avoid/minimize wc-ajax requests when `geolocation_ajax` is enabled | #26973
2021-02-26 20:33:29 -03:00
roykho
503a218e85
Revert "Flush term cache when saving product and settings closes #25375 "
...
This reverts commit 8b0915c4e0
.
2021-02-26 12:42:23 -08:00
Roy Ho
f6d77c206d
Merge pull request #29228 from woocommerce/fix/28238
...
Update default GIT branch
2021-02-26 11:59:09 -08:00
Vedanshu Jain
422002a2a8
Merge pull request #29200 from woocommerce/fix/upgrade-notices-major-version
...
Remove compatibility checks for major version
2021-02-26 14:55:30 +05:30
Warren Wang
d6b2e91c9d
Minor adjustments to fit coding standards
...
Added periods to comments and proper spacing and capitalization to comments.
2021-02-26 13:45:20 +08:00
Claudio Sanches
d6e3cf6de9
Update default GIT branch
2021-02-25 20:51:14 -03:00
Timmy Crawford
c7a19b538a
Updates per feedback.
2021-02-25 15:19:27 -08:00
Timmy Crawford
47a3d1bfb3
Tracker: Add tracking of woocommerce_admin_disabled usage.
2021-02-25 15:19:27 -08:00
Claudio Sanches
23710744c0
Merge pull request #29208 from woocommerce/fix/add-to-cart-variation-id
...
Validate variation ID while adding products to the cart
2021-02-25 19:13:32 -03:00
Peter Fabian
47bfca58b0
Merge pull request #29052 from woocommerce/add/install_wcpay_addon_tracks
...
Add tracks event for WooCommerce Payments install via wc-addons page
2021-02-25 15:04:36 +01:00
louwie17
893fe6cc24
Merge pull request #29149 from woocommerce/update/28569_status_widget_net_sales_link
...
Woocommerce dashboard status widget net sales link and logic
2021-02-25 09:09:29 -04:00
Warren Wang
8605ada7cf
Fix for issue #27553
...
REST API v3 shipping method zone endpoint input payload not allowing settings type to be of type `class` or `order`. Added missing item schema.
2021-02-25 18:01:49 +08:00
Peter Fabian
8566a79da0
Pull out the constant to a globally accessible place so that it can be reused.
2021-02-24 14:29:45 +01:00
Claudio Sanches
e2478b7c76
Use product already loaded
2021-02-23 21:10:34 -03:00
Claudio Sanches
76e1ba4bf0
Validate variation ID while adding products to the cart
2021-02-23 16:27:57 -03:00
Peter Fabian
313ea8541c
Remove compatibility checks for major version.
...
In addition to #28840 , there are other places where we make use of compatibility check with major versions. I've discovered 2:
- update through /wp-admin/update-core.php
- force disabling auto-updates if there are any extensions that haven't declared their compatibility with WC 5.0
This change updates both places to be in line with the changes done in #28840 .
2021-02-23 13:27:06 +01:00
Peter Fabian
35d4ee4073
Merge pull request #28699 from woocommerce/fix/absolute-download-paths
...
Prevent local relative downloadable products to be treated as "absolute"
2021-02-23 11:50:34 +01:00
Moon
5c99233905
Minor fixes
...
* Removed extra double quotation from the image tag
* Fixed typo in the init() method
* Moved init() method body into the constructor -- a separate method is not necessary
2021-02-22 20:33:02 -08:00
Rasmy Nguyen
7a4b54ad38
Add section to tracks event props
...
This adds the Extenstions tab to the event props so we can determine
which tab merchants are installing wcpay from.
2021-02-23 12:25:40 +09:00
Rasmy Nguyen
cbb1a540bd
Change hook name and add id param to track method
...
This changes the addon install hook to match the other hooks in the
extensions tracking class. This also adds an addon_id param to the
callback associated with this hook so we can extend this to other
plugins in the future.
2021-02-23 11:34:28 +09:00
Rasmy Nguyen
4ad1465fe3
Add tracks event for WCPay install via addons page
...
This adds a tracks event for WooCommerce Payments installs via the
wc-addons page.
2021-02-23 11:34:28 +09:00
Moon
781c5e24d7
Status dashboard widget should be rendered only if onboarding tasks have been completed or hidden
2021-02-22 15:29:47 -08:00
Néstor Soriano
68dd901b65
Merge pull request #29051 from nielslange/update/#28724
2021-02-22 16:02:58 +01:00
Fernando
f613bbaeba
Merge pull request #29105 from woocommerce/fix/disable-merchant-email-notes
...
Merchant email notes now are turned off by default
2021-02-22 09:48:00 -03:00
Christopher Allford
5e771d8e4f
Started Converting Woo Page Dropdowns
...
Since the page selection dropdowns in the Advanced settings area are
populated on load we can end up taking a very long time to load on
shops that have lots of pages. This commit adds page search support
to wooSelect and starts converting the pages to use it.
2021-02-19 15:28:07 -08:00
barryhughes
761f155fc3
Avoid/minimize wc-ajax requests when `geolocation_ajax` is enabled | #26973
2021-02-19 14:50:59 -08:00
Claudio Sanches
b6fe772d54
Merge pull request #29109 from woocommerce/update/add-tracking-to-status-widget
...
Add tracking to WooCommerce Status widget
2021-02-18 20:03:50 -03:00
Lourens Schep
966aca59ad
Removed external class and moved logic to private functions
2021-02-18 16:05:00 -04:00
Barry Hughes
9f8145cd15
Merge pull request #28078 from woocommerce/fix/27949
...
Delay the registration of data exporters and erasers | #27949
2021-02-18 11:31:08 -08:00
Lourens Schep
4663d31f66
Fix some formatting changes
2021-02-18 12:01:52 -04:00
Lourens Schep
136e82ee01
Added a v2 report class that makes use of the wc-analytics if wc admin is not disabled
2021-02-18 12:01:52 -04:00
Peter Fabian
a9da927049
Merge pull request #27277 from filipecorrea/26686-invalid-refund
...
Fix invalid refund amount error when no decimals
2021-02-18 14:59:08 +01:00
Vedanshu Jain
03ba8838b1
Merge pull request #29099 from woocommerce/fix/27376
...
Make the refunds creation REST API behave more as documented
2021-02-18 14:25:38 +05:30
Néstor Soriano
9c2b8ac9fd
Remove extra space at end of a couple of lines
2021-02-18 09:38:17 +01:00
Moon
bc3219e22e
Add tests for the finish setup dashboard widget and clean up code
2021-02-17 16:07:50 -08:00
Moon
6284cbee3a
Add a new dashboard widget to promote store setup
2021-02-17 12:10:13 -08:00
Niels Lange
e9d425ba65
Update includes/wc-template-functions.php
...
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2021-02-17 21:09:18 +07:00
louwie17
2471f816e4
Merge pull request #29093 from woocommerce/update/28570_widget_stock_links
...
Update the woo widget stock links to new analytics page
2021-02-17 09:35:50 -04:00
James Allan
264bccf505
Prevent displaying coupon form on checkout requiring login
2021-02-17 11:42:30 +10:00
Claudio Sanches
6fae8ca40b
Merge pull request #29146 from woocommerce/fix/27290-rest-api-order-updates
...
Throw an error if a coupon item ID (readonly) is specified during an order update | #27290
2021-02-16 17:04:49 -03:00
Mário Valney
323fc32959
Added esc_attr to selected like before
2021-02-16 15:01:07 -03:00
barryhughes
24e0191dc7
Throw a 400 error if a coupon item ID (readonly) is posted/put during an order update | #27290
2021-02-16 09:59:03 -08:00
Mário Valney
9a8cbfbd73
Support to optgroups on select from Settings API
...
Add the optgroups support to single select from Settings API.
The multiselect input already has this feature.
2021-02-16 14:49:25 -03:00
jonathansadowski
f6054ab059
Merge pull request #29115 from woocommerce/fix/27434
...
Fix wrong taxonomy caching in term and product attributes controllers
2021-02-16 10:50:28 -06:00
Claudio Sanches
e4b2b72e95
Merge pull request #29136 from woocommerce/fix/25510-billing-address-2
...
Only add '(optional)' to the billing_address_2 placeholder | #25510
2021-02-16 13:32:50 -03:00
artpi
cca06857e9
Fix tests
2021-02-16 16:19:55 +01:00
artpi
dc7410b6b3
Extra protections
2021-02-16 15:51:49 +01:00
artpi
774d7e38cd
Better url parsing
2021-02-16 15:09:23 +01:00
artpi
0b076fb9c1
Fix to treat absolute local paths as relative ones
2021-02-16 10:40:14 +01:00
Moon
3707764736
Add tracking to WooCommerce Status widget -- net-sales, order-processing, orders-on-hold, low-stock, and out-of-stock
2021-02-15 16:41:14 -08:00
jonathansadowski
ea7c6700bc
Merge pull request #29133 from woocommerce/fix/notice
...
Check if index value is set before accessing
2021-02-15 16:55:37 -06:00
barryhughes
8f74a25998
Remove esc_attr() (not an attribute, plus escaping is applied later in request) | #25510
2021-02-15 14:15:48 -08:00
barryhughes
1bd9a7e939
Only add '(optional)' to the billing_address_2 placeholder | #25510
2021-02-15 13:49:28 -08:00
Claudio Sanches
74bb66dc6d
Merge pull request #27671 from mahmoudsaeed/master
...
Make WC_Tax::get_tax_rate_classes() public
2021-02-15 14:31:25 -03:00
roykho
4fa0c81d11
Check if index value is set before accessing
2021-02-15 06:54:22 -08:00
hsing
f333b373f6
Remove extra content wrapper
2021-02-12 17:50:48 -05:00
Claudio Sanches
7a71258257
Merge pull request #29094 from woocommerce/try/admin-menu-svg-icons
...
Use SVG and Dashicons instead of custom font for admin bar icons
2021-02-12 18:06:37 -03:00
Tyler Paulson
812976c65c
Correct function summaries in the WC_Shipping_Rate class
2021-02-12 12:12:27 -05:00
Matt Sherman
6044f3e958
Update Products and Reports icons to use Dashicons instead of custom font
2021-02-12 10:37:23 -05:00
Nestor Soriano
4e195d5f3f
Fix code sniffer errors.
2021-02-12 15:29:32 +01:00
Nestor Soriano
00d6dc40f7
Fix wrong caching of taxonomy in terms and attributes controllers.
...
The WC_REST_Terms_Controller and WC_REST_Product_Attributes_V1_Controller
classes have a get_taxonomy method that gets the name of the taxonomy
to process from a taxonomy id passed in the request, but once the
taxonomy name has been obtained it's cached and sbsequently reused.
The problem is that these controller instances are reused if more than
one request is processed programmatically, and thus the taxonomy that
was cached once is always used even if the new request specifies a
different taxonomy id.
The fix consists of using a dictionary of taxonomy id - taxonomy name
instead of one single taxonomy for caching.
In the case of WC_REST_Terms_Controller there's a protected $taxonomy
property that needs to be kept for compatibility, it's now set to
the last taxonomy name that has been introduced in the dictionary.
2021-02-12 15:12:58 +01:00
Takashi Kitajima
307a257781
Add translator comment #29008
2021-02-12 11:55:26 +09:00
Fernando Marichal
15424c99d6
Merchant email notes now are turned off by default
...
This commit turns off the merchant email notes by default
2021-02-11 14:15:17 -03:00
Matt Sherman
9f00fbfde1
Move admin menu manipulation from admin_head to admin_menu ( #29088 )
2021-02-11 11:48:36 -05:00
Roy Ho
2641bb7b6f
Merge pull request #28627 from woocommerce/update/tracks/global-props
...
Tracks: Add woo version as global track prop.
2021-02-11 05:48:25 -08:00
Néstor Soriano
9105910234
Merge pull request #28950 from woocommerce/exporter_product_type_filter
...
Add filter to allow third-parties to filter exportable product types
2021-02-11 14:32:17 +01:00
Vedanshu Jain
5a707f3e74
Merge pull request #28849 from woocommerce/fix/27521-2
...
Verify country code on checkout
2021-02-11 18:59:04 +05:30
Roy Ho
78851e6945
Merge pull request #28980 from leewillis77/add/add-generation-date-to-status-report
...
Add time of generation to the system status report
2021-02-11 05:09:03 -08:00
Nestor Soriano
fae00e2bdf
Make the refunds creation REST API behave more as documented
...
- Allow the list of line items to be a non-associative array
where each item is identified by an "id" field
- Same for taxes inside line items, specify amount to refund in
a "refund_total" key as in the case of line items
- Allow "quantity" keys as synonyms of "qty"
Also calculate "amount" automatically if missing and when all the
line items and taxes have a valid "refund_total" key.
2021-02-11 09:51:13 +01:00
Roy Ho
986b4fe0b9
Merge pull request #29089 from woocommerce/fix/issue-29087
...
Type cast floats to prevent string addition errors in PHP 8 closes #2…
2021-02-10 19:16:53 -08:00
Claudio Sanches
69c5d428a2
Merge pull request #29095 from woocommerce/fix/conditional-wc-admin
...
Check if WC Admin is active before showing message
2021-02-10 19:45:34 -03:00
Roy Ho
84c1e64a1d
Merge pull request #29036 from mehul0810/issue/28992
...
Removed extra closing brace ) from the Zone regions help text.
2021-02-10 13:52:33 -08:00
roykho
315c4de5c3
Check if WC Admin is active before showing message
2021-02-10 13:21:35 -08:00
Lourens Schep
5c6331593a
Remove unnecessary wp-admin from urls
2021-02-10 16:42:04 -04:00
Matt Sherman
cca38a577e
Use SVG instead of CSS/font for WooCommerce icon
2021-02-10 15:12:47 -05:00
Lourens Schep
2db09d410b
Change widget stock links to new analytics page when wc_admin is not disabled
2021-02-10 15:04:04 -04:00
roykho
93e528f8ea
Type cast floats to prevent string addition errors in PHP 8 closes #29087
2021-02-10 10:06:25 -08:00
Nestor Soriano
e82ab487b6
validate_posted_data: check if we actually need to validate the shipping country.
2021-02-10 10:05:24 +01:00
Nestor Soriano
87d04b8d64
Remove no longer relevant exception doc comment
2021-02-09 10:07:43 +01:00
Nestor Soriano
26f71af0a9
Fix in the logic of 'validate_checkout' regarding non-existing countries.
2021-02-08 16:20:33 +01:00
Nestor Soriano
9e2776bdfa
Use 'isset' instead of 'array_key_exists' for 'country_exists'.
2021-02-08 15:58:02 +01:00
Nestor Soriano
07f3d9dee6
Add unit tests for the WC_Checkout class.
2021-02-08 15:49:38 +01:00
Nestor Soriano
70202c35bd
Move country validation to 'validate_posted_data'.
...
Also, when shipping to billing address don't show the error twice,
and show the "we don't ship to X" error only if the country actually
exists (if it doesn't then we'll have shown the "X is not a valid
country code" already).
2021-02-08 15:37:50 +01:00
Niels Lange
63cac6fb82
👌 IMPROVE: Add body class woocommerce-shop to shop page
2021-02-08 14:55:07 +07:00
Max WP Punk
585d96f237
Fix #29048
2021-02-08 03:28:43 +02:00
jonathansadowski
10f92ca091
Merge pull request #29043 from woocommerce/fix/25261
...
Fix price filtering when there are variations.
2021-02-05 12:19:42 -06:00
Nestor Soriano
3976abffd6
Fix price filtering when there are variations.
...
The price filtering query wasn't working properly when there are
variations with different prices: if at least one variation was
outside of the price range but other were inside, the product wasn't
being listed.
2021-02-05 16:34:42 +01:00
Mehul Gohil
beb5916947
remove unnecessary closing brace in help text
2021-02-05 01:02:20 +05:30
Roy Ho
e57c07eeb5
Merge pull request #28983 from woocommerce/fix/issue-28649
...
Update tax rate label when saving order closes #28649
2021-02-04 05:40:23 -08:00
jonathansadowski
e5a3ac48aa
Merge pull request #28933 from Mindsize/wc-24581-holding-stock-minutes
...
Wc 24581 holding stock minutes
2021-02-03 16:05:18 -06:00
Takashi Kitajima
ed042b5a83
The order of the full name returned by WC_Countries::get_formatted_address()
...
`WC_Abstract_Order::get_formatted_billing_full_name()` and
`WC_Abstract_Order::get_formatted_shipping_full_name()` displays the names in the correct order according to the language, but `WC_Countries::get_formatted_address()` does not.
2021-02-03 14:21:43 +09:00
James Allan
53e6a7317b
Add filter to allow third-parties to filter exportable product types
2021-02-02 14:41:03 +10:00
Claudio Sanches
0bd9c11b44
Fix conditional
2021-02-01 19:30:43 -03:00
Claudio Sanches
31af5530e0
Proper implementation of wp_robots_no_robots
2021-02-01 19:15:10 -03:00
mfs-mindsize
5be2c80b89
adjusted new filter's default to option value + added absint
2021-02-01 14:16:30 -05:00
mfs-mindsize
23ecd6b3da
adjusted new filter's default to option value + added absint
2021-02-01 14:16:10 -05:00
mfs-mindsize
1398219b95
adjusted new filter's default to option value + added absint
2021-02-01 14:15:41 -05:00
mfs-mindsize
8d600826a4
updated docblock's since to 5.1.0 (from 4.9.03)
2021-02-01 13:43:50 -05:00
Roy Ho
700fc9c594
Merge pull request #28735 from leewillis77/bugfix/customizer-visibility-fix
...
Fix visibility of checkout field settings in customizer
2021-01-29 07:47:16 -08:00
Lee Willis
6b0a88f6ef
Add time of generation to the system status report
2021-01-29 12:52:27 +00:00
Vedanshu Jain
f44d160256
Merge pull request #28880 from woocommerce/fix/issue-28805
...
Add in optional semicolon closes #28805
2021-01-29 17:21:15 +05:30
Néstor Soriano
a5d96eefd1
Merge pull request #28974 from woocommerce/fix/issue-25375
...
Flush term cache when saving product and settings closes #25375
2021-01-29 12:17:52 +01:00
Nestor Soriano
2c957d2531
Merge branch 'master' into fix/25900-take-2
2021-01-29 10:00:51 +01:00
roykho
b2eb2d8724
Update tax rate label when saving order closes #28649
2021-01-28 14:42:40 -08:00
Claudio Sanches
6701ce9c9d
Merge pull request #26983 from woocommerce/fix/25082
...
Use tax location from order while computing tax in discount.
2021-01-28 16:59:59 -03:00
roykho
8b0915c4e0
Flush term cache when saving product and settings closes #25375
2021-01-28 08:26:24 -08:00
Peter Fabian
afbc0ab42d
Merge pull request #28893 from woocommerce/tracker_return_string_values
...
Tracker return string values for order related data
2021-01-28 13:17:04 +01:00
mfs-mindsize
c1c2a8d4ad
added docblock for new hook (per @claudiosanchesr)
2021-01-27 13:48:05 -05:00
Menaka S
778c4e2907
Typecast instead of using strval()
2021-01-27 20:39:41 +05:30
Menaka S
203e5ff2a8
Convert all values collected to string
2021-01-27 18:39:52 +05:30
Claudio Sanches
41d26ea283
Use wp_robots_no_robots() when available
...
Adds support for WP 5.7 wp_robots_no_robots().
Note that wp_no_robots() is deprecated on WP 5.7.
2021-01-26 20:00:02 -03:00
Roy Ho
f9a02d1029
Merge pull request #28834 from woocommerce/fix/comment-typos
...
Fix typos in comments
2021-01-26 08:23:54 -08:00
Roy Ho
ff06542a87
Merge pull request #28905 from mehrshaddarzi/patch-1
...
change attibutes to attributes
2021-01-26 08:17:23 -08:00
Roy Ho
5dd53439e0
Merge pull request #28927 from sc0ttkclark/patch-1
...
Fix fatal error problems by no longer adding false to the list of orders
2021-01-26 08:07:37 -08:00
Claudio Sanches
ee28da5d30
Prepare default branch for 5.1
2021-01-25 16:38:22 -03:00
Scott Kingsley Clark
ceb3a0d753
Fix fatal error problems by no longer adding false to the list of orders
...
By adding this prevention, it also stops fatal errors (calling method on non-object) from happening down the line when working with the orders list that is always assumed to be a proper order object.
Example error this prevents:
```
Fatal error: Uncaught Error: Call to a member function get_items() on bool in /wp-content/plugins/woocommerce/includes/class-wc-order.php on line 1902
```
2021-01-25 10:11:14 -06:00
Mehrshad Darzi
e67003b568
change attibutes to attributes
2021-01-23 15:39:01 +03:30
Claudio Sanches
5d70d1919d
Remove duplicated float
2021-01-22 15:43:21 -03:00
Claudio Sanches
1412d2ac96
Pass original price in filters to improve compatibility
2021-01-22 14:57:43 -03:00
Roy Ho
93c6ba02b9
Merge pull request #28900 from woocommerce/fix/28888
...
Fixed "Unsupported operand types" error when using empty strings
2021-01-22 08:15:47 -08:00
Albert Juhé Lluveras
d896ed13e8
Remove unnecessary dots
2021-01-22 17:13:49 +01:00
Albert Juhé Lluveras
23db1a0e1f
Fix typos in comments
2021-01-22 17:13:49 +01:00
Claudio Sanches
11ae40f66c
Fixed "Unsupported operand types" error when using empty strings
...
Prevents wc_price() to throw PHP 8 warnings in case of an empty string
2021-01-22 12:58:45 -03:00
Nestor Soriano
ef9a11976c
WC_Countries::country_exists no longer throws an exception.
2021-01-22 10:57:25 +01:00
Menaka S
3a53c31aea
Do not return default values for first/last order times
2021-01-22 10:31:22 +05:30
roykho
e86dc6a9ee
Remove html_entity_decode
2021-01-21 12:17:22 -08:00
roykho
d550cce434
Addressed feedback by adding whitelisted nonce actions
2021-01-21 12:08:20 -08:00
roykho
0bdf9a6341
Add in optional semicolon closes #28805
2021-01-21 06:27:44 -08:00
roykho
21f872e766
Fix merge conflict
2021-01-20 07:10:47 -08:00
roykho
52a2ce0300
Move nonce prepartion into core utilizing filter hook from WC Admin
2021-01-20 07:06:23 -08:00
Claudio Sanches
eca9ae7e4c
Updated docblock
2021-01-19 18:07:52 -03:00
Claudio Sanches
de81f2d686
Remove filter after email is sent
2021-01-19 17:57:48 -03:00
Claudio Sanches
aea6e02a2a
Fixed method with signature changed and introduced new filter instead
2021-01-19 17:51:31 -03:00
Peter Fabian
0d7e5d1596
Merge pull request #28584 from woocommerce/add_orders_count_by_gateway
...
Track order counts by payment method
2021-01-19 11:45:02 +01:00
Peter Fabian
31a3b6a7ba
Fixed the deprecation version
2021-01-19 11:10:58 +01:00
Nestor Soriano
aae44ac1cd
Fix code sniffer errors
2021-01-19 10:56:08 +01:00
Nestor Soriano
053a45e0b2
Validate checkout countries in the backend
2021-01-19 10:28:56 +01:00
Claudio Sanches
e6251955f2
Merge pull request #28840 from woocommerce/update/remove-untrusted-plugin-notice
...
Deactivate untested plugin's notices
2021-01-18 19:56:56 -03:00
Claudio Sanches
ea54d5ad5f
Merge pull request #28679 from woocommerce/fix/woocommerce-gutenberg-products-block-issues-3565
...
Show correct WooCommerce pages status if they are using blocks vs shortcode.
2021-01-18 19:26:34 -03:00
Claudio Sanches
8f0237e390
Update untested extensions modal notice
2021-01-18 19:23:59 -03:00
Claudio Sanches
13462932ae
Deactivate untrusted plugin's banner
2021-01-18 18:29:02 -03:00
Claudio Sanches
e9abfa1669
Fixed docblock of new hooks of 5.0
2021-01-18 13:44:15 -03:00
Roy Ho
4c548951f4
Merge pull request #28521 from woocommerce/fix/26475
...
Create additional download permissions on product save if needed
2021-01-18 06:51:57 -08:00
Roy Ho
56e67b1ef8
Merge pull request #28814 from woocommerce/fix/migration/27688
...
Add migration to fix incorrect product review count.
2021-01-18 06:48:46 -08:00
vedanshujain
5885e9a29e
Revert "pass email object to header and footer templates"
...
This reverts commit 8821bf41c5
.
2021-01-18 16:51:31 +05:30
Nestor Soriano
544df16588
Set exception message as translatable
2021-01-18 09:18:38 +01:00
vedanshujain
9f9475a18b
Addressed PR feedback.
...
1: Use placeholder to be able to use wpdb->prepare for IN query.
Update version number.
2021-01-18 10:29:42 +05:30
Claudio Sanches
29ccfd961b
Revert "Use %1$s instead of %s on regen description"
2021-01-15 20:27:03 -03:00
Claudio Sanches
b462b3c8ee
Merge pull request #28401 from bordoni/patch-2
...
Use %1$s instead of %s on regen description
2021-01-15 20:21:03 -03:00
Claudio Sanches
5ca7c51714
Merge pull request #28712 from woocommerce/add/config_merchant_email_notifications
...
Added merchant email note switch
2021-01-15 13:32:02 -03:00
Claudio Sanches
e698ed72fd
Merge pull request #28801 from liquidweb/refactor/shipping-zone-read
...
Refactor the WC_Shipping_Zone_Data_Store::read() method
2021-01-15 12:58:36 -03:00
Peter Fabian
02a2bbad71
Merge pull request #28799 from woocommerce/fix/issue-27789
...
Add notice to deprecate old reports closes #27789
2021-01-14 19:05:44 +01:00
jonathansadowski
e8552094c2
Merge pull request #28809 from woocommerce/fix/issue-27791
...
Prevent duplicate new order email from being sent when changing order…
2021-01-14 09:36:30 -06:00
roykho
5b4e3a2e2e
Add margin
2021-01-14 05:25:26 -08:00
vedanshujain
2e4f2ef478
Add migration function for fixing existing product review counts.
2021-01-14 18:35:14 +05:30
vedanshujain
23618b06ed
Add utility function for getting review counts in bulk for convinience.
...
Also refactors get_review_count_for_product to use the new method so that we only would have to maintain one method.
2021-01-14 18:27:41 +05:30
Néstor Soriano
b36a06ca08
Merge pull request #27844 from woocommerce/php8/use-custom-phpunit-7
...
[PHP 8] Use a custom version of PHPUnit 7 for PHP 8 compatibility
2021-01-14 11:46:01 +01:00
Nestor Soriano
8b0bd248d6
Attach hook for adjust_download_permissions from within init_hooks
...
The DownloadPermissionsAdjuster class hooks to adjust_download_permissions
from within its init method. However this method is executed only
if the class is resolved, otherwise the hooks doesn't get attached
and then the scheduled action is not serviced.
To solve this, the class is resolved from WooCommerce::init_hooks.
This requires a change in DownloadPermissionsAdjuster::init
to use wc_get_container()->get( LegacyProxy::class )->get_instance_of
instead of WC()->get_instance_of, since WC() can't be used from
WooCommerce::construct (which invokes init_hooks).
2021-01-14 11:40:11 +01:00
Nestor Soriano
c9ea5922e2
Add a comment to wc_ascii_uasort_comparison explaining why setlocale is needed.
2021-01-14 11:16:42 +01:00
budzanowski
f9cbc0ccac
Remove filters that we don't need yet.
2021-01-14 10:24:39 +01:00
roykho
218c799811
Prevent duplicate new order email from being sent when changing order status closes #27791
2021-01-13 14:13:57 -08:00
Roy Ho
0d2f478eab
Merge pull request #28690 from kevinruscoe/fix/28652
...
Ensure the orders status is reverted correctly when restoring it.
2021-01-13 13:54:26 -08:00
Kevin Ruscoe
a78c1ec99e
wp_untrash_post_status should be static as pointed out by roykho
2021-01-13 21:22:30 +00:00
Claudio Sanches
1f321f4a79
Merge pull request #28719 from raicem/update/featured-products-endpoint
...
Add Auth token for search/featured extensions requests
2021-01-13 18:13:25 -03:00
raicem
eb3ba820da
Use "wp_safe_remote_get" for sending search requests
2021-01-13 23:53:53 +03:00
Claudio Sanches
889e83e64c
Merge pull request #28698 from woocommerce/fix/28697
...
Add transient and action for proxying WC plugin activation hook
2021-01-13 16:49:51 -03:00
roykho
8e7a59d959
Change location of the notice so it shows up in all reports
2021-01-13 07:00:37 -08:00
Ilyas Foo
0e5596d1fc
Transient and action passes plugin filename
2021-01-13 09:52:17 +08:00
Steve Grunwell
8d3803452d
Refactor the WC_Shipping_Zone_Data_Store::read() method
...
This commit re-works the `WC_Shipping_Zone_Data_Store::read()` method in the following ways:
1. Remove a confusing conditional (`if ( 0 !== $zone->get_id() || '0' !== $zone->get_id() ) { ... }`)
2. Return early if we're dealing with Zone 0, eliminating additional conditional steps
3. Add documentation for the "woocommerce_shipping_zone_loaded" action hook
2021-01-12 12:53:22 -05:00
roykho
6041c10ea3
Add notice to deprecate old reports closes #27789
2021-01-12 07:37:00 -08:00
Nestor Soriano
10eb9f832e
Remove one of the duplicate handlers for 'adjust_download_permissions'
2021-01-12 10:15:53 +01:00
Roy Ho
d8b0a8558e
Merge pull request #28586 from idofri/phpdoc
...
Corrected data-types in phpdoc @param
2021-01-11 06:52:11 -08:00
Menaka S
950bfcdf39
Deprecate public function and remove private functions
2021-01-11 18:38:17 +05:30
Ido F
4be88bea4b
corrected token-id data-type
2021-01-10 16:40:24 +02:00
Menaka S
415e1e7bbf
Use site's posts_per_page size
2021-01-10 15:21:06 +05:30
Menaka S
003f4a0acb
Paginate while getting orders to calculate tracker data
2021-01-10 15:17:21 +05:30
Kevin Ruscoe
91ea67d94c
Clean array to make the list a little easier to understand
2021-01-09 15:11:25 +00:00
Kevin Ruscoe
0f7de7e7bf
Add 'product_variation' to the list of restored post types
2021-01-09 15:08:51 +00:00
Kevin Ruscoe
dd934afc2e
Add product to the list of post types that should revert their status upon being restored.
2021-01-09 14:49:29 +00:00
Roy Ho
9ebf70bf8d
Merge pull request #28646 from tivnet/patch-7
...
abstract_wc_order:add_product() - removed `throws`
2021-01-08 10:24:37 -08:00
Roy Ho
d4849c598c
Merge pull request #28692 from woocommerce/fix/28582
...
Add protective check to make sure WC()->session is initialized before loading the data store.
2021-01-08 07:55:35 -08:00
Menaka S
baace44f19
Remove the functio to get orders count by payment method
2021-01-08 19:45:46 +05:30
raicem
f0166fcc56
Fix indentation errors as per WordPress code style guides
2021-01-07 15:14:38 +03:00
vedanshujain
f8bcf6271d
Revert order and product controllers to use WP Post queries directly.
...
This commit revert some of the changes added in #27735 because wc_get_products and wc_get_orders is not fully compitable with API controller queries. Since we are close to release 4.9, its better to revert and fix them properly then rush a fix. This undones some the performance improvements we acheived in 27735, in favor of more stability, hopefully we will be able to restore this soon.
2021-01-07 16:47:54 +05:30
Rodrigo Primo
007f3ec8aa
Merge pull request #28706 from paulochang/patch-1
...
Remove post code from Guatemala
2021-01-06 17:58:23 -03:00
Ron Rennick
6d402c96c8
Merge pull request #28017 from woocommerce/fix/25643
...
Fix E2E variable product test
2021-01-06 14:39:19 -04:00
Lee Willis
a6334370a8
Fix visibility of checkout field settings in customizer
2021-01-06 16:01:37 +00:00
budzanowski
1cf09eb063
Simplify.
2021-01-06 15:30:13 +01:00
budzanowski
d5babd800a
Review refactor.
2021-01-06 15:28:51 +01:00
Bartosz Budzanowski
ca3cd5fd7e
Update includes/blocks/class-wc-blocks-utils.php
...
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2021-01-06 15:25:15 +01:00
vedanshujain
27b22d3aaa
Move the logic to set stock_status from V2 to V3.
2021-01-06 17:55:56 +05:30
budzanowski
0b4eb9aa36
Ups.
2021-01-06 11:35:27 +01:00
budzanowski
29837c42ff
Refactor.
2021-01-06 11:33:28 +01:00
vedanshujain
2ae6c5b543
Also fetch dependencies for fields which are computed from other fields.
2021-01-06 15:09:50 +05:30
vedanshujain
0d43aecebd
Also fetch in_stock when stock_status requested in V2.
...
When called from V3, controller calls V2s get_product_data method, where stock_status was did not existed and was renamed. In V3 controller, we compute it based on V2 in_stock field.
2021-01-06 14:14:59 +05:30
budzanowski
325f72afe1
Merge branch 'master' into fix/woocommerce-gutenberg-products-block-issues-3565
2021-01-06 09:01:17 +01:00
roykho
fac6d3a246
Remove do_update_woocommerce query arg to prevent actions taken on it
2021-01-05 14:16:46 -08:00
Roy Ho
c6f6d04c2e
Merge pull request #28558 from tyrann0us/patch-2
...
Invert “if” statement to reduce nesting
2021-01-05 12:02:01 -08:00
jonathansadowski
1e267980e8
Merge pull request #28723 from woocommerce/feature/issue-27208
...
Feature/issue 27208
2021-01-05 14:00:55 -06:00
roykho
b25f01d2f3
Add unit tests
2021-01-05 08:14:39 -08:00
Nestor Soriano
1d0b6b7cd9
Fix wc_ascii_uasort_comparison for PHP 8
...
In PHP 8 "iconv( 'UTF-8', 'ASCII//TRANSLIT')" doesn't work as expected:
instead of returning a proper substitute for non-ASCII characters
it returns "?". Temporarily changing the locale to C.UTF-8
fixes the issue.
2021-01-05 15:54:49 +01:00
raicem
7b67977a31
Reduce "wc_addons_featured" transient cache duration
...
The featured extension list was static but now it's fetched from
WooCommerce.com and may change more frequently. Reducing the
cache duration to allow users to see changes much more quickly.
2021-01-05 17:45:34 +03:00
raicem
c70eee2a0a
Send auth token when sending search and featured extension requests
2021-01-05 17:40:58 +03:00
Ron Rennick
eca159ecab
phpcs fixes, on sale dates should be displayed in local time
2021-01-05 13:19:49 +01:00
Ron Rennick
0d2a5ac5e9
Fixes needed for variable product E2E test
...
- Jest/Puppeteer sometimes will not find an element on page load when that element is outside the initial viewport
- There were duplicate .variation_tab classes which confused Jest/Puppeteer
- Add function for opening and verifying new product page
- Update test sequence for changes in flow in markup and Jest/Puppeteer
2021-01-05 13:19:49 +01:00
Vedanshu Jain
7d4cf1b8bf
Merge pull request #28677 from woocommerce/fix/request-request-arg-api
...
Add protection around `func_get_arg` method for backward compatibility.
2021-01-05 17:45:31 +05:30
vedanshujain
3a7e3fda34
Use `!empty` for consistency with other usages.
2021-01-05 16:37:39 +05:30
raicem
c628c15ac6
Update featured products endpoint
...
WooCommerce.com will provide this list of products.
2021-01-05 12:43:17 +03:00
vedanshujain
80f5d35311
Apply coding standards w.r.t PR #28677
2021-01-05 13:47:16 +05:30
roykho
7b091485a2
Create product tags if they don't exists closes #27208
2021-01-04 14:59:28 -08:00
Ron Rennick
82fb9f106d
Merge pull request #27137 from woocommerce/issue_26959
...
Modify the logic for deleting variations
2021-01-04 13:06:24 -04:00
Paulo Chang
41f853fbc1
Remove post code from Guatemala
...
Guatemala has no real working postal service. We therefore don't use postal codes. Address and department is enough.
2020-12-31 22:41:51 +01:00
Ilyas Foo
0e590d1bdb
Add transient and action for proxying WC plugin activation hook
2020-12-31 14:30:29 +08:00
Fernando Marichal
543f1e1307
Fixed copy
2020-12-30 12:13:39 -03:00
vedanshujain
f945f9a015
Add protective check to make sure WC()->session is initialized before loading the data store.
2020-12-30 19:20:51 +05:30
Fernando Marichal
f2648d76cf
Turned merchant email notifications on by default
...
This commit adds the code to turn email notifications on by default
2020-12-30 10:42:53 -03:00
Kevin Ruscoe
64c4805109
Ensure the orders status is reverted correctly when restoring it.
2020-12-30 13:25:40 +00:00
Fernando Marichal
5a21a4f71c
Added merchant email note configuration
...
This commit adds a merchant email note configuration option
2020-12-29 14:31:46 -03:00
budzanowski
32c1c9c963
Print missing block info in the status page.
2020-12-28 16:27:31 +01:00
budzanowski
c81df313b2
Add block information for woocommerce pages report.
2020-12-28 16:19:51 +01:00
vedanshujain
818e24d5c5
Add protection around `func_get_arg` method for backward compatibility.
...
We are using func_get_arg method to receive argument in a backward compatible way since we cannot modify function signature to add more params even with default params. Earlier I was hoping to use DI to create another child class with modified signature and load it depending upon where we are executing from, however since we had to revert DI, we add this workaround to unblock #27735 .
2020-12-28 14:10:22 +05:30
Menaka S
88dd6473d4
Some fixes for coding standards
2020-12-23 17:05:17 +05:30
Menaka S
092c36b71b
Get order total values
2020-12-23 17:05:10 +05:30
Menaka S
e9804ea717
Add order counts by gateway
2020-12-23 17:05:03 +05:30
Menaka S
1a6835019a
Add order counts by status
2020-12-23 17:04:54 +05:30
Menaka S
0aee0a0848
Use wc_get_orders() to add order dates for tracker
2020-12-23 17:04:32 +05:30
Menaka S
8d83b47c27
Check if post_type is shop_order
2020-12-23 17:04:14 +05:30
Menaka S
36d6ff4c52
Add a function to get order counts by payment method
2020-12-23 17:04:02 +05:30
Vedanshu Jain
f46af1160f
Merge pull request #28537 from garyc40/fix/update-callback-named-parameter
...
[PHP 8] Fix Unknown named parameter error when running database update routines
2020-12-23 14:28:54 +05:30
Claudio Sanches
ba37b7332a
Merge pull request #28650 from woocommerce/prep/master
...
Prep master for 5.0.0
2020-12-22 20:30:26 -03:00
Ron Rennick
33eb98c80c
Merge pull request #28612 from woocommerce/fix/26092
...
Price calculation: fix documented return types
2020-12-22 14:43:47 -04:00
vedanshujain
44705386a4
Prep master for 5.0.0.
2020-12-22 19:01:56 +05:30
Vedanshu Jain
800c6a61b7
Merge pull request #28620 from woocommerce/fix/28505
...
Stock management regression fixes
2020-12-21 22:36:53 +05:30
Gregory Karpinsky
6cb569047a
abstract_wc_order:add_product() - removed `throws`
...
Exception 'WC_Data_Exception' is never thrown in the function
2020-12-21 11:26:50 -05:00
Claudio Sanches
8cc953950e
Merge pull request #28624 from woocommerce/fix/27688
...
Also include empty string and comment types for backward compat.
2020-12-21 12:11:09 -03:00
vedanshujain
b4b03f3b46
Merge branch 'master' into fix/28505
2020-12-21 15:42:04 +05:30
vedanshujain
f248276a89
Use correct syntax for translators comments.
2020-12-21 15:33:10 +05:30
vedanshujain
39c200bf2d
Merge branch 'master' into fix/27673
2020-12-21 15:29:55 +05:30
Omkar Bhagat
00831c707c
Revert functon's @since version num back to 3.0
2020-12-21 09:48:34 +05:30
mfs-mindsize
8c0b94619c
removed - is declared but not used.
2020-12-18 13:05:31 -05:00
mfs-mindsize
6496e00428
method: remove_order_item(), added: do_action( 'woocommerce_ajax_order_items_removed', , , , );
2020-12-18 13:04:05 -05:00
Timmy Crawford
dc6b44fc6f
Add woo version as global track prop.
2020-12-18 09:37:10 -08:00
vedanshujain
1bc2ea8754
Also include empty string and comment types for backward compat.
2020-12-18 18:08:33 +05:30
Omkar Bhagat
34563c22bb
Inline doc for the new filter
...
Updated @since to 4.9 and added an inline doc for the new filter
'woocommerce_delete_variations_on_product_type_change'
2020-12-18 17:04:27 +05:30
vedanshujain
934b10fb8c
Use wc_get_orders for consistency intead of custom query
2020-12-18 14:40:20 +05:30
vedanshujain
089994c618
Dont fetch optional fields unless asked to improve performance
2020-12-18 14:40:20 +05:30
vedanshujain
04f948951a
Fetch product attrs only when needed
2020-12-18 14:40:20 +05:30
vedanshujain
13bee82ed9
Cover missed cases
2020-12-18 14:40:20 +05:30
vedanshujain
54dd5550e5
Pass request in backward compatible way
2020-12-18 14:40:20 +05:30
vedanshujain
e62169a4b5
Cache return fields for perfromance
2020-12-18 14:40:20 +05:30
vedanshujain
2e65b8cec4
Fetch expensive fields only when required for performance
2020-12-18 14:40:20 +05:30
mfs-mindsize
361d0acc46
also added filter: woocommerce_cancel_unpaid_orders_interval_minutes to wc_format_option_hold_stock_minutes() which is used while the admin settings form is saved
2020-12-17 12:55:07 -05:00
vedanshujain
892b7caa37
Stock managment fixes:
...
1. Use $already_reduced_stock instead of also considering $refunded_item_quantity while deleting orders. This will bring back part of #27504 again, but for now this seems to be the best solution for countering #28605 . It needs discussion whether deleting a line item completely should also undo any refund related changes on it or not.
2. Also mark `stock_reduced` flag on order if any of the line item has any `_reduced_stock` flag. This will allow for stock restoring logic to work properly when order is cancelled.
3. Only adjust line item stock when order is in `processing`, `completed` or `on-hold` status state, because we need to reduce stocks on these status only. Stock adjustments in refunds or when changing statuses is already taken care of by their specific hooks.
2020-12-17 22:28:21 +05:30
mfs-mindsize
cd725af6e2
also added filter: woocommerce_cancel_unpaid_orders_interval_minutes to wc install process
2020-12-17 11:44:53 -05:00
mfs-mindsize
9dc87f629a
added filter: woocommerce_cancel_unpaid_orders_interval_minutes (default 5 mins) that separates interval for checking cancelsfrom option: woocommerce_hold_stock_minutes
2020-12-17 11:41:50 -05:00
Leif Singer
bc3e6a8532
Price calculation: fix documented return types
...
Fixes #26092 .
2020-12-17 15:35:07 +01:00
Claudio Sanches
6c132c1e25
Merge pull request #28543 from woocommerce/fix/27521
...
Fix issue where customer could checkout although mandatory field "Country" was not given
2020-12-16 17:01:10 -03:00
Claudio Sanches
d523f5aad2
Merge pull request #28538 from woocommerce/fix/remove-gb-from-eu-vat
...
Remove GB and IM from EU VAT countries
2020-12-16 16:59:02 -03:00
vedanshujain
6fa77b3d8e
Fixup for myaccount page logic, it should be > 0 ot be considered as set.
2020-12-16 19:48:09 +05:30
vedanshujain
6b550ffb23
Better error messages for when coupon are held in other transactions.
...
Earlier, we were just showing an "Usage limit reached message", however in some cases, specially when user is logged in, we can also ask them to go to MyAccount page and cancel order if they'd like to (to free up the coupon). This will hopefully make for a better user experience.
2020-12-16 15:19:40 +05:30
vedanshujain
507e7a27b2
Better error messages when coupons are stuck in a pending order.
...
We hold coupons when payment is failed if the setting "hold stock for checkout" is enabled for some minutes. This is to allow the customers to try again if they want, and to give time to complete payment for gateways where it could take some time.
Unfortunately this cause for some bad UX user retries by starting the order from scratch again, and then if they apply the coupon, usage limit gets hit because the earlier coupon is still held and is counted towards the usage. This commit improves the error message in these cases when usage is applied per customer and is hit, by stating to go to my account to complete/cancel payment (in case of logged in user) or to wait for some time in case of guest users.
2020-12-15 16:01:14 +05:30
Ido F
703d474e52
corrected data-types in phpdoc @param
2020-12-14 13:31:52 +02:00
Vedanshu Jain
4339aee35f
Merge pull request #27352 from juliquiron/fix/slow-wc-customer-get-operations
...
Added cache and filter for wc-customer get operations.
2020-12-14 09:43:04 +05:30
Philipp Bammes
19d978ce1c
Invert “if” statement to reduce nesting
2020-12-11 08:23:22 +01:00
Nestor Soriano
f0b834d1ec
Move the download permissions adjustment process to a scheduled action.
...
Also, move all the new code from the 'WC_Product_Data_Store_CPT' class
to a new separate 'DownloadPermissionsAdjuster' class.
2020-12-10 15:40:38 +01:00
Rodrigo Primo
93dae948b2
Add placeholder text to country select field in the checkout page
...
This commit adds the 'Select a country / region...' text as a placeholder text displayed in the country select field indicating to the user that they need to select a country. This is only needed when the option ¨Default customer location" is set to "No location by default".
2020-12-10 11:12:39 -03:00
Rodrigo Primo
5554f9c6f9
Revert "Sets Select a country option element value attribute to default."
...
This reverts commit 9faee1d909
as it causes issues during checkout (see #27521 ).
2020-12-10 10:09:02 -03:00
Peter Fabian
60e8082398
Isle of Man will probably also stop being part of EU VAT area.
2020-12-10 09:59:26 +01:00
Peter Fabian
135294dfdd
Removed GB from EU VAT zone.
2020-12-10 09:46:24 +01:00
Gary Cao
e6a7f0f40a
Fix Unknown named parameter error on PHP 8
2020-12-10 15:21:34 +09:00
Néstor Soriano
15315d2468
Merge pull request #28499 from woocommerce/fix/26494
...
Remove deprecated PayPal Standard "Page style" setting
2020-12-09 12:32:37 +01:00
Nestor Soriano
8944792a69
Create additional download permissions on product save if needed
...
When a simple product with downloads gets converted into a variable
product all the existing download permissions for past orders become
invalid. This commit adds an extra verification procedure to the
product save code:
- Get all the existing download permissions for the product and all
the children (variations)
- For each download permission for the parent product, if there's a
variation that offers the same file for download (same file URL)
AND an equivalent download permission doesn't exist (equivalent means
same file URL, same order id and same user id), then create it.
Additionally, a new WC_Customer_Download_Data_Store::create_from_data
method is added.
2020-12-09 09:29:31 +01:00
Roy Ho
7f4ad80cbd
Merge pull request #28204 from jlavoie13/add/pass-email-object-to-template-parts
...
Pass email object to header and footer templates
2020-12-08 15:02:37 -08:00
Roy Ho
593cd0ea5d
Merge pull request #27675 from woocommerce/fix/update-premium-support-link-href
...
Update href of premium support link
2020-12-08 13:46:44 -08:00
Roy Ho
018dbc251d
Merge pull request #28386 from abhishek-pokhriyal/remove/bc-check-determine-locale
...
Remove function_exists check for determine_locale
2020-12-08 13:15:22 -08:00
jlavoie13
27f9f1304c
phpcs fixes
2020-12-08 14:32:28 -05:00
jlavoie13
8821bf41c5
pass email object to header and footer templates
2020-12-08 14:32:28 -05:00
Claudio Sanches
1c65696535
Merge pull request #27850 from matt-h/webhook-schedule-when-processing
...
Make next webhook not return a date when the webhook is already running.
2020-12-07 19:20:02 -03:00
Claudio Sanches
09d98a6fe0
Merge pull request #28468 from woocommerce/fix/28417
...
Use single quotes inside MySQL query to avoid issues with ANSI_QUOTES
2020-12-07 19:08:38 -03:00
Roy Ho
aa89afcf95
Merge pull request #28332 from woocommerce/update/replace-jquery-click
...
Replace usages of depracted jQuery.fn.click() event shorthand
2020-12-07 06:03:56 -08:00
Rodrigo Primo
23af5478ec
Fix JS coding standards
2020-12-05 11:11:56 -03:00
roykho
4a2943d452
Defer nonce creation until displayed by WC Admin closes #27424
2020-12-04 13:17:24 -08:00
Roy Ho
231ab353dd
Merge pull request #28469 from tyrann0us/patch-1
...
Simplify `reload_checkout` expression
2020-12-04 12:41:18 -08:00
Rodrigo Primo
f854daea67
Remove deprecated PayPal Standard parameter
...
This commit removes the setting "Page style" from WooCommerce -> Settings -> Payments -> PayPal Standard. This setting was used to define the value of the parameter "page_style" passed to the PayPal Standard API, but PayPal deprecated this parameter and ignores it. According to PayPal in https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-htmlvariables/?mark=page_style#deprecated-variables : "Deprecated variables are ignored when you pass them to PayPal". In the same link, you can see that "page_style" is included in the list of deprecated parameters.
2020-12-04 14:39:03 -03:00
Christopher Allford
57e0de341e
Merge branch 'master' into fix/27711
2020-12-03 12:11:29 -08:00
Christopher Allford
6780e3e07d
Added appropriate postcode formatting for Puerto Rico
2020-12-03 11:57:30 -08:00
Rodrigo Primo
39b0d83b4d
Merge pull request #28358 from szepeviktor/patch-1
...
Fix types in WC_Payment_Gateway
2020-12-03 15:51:50 -03:00
Rodrigo Primo
076d0b7373
Merge pull request #28415 from zzap/patch-3
...
Make City and Postcode mandatory fields for Serbia
2020-12-02 11:42:24 -03:00
Néstor Soriano
af3077bca9
Merge pull request #28467 from woocommerce/fix/28428
...
Update `lostpassword_post` action and add missing parameter
2020-12-02 15:31:21 +01:00
Néstor Soriano
43f735d0f8
Merge pull request #27558 from PlexusLLC/add_before_set_stock_action
2020-12-02 15:21:05 +01:00
Philipp Bammes
c84f4600e3
Simplify `reload_checkout` expression
2020-12-02 15:01:07 +01:00
Rodrigo Primo
de6d55eef9
Use single quotes inside MySQL query to avoid issues with ANSI_QUOTES
...
This commit replaces double quotes with single quotes inside a MySQL query to avoid a syntax error when the SQL mode ANSI_QUOTES is enabled in MySQL. When this mode is enabled, MySQL treats double quotes as identifiers (like the backtick character) instead of as string delimiters. Before this change, sites running with this mode enabled wouldn't be able to add products to orders created manually in the admin as the modified query would fail (other places that also use product search including variations would fail as well). The commit that introduced this issue shipped in WC 4.5.0 (see https://github.com/woocommerce/woocommerce/pull/27171 ).
2020-12-02 10:37:46 -03:00
Rodrigo Primo
ba538147c1
Update `lostpassword_post` action and add missing parameter
...
`lostpassword_post` is a WP action that is duplicated in WooCommerce to replicate the functionality to retrieve user password in the 'My Account' pages. WP recently added the variable `$user_data` as a second parameter to this action (a6cecef42f
). This commit simply copies this change to the version of the action that we maintain. Similar to what was done in 1a99235dc8
when a first parameter as added to the action in WP and we had to do the same in WC core.
2020-12-02 09:52:58 -03:00
pjv
b4fdf17215
Update includes/data-stores/class-wc-product-data-store-cpt.php
...
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2020-12-02 06:49:56 -06:00
Christopher Allford
d59b47903f
Fixed Puerto Rico address localization
...
* Renamed "City" to "Municipality"
* Made "State" not required and hidden
* Added ZIP code validation
2020-12-01 16:24:58 -08:00
Roy Ho
acd78d43f6
Merge pull request #27451 from haydenw/fix-27339
...
Fix #27339
2020-12-01 13:28:54 -08:00
Roy Ho
f698fbdeee
Merge pull request #28403 from bordoni/issue/28291
...
Prevent non-numeric values from throwing a Warning on PHP 7.4+
2020-12-01 10:43:13 -08:00
Gustavo Bordoni
d6d68ed9cd
Remove white space.
2020-12-01 13:16:53 -05:00
Roy Ho
78e8fb00d2
Merge pull request #28440 from mathiasdb/patch-1
...
Update wc-formatting-functions.php
2020-11-30 07:37:44 -08:00
Roy Ho
89efae43a1
Merge pull request #28416 from woocommerce/fix/issue-27154
...
Fix/issue 27154
2020-11-30 06:14:15 -08:00
Roy Ho
d795ecb6b9
Merge pull request #28351 from OlegApanovich/fix/27923
...
Fix toggle chevron issue in admin edit product data attribute section
2020-11-27 05:42:34 -08:00
OlegApanovich
26dae12279
Fix toggle chevron issue in admin edit product data attribute section #27923
...
After chevron clicking on attribute section complete edit product data section toggled insted cliackig area.
Key point issue is missing 'postbox' class of wordpress postbox.js library for a attribute block that we try to toggle.
2020-11-27 11:50:44 +02:00
Milana Cap
5fae30bea0
Make City and Postcode mandatory fields for Serbia
...
As these fields were mandatory for Serbia from the beginning, making them optional by default is causing shop owners additional effort to set them back to mandatory. This PR is making them mandatory by default.
Fixes #28366
2020-11-25 22:36:44 +01:00
roykho
3981377809
Strip the tags from product description on all other select2 fields that performs searches
2020-11-25 13:32:50 -08:00
roykho
9f12b34237
Fix unwanted html tags showing when searching products in select2 closes #27154
2020-11-25 13:15:56 -08:00
Gustavo Bordoni
2909be0777
Prevent non-numeric values from throwing a Warning on PHP 7.4+
...
Resolves #28291
2020-11-25 00:10:04 -05:00
Gustavo Bordoni
05c7f336bc
Use %1$s instead of %s on regen description
...
Resolve #28297
2020-11-24 23:56:36 -05:00
Christopher Allford
686872a237
Merge pull request #28134 from woocommerce/add/2021-compat
...
Add support for Twenty Twenty-One theme
2020-11-24 16:26:34 -08:00
Claudio Sanches
918750fffb
Validate variation ID while adding products to the cart
2020-11-24 19:32:58 -03:00
abhishek-pokhriyal
9abbd42d69
Remove function_exists check for determine_locale
2020-11-24 15:37:13 +05:30