Commit Graph

220 Commits

Author SHA1 Message Date
Mike Jolley 98d247eb76 Rather than storing prices themselves, store the ID's of variations during price sync - output prices using variation tax class Closes #4032 2013-11-08 15:53:57 +00:00
Kathy Darling b444b42275 pass $children variable (variations) to the woocommerce_variable_product_sync hook 2013-10-31 09:17:00 +01:00
Mike Jolley e143d344e5 Constants 2013-10-24 19:36:22 +01:00
Mike Jolley cc397a89d5 variable_product_sync should reload prices. Closes #3889 2013-10-11 15:56:13 +01:00
Mike Jolley ece95e25ce When handling variations, priority from top to bottom - disabled variations still taking into consideration allow you to exclude certain combinations when using 'all' for variations with lower priority. Message displayed if a variation is unavailable.
@coenjacobs please review
2013-10-10 16:34:44 +01:00
Mike Jolley ef49977905 add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
Closes #3484 and Closes #3143. Pinging @thenbrent as the handler was
originally his idea and I've killed it.

@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley de9bc28b43 Prevent variable products without variations from being posted and show error in admin. Closes #3763 2013-09-24 16:37:51 +01:00
Mike Jolley 9a98be6a15 WOOCOMMERCE_DELIMITER constant. Closes #3476. 2013-09-24 12:24:26 +01:00
Mike Jolley b93df4e706 Excl and incl. display options for prices, and suffix to add additonal info and prices. Closes #1506. 2013-09-19 16:31:54 +01:00
Mike Jolley 0405fabf69 Alt changes from .14 2013-09-04 17:22:35 +01:00
Mike Jolley d021980c10 Rather than have hooks *everywhere* use a single set stock function in admin and on the frontend Closes #3593 2013-08-13 16:56:09 +01:00
Mike Jolley 57157db9bf Function refactoring. 2013-08-09 17:11:21 +01:00
thenbrent 3ce6f3012d Set default $product_id on variable_product_sync() 2013-08-01 17:54:24 -07:00
thenbrent 825587da6a Backward compatible variable_product_sync()
Adds new static sync() method to WC_Product_Variable and restores
variable_product_sync() to its former, non-static glory. Also makes
the $product_id param optional on variable_product_sync() to avoid
breaking backward compatibility.
2013-08-01 17:35:54 -07:00
Mike Jolley 63b203955b Fix syncing and make variable_product_sync static for admin use. Closes #3450 2013-07-30 12:15:09 +01:00
Kathy Darling f743018ea1 add action woocommerce_variable_product_sync to variable sync 2013-07-26 11:59:34 -04:00
Mike Jolley 805a9e617c Use get_price and introduce get_regular and get_sale_price methods. Closes #3427 2013-07-23 11:29:04 +01:00
Mike Jolley f8f3f8a660 Fix sale expiration for variations. Closes #3321.
@coenjacobs might be useful for .13
2013-06-28 09:58:07 +01:00
Mike Jolley 2a6bae4e0a Change is_visible for variations to make method calls cleaner. 2013-06-14 12:21:38 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00