Mike Jolley
65f19d5ca7
Ajax variation handling
...
If there are more variations than the threshold allows (set to 20
currently) this loads the matching variation via ajax instead of inline
in the HTML. #8477
2015-07-09 15:56:20 +01:00
Mike Jolley
622b11ae9f
Add version check to prevent pre-2.4 logic kicking in when not needed
...
@claudiosmweb
2015-06-16 15:10:53 +01:00
Mike Jolley
12396f4296
Attempted bw compat by comparing sanitised text to real text
2015-06-11 15:42:18 +01:00
Mike Jolley
89f7e15052
Save full version of text based attributes when dealing with variations
2015-06-11 14:43:02 +01:00
Mike Jolley
aaaef5bfcf
[2.3] Incorrect wc_product_total_stock_ transient
...
Closes #8337
2015-06-10 18:28:34 +01:00
Ben Bidner
7d8db595f2
Fixes an (admin) SQLi when setting stock levels for product variations
2015-06-01 12:58:38 +01:00
roykho
54b0a0ca54
changed dynamic variation description to allow limited HTML and some sanitized tweaks
2015-05-28 14:31:45 -07:00
roykho
b812b2fd94
add dynamic variation description feature
2015-05-14 10:56:26 -07: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
3415b5d7c0
In the cart, add variation selected data to the permalink.
...
Closes #6060
2014-11-27 15:04:24 +00:00
Manos Psychogyiopoulos
0b275de06a
Issue 5661: filter params
2014-11-19 19:46:05 +02:00
Kathy Darling
3d4a534e6a
rename method to has_all_attributes_set
2014-10-17 17:24:04 +02:00
Kathy Darling
0304778f18
add variation class method is_all_defined() which tests if all the attributes are set
2014-10-15 09:11:41 +02:00
Mike Jolley
58904fcf83
Removed deprecated get_product() calls
2014-10-07 11:09:25 +01:00
Mike Jolley
a8d5ca561d
Merge pull request #6405 from tamarazuk/master
...
[#6337 ] Return variation meta if it exists
2014-10-02 12:42:45 +01:00
James Koster
63f45a8720
variation visibility, based on #6182 . #5661
2014-09-26 17:22:43 +01:00
Tamara Zuk
c5374201cb
[ #6337 ] Return variation meta if it exists
...
includes some code standards cleanup
2014-09-26 06:45:15 -04:00
shivapoudel
1f4db18e7f
Absolute path fix for class-wc-product-variation.php
2014-09-21 00:43:30 +05:45
Barry Kooij
06103c6cd2
Fixed a varation product width inheritance bug.
2014-09-17 11:00:14 +02:00
Barry Kooij
72c6f262f1
Width should be allowed to be set in a Product Variation.
2014-09-16 14:02:26 +02:00
Barry Kooij
b1daae5d0d
Setup variable to prevent a notice if no variable data is set.
2014-09-16 13:21:09 +02:00
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
thenbrent
1a15cb03bd
Allow WC_Product_Variation children to extend meta
...
When SHA: 50a0577b81
introduced `$variation_level_meta_data` and
`$variation_inherited_meta_data`, it set their access to `private`.
Child classes of `WC_Product_Variation` should be able to extend these
properties to allow them to take advantage of the parent's `__isset()`
and `__get()` methods.
Related to #6065
2014-08-28 11:30:11 -07:00
Mike Jolley
50a0577b81
Separate inherited meta data from variation level meta data to stop bubbling up.
...
Fixes #6065
2014-08-28 15:38:51 +01:00
Mike Jolley
c51fac23e0
Availability with backorders not requiring notification.
2014-08-15 15:29:14 +01:00
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
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