Commit Graph

21568 Commits

Author SHA1 Message Date
Timur Gogolev 229c7981db Allow safe HTML tags for My Subscriptions' notice 2021-10-01 13:43:20 +03:00
Claudio Sanches a4b1a9b7e7
Merge pull request #30796 from woocommerce/prep/trunk-580-590
Prep trunk for 5.9 cycle.
2021-09-29 14:54:29 -03:00
roykho bce05c811a
Revert "Tweak download filepaths"
This reverts commit 90e187b899.
2021-09-23 18:51:41 -07:00
roykho d54cd10bb4
Revert "Enable redirect method to also handle absolute filepaths."
This reverts commit 36022c29eb.
2021-09-23 18:51:10 -07:00
barryhughes 7216225d1a Prep trunk for 5.9 cycle. 2021-09-23 13:36:38 -07:00
vedanshujain 36022c29eb Enable redirect method to also handle absolute filepaths.
Earlier redirect was only able to handle absolute paths.
2021-09-22 18:15:31 +05:30
Vedanshu Jain 3ef6ad977a
Merge pull request #30739 from woocommerce/fix/add-item
Fix undefined variable notice when adding a product that doesn't exis…
2021-09-22 15:16:44 +05:30
Vedanshu Jain 5cdf979961
Merge pull request #30692 from woocommerce/fix/30231
Use proper location for taxes when adding products via admin
2021-09-22 15:14:13 +05:30
roykho 90e187b899
Tweak download filepaths 2021-09-21 12:36:52 -07:00
Nestor Soriano d254f2703c
Add a unit test for WC_Abstract_Order->add_product
The test verifies that if an order is passed in arguments, that order
is passed in turn to wc_get_price_excluding_tax.
2021-09-21 16:40:36 +02:00
roykho 09fff8831a
Fix undefined variable notice when adding a product that doesn't exists in order 2021-09-20 07:06:41 -07:00
Néstor Soriano 69203f2924
Merge pull request #30650 from woocommerce/fix/29890
Add individual item remove notices for shipping and fees closes #29890
2021-09-15 17:05:52 +02:00
Nestor Soriano 39b24c1ffb
Add the 'woocommerce_quantity_input_min/step_admin' filters.
These filters allow changing the minimum value and change step for the
quantity editors in the order details page of the admin area,
in the context of order line edition and refund line edition.
2021-09-13 12:38:15 +02:00
Nestor Soriano 98a2391747
Add unit test for 'wc_get_price_excluding_tax'.
The test verifies that when an order is passed as an argument,
the order customer is passed to 'WC_Tax::get_rates'.
2021-09-13 10:16:18 +02:00
Nestor Soriano 319b95b6f1
Modify "wc_get_price_excluding_tax" to use order location for rates
The order is optional and must be passed as an "order" key in "$args".
If present, the order customer will be passed to "WC_Tax::get_rates"
in order to calculate the taxes to substract (provided that
"$product->is_taxable() && wc_prices_include_tax()")

Also "WC_Abstract_Order->add_product" and "WC_AJAX::maybe_add_order_item"
are modified to pass the order being processed so that ultimately
"wc_get_price_excluding_tax" uses it.

