Commit Graph

240 Commits

Author SHA1 Message Date
Mike Jolley e6c60dd6c2 Show notice when regeneration is taking place with link to AS 2019-03-13 12:25:20 +00:00
Mike Jolley c0c520442c Queue events in order 2019-03-07 16:24:52 +00:00
Mike Jolley f0037ea643 split updates 2019-03-07 16:13:47 +00:00
Mike Jolley 0782d39a55 Stock status 2019-03-07 14:32:20 +00:00
Mike Jolley 1ab455ec09 virtual and downloadable 2019-03-07 14:07:51 +00:00
Mike Jolley dfc539c051 SKU column 2019-03-07 13:34:28 +00:00
Mike Jolley 48a2660f8e Queue based count population 2019-03-06 14:04:38 +00:00
Gerhard 0b6e8351d6 PHPCS fixes 2019-03-05 13:59:42 +02:00
Mike Jolley 5af9d968e5 Update from master 2019-03-01 10:29:17 +00:00
Mike Jolley 32417e1017 Unused result vars 2019-03-01 10:28:30 +00:00
Mike Jolley 55c49b661e Missing cache flush when updating sales 2019-02-28 14:51:55 +00:00
Mike Jolley dc49afc251 Update group by clause 2019-02-27 15:45:05 +00:00
nishitlangaliya ee621eec8a fix: filter prefix changed and unit test added for fn:wc_get_product_stock_status_options 2019-02-25 19:03:57 +05:30
nishitlangaliya 53b5be7e83 feat: wc_product_stock_status_options filter added for stock status options for variable product 2019-02-23 11:10:22 +05:30
Mike Jolley 3d8c58e110 status_widget_stock_rows lookups 2019-02-15 13:37:51 +00:00
Mike Jolley 35d2161fa9 Stock lookup 2019-02-15 13:05:46 +00:00
Mike Jolley 3309276e82 Renamed table to wc_product_meta_lookup 2019-02-15 12:37:45 +00:00
Mike Jolley 7b6558e1df Correct table names and updater 2019-02-12 14:04:22 +00:00
Mike Jolley 10988fa08a Missing transient update 2019-02-12 13:22:25 +00:00
Mike Jolley 47a5c39ea1 deprecate wc_get_min_max_price_meta_query 2019-02-11 15:45:09 +00:00
Mike Jolley 5429770992 Sample update function and price sorting 2019-02-11 14:42:11 +00:00
Mike Jolley 00b48febac Merge branch 'update/versioned-transients-alt' 2019-02-06 13:18:50 +00:00
Mike Jolley ec7db6de06 Simplify check 2019-02-06 12:46:36 +00:00
Mike Jolley cb4bf5d1e5 Fix unit tests 2019-02-06 12:44:24 +00:00
Mike Jolley 4635ccc04f Check we have a valid attachment 2019-02-05 14:11:16 +00:00
Mike Jolley 24bc59a025
Merge pull request #22443 from woocommerce/fix/21705
Placeholder resizing improvements
2019-02-04 11:13:49 +00:00
Mike Jolley 7cd20021e0 Sort terms by parent and work back from bottommost term
Fixes the issue described in #21299 by sorting terms by parent ID.

Remove the extra get_term call because we already have a term object.

Since we support 4.7+, also removed function exists for wp_list_sort function.
2019-01-22 19:06:58 +00:00
Mike Jolley d3ac50d47f Remove heavy queries from transient cleanup function
Remove heavy queries from transient cleanup function

Removes unneccessary loops and heavy queries.

There is a parent update and cache clear which was added in #17141. This cleanup is handled in `update_attributes` so doing it again here should be unneccessary.

