Commit Graph

21580 Commits

Author SHA1 Message Date
Timur Gogolev 85a894021a Add stars and reviews number 2021-10-13 16:59:44 +03:00
Vedanshu Jain c710cb8697
Merge pull request #30641 from san-coding/trunk
Added text to be displayed when invalid data is entered into search input field and  no search results are found
2021-10-13 17:13:11 +05:30
Mehul Gohil d848a3a5bb
remove singular entry of remove_variation (#30839) 2021-10-12 11:10:42 -04:00
Barry Hughes 942d6c8d50
Merge pull request #30889 from woocommerce/fix/25255-variable-product-price-hash
Include Customer VAT Exemption Status in Variable Product Price Cache Key
2021-10-07 16:28:47 -07:00
Roy Ho 2621720950
Merge pull request #30850 from woocommerce/update/clear-billing-email
Allow billing email to be empty
2021-10-07 08:05:06 -07:00
Jeff Stieler ff6147c9a4 Include customer VAT exemption status in variation price hash. 2021-10-05 12:17:41 -04:00
Sandeep Rajakrishnan 10e47b6d59
made changes requested in PR 2021-10-02 23:30:41 +05:30
Timur Gogolev 229c7981db Allow safe HTML tags for My Subscriptions' notice 2021-10-01 13:43:20 +03:00
Josh Betz 73d51a8770 Allow billing email to be empty
Allows passing `null` for the billing email to clear it. This means the
email must either be a string that is a valid email address or a null
value.

Since it is possible to clear the email address for an order in a
similar way via the admin-ajax endpoints, this is meant to provide
consistency with the wp-admin experience.
2021-09-30 08:16:09 -05: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
Sandeep Rajakrishnan c144476128
Changed sizeof to count 2021-09-13 14:55:32 +05:30
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
Sandeep Rajakrishnan 89c9dadd9b
Checking If sizeof($addons>0)
Checking  sizeof($addons>0) along with !empty($search) to display search results if addons found
2021-09-07 19:53:11 +05:30
Sandeep Rajakrishnan 432f7caf0d
Displaying message if sizeof($addons)==0
made changes requested in PR #30641
2021-09-07 19:42:27 +05:30
Sandeep Rajakrishnan 4bd9d696d2
Added text to be displayed when no search results
Added text to be displayed when no search results found , fixes issue #30588
2021-09-03 19:55:18 +05:30
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