Mike Jolley
68974655d6
Tweak visible child product query and cache
2015-06-08 13:18:23 +01:00
roykho
b812b2fd94
add dynamic variation description feature
2015-05-14 10:56:26 -07:00
Mike Jolley
906940791a
Merge branch 'variation-prices-sync'
2015-05-01 15:01:14 +01:00
Illimar Tambek
3e9c56a5ca
Pass current variation to woocommerce_hide_invisible_variations filter
2015-04-29 12:16:58 +03:00
Nicola Mustone
d2af01df5b
scrutinizer suggested tweaks
2015-03-27 16:15:40 +01:00
Mike Jolley
302fca886c
ID needs to be part of transient
2015-03-25 16:27:11 +00:00
Mike Jolley
8cb2ca86d7
Store variation ID in transient
2015-03-25 16:23:19 +00:00
Mike Jolley
c76a08aad2
woocommerce_variation_prices filter
2015-03-25 15:48:51 +00:00
Mike Jolley
01c13a52cd
Fix price/sale price listings
2015-03-25 15:23:28 +00:00
Mike Jolley
99fcb77262
woocommerce_get_variation_prices_hash array
2015-03-25 14:52:33 +00:00
Mike Jolley
0ab0a12156
_has_multiple_variation_tax_rates no longer needed
2015-03-25 13:37:11 +00:00
Mike Jolley
9f50d41b97
New approach to getting min/max variation prices using transients
...
New method will get all prices and store in array format. Cached based
on user location (tax) and product transient hash.
Fixes #6504
2015-03-25 13:35:49 +00:00
Mike Jolley
d9455994c8
Use 30 days instead of year for transients to avoid bugs in memcache plugins.
...
Closes #7520
2015-02-24 12:02:56 +00:00
Scrutinizer Auto-Fixer
19f660171e
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-01-23 14:37:20 +00:00
Mike Jolley
186f223d92
Fix indents in #7174
2015-01-23 11:17:27 +00:00
Diego Zanella
dbeeb6d7b5
Fixed bug in is_on_sale() method
2015-01-22 16:05:59 +00:00
Diego Zanella
04bf4fecd2
Added/altered product filters to make them work consistently
...
* WC_Product_Variable::get_variation_regular_price() now always calls the "woocommerce_get_variation_regular_price" filter (removed early exit).
* WC_Product_Variable::get_variation_sale_price() now always calls the "woocommerce_get_variation_sale_price" filter (removed early exit).
* WC_Product_Variable::is_on_sale() now calls the "woocommerce_product_is_on_sale" filter.
* WC_Product_Grouped::is_on_sale() now calls the "woocommerce_product_is_on_sale" filter.
2015-01-22 13:02:43 +00:00
Mike Jolley
36841589cf
Merge pull request #7123 from splashingpixels/variation-price-issue
...
correctly display FREE if all prices are zero ref #6929
2015-01-16 16:14:02 +00:00
splashingpixels
eee5d16844
changed comparison type to non strict in case a string is passed
2015-01-16 06:52:49 -08:00
splashingpixels
187f6729e9
correctly display FREE if all prices are zero ref #6929
2015-01-15 20:19:33 -08:00
Brent Shepherd
ed0593fc4a
Set variable product virtual/downloadable property
...
Based on whether all children are virtual/downloadable.
Fixes #7072 .
2015-01-15 17:06:09 -08:00
Mike Jolley
7ef8f4d156
Invalidate unknown product transients Closes #6815
2014-12-30 15:27:08 +00:00
Mike Jolley
4a57cd3f7d
'Free' for variable products without a range of prices. Closes #6929
2014-12-30 15:13:34 +00:00
Spencer Hill
d8c8d37fd6
Using post_status of 'any' causes a conflict with the WP Invoice Plugin by Usability Dynamics resulting in the Select Box for Variable Subscriptions - when the WooCommerce Variable Subscriptons Plugin is installed and activated - not functioning and returning an error to the user on the front end. Since it's filtering out the Trash status, and others, anyway when being displayed on the front end we found that setting the post_status to publish resolved the issue and doesn't appear to have adverse affects elsewhere.
2014-12-19 13:21:15 -08:00
Manos Psychogyiopoulos
4b04701cc8
add display_prices in variation data
...
The commit introduces 3 changes:
1. It adds 2 extra fields to the available_variations array,
display_price and display_regular_price, to be used by extensions in
cases like
https://github.com/woothemes/woocommerce-product-addons/issues/19
2. Introduces a get_display_price() function in WC_Product to retrieve
product prices incl or excl tax relative to the
woocommerce_tax_display_shop setting.
3. Fixes a minor issue where passing a 0 price to
get_price_including_tax() or get_price_excluding_tax() results in a
wrong output.
2014-12-03 11:28:04 +02:00
Mike Jolley
c2ce3b0d88
Tidy
2014-10-14 14:25:53 +01:00
Mike Jolley
26186f815a
Fix potential error if variation doesn't exist
2014-10-09 11:20:46 +01:00
Mike Jolley
58904fcf83
Removed deprecated get_product() calls
2014-10-07 11:09:25 +01:00
Manos Psychogyiopoulos
0966519adc
woocommerce_get_children filter from 2.2
2014-10-01 19:42:20 +03:00
James Koster
63f45a8720
variation visibility, based on #6182 . #5661
2014-09-26 17:22:43 +01:00
Mike Jolley
744549ad13
[2.2] Use variation get_stock_quantity() for max_qty
...
Fixes #6339
2014-09-24 11:15:56 +01:00
shivapoudel
26d4abb88c
Absolute path fix for class-wc-product-variable.php
2014-09-21 00:42:58 +05:45
Mike Jolley
3f53512c7f
Fix up visibility of stock options, drop downs, and get_availability() when parent is managing stock for a variation.
...
Fixes #6017
2014-08-13 15:03:30 +01:00
Mike Jolley
b1c76adb56
Send product object to woocommerce_stock_html filter. Closes #6016
2014-08-13 11:30:47 +01:00
Mike Jolley
7f825a98ce
Tweak get_children to look for empty transient
2014-08-12 12:06:18 +01:00
Mike Jolley
0f6f04e017
Added wc_stock_amount() core function and replaced intval
...
#4612
2014-06-25 11:25:28 +01:00
Mike Jolley
21d37e86c2
Handle stock for self and children, as well as syncing status with the children
2014-06-24 13:03:25 +01:00
Mike Jolley
b86b4c91c6
Simplify get_children and use stock status rather than stock level
2014-06-20 10:50:31 +01:00
Mike Jolley
3df6a71b96
Removed some transient clears where unnecessary
2014-06-19 12:25:10 +01:00
claudiosmweb
05a6914ebc
fixed WC_Product_Variable::set_stock() compatibility with WC_Product::set_stock()
2014-05-10 17:45:14 -03:00
Tamara Zuk
7ba3089909
Backorders at variation level
...
Added a new select metabox for variations allowing users to control
backorders at the variation level.
Might need more testing.
ref: #5351
2014-04-21 21:13:13 -04:00
Mike Jolley
51482579d1
sync min and max prices for regular and sale prices so prices are displayed correctly when sale price is lower than a regular price of another variation
2014-03-19 10:51:07 +00:00
Mike Jolley
7f7dae0629
get_children visible only arg to hide out of stock items. Moved logic.
2014-03-19 10:06:13 +00:00
Mike Jolley
b321d6297b
Use is_purchasable to determine if a variation cart button is needed, and potentially show empty_price_html Closes #5137
2014-03-17 12:12:10 +00:00
Mike Jolley
7f417c0e8e
Fix sale flash for out of stock sale items Closes #5119
2014-03-14 13:41:25 +00:00
Coen Jacobs
3617316357
Updated expiry times for transients
2014-03-12 12:58:41 +01:00
Coen Jacobs
03163c54b0
set_transient calls should have expiration to prevent autoloading
2014-03-07 09:29:01 +01:00
Mike Jolley
ba466b3de9
Fix variation price display by checking if a variation is actually stock managed before comparing to stock amount Closes #5059
2014-03-06 12:07:28 +00:00
Mike Jolley
e557ff5aec
Use woocommerce_notify_no_stock_amount not 0, Closes #5035
2014-03-04 14:46:17 +00:00
Mike Jolley
decfca94a4
Updated sync logic to exclude hidden and out of stock variations from the price display #5035
2014-03-04 14:44:24 +00:00