This prevents the base tax location to be wrongly used instead of the
customer location when the "woocommerce_adjust_non_base_location_prices"
hook is set to return false.
2021-09-10 11:45:01 +02:00
roykho c935a4a5f8
Add individual item remove notices for shipping and fees closes #29890 2021-09-07 08:06:32 -07:00
Barry Hughes 55ae972e8a
Merge pull request #30573 from Melebius/fix/30553
Change the shop page summary.
2021-08-27 11:01:57 -07:00
jonathansadowski 614ae96516
Merge pull request #30585 from woocommerce/add/29461
Add 'modified_before' and 'modified_after' params to REST API
2021-08-27 08:25:23 -05:00
Roy Ho ad955c19da
Merge pull request #30475 from woocommerce/move-order-actions-variable-to-filter-arg
Clean up and reduce confusion around the `woocommerce_order_actions` filter
2021-08-27 13:41:41 +01:00
Dan Bitzer 55ce338c72 Update `since` tag placeholder 2021-08-27 10:23:24 +09:30
Nestor Soriano a67b6405ec
Add 'modified_before' and 'modified_after' to get_collection_params. 2021-08-26 15:43:30 +02:00
Nestor Soriano 0b84d2d8b8
Add 'modified_before' and 'modified_after' params to REST API
The parameters are added to WC_REST_CRUD_Controller in v3 of the API.
2021-08-26 12:49:09 +02:00
Dan Bitzer 8bc963fba3 Make new `get_available_order_actions_for_order` method private
See PR #30475 for more info.
2021-08-26 10:53:40 +09:30
Miroslav Matějů 600cbb588d Change the shop page summary
The original summary is not relevant to the customers or visitors
but it was shown to them if the theme displays page summaries.
Changed to a public-friendly text.
2021-08-25 11:41:32 +02:00
Barry Hughes 7b97a40835
Merge pull request #30487 from NekoJonez/patch-1
Deleting unneeded double spaces in text strings.
2021-08-24 16:04:02 -07:00
roykho 05917f0d6d
Prep versions for trunk 2021-08-19 13:38:14 -07:00
roykho 26285ff0f5
Add docblock 2021-08-19 10:10:00 -07:00
roykho 5a725b9ff5
Fix pages were being re-created even though not set during a db migration closes #30532 2021-08-19 09:53:57 -07:00
And Finally fa76121b41 Merge branch 'trunk' into update/marketplace-1 2021-08-19 10:29:37 +01:00
Maria Górska-Piszek f8164bd6db Add missing doc parameter. 2021-08-18 16:08:35 +02:00
Maria Górska-Piszek e17691d871 Restore and deprecate the helper nav file. 2021-08-18 15:57:22 +02:00
And Finally c9fc4e721b Fixing linter errors.
- Added Doc comment for parameter "$submenu_file".
- Removed space between `empty` and opening parenthesis.
2021-08-17 18:19:00 +01:00
And Finally af9e2b1777 Addressing feedback.
- Using `$search` variable instead of `$_GET['search']` to minimise `phpcs:ignore` comments.
- Using correct escaping functions.
2021-08-17 18:12:05 +01:00
jonathansadowski ccda6730c8
Merge pull request #30517 from woocommerce/revert/30418
Revert "Fix: the same set of related products is always displayed"
2021-08-17 10:11:12 -05:00
Roy Ho a33f053598
Merge pull request #30514 from woocommerce/remove/wctracker-admin_user_agent
Remove tracking of admin User-Agent
2021-08-17 15:27:14 +01:00
roykho 64b99d56f4
Revert "Fix: the same set of related products is always displayed"
This reverts commit 8095482f69.
2021-08-17 06:43:13 -07:00
And Finally 2888176944 Addressing feedback.
- Deleted `stylelint-disable` comments.
- Changed hook for `update_menu_highlight` from `parent_file` to `submenu_file`, so we don't need to access `$submenu_file` global.
2021-08-17 12:54:23 +01:00
roykho 35685a4cf5 Ensure countries that have no states hides states field closes #28944 2021-08-17 14:50:48 +05:30
Claudio Sanches 4e6f24b024
Merge pull request #30483 from woocommerce/add/location_in_country
Add base location's state and postcode for tracking
2021-08-16 17:38:54 -03:00
mmmaia 804092507d Remove Tracking of Admin User-Agent 2021-08-16 16:01:15 -03:00
And Finally 57f949bcf7 Added mobile style section menu to marketplace. 2021-08-13 13:54:37 +01:00
And Finally 5a1ef16774 Merge branch 'update/marketplace-1' into update/marketplace-mobile-fixes
# Conflicts:
#	assets/css/admin.scss
2021-08-13 12:59:23 +01:00
And Finally 0f7daf46da Addressing PHPCS issues. 2021-08-13 11:43:32 +01:00
Maria Górska-Piszek 24548f2e3d Fix linter errors. 2021-08-13 12:13:50 +02:00
Maria Górska-Piszek 1691cb6b08 Initial dropdown menu styling. 2021-08-13 11:29:12 +02:00
And Finally 98893585d8 Small style tweaks.
- Added top margin to `.addons-button` to ensure there's a gap above it when promos are squished to a narrower width.
- Changed wording and style of `Search results for` label at the top of extensions search results, to conform to new design.
2021-08-13 09:34:21 +01:00
And Finally b38bd0eeb9
Merge pull request #30488 from woocommerce/update/marketplace-page-load-track
Update/marketplace page load track
2021-08-13 08:59:26 +01:00
barryhughes bea7fb3121 Cast quantities to floats, not ints, as the test suite documents cases for fractional quantities. 2021-08-12 16:56:17 -07:00
barryhughes d6fda6768a Improve type safety (avoid trying to multiply a string by an int). 2021-08-12 16:27:05 -07:00
And Finally 1eb27f40b6
Merge branch 'update/marketplace-1' into update/restyle-tab-bar 2021-08-12 16:51:15 +01:00