Commit Graph

159 Commits

Author SHA1 Message Date
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
Neil Pie 687e1fb06a Update add-to-cart-variation.js 2013-06-22 14:00:37 +02:00
Mike Jolley 9684ad95f7 Trigger an action when the variation form is attached 2013-06-17 13:53:21 +01:00
Mike Jolley 4f0320fdb2 Refactor frontend scripts #3165 2013-06-11 13:31:41 +01:00
Mike Jolley 789e917a7c Backwards compat 2013-03-23 15:10:42 +00:00
Mike Jolley 55b6a59e44 Check variation exists. Closes #2700. 2013-03-18 14:03:39 +00:00
Mike Jolley 089178e0e8 escape when output, not when saved. #2587 2013-03-05 21:20:00 +00:00
Mike Jolley 038eceffc8 Fix clear image reset 2013-02-19 11:03:23 +00:00
Mike Jolley c903e47089 Improve variation form pattern and data 2013-02-07 10:12:08 +00:00
Mike Jolley bbc8cea1aa remove, don't hide, variation attributes 2013-02-01 11:49:29 +00:00
Mike Jolley c394119983 Ajax view cart. Closes #1948. 2012-12-10 13:11:05 +00:00
Mike Jolley 4720628a71 Hooks galore for integers vs floats. Closes #1113. 2012-11-19 14:05:06 +00:00
Mike Jolley 2d0909d28b Update weights/dimensions for variations if they differ. Closes #1629. 2012-11-16 13:50:15 +00:00
Mike Jolley 8986da2ec2 This is fixed in iO6, so just show an alert when nothing matches. Closes #1737. 2012-11-14 15:38:56 +00:00
Mike Jolley 39b7567b0c product_variations[] Closes #1581. 2012-10-12 14:21:21 +01:00
Mike Jolley 79324412d4 sku tweak. Closes #1479. 2012-10-08 13:54:31 +01:00
Mike Jolley ead3e8313e Final image handling tweaks. 2012-10-05 19:02:02 +01:00
Scott Basgaard f5999c270b Update Product Image Title w/ Variation Image for Lightbox 2012-09-25 14:22:22 +02:00
Mike Jolley 53c5fbee40 Fix - Variation sku updating after selection. 2012-09-05 16:57:19 +01:00
Mike Jolley 431316dfd3 small variable naming tweak 2012-08-25 16:00:40 +01:00
Mike Jolley 3eeae3a164 Hide cart button when a variation is out of stock with disabled backorders. Closes #1419. 2012-08-25 11:02:02 +01:00
Mike Jolley c42814bbc6 Added fallback for variations variable (JS) 2012-08-25 10:11:23 +01:00
Mike Jolley 5ab84b2b98 Pass variation to show_variation trigger (JS). Closes #1431. 2012-08-25 09:51:20 +01:00
Mike Jolley e7c5542762 javascript tweak for #1416 2012-08-24 21:46:32 +01:00
Dominic 601852df87 Renamed variable, avoid window.name collision
Using a variable called `name` causes the global `window.name` to be reset. Simply renaming the variable prevents this.
2012-08-22 23:11:30 -07:00
Mike Jolley 822a03529b min 2012-08-22 16:36:08 +01:00
Manos Psychogyiopoulos bf59c718c0 Fix annoying sliding effect on option change. 2012-08-22 09:51:19 +03:00
Mike Jolley 40cc7b997d Scope. Closes #1364. 2012-08-21 16:41:18 +01:00
Mike Jolley 6cd409b7a4 Fixes for #1347. 2012-08-08 11:53:36 +01:00
Mike Jolley 56e8689c5d Merge pull request #1347 from scottbasgaard/master
Update Variation Image Title/Alt
2012-08-08 03:44:49 -07:00
Scott Basgaard 713f6fa6f5 Update Variation Image Title/Alt
We should update the image title/alt when the product image changes for different variations.
2012-08-07 10:37:00 +02:00
Mike Jolley 417fd73ab1 undefined check. Closes #1294. 2012-07-26 15:43:47 +01:00
Aaron Holbrook b4a62dc49b Fixed typos (depreciate should be deprecate) 2012-07-23 13:14:02 -05:00
Mike Jolley 30b8ddaf1d Split up frontend scripts so they can be loaded when needed. 2012-07-17 15:09:18 +01:00