Commit Graph

91 Commits

Author SHA1 Message Date
claudiosmweb ae66ba4553 fixed variation tax_class and backorders
@mikejolley
2014-08-04 16:05:15 -03:00
claudiosmweb b67a1e6b0e stopped endless loop when saving variable product that manages stock
@mikejolley
2014-08-04 15:31:40 -03:00
Mike Jolley e02d94d305 Fix stock logic in 2.2 for variations with parents which manage stock
Closes #5957 @claudiosmweb can you review this change?
2014-08-04 10:51:54 +01:00
Mike Jolley 2cb66fe4b9 Prevent empty attributes in permalinks
Closes #5714
2014-07-30 10:22:15 +01:00
Mike Jolley 50a4c5bd23 Merge branch 'variation-stock-management'
Conflicts:
	includes/class-wc-product-variation.php
2014-06-27 11:15:42 +01:00
Mike Jolley 03de576bfb Data update 2014-06-24 15:21:39 +01:00
Mike Jolley fb592a1a79 Variation class modifications (see details)
- Made it load data on the fly, rather than loading it all at once
- Pull some data from variation, some from parent
- Updated stock methods to use variation or parent depending on
manage_stock
- Ensure parent stays in sync on stock status change event
2014-06-24 13:05:13 +01:00
Kathy Darling 7b201aad58 change is_purchasable() args to match regular product 2014-06-23 10:04:03 -05:00
Kathy Darling 5f56366a0b add filter to is_purchasable() 2014-06-16 12:32:54 -05:00
Mike Jolley 4d2378087e Ensure _stock meta exists, or update will fail 2014-05-12 16:07:51 +01:00
Mike Jolley 3e1d5feaf3 Merge pull request #5353 from tamarazuk/backorder-variations
Backorders at variation level
2014-04-28 15:27:36 +01:00
Mike Jolley ca9955fa9a Update stock amounts with DB queries Closes #5367
@claudiosmweb and @coenjacobs please review
2014-04-25 15:28:02 +01:00
Mike Jolley 3d584bc09a Ignore variation stock if disabled globally Closes #5370 2014-04-24 16:44:01 +01: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 2a27663f1f get_image_id method + use in email template
Closes #5288
2014-04-08 15:02:11 +01:00
Patrick Rauland abd8a36ddc fixing typo in product classes 2014-03-21 16:41:32 -05:00
Mike Jolley 5c75f8a20e Recoded set_stock to only make a variable product out of stock if all variations are stock managed, to to resync prices after stock changes #5035 2014-03-04 14:45:27 +00:00
Mike Jolley 4abcc331dd Ensure stock status is set for variations after setting to 0 Closes #4587 2014-01-29 14:39:55 +00:00
Coen Jacobs 3e6acf7aab Code changes for #4252 2013-12-02 12:34:27 +01:00
Gregory K 7b38c7300b Inconsistent return types: mostly TODOs, some fixes 2013-11-29 13:50:31 -05:00
Gregory K cdbe5950f0 PhpDocs and TODO comments 2013-11-28 11:49:30 -05:00
Coen Jacobs 4afbd0b556 Merge branch 'function-call-refactor'
Conflicts:
	includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley 3408965b8a Product functions 2013-11-25 14:01:38 +00:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs 6acfff9879 Fixed field matching in setting up variations 2013-11-25 09:05:27 +01:00
Manos Psychogyiopoulos fd2a812e6d Fix invisible when get_price is filtered and set to double 0. 2013-11-13 13:58:24 +02: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 c58d5d5ea4 is_in_stock uses notify_no_stock_amount option. Closes #3446. 2013-09-24 13:31:15 +01:00
Mike Jolley 06ef44c9df Pass args to variation forms from cart page. Closes #3568 2013-09-23 15:47:47 +01:00
Mike Jolley 96a7a4b730 Restructure 'file_paths' to allow for names (Closes #3320) etc. For #2765.
@coenjacobs @justinstern @maxrice These are major changes - CC ing you
guys in to take a quick look through. I know some extensions such as
vouchers will be affected.
2013-09-20 17:01:09 +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 b883e92ba1 Fix from .14 2013-09-05 14:52:34 +01:00
Mike Jolley 14e27bb073 Fixes from .14 2013-09-04 14:32:16 +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
Coen Jacobs 5a1cc2362e Strict notice fix for get_price_html implementation 2013-08-07 14:38:31 +00:00
Kathy Darling bdcb4cf169 add woocommerce_get_variation_price_html filter 2013-07-26 09:47:23 -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 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