Commit Graph

1065 Commits

Author SHA1 Message Date
Mike Jolley 799353e8f2 Wait for variation update before submit
@claudiosmweb
2015-09-08 14:30:41 +01:00
Florian Ludwig 2761a42a13 Fixed one more inefficient jQuery selector 2015-09-07 19:53:47 +02:00
Florian Ludwig 35655f8544 Fixed all inefficient selector usages
Use find for more efficient selectors - more information on e.g.
https://24ways.org/2011/your-jquery-now-with-less-suck/
2015-09-07 19:51:10 +02:00
Mike Jolley e863c4678a min 2015-09-07 16:58:13 +01:00
Mike Jolley 821434cbb7 Fix geolocation redirect with querystring 2015-09-07 16:58:05 +01:00
Mike Jolley 4bda0f2387 check for sizes 2015-09-07 11:38:24 +01:00
Mike Jolley 779e23dfe3 Check for method 2015-09-07 11:38:24 +01:00
Mike Jolley 32a2bbfbd1 Sort out variation loading after attribute save 2015-09-04 14:00:42 +01:00
Mike Jolley 32b220d8b6 Improve variation reload after save attributes
@claudiosmweb
2015-09-03 16:17:08 +01:00
Mike Jolley 889d40b8aa Add data attribute to leave options visible
Closes #9017
2015-09-03 15:38:42 +01:00
Claudio Sanches 1f484e09ed Fixed jslint issues
@mikejolley
2015-09-01 22:10:00 -03:00
Mike Jolley 2f2ae4b6d4 Check href is set 2015-09-01 16:49:03 +01:00
Mike Jolley f7e4bf224d Exclude cart and account pages from geolocation
Closes #8967
2015-09-01 15:41:05 +01:00
Mike Jolley c7a7db4679 For geolocation with static cache support, ensure hash is appended during form submission.
@claudiosmweb Closes #8967
2015-09-01 13:17:59 +01:00
Claudio Sanches 703a2dcace Minify 2015-08-24 13:25:44 -03:00
Mike Jolley b9381d1495 Revert uniform fix - looking into doing it in-theme 2015-08-21 19:24:39 +01:00
Mike Jolley 04a68ad925 Add spinner/loading indication between onboarding steps
Closes #8816
2015-08-21 19:12:36 +01:00
Mike Jolley 10c0b92d0d Added BW compatibility for themes using 'uniform'. 2015-08-21 15:37:00 +01:00
Claudio Sanches b6b34255d2 Stop for change inputs when add a new variation on admin, closes #8874 2015-08-18 13:00:38 -03:00
Claudio Sanches 36bd8538bf Minify 2015-08-18 12:59:40 -03:00
Mike Jolley f2d4a47da1 Add required postcode marker after label replace
Fixes #8857
2015-08-17 13:35:17 +01:00
Mike Jolley 4697f5f600 typo + min 2015-08-17 11:27:11 +01:00
Manos Psychogyiopoulos 9652d881f9 child selector 2015-08-14 09:46:22 +03:00
Manos Psychogyiopoulos a86403f884 toggle metabox classes on boxes added via ajax 2015-08-14 09:38:22 +03:00
Claudio Sanches 086566092a Minify files 2015-08-13 23:37:04 -03:00
Claudio Sanches ac1986412c Stay on the same page when delete a variation 2015-08-12 11:39:55 -03:00
Mike Jolley a3d376b5c3 Tab hiding with some theme markup.
Closes #8791
2015-08-12 12:05:31 +01:00
Mike Jolley 9986240793 min 2015-08-12 11:51:10 +01:00
Claudio Sanches aae3581a28 Minify files for 2.4.2 2015-08-11 14:22:54 -03:00
Mike Jolley 08c751f4fe Minify scripts 2015-08-11 10:46:25 +01:00
Mike Jolley 03f16d6833 Made tab panel selector more specific to avoid theme conflicts. 2015-08-11 10:46:21 +01:00
Claudio Sanches 5e91d27b66 Minify 2015-08-05 16:52:54 -03:00
Claudio Sanches 054dfe0c7b Changed default Underscore's template for wp.template in API Keys 2015-08-05 15:02:55 -03:00
Brent Shepherd 501f0b752f Save product type before saving variations
WooCommerce prior to WC 2.4 saved the product type before any variations were saved because
WC_Meta_Box_Product_Data::save_variations() was called by WC_Meta_Box_Product_Data::save().
However, in WC 2.4 the variations are saved independently of other data about the containing
variable product, including product type. Because the product type hasn't been saved yet,
extensions that need to save their own variation level meta data can't know when saving
variations if the product is of the type they want to act on. They also can't check `$_POST`
to find out when saving variations, because 'product-type' isn't passed to that as it's
variable level meta data, not variation level meta data.

This patch passes the product type along with the variation level meta data when saving variations.
It then uses that to save the product type if the variable product has not yet been saved (and
therefore the product type has never been stored, which means calling get_product() would instantiate
a 'simple' product, as that is the default product type). This can lead to fatal errors if callbacks
expect the product type to be variable and attempt to call methods that only exist on those product
types, like variable_product_sync().

It will also update the product type if it was previously saved but has since changed. This prevents
fatal errors like that mentioned above but caused by switching from one product type, like a simple
product, to another, like a variable product.
2015-07-31 11:42:21 -07:00
Mike Jolley 67788f971d Merge pull request #8696 from franticpsyx/animate-variations-changes
[2.4] Animate variations script DOM modifications
2015-07-31 12:44:18 +01:00
Mike Jolley 82f50cedb0 Allow menu_order sorting like in 2.3
Also allow setting manually to allow sorting between pages.

Fixes #8690
2015-07-31 12:39:23 +01:00
Manos Psychogyiopoulos f5691fd82a animate variations script markup changes 2015-07-31 14:04:55 +03:00
Claudio Sanches b28c6db7f5 Added button to dismiss variation error notices 2015-07-29 19:56:33 -03:00
Claudio Sanches d0e34588aa Updated all .page-selector when change page, closes #8681 2015-07-29 19:25:17 -03:00
Claudio Sanches 8780f2c1ef Fixed chmod to jquery-serializejson 2015-07-29 19:16:27 -03:00
Mike Jolley e3ff9d6e24 Minify 2015-07-28 16:22:00 +01:00
Manos Psychogyiopoulos dae10a962c allow product variations data refresh 2015-07-28 15:34:04 +03:00
Mike Jolley 890bcff302 Fix cart ajax endpoint
@claudiosmweb @BFTrick
2015-07-27 20:02:40 +01:00
Mike Jolley ef5b2007f6 min 2015-07-27 19:03:17 +01:00
Mike Jolley 97bbdb63fa Merge pull request #8663 from roykho/gallery-images
gallery images where not saving
2015-07-27 18:27:00 +01:00
roykho 4203a2cf83 minified file 2015-07-27 10:21:58 -07:00
Claudio Sanches b0ce578541 Show errors for admin ajax variations 2015-07-27 14:16:52 -03:00
roykho 4a8712053f gallery images where not saving 2015-07-27 09:57:21 -07: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