Mike Jolley
8e0f0cbc29
Lazy load children and attributes for variable products
2018-05-01 11:57:00 +01:00
Claudio Sanches
b2e33b3fb9
Fixed includes/class-wc-product-variable.php PHPCS violations
2018-03-22 15:47:50 -03:00
Amritansh_tact9
10e80c83d1
Applied array_filter() to the $avaiable_variations in WC_Product_Variable::get_available_variations() to ensure only array type values get returned.
...
Added docbock in favor of boolean false for WC_Product_Variable::get_available_variation()
2018-03-07 17:07:42 +05:30
Amritansh_tact9
7e05af1296
Replaced `WC_Product` with `WC_Product_Variation` for a more specific check in WC_Product_Variable::get_available_variation().
2018-03-07 15:59:21 +05:30
Amritansh_tact9
da5e31ce2c
Updated WC_Product_Variable::get_available_variation() to handle cases when variation ID provided is deleted/invalid. Throwing PHP fatal error on the next line where $variation->get_price()
2018-03-06 16:10:49 +05:30
Mike Jolley
80c07d530d
Set woocommerce_hide_invisible_variations to true.
2018-02-09 16:44:41 +00:00
Mike Jolley
c3623a9967
Update docblock for $include_taxes
...
Closes #18053
2017-12-07 11:46:35 +00:00
claudiulodro
9ec24731bb
Generalize child_is_in_stock
2017-11-21 15:06:35 -08:00
claudiulodro
a73436bdcd
Merge remote-tracking branch 'origin/master' into HEAD
2017-11-20 14:43:12 -08:00
claudiulodro
b64b26d030
Variable products are on backorder if all children are backordered
2017-11-20 11:19:06 -08:00
claudiulodro
dddf0ee473
Variable product sync
2017-11-17 08:46:49 -08:00
claudiulodro
be6f9d68bc
Automatic transitions for variables
2017-11-15 12:08:19 -08:00
Mike Jolley
babde741db
Add add_to_cart_description method and aria-labels to cart buttons in the loop
2017-11-14 11:45:16 +00:00
axelmm
59534a09e7
Remove unnecessary html formatting
...
Dimensions and weight were unnecessary formatted as html (duplicating values of dimensions_html and weight_html), not as expected raw values
2017-11-11 22:33:22 +01:00
axelmm
fb94f67b0f
Remove unnecessary formating, fixes #17662
...
https://github.com/woocommerce/woocommerce/issues/17662
2017-11-11 17:26:09 +01:00
Ville Viklund
ae17ccd65f
Fix typo
2017-10-03 15:34:44 +03:00
Mike Jolley
1e9e6c461f
Unit test for #16653
2017-08-31 11:42:19 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Akeda Bagus
53807185a8
Fixed typos.
...
These typos are catched by `misspell` program.
```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen | xargs misspell -w
```
Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Claudio Sanches
e63f42459b
Include image_id again
2017-06-09 15:44:32 -03:00
Claudio Sanches
16d342a6a0
Fixed backwards compatibility with WC_Product_Variable::get_available_variation()
...
Closes #15167
2017-06-08 16:06:06 -03:00
Brent Shepherd
a274000d34
Append variable price suffix only once
2017-06-06 13:40:36 -07:00
Brent Shepherd
acd6bf9cb7
Apply woocommerce_variable_price_html filter once
...
To save a bit of duplicate code.
2017-06-06 13:35:41 -07:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
cb76f38f11
If backorders are enabled, do not make variable products out of stock.
...
Fixes #15087
2017-05-16 13:06:38 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
db5e2572f6
clean up
2017-04-27 13:01:52 +01:00
Kathy Darling
36dbe64170
revert price handling so null price still is filtered by woocommerce_get_price_html. closes #14727 .
2017-04-26 12:37:30 -05:00
Mike Jolley
84c96046f0
Check objects are not false/null
2017-04-07 16:01:51 +01:00
Claudio Sanches
0529e4efab
Merge pull request #14026 from woocommerce/fix/13978
...
Fix variable stock syncing
2017-04-06 16:06:26 -03:00
Claudio Sanches
567a551d83
Fixed shortcode render for variations and backwards compatibility
...
Fixes #13949
2017-04-06 13:00:02 -03:00
Mike Jolley
bf09c7df82
Ensure reg prices are the same
2017-04-06 13:08:18 +01:00
Mike Jolley
7e90a318cd
On variable save, sync with children and avoid transient cache
2017-04-06 12:26:10 +01:00
Mike Jolley
93689a8107
Show a sale price on variable products if on sale and all prices are the same
...
Fixes #13968
2017-04-06 11:01:20 +01:00
Mike Jolley
c06fdc2e2e
If product has_options, don't show qty in grouped product add to cart form
...
Fixes #13875
2017-04-03 12:05:28 +01:00
Mike Jolley
73dd37fbd7
Show variation prices if the sale prices do not all match
...
fixes #13734
2017-03-23 14:21:16 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
5bdeddcb32
Hide suffix on variable product when dynamic.
...
Closes #13494
2017-03-07 13:25:52 +00:00
Brent Shepherd
e427f90a24
Access data store consistently
...
WC_Data object's data store is accessed everywhere else directly
via $this->data_store. This patch uses that same approach here.
2017-02-17 10:25:27 -08:00
Mike Jolley
48c93d5293
Fix variation max qty.
2017-02-17 16:37:40 +00:00
Mike Jolley
1b268d2f63
use helpers
2017-02-17 15:52:47 +00:00
Mike Jolley
d693863ad2
Merge pull request #13064 from thenbrent/variable_product_sync_filters
...
Modify variable product sync hooks
2017-02-10 18:40:48 +00:00
Brent Shepherd
5d560f380a
Remove 'woocommerce_variable_product_synced' hook
...
And add additional suggested alternatives to the deprecated
woocommerce_variable_product_sync hook.
2017-02-10 10:36:35 -08:00
Brent Shepherd
5dec55928b
Add 'woocommerce_variable_product_sync_data'
...
Renaming 'woocommerce_variable_product_sync_before_save'
2017-02-10 10:33:48 -08:00
Mike Jolley
718149f1d4
Merge pull request #12999 from thenbrent/add_sort_variation_prices
...
Move price sorting into WC_Product_Variable::sort_variation_prices()
2017-02-08 10:29:30 +00:00
Brent Shepherd
a9a83ebae2
Add 'woocommerce_variable_product_synced' filter
2017-02-07 14:05:17 -08:00
Brent Shepherd
81ef55ef42
Add woocommerce_variable_product_sync_before_save
...
Removing woocommerce_variable_product_nsync filter and $save param.
2017-02-07 13:57:24 -08:00
Brent Shepherd
d4ff61814a
Deprecate 'woocommerce_variable_product_sync'
2017-02-07 13:51:21 -08:00
Brent Shepherd
f768f9f04b
Add new variable product sync hook
...
To provide a way for callbacks to modify the actual instance of the
variable product being sync'd, especially before its saved, in case
it needs to sync some meta data or other prop that can be set on the
object itself.
2017-02-03 15:30:56 -08:00
Brent Shepherd
a6bed34358
Remoe unused 'edit' param
...
To avoid a merge conflict with #13063
2017-02-03 15:10:19 -08:00