Nestor Soriano
0192ed0b93
Change LookupDataStore to allow updates being done in a scheduled action.
...
There's a new option, 'woocommerce_attribute_lookup__direct_updates'.
When set to 'yes', updates to the lookup table are performed as soon
as the change happen; otherwise, a scheduled action will do it,
the hook name is 'woocommerce_run_product_attribute_lookup_update_callback'
(the existing hook in the DataRegenerator class is renamed to
'woocommerce_run_product_attribute_lookup_update_callback')
Also, the settings page has a new "Advanced" section with a checkbox
to control the value of that new option; the section is visible only
when the feature has been enabled via LookupDataStore::show_feature.
2021-06-15 16:33:29 +02:00
Nestor Soriano
6dbcd64a21
Disable attributes lookup table usage before initiating regeneration.
2021-06-11 11:59:30 +02:00
Nestor Soriano
7c9137698b
Implement handling of changesets in the LookupDataStore class.
2021-06-11 11:44:57 +02:00
Nestor Soriano
bbddcbcc15
Fix in FiltererTest after mrging from trunk.
2021-06-10 17:00:09 +02:00
Nestor Soriano
13ed3b80e0
Merge branch 'trunk' into add/29609
2021-06-10 12:35:34 +02:00
Christopher Allford
19bdc1c35b
Merge pull request #30074 from woocommerce/fix/jquery-trim-migration
...
Update former uses of jQuery.trim to work properly with non-string types
2021-06-09 15:43:33 -07:00
Roy Ho
042582e022
Merge pull request #30076 from woocommerce/fix/30075
...
Fix issue with jQuery migration and editing addresses in wp-admin
2021-06-09 14:47:18 -07:00
Jonathan Sadowski
2715b745d7
Update for coding standards
2021-06-09 16:23:26 -05:00
Jonathan Sadowski
4d32ef0dac
Fix issue with jQuery migration and editing addresses in wp-admin
2021-06-09 16:06:18 -05:00
Claudio Sanches
2cf30b0190
Merge pull request #30044 from woocommerce/update/add-fse-customize-link
...
FSE: add link to Customizer WooCommerce panel in block-based themes
2021-06-09 17:17:25 -03:00
Jonathan Sadowski
b157fe8eac
Restore inadvertant removal of semicolon in select2
2021-06-09 13:03:25 -05:00
Jonathan Sadowski
67a5a969b4
Fix a typo in params.term comparison
2021-06-09 12:59:35 -05:00
Jonathan Sadowski
2fad2d7116
Update former uses of jQuery.trim to work properly with non-string types
2021-06-09 12:50:03 -05:00
Michael P. Pfeiffer
19cd1e6ee6
Remove P2 reference
2021-06-09 14:14:21 +02:00
Michael P. Pfeiffer
a54ccf01b4
FSE: add link to Customizer WooCommerce panel in block-based themes
2021-06-09 14:14:21 +02:00
Christopher Allford
f1e67a2b3a
Merge pull request #30066 from woocommerce/update/changelog-5.4
...
Added 5.4 Changelog Content
2021-06-08 14:17:04 -07:00
Christopher Allford
dfca2e6135
Added 5.4 Changelog Content
2021-06-08 12:17:07 -07:00
Nestor Soriano
b85c8b6138
Merge branch 'master' into add/29609
2021-06-08 17:55:13 +02:00
Nestor Soriano
039f81ea50
Implement the product attributes lookup table data creation.
...
Lookup entries for a product or a variation are created whenever
the product is created, including untrashing and duplication
(not yet when an existing product is modified).
2021-06-08 17:53:45 +02:00
Barry Hughes
c503f5d637
Merge pull request #29896 from woocommerce/add/29610
...
Filter catalog products by attribute using the new lookup table
2021-06-08 07:37:06 -07:00
Nestor Soriano
ef9145de86
Small improvements in the filtering by attribute lookup table.
...
- Use 'absint' instead of an '(int)' in an anonymous function.
2021-06-08 15:47:04 +02:00
Nestor Soriano
0b1158cf5c
Small improvements in the filtering by attribute lookup table.
...
- Combined two 'if's in one
- Added extra santitization of term ids in the Filterer class
2021-06-08 10:18:35 +02:00
Nestor Soriano
e54ff461f9
Implement the product attributes lookup table data deletion.
...
Lookup entries for a product or a variation are deleted whenever
the product is deleted or trashed.
2021-06-07 16:54:08 +02:00
Nestor Soriano
7f86d1988d
Remove superfluous 'delete' method in WC_Product_Variation class.
2021-06-07 16:52:22 +02:00
Vedanshu Jain
f34ef00021
Merge pull request #30013 from woocommerce/fix/allow-block-templates
...
Allow block templates for WooCommerce pages
2021-06-05 14:11:21 +05:30
Nestor Soriano
f237642af4
Refactor save method in WC_Product and WC_Product_Variable
...
The 'save' method in WC_Product_Variable was almost identical
to the parent method in WC_Product, only adding a few bits
of extra processing before and after the actual datastore save.
This commit adds a couple of protected methods,
before_data_store_save_or_update and after_data_store_save_or_update,
and implements them in WC_Product_Variable so that the extra
'save' method in WC_Product_Variable can be removed.
2021-06-04 12:21:29 +02:00
Vedanshu Jain
514367af28
Merge pull request #29987 from woocommerce/fix/29738
...
Set geolocation transients to expire in one day
2021-06-04 13:10:45 +05:30
jonathansadowski
062ba0bcb7
Merge pull request #30035 from woocommerce/update/action-scheduler-3.2.0
...
Update Action Scheduler to 3.2.0.
2021-06-03 13:59:46 -05:00
barryhughes
2d613f9d9c
Update composer.lock in relation to Action Scheduler (3.2.0) update.
2021-06-03 10:47:15 -07:00
barryhughes
be42d2c0bf
Update Action Scheduler to 3.2.0.
2021-06-03 10:36:03 -07:00
Ron Rennick
f3908c9fe9
add wait between loading shop and add to cart ( #30017 )
2021-06-03 16:07:55 +02:00
Ron Rennick
0c762a3266
Merge pull request #30030 from woocommerce/update/readme-typo-slack-oauth
...
fix Slack OAuth scopes typo in README
2021-06-03 09:09:35 -03:00
Leif Singer
b2ab18d168
fix Slack OAuth scopes typo in README
2021-06-03 13:42:10 +02:00
Roy Ho
0507f06508
Merge pull request #30012 from woocommerce/update/widgets-show-instance-in-rest-api
...
Widgets: show instance in Rest API
2021-06-02 07:37:59 -07:00
Claudio Sanches
c81440f56e
Merge pull request #30010 from woocommerce/fix/29982-show-tracker-data-via-cli
...
Add a CLI command for dumping tracker data to terminal
2021-06-02 10:34:05 -03:00
Rua Haszard
414ba48ee2
switch to using a Formatter for more flexible output, improve docs
2021-06-02 15:49:25 +12:00
Rua Haszard
afb59d060c
fill in @since version number for WC_CLI_Tracker_Command
...
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-06-02 15:29:14 +12:00
Rua Haszard
e0ff75f826
rename command to `snapshot` in `tracker` namespace
...
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-06-02 15:28:16 +12:00
Claudio Sanches
94bdcd0320
Merge pull request #27684 from woocommerce/refactor/settings-pages-classes-take-2
...
Refactor the settings pages, and add unit tests for them
2021-06-01 13:19:49 -03:00
Nestor Soriano
c6dff96c0f
Undo a wrong change in filtering logic.
2021-06-01 11:25:57 +02:00
Nestor Soriano
72442f20bb
Add the remaining tests for the Filterer class.
2021-06-01 10:06:25 +02:00
Nestor Soriano
c78627e6ee
Add unit tests for the Filterer class (variable products)
2021-05-31 16:54:55 +02:00
Albert Juhé Lluveras
d01261e19a
Allow block templates for WooCommerce pages
2021-05-31 12:57:47 +02:00
Michael P. Pfeiffer
3e36432d94
Widgets: show instance in Rest API
2021-05-31 12:20:57 +02:00
Rua Haszard
bcadf9d264
add a CLI command for dumping tracker data to terminal
2021-05-31 14:55:29 +12:00
Nestor Soriano
9878aa37aa
Add unit tests for the Filterer class (simple products only for now)
...
Also fix a small issue in the product counters when using "or" filter.
2021-05-28 17:27:03 +02:00
Roy Ho
84f8fcd016
Merge pull request #29938 from geektzu/fix/29708
...
Fix for deleted Reduce or Zero rate tax classes
2021-05-28 07:11:33 -07:00
geektzu
394b6665f8
Move the comments as per code review
2021-05-28 10:26:31 +12:00
Claudio Sanches
e745be1b42
Merge pull request #29783 from macr1408/trunk
...
Check for WP Error when uploading products placeholder
2021-05-26 19:28:43 -03:00
Claudio Sanches
c9db54c784
Update includes/class-wc-install.php
2021-05-26 19:26:35 -03:00