Finally, the layered nav cleanup here can be moved. #22029 notes that this was needed in case of a stock change affecting product visibility. If we move to the data store, we can avoid getting the product here which is slower.
2019-01-21 13:02:31 +00:00
Mike Jolley c5da2dbcde Remove unrelated transient
wc_count_comments is completely unrelated to products. This can be moved to the transient cleanup tool, because code already exists to clear this cache when needed in WC_Comments.
2019-01-21 12:59:39 +00:00
Claudiu Lodromanean 989865469e
Merge pull request #22416 from woocommerce/fix/21871
Incorrect rounding of multiple tax rates per location
2019-01-16 09:32:51 -08:00
Rodrigo Primo 507f67cb38
Merge pull request #22029 from woocommerce/fix/21429
FIx:  Delete wc_layered_nav_counts_* transients whenever a product is updated
2019-01-14 15:26:15 -02:00
Mike Jolley 696d042c0e
Merge pull request #22255 from aelia-co/Tweak-wc_get_min_max_price_meta_query-filter
Added new filter "woocommerce_get_min_max_price_meta_query"
2019-01-14 17:04:59 +00:00
Mike Jolley 1e563aea29 Use wp_get_attachment_image if we have an attachment based placeholder 2019-01-14 13:55:12 +00:00
Mike Jolley 549a0f01c0 Placeholders need srcset and sizes 2019-01-14 12:54:54 +00:00
Mike Jolley 14b0e87301 Fixes edge case due to orders screen expecting unrounded values. 2019-01-11 14:07:41 +00:00
Mike Jolley 96603720ca Item subtotal rounding must match cart calc class
Fixes #21871
2019-01-11 11:41:22 +00:00
Rodrigo Primo 941217719e phpcs fixes using phpcbf 2018-12-19 13:31:11 -02:00
Diego 5970c9d0f5 Added new filter "woocommerce_get_min_max_price_meta_query" 2018-12-17 22:42:35 +00:00
Rodrigo Primo a9994feeea Delete wc_layered_nav_counts_* transients whenever a product is updated
This commit moves the code to delete wc_layered_nav_counts_* transients from WC_Product_Data_Store_CPT::update_attributes() to wc_delete_product_transients(). This way those transients will be deleted whenever a product is updated and not only when the product attributes are updated. This is needed to make sure that the "Filter Products by Attribute" displays the correct list of attributes when a product changes from out of stock to in stock or vice versa via the "Quick Edit" interface or the WC API.
2018-11-23 15:30:38 -02:00
Rodrigo Primo eb76ac9f65 Fix phpcs violations automatically using phpcbf 2018-11-23 12:37:23 -02:00
claudiulodro 255877211a Dont default to gallery thumbnail size if flexslider disabled 2018-10-24 11:07:43 -07:00
pierrebuet db3270a390 Show the right size of placeholder image on single product page
in the template for the product image, wc_placeholder_img_src() returns the thumbnail size of the image.
In order to use 'woocommerce_single' as size, the function needs to be corrected, so the function use the size and not a calculated array of sizes.  wc_get_image_size doesn't return an height for the woocommerce_single size. Further and since the image sizes are declared, there is no need to translate the size to an array.
2018-09-21 19:33:04 +02:00
claudiulodro 08a76e1eea Add srcset handling 2018-09-07 11:36:03 -07:00
Gerhard Potgieter 95a99a93b7 Just use src as there is no first index on src, it just returns the first char of the string which defeats the purpose of the check. 2018-07-19 11:53:28 +02:00
Gerhard Potgieter 2411214091 Forgot src 2018-07-19 11:38:37 +02:00
Gerhard Potgieter dda30061f7 Make sure $attr[0] is set before referencing it. 2018-07-19 11:36:44 +02:00
Tiago Noronha fda124147b phpcs 2018-07-06 16:36:19 +01:00
Tiago Noronha 9970f1799a Add image size filters to wc_get_product_attachment_props() 2018-07-06 16:35:43 +01:00
Mike Jolley ff0e492a41 Setting 2018-06-27 18:38:36 +01:00
Mike Jolley 6b68c15309 Placeholder image styling 2018-06-27 18:13:39 +01:00