Jeffrey Pearce
bf8662bf67
Adds structure for Twenty Twenty One default theme support. Issue #27766
...
- New class class-wc-twenty-twenty-one.php
- New stylesheet twenty-twenty-one.scss
- Updates checks for default themes in theme_support_includes() and wc_is_wp_default_theme_active()
2020-11-16 06:41:39 -06:00
Vedanshu Jain
ae163eb28b
Merge pull request #27734 from woocommerce/enhancement/optimize-wc-order
...
Optimize function `wc_get_orders` by priming caches beforehand
2020-11-14 12:37:44 +05:30
Vedanshu Jain
13f429e80d
Merge pull request #28102 from woocommerce/fix/28100
...
Exclude user table columns as well while setting metadata props
2020-11-13 13:50:02 +05:30
Christopher Allford
03f65478f2
Merge pull request #28249 from woocommerce/add/composer-2
...
Update Composer to v2 (includes woocommerce-blocks 3.8.0 and woocommerce-admin 1.7.0)
2020-11-12 21:16:51 -08:00
Christopher Allford
2516414eb6
Merge pull request #28229 from woocommerce/add/wc-pay-extensions-screen
...
Add WooCommerce Payments banner to extensions screen
2020-11-12 14:21:01 -08:00
Christopher Allford
30d2e278b9
Replaced the deprecated `WC_Admin_Note` class
2020-11-12 13:26:30 -08:00
vedanshujain
f1742e2298
Exclude user table columns as well
...
This is to prevent overwriting of original column data by a meta data if meta_key name is same as a column.
2020-11-13 01:02:15 +05:30
Rodrigo Primo
7659b984dc
Merge pull request #28058 from woocommerce/fix/27937
...
Replaces some jQuery deprecated code
2020-11-12 14:00:39 -03:00
roykho
5597f74e81
Merge branch 'master' into fix/issue-27972
2020-11-12 06:21:52 -08:00
vedanshujain
fdceac9866
Delete refund cache for parent order when its deleted.
2020-11-12 10:01:15 +05:30
Claudio Sanches
6e2086e3eb
Check if $product exists before using
...
And removed some PHP variables.
2020-11-11 19:55:59 -03:00
Claudio Sanches
cb727736c0
Fixed placeholders and translators style
2020-11-11 19:47:03 -03:00
Claudio Sanches
d77fc005d2
Merge pull request #28233 from woocommerce/fix/template-names
...
Load product category content with content-product-cat.php
2020-11-11 19:31:08 -03:00
Claudio Sanches
404bdbff48
Merge pull request #28242 from woocommerce/update/replace-usage-of-depracted-function
...
Replace call to deprecated woocommerce_reset_loop()
2020-11-11 19:30:02 -03:00
roykho
134786ada8
Fix stock reducing incorrect amount when order item is deleted after a refund closes #27504
2020-11-11 15:28:06 -06:00
Rodrigo Primo
2399668a05
Simplify code per reviewer suggestion
...
See https://github.com/woocommerce/woocommerce/pull/28058#pullrequestreview-519096925
2020-11-11 16:09:33 -03:00
Roy Ho
e0204e04e4
Merge pull request #28241 from woocommerce/fix/27566
...
Add shipping, tax and fee lines to refund response for better information in refund REST API.
2020-11-11 08:11:56 -08:00
Rodrigo Primo
5d1435836d
Replace call to deprecated woocommerce_reset_loop()
...
This commit simply replaces the single call in WooCommerce core codebase to the deprecated woocommerce_reset_loop() function with its replacement wc_reset_loop().
2020-11-11 10:26:56 -03:00
vedanshujain
62ae94d93e
Add shipping, tax and fee lines to refund response for better information.
2020-11-11 18:47:48 +05:30
Claudio Sanches
f1f2c3cfff
Load product category content with content-product-cat.php
2020-11-10 20:54:59 -03:00
Gerhard Potgieter
6832dc96a4
Make wc shipping button also purple
2020-11-10 19:43:11 +02:00
Gerhard Potgieter
3c1352d36c
Remember to break
2020-11-10 19:36:34 +02:00
Gerhard Potgieter
caf2ea99fa
Shorten title as per feedback
2020-11-10 19:26:44 +02:00
Gerhard Potgieter
a0812d5009
Remove redirect as it does not work with the background installer
2020-11-10 18:28:47 +02:00
Gerhard Potgieter
b5fb7c0104
Add purple woo button
2020-11-10 18:26:59 +02:00
Tom Hopcraft
296d912151
[typo] - fix
2020-11-10 15:46:20 +00:00
Gerhard Potgieter
b5a4a1597f
Fix current section check, phpcs linting errors.
2020-11-10 16:48:11 +02:00
Roy Ho
4954c17e89
Merge pull request #28177 from davefx/patch-11
...
Optimizing memory usage
2020-11-10 06:13:03 -08:00
vedanshujain
6ed8ffe850
Addressed PR review comments #27734
2020-11-10 14:23:45 +05:30
vedanshujain
3dd80d6d65
Add polyfill for wp_cache_get_multiple
2020-11-10 14:23:44 +05:30
vedanshujain
0b29232fe3
Prime caches only when needed.
2020-11-10 14:23:44 +05:30
vedanshujain
eeb8851717
Minor fixups for PR #27734
2020-11-10 14:23:44 +05:30
vedanshujain
4599884dd0
Fix failing tests.
2020-11-10 14:23:43 +05:30
vedanshujain
bb1e2f44ae
Removed/reverted more unnecessary changes.
2020-11-10 14:23:43 +05:30
vedanshujain
12f69c2d2d
Only set cache when neccessary.
...
This creates a tradeoff in optimizing repeated queries vs on off queries.
Another tradeoff is making more cache get calls as opposed to more SQL calls.
2020-11-10 14:23:43 +05:30
vedanshujain
a5fb3178f0
Drop CacheHydration class and do it directly.
...
Primary reason for dropping the cache hydration is that seems like we can acheive the same results without it, so no need to add this additional complexity to our code.
2020-11-10 14:23:43 +05:30
vedanshujain
975783b2b4
Also support methods in case direct accessing key is deprecated.
...
For example, in case of refunds, directly accessing parent_id is deprecated, we should use get_parent_id instead.
2020-11-10 14:23:42 +05:30
vedanshujain
8ab9fd26ef
Set key before trying to add values
2020-11-10 14:23:42 +05:30
vedanshujain
d502407145
Use CacheHydration to speed up fetching Order data.
...
This also primes various caches by fetching data well in advance, this would have been individual SQL queries otherwise.
2020-11-10 14:23:42 +05:30
vedanshujain
44a226941d
Refactor `read_meta` into filter_raw_data for better re-usability.
2020-11-10 14:23:41 +05:30
vedanshujain
4f514e79ad
Add support to prime refund cache in wc_order class.
...
Fetching refunds call is an expensive query, so priming the cache where possible could be beneficial for better performance.
2020-11-10 14:23:41 +05:30
vedanshujain
9bd92205b0
Add support to use `cache_hydration` in wc_get_order.
...
This can be used to pre-load expensive to compute caches.
2020-11-10 14:23:40 +05:30
vedanshujain
e9d97d97e7
Support for order_item to be init from obj with `order_item_id` prop.
...
Also set metadata cache if metadata prop is present in initial item.
2020-11-10 14:23:40 +05:30
vedanshujain
22212c7065
Add support for fetching order using a hydration object.
...
It will ultimately be on the datastore to effectively use the hydration object.
2020-11-10 14:23:40 +05:30
vedanshujain
4efc22f7d5
Refactor method to get individual class names for order and order-items.
...
This is done so that methods that fetch class names can be re-used.
2020-11-10 14:23:39 +05:30
vedanshujain
f5d0275786
Refactor methods to break down into smaller units for re-usability.
...
This commit breaks down `read_meta_data` so that individual methods for cache key and setting raw meta data can be reused.
Also adds set_meta_data_from_raw_data to initialize metadata from manual cache.
2020-11-10 14:23:39 +05:30
Gerhard Potgieter
692dfa7fec
Update banner copy
2020-11-09 15:21:38 +02:00
Gerhard Potgieter
8af8554770
Add functionality to handle woocommerce payments install
2020-11-09 14:48:49 +02:00
Gerhard Potgieter
7d33488d6b
WooCommerce Services to WooCommerce Shipping
2020-11-09 14:22:20 +02:00
Gerhard Potgieter
78336781d1
Remember output_ in function name
2020-11-09 14:20:24 +02:00