Aristeides Stathopoulos
72ee94d11b
WordPress.Arrays.ArrayDeclaration.SpaceBeforeComma
2016-08-27 05:46:40 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
b0064bddf6
Remove boolval
2016-08-04 11:12:14 +01:00
Mike Jolley
5a9dacd595
Show variable weights/dimensions even when parent values are not set.
2016-08-03 16:07:34 +01:00
Mike Jolley
579175257f
Add transient version to price hash
...
Closes #11520 @claudiosmweb
2016-07-25 13:33:35 +01:00
Claudio Sanches
08f95481e0
Normalize the "Read more" button text, closes #11319
2016-06-30 15:16:26 -03:00
Mike Jolley
594641422d
Show read more if variable product is out of stock
2016-06-07 14:34:27 +01:00
Mike Jolley
3fd15ad50f
Unused vars and code docs
2016-06-06 18:57:24 +01:00
Manos Psychogyiopoulos
35ff166a85
woocommerce_variation_prices filter runs only for the first hashed prices array loaded from the transient
2016-05-25 00:54:07 +03:00
Mike Jolley
e552c3c916
Remove filter to hide variations with no prices in get_children()
...
#10854
2016-05-10 18:23:16 +01:00
Mike Jolley
edbb03a5d8
Only exclude variations with no price if filter is set
...
Closes #10854
2016-05-05 16:05:40 +01:00
Mike Jolley
be9b7bd4b5
If no variation ID is set, do a match
...
Closes #10737
2016-04-20 12:35:06 +01:00
Mike Jolley
3a5feddbf5
[2.5] Set captions
2016-03-30 11:15:34 +01:00
Mike Jolley
00a6fe8682
[2.5] Allow big selects when getting variations
2016-03-08 11:33:04 +00:00
Mike Jolley
c469ab920b
Use wpdb query instead of looping over children
...
Closes #10195
cc @claudiosmweb
Since this uses `$this->get_children( true );` it will also hide out of
stock variation attributes if that setting is enabled.
2016-02-15 15:53:43 +00:00
Mike Jolley
3dba3378c2
Merge pull request #10315 from woothemes/layered-nav-wp-query
...
Layered Nav Improvements
2016-02-12 11:59:40 +00:00
Mike Jolley
fd38adcc36
Format variations to same type
...
Fixes #10310
2016-02-11 15:22:51 +00:00
Mike Jolley
5b0abaaa1b
Sync min and max price for better filtering!
2016-02-09 20:16:08 +00:00
Mike Jolley
a78edb2af2
[2.5] If an attribute meta key is not set, technically its 'any', so should match. Prevents issues when meta data is missing after renaming attributes
...
@claudiosmweb please test :)
#10272
2016-02-04 18:25:06 +00:00
Mike Jolley
35e45e6075
Make price function clearer
...
@tamarazuk @franticpsyx @daigo75 Hopefully this makes it clearer which
values are returned and when the filter is ran.
2016-01-13 15:07:47 +00:00
Fredrik Forsmo
f1920cb882
Improve docblock comments in various WC_Product classes
...
* Added comments to methods that was `method function`
2016-01-06 16:15:00 +01:00
Mike Jolley
8b9bdbb228
Product version storage to invalidate cache when needed
...
#9922 for @daigo75
2015-12-31 16:31:20 +00:00
Mike Jolley
7c7e21be50
Only use the 'function' portion when generating price hashes
...
Keeps hashes the same after page load when a plugin uses a class method
callback or anonymous function Closes #9922 @claudiosmweb
2015-12-31 16:21:12 +00:00
Mike Jolley
429fee1703
JSON instead of serialise should reduce storage size
...
#9922
2015-12-31 13:15:01 +00:00
Mike Jolley
0b678ab2af
Tweak save logic to set _price for variables/groups via sync functions only
...
Closes #9892
2015-12-23 13:08:45 +00:00
Mike Jolley
496eb3385e
srcset sometimes is false.
2015-12-09 10:29:41 +00:00
Mike Jolley
61c3e74d4f
srcset should not be set to 'false'
2015-12-07 11:57:02 +00:00
Mike Jolley
12db1d4637
Notify users of no variations but leave status as is.
...
Closes #9713
2015-12-03 10:14:00 +00:00
Mike Jolley
75529edbe5
Merge branch 'pr/9628'
2015-11-27 13:00:39 +00:00
Mike Jolley
03d9239f40
Correct variable name
2015-11-27 13:00:08 +00:00
Mike Jolley
615c262f6f
Function exists for wp_get_attachment_image_srcset and sizes
...
Sizes #9714
2015-11-27 11:30:47 +00:00
Tiago Noronha
3fdec7f4a8
Init added variables if product doesnt have featured image.
2015-11-24 23:00:25 +00:00
Tiago Noronha
105105db06
Adds support for srcset and sizes attributes in variation images.
2015-11-23 16:35:11 +00:00
Dominic
5ef59c511b
Optimize filter loop
...
The current method loops through every defined hook in the WordPress
environment (over 400 on one of my tests). This method only checks the 3
filters in question.
2015-11-17 00:27:44 -08:00
Mike Jolley
b59ec6de76
Move var definition to abstract
2015-11-14 16:39:53 +00:00
Mike Jolley
3a096b3b64
Remove transient from get_total_stock and combine into abstract
...
Grouped and variable methods were identical. Caching benefit comes from
get_children
2015-11-14 16:34:47 +00:00
Mike Jolley
70d9f58811
Version not needed for wc_var_prices
...
This transient doesn’t need to expire often because the hashes will be
unique if taxes change.
This change means a variable product will only use 1 transient rather
than many.
2015-11-13 20:01:42 +00:00
Scrutinizer Auto-Fixer
08efaf84df
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-11-05 16:05:03 +00:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
6027b355ca
Further get_variation_prices tweaks
...
For 2.5, I’ve adjusted the caching to store 1 transient per variable
product. The cache key etc is still needed, but its stored within a
single transient instead of several.
This should prevent exponential growth of transient data for users.
Thoughts?
@daigo75 @franticpsyx @claudiosmweb
2015-10-09 12:49:39 +01:00
Mike Jolley
84f83e0bf4
Fix return value @roykho
2015-10-05 14:39:08 +01:00
roykho
5ba6ff1dac
fix variation image flicker issue when default variations are set closes #7904
2015-10-02 03:45:11 +02:00
Diego Zanella
5da98ce782
Fixed loading of variation prices
...
The original method loaded the prices once, then stored them in a property of the product instance. Any subsequent calls to WC_Product_Variable::get_variation_prices() would get the stored prices, regardless of the value of the $display argument.
2015-09-25 16:11:41 +01:00
Mike Jolley
3dbe9ccd95
Better fallback for ajax variations in case sync_attributes has ran
2015-09-14 16:50:58 +01:00
Mike Jolley
fc78f85bc6
Merge branch 'pr/9034'
2015-09-14 15:56:38 +01:00
Mike Jolley
3a1bcd8e7d
Store prices in class to prevent running get_variation_prices multiple times
2015-09-14 15:09:57 +01:00
Mike Jolley
2d90e1c6c6
Ensure _product_version checks act the same regardless of the attributes being checked
2015-09-14 12:12:05 +01:00
Mike Jolley
8ec5986d48
Tweak hash logic
2015-09-09 22:29:54 +01:00
Manos Psychogyiopoulos
e3dad9106f
elseif
2015-09-07 19:17:33 +03:00
Manos Psychogyiopoulos
d9d11974fe
introduce context in transient with price filters
2015-09-07 19:13:41 +03:00