Ron Rennick
6743073a0f
introduce woocommerce_enable_nocache_headers filter
2020-06-17 15:02:09 -03:00
Daniel Morell
94e317f9f8
Fixed wc_get_order function name
...
The WC_Abstract_Order __construct() method doc block had the wc_get_order() method referred to as get_order().
2020-06-17 10:49:40 -05:00
Ron Rennick
3763d3b428
Merge pull request #25982 from leewillis77/feature/add-label-to-taxonomies
...
Add label to unlabelled taxonomies
2020-06-17 10:54:50 -03:00
Peter Fabian
14a26aca2c
Update min files and selectWoo
2020-06-16 17:15:12 +02:00
Peter Fabian
418d95298a
Merge branch 'master' into update/wc-admin-1.3.0-beta-1
...
# Conflicts:
# composer.lock
2020-06-16 14:58:43 +02:00
Peter Fabian
35ee21f837
Merge pull request #26754 from woocommerce/fix/25544
...
Encode HTML entities in product attributes
2020-06-16 14:29:19 +02:00
Peter Fabian
bb2cf2e8dc
Removed deprecated method call.
2020-06-16 13:18:05 +02:00
Peter Fabian
ce740fdb44
Merge pull request #26739 from woocommerce/fix/24800
...
Export: properly escape commas in attribute values
2020-06-16 12:56:40 +02:00
Peter Fabian
dc0d567137
Merge pull request #26775 from woocommerce/update/php7.2
...
Show notice to update to latest PHP if version is < 7.2
2020-06-16 12:56:15 +02:00
Peter Fabian
c35c4f1f08
Merge pull request #26395 from woocommerce/revert-26226-revert-25708-update/reserve-stock-for-checkout
...
Introduce a `reserved stock` class and database table to prevent race conditions during checkout
2020-06-16 11:38:10 +02:00
Peter Fabian
32037e37dd
Merge pull request #26625 from woocommerce/add/homescreen-option
...
Homescreen: Enable for new stores and add Features Setting section
2020-06-15 21:54:06 +02:00
Peter Fabian
0c96b1452d
Merge pull request #26685 from woocommerce/fix/26248
...
Removed the notice for untested minor version updates
2020-06-15 21:40:22 +02:00
Vedanshu Jain
8dcb48219b
Merge pull request #26752 from woocommerce/fix/25143
...
Add template cache clearing
2020-06-15 23:47:24 +05:30
vedanshujain
513b517b5b
Show notice to update to latest PHP if version is < 7.2
2020-06-15 21:51:03 +05:30
vedanshujain
34e5d3daa3
Use single sentence for easier translations.
2020-06-15 19:09:52 +05:30
vedanshujain
b8a1a69b2b
Updated annotations to 4.3
2020-06-15 18:55:00 +05:30
Paul Sealock
c7ad889f93
Homescreen: add option and setting
2020-06-15 13:38:02 +12:00
budzanowski
8f4e1a90c1
Typo fix.
2020-06-14 11:38:57 +02:00
budzanowski
bb7e5d1018
Connect the translations server.
2020-06-14 11:14:29 +02:00
jonathansadowski
386eecda62
Merge pull request #26729 from woocommerce/fix/26367
...
Update saving of comment_type for reviews to account for WP 5.5 changes
2020-06-12 10:36:28 -05:00
Vedanshu Jain
60ffc7ab99
Merge pull request #26583 from woocommerce/fix/26582
...
Fix regression caused by merging #25092 conflicting with #24828
2020-06-12 15:13:21 +05:30
Ron Rennick
4a8af2ec5d
Merge pull request #26706 from dorelidan/patch-1
...
Update wc-template-functions.php
2020-06-11 16:23:39 -03:00
Jonathan Sadowski
4d6aad4ecb
Encode HTML entities in product attributes
2020-06-11 14:10:05 -05:00
Ron Rennick
dd5cd361bc
introduce wc_set_template_cache(), wc_clear_template_cache()
2020-06-11 14:06:56 -03:00
budzanowski
5277bf8b60
Add language packs automatic delivery code.
2020-06-11 14:31:55 +02:00
Peter Fabian
296112cbea
Merge pull request #26237 from woocommerce/fix/24000
...
Fix adding product variant to cart using `add-to-cart` parameter (#24000 )
2020-06-11 13:13:12 +02:00
Peter Fabian
439562e854
Merge pull request #23971 from woocommerce/refactor/23783
...
Better template caching for container environments
2020-06-11 10:13:46 +02:00
Peter Viszt
4a60386560
Removed duplicated class from the HU city field
2020-06-10 17:54:12 +02:00
Jonathan Sadowski
5b232ff489
Export: properly escape commas in attribute values
2020-06-09 16:01:32 -05:00
Jonathan Sadowski
f9731bb2ed
Update saving of comment_type for product reviews to account for WP 5.5 default comment_type
2020-06-08 17:36:34 -05:00
Julia Amosova
6d3ce36fb4
Merge pull request #26720 from woocommerce/fix/26665
...
Remove check for existing term when parsing category via CSV & instead catch an existing term error when adding new category to the database
2020-06-08 16:04:31 -04:00
Julia Amosova
7982efb3df
Fix the @return description of the CSV Import categories parsing function
2020-06-08 15:03:00 -04:00
Julia Amosova
ea17484e42
Remove check for existing term when parsing category & add better error handling
2020-06-07 20:59:23 -04:00
Claudio Sanches
5dc84e6d0f
Update includes/class-wc-countries.php
...
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2020-06-05 14:46:03 -03:00
Dor Elidan
4b6e56b02a
Update wc-template-functions.php
2020-06-05 18:22:34 +03:00
vedanshujain
79e13edff0
This commit adds two changes for reserved stock functionality:
...
1. Use '0000-00-00 00:00:00' instead of CURRENT_TIMESTAMP as default value to support MySQL 5.6
2. Return early if DB version is less than 430 because then it would mean that required wc_reserved_stock table might not be present.
2020-06-05 19:20:06 +05:30
Claudio Sanches
a240547fda
Puerto Rico: Make city hidden and change state to Municipality
2020-06-05 10:14:52 -03:00
vedanshujain
e00f79417f
Alert in status report if base table is not present.
...
Also add a tool to rerun the check. This needs newer API version to work.
2020-06-05 18:26:49 +05:30
Vedanshu Jain
b45373fe0c
Revert "Revert "Introduce a `reserved stock` class and database table to prevent race conditions during checkout""
2020-06-05 15:18:01 +05:30
Vedanshu Jain
6564847802
Merge pull request #26454 from woocommerce/enhancement/verify-db
...
Add `verify_base_db` method to check if all base tables are present.
2020-06-05 15:15:39 +05:30
Claudio Sanches
418896ea86
Removed States from Puerto Rico and better address formatting
2020-06-04 17:18:17 -03:00
Viszt Péter
1724507a0e
Fixes for Hungarian address format and name order
...
Missing address-field class for Japan's postcode and state field
Checkout layout fixes on country change
2020-06-04 19:21:41 +02:00
vedanshujain
e0de059f23
Use seperate db version to better track changes
2020-06-04 22:38:13 +05:30
vedanshujain
4fce106f14
Use `_` instead of `-` as per convention.
2020-06-04 20:33:38 +05:30
Christopher Allford
ffe2257f2d
Removed the notice for untested minor version updates
...
With the increased cadence of releases it becomes necessary that we address the `WC tested up to` header's usefulness. It isn't practical to require everyone to update their extensions every month, especially given that we are only doing backwards compatible minor releases. The only case I can think of where we might want to check the minor version is if the Stable tag on Core is downgraded, but due to the naming of the header, this doesn't make any sense.
I considered making this a wildcard of some kind but I think most would bind to a full major version anyway and so this isn't worth the time to add it. As an aside, the tests in `plugin-updates.php` seem to indicate that a header of `WC tested up to: 4` would apply to the entire major version cycle, so wildcards already exist!
2020-06-03 14:36:06 -07:00
Ron Rennick
0265e027ef
Merge pull request #26637 from woocommerce/fix/wc_timezone_string
...
use wp_timezone_string when available
2020-06-03 15:41:47 -03:00
Claudio Sanches
3701f0a82b
Merge pull request #26542 from woocommerce/tweak/add-shipping-actions
...
Add actions before/after shipping calculation
2020-06-03 11:25:10 -03:00
Claudio Sanches
bf042a428d
Merge pull request #25321 from grey-rsi/status_widget_stock_rows
...
Add filters for status_widget_stock_rows queries
2020-06-03 11:22:20 -03:00
MihaiCraciun
1df2ba2c7a
Added missing closing select tag
2020-06-03 13:40:05 +03:00
Julia Amosova
8fe149d56d
Merge pull request #26670 from woocommerce/tweak/26123
...
Add note to Products Importer description that TXT files are also supported.
2020-06-02 15:00:36 -04:00
Claudio Sanches
adca2cb73d
Merge pull request #26644 from tivnet/patch-6
...
class-wc-shortcode-products.php - fix spelling in a comment
2020-06-02 15:56:16 -03:00
Claudio Sanches
9020cebdbb
Normalize parameters for woocommerce_product_importer_parsed_data filter
2020-06-02 14:21:33 -03:00
Claudio Sanches
5445d34283
Remove deprecated attribute
2020-06-02 13:57:55 -03:00
Claudio Sanches
e0105f124f
Deprecate WC_Cart->tax_display_cart
2020-06-02 13:55:29 -03:00
Julia Amosova
479cac4fc0
Add note to Products Importer that TXT files are also supported.
2020-06-02 12:55:06 -04:00
Claudio Sanches
5bf9a83e58
Fixed docblock
2020-06-02 12:17:59 -03:00
Claudio Sanches
2267dcfe7e
Updated since tags
2020-06-02 12:16:54 -03:00
Julia Amosova
f929bacfc6
Correct grammar mistake in the help tip of the `Connected to WooCommerce.com` field of SSR.
2020-06-02 11:12:47 -04:00
Claudio Sanches
f8a050f914
Fixed typo in WC_Product_CSV_Importer class
2020-06-02 11:42:50 -03:00
Sergey Ratushnuy
ec91a7c3fc
Small fix
2020-06-02 15:05:44 +03:00
Claudio Sanches
f2be9c7365
Fixed coding standards
2020-06-02 00:01:26 -03:00
Claudio Sanches
6afbed0c14
Fixed coding standards
2020-06-01 23:55:17 -03:00
Claudio Sanches
608cce5091
Fixed typo
2020-06-01 20:54:29 -03:00
Claudio Sanches
b4ab40ae34
Adds a prompt to confirm if should run tools in the Status page.
2020-06-01 18:56:38 -03:00
Zack Katz
7a7f33f2a1
Fix undefined index PHP warning
...
![](https://i.gravityview.co/gtGvNE+ )
2020-06-01 14:32:19 -06:00
Claudio Sanches
855b1d3b6b
Added docblocks and removed $this
2020-06-01 14:35:31 -03:00
Boro Sitnikovski
dd512c6f40
Move filter out of abstract class and into the manager class
2020-06-01 19:25:18 +02:00
Gregory Karpinsky
3d02da9a03
Update wc-template-functions.php
...
Fix variable name in docblock
2020-05-31 08:43:44 -04:00
Gregory Karpinsky
42bc3d3bf3
Update class-wc-shortcode-products.php
...
Spelling in a comment
2020-05-31 08:27:14 -04:00
Claudio Sanches
9d8af073cf
Update since tag to 4.3.0
2020-05-29 13:45:00 -03:00
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