Mike Jolley
1b5af9e188
Output the wp.template instead of passing in
2015-12-04 14:28:32 +00:00
Mike Jolley
3ae614c5a8
Wrap is Always visible since 2.5.0
2015-12-04 13:45:47 +00:00
Mike Jolley
b7d8091a44
pass full variation object into script instead of parts
2015-12-04 13:31:36 +00:00
Mike Jolley
2c023a2847
Pass the wp.template to the script and append so its added to the page once when needed
2015-12-04 13:26:44 +00:00
Tiago Noronha
105105db06
Adds support for srcset and sizes attributes in variation images.
2015-11-23 16:35:11 +00:00
Claudio Sanches
034871a395
Fixed js coding standards
2015-10-28 16:52:31 -02:00
Mike Jolley
dddca9b7a6
Avoid animation when no text is present
2015-10-28 15:43:06 +00:00
Mike Jolley
edd2e4f2cb
wp.template is not required for cart button
2015-10-28 14:59:40 +00:00
Mike Jolley
f7a065fb53
Button initial state
2015-10-28 14:27:02 +00:00
Mike Jolley
6f5aaa69da
Fix single variable
2015-10-28 13:53:51 +00:00
Mike Jolley
a28da6eabc
Remove wc_variations_description_update effects
2015-10-28 13:04:45 +00:00
Mike Jolley
f050c804e1
Use wp.template for variation and variation button
2015-10-28 13:04:28 +00:00
Claudio Sanches
9b47f3866a
Prevented reset to default option when click in any attribute option
...
Improvement for #9335
2015-10-27 17:59:26 -02:00
Claudio Sanches
2f0f8f5b3e
Fixed focus on attributes select fields for variable products
...
This is an issue on IE 11, since we test for "focusin touchstart", IE 11
can't loses the focus and need to this "snippet" to make IE work like
another browsers.
Closes #9335
2015-10-27 17:24:32 -02:00
roykho
52ec35cab6
tweak to use product class function instead of body class function
2015-10-02 10:26:53 +02:00
roykho
5ba6ff1dac
fix variation image flicker issue when default variations are set closes #7904
2015-10-02 03:45:11 +02:00
Mike Jolley
b9381d1495
Revert uniform fix - looking into doing it in-theme
2015-08-21 19:24:39 +01:00
Mike Jolley
10c0b92d0d
Added BW compatibility for themes using 'uniform'.
2015-08-21 15:37:00 +01:00
Manos Psychogyiopoulos
f5691fd82a
animate variations script markup changes
2015-07-31 14:04:55 +03:00
Manos Psychogyiopoulos
dae10a962c
allow product variations data refresh
2015-07-28 15:34:04 +03:00
Mike Jolley
d0c2c10c47
Made the linter happy
2015-07-27 17:55:37 +01:00
Mike Jolley
0ab151562a
Fix issues with trailing slashes on permalinks
...
Closes #8658
2015-07-27 11:56:07 +01:00
Mike Jolley
44b91e5b66
Revert triggerHandlers back to trigger() for BW compat
...
Closes #8569
2015-07-14 10:28:49 +01:00
Mike Jolley
2834eff221
Merge branch 'variations-8477'
...
Conflicts:
assets/js/frontend/add-to-cart-variation.js
assets/js/frontend/add-to-cart-variation.min.js
assets/js/frontend/add-to-cart.min.js
assets/js/frontend/checkout.min.js
assets/js/frontend/geolocation.min.js
2015-07-10 11:37:05 +01:00
Claudio Sanches
62d879e86c
Fixed all jshint errors #4680
2015-07-10 02:13:30 -03:00
Mike Jolley
9531258ee6
Treat each form separately.
2015-07-09 16:21:17 +01:00
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
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
James Koster
aebef4aece
variation img title / caption. closes #8032
2015-04-28 17:19:38 +01:00
Mike Jolley
d7144d9ed6
[2.3] Reset sku when no option chosen
...
Closes #7799
2015-03-23 13:03:53 +00:00
Manos Psychogyiopoulos
60ebac7cdf
allow zero min/max quantity input values
2015-03-10 02:42:00 +02:00
Risto Niinemets
d9e63dcbb2
"hide_variation" hook
2015-02-04 18:08:14 +02:00
boohoogal
538d514cc0
As suggested kept original event and created new event 'woocommerce_variation_has_changed' for after selection has been fully applied. #6833
2014-12-11 10:02:24 +00:00
boolah
ff86dec284
Make custom event 'woocommerce_variation_select_change' for theme developers as last thing we trigger. #6833
2014-12-10 21:43:26 +00:00
Manos Psychogyiopoulos
7d9a8b1a3a
quantity selector dot
2014-10-21 15:26:39 +03:00
Manos Psychogyiopoulos
6f8aa7cb52
backwards compat
2014-10-20 11:59:01 +03:00
Manos Psychogyiopoulos
1e44f0cd68
make variations script re-usable
2014-10-14 11:03:47 +03:00
James Koster
63f45a8720
variation visibility, based on #6182 . #5661
2014-09-26 17:22:43 +01: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
splashingpixels
e19fa9a73c
frontend add to cart variation jshinted and coding standards
2014-03-16 22:19:58 -07:00
splashingpixels
2944658f01
jshinted and coding standards see #4680
2014-02-21 20:08:08 -08:00
Jared Cobb
9fc47db17f
Make frontend scripts safe to run on non WC pages (check for objects)
...
For a more detailed explaination of why this is helpful, see
Issue #4202 . In short, from a dev ops perspective, if we want to build /
concatonate our front end scripts into a single application.js file, we
need to ensure scripts first check for dependent global object helpers
before trying to use them. For example, there are several objects
(created via PHP using `wp_localize_script`) which generate objects such
as `wc_single_product_params`. These objects will not exist on most
other pages, however these scripts attempt to execute code that
references these objects.
2013-12-04 12:15:24 -07: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
eef86ab5eb
First found should be used.
...
@coenjacobs this should go in .15 - the first matching variation should
always be used IMO, not the last.
2013-10-10 14:21:19 +01:00
Manos Psychogyiopoulos
3af1df55c7
Allow variations JS to be used on multiple products in the same form
2013-09-22 18:30:39 +03:00
Mike Jolley
d13ec3bcd6
touchstart event for ios devices. Closes #3376 .
...
@coenjacobs might be good for .15
2013-09-13 15:48:23 +01:00
Mike Jolley
0405fabf69
Alt changes from .14
2013-09-04 17:22:35 +01:00
Mike Jolley
63433bbdd7
Check for undefined attributes. Closes #3487 .
2013-07-30 13:57:42 +01:00
Mike Jolley
17da2c0c44
Prevent breakage when moved to header by w3 total cache Closes #3412 .
2013-07-23 11:49:16 +01:00