Commit Graph

127 Commits

Author SHA1 Message Date
Mike Jolley 7c037728f6 Merge branch 'fix/14448'
# Conflicts:
#	assets/js/frontend/single-product.min.js
2017-04-27 12:00:05 +01:00
Mike Jolley d546613c25 Merge branch 'pr/14394'
# Conflicts:
#	assets/js/frontend/single-product.min.js
2017-04-27 11:53:08 +01:00
Mike Jolley b8aade8523 Update js-cookie to 2.1.4 2017-04-18 11:44:51 +01:00
Mike Jolley 1f66a29457 Use smoothHeight
Closes #14448
2017-04-17 16:23:04 +01:00
AJ Clarke b8e5fc22a2 Localized Photoswipe script 2017-04-14 09:34:05 -07:00
Mike Jolley 8333d75703 Hash querystring is v not version. Stops infinite loop.
Fixes #13902
2017-04-05 23:42:33 +01:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Mike Jolley deda0f21e9 Load photoswipe template only when scripts and styles are loaded 2017-03-15 13:36:11 +00:00
Claudio Sanches 377fbf9c44 Use WordPress wp_get_password_hint() function to display passowd hint
Closes #13534
2017-03-10 00:48:19 -03:00
Claudiu Lodromanean 8d2fd29396 Don't rtlcss select2.css 2017-02-10 11:39:28 -08:00
Mike Jolley 234b4cfa91 Merge pull request #13009 from woocommerce/gallery-tweaks
Gallery tweaks
2017-02-09 12:34:23 +00:00
Mike Jolley d7e9af3ac8 Use current_theme_supports 2017-02-09 12:34:06 +00:00
Claudiu Lodromanean e45adc14ed Bring up-to-date with master 2017-02-06 10:10:41 -08:00
Mike Jolley 4abe2b8025 Disable smooth height for #12868 2017-01-27 15:37:35 +00:00
Mike Jolley 46367710ee Default themes get theme support 2017-01-27 15:35:06 +00:00
Mike Jolley bf24ba395d Use get_theme_support for gallery features 2017-01-27 14:13:54 +00:00
Mike Jolley aadc1094e0 Merge pull request #12939 from maximus80/carousel-filter
add animationLoop to woocommerce_single_product_carousel_options filter
2017-01-25 00:47:34 +00:00
pierrebuet 41a937041d Updating the way select2 v4 loads translated strings
Correcting Issue #12952.

In select2 v4 the callback functions used to format the messages have
changed their names and the structure of the options have changed,
using now a „language“ object.

I was not able to find a reference in the select2 v4 code how to format
the number of matches back. Further when using v4 I don’t see any
indication on the number of the number of returned matches, so I
consider the parameter as obsolete.
2017-01-23 22:04:52 +01:00
Claudiu Lodromanean 97497e3104 12170 Update doc blocks with new params 2017-01-23 07:54:14 -08:00
Maximus80 21a14b8636 add animationLoop to woocommerce_single_product_carousel_options filter 2017-01-23 14:24:39 +01:00
Claudiu Lodromanean 754a12c88a 12170 Set up RTL generation and enqueuing 2017-01-20 10:29:48 -08:00
Mike Jolley badf8d7d55 Add select2 script and CSS 2016-12-20 16:45:22 +00:00
Mike Jolley 7b739b9367 Register scripts using plugins_url 2016-12-05 18:34:30 +00:00
Mike Jolley ca04ee8e9f Replace 2016-11-22 15:09:37 +00:00
Claudio Sanches 93ecafebec [2.6] Allow password strength meter in Lost Password page, closes #12314 2016-11-11 15:21:06 -02:00
Mike Jolley 7e56707850 Enqueue scripts when shortcode is used 2016-10-17 11:49:51 +01:00
Claudio Sanches 07ae13c51b Fixed coding standards recommended by WPCS 2016-10-13 16:51:18 -03:00
James Koster 3823b78318 Add/product galleries (#11665)
* register prettyPhoto but don't enqueue. #10721

* Remove lightbox option. #10721

Also registers the prettyPhoto styles instead of enqueueing

* Stip all prettyPhoto related stuff from the templates and tidy up some logic. #10721

* Add flexslider assets #10721

* styling and re-adds `woocommerce_single_product_image_thumbnail_html`. #10721.

* Add zoom functionality. #10721

* Move js to single-product.js. #10721

* styling of the gallery thumbnails when using the `product_page` shortcode. #10721

* Only enable the zoom if the image is large enough. #10721

* Use a 4 column layout by default. #10721

* Make the carousel options filterable. #10721

* rtl styles for gallery. #10721

* Don't zoom on handheld devices. #10721

* markup tweaks in prep for photoswipe

* disable zoom for now

* Add and enqueue photoswipe assets

* add the photoswipe template

* initialise photoswipe - it's alive!

* tidy up js. add title. add separate trigger. #10721

* Move photoswipe functions to single-product.js. #10721

* reactivate the zoom! #10721

* style the photoswipe trigger. #10721

* disable flexslider animation loop. #10721

* js tidy up. #10721

* Fix jshint

* Abstract the product gallery scripts

* Minify

* Fixed conflict with the admin bar

* Photoswipe conflict with admin bar

* Index. #10721

* photoswipe button styles. #10721

* Styling. #10721

* No animation on zoom
* Image width on mobile

* No shadows please. #10721

Looking at you, Twenty Twelve.

* code tidy and add class to placeholder figure. #10721

* simplify rtl query

* photoswipe button styles

* Comma should not be here

* zoom icon #10721

* gallery thumb styles. #10721

* trigger icon. #10721

* Image margins. #10721

* icon hover states. #10721

* Variation handling

* Fix zoom and heights

* Resize after timeout
2016-10-13 15:25:42 +01:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Aristeides Stathopoulos d4e3faf014 PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket 2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos 0516e96843 PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket 2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos 32ddc22465 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterComma 2016-08-27 05:14:16 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Gabor Javorszky ddd34a4460 Fix add to cart variation AJAX mode when cart fragments are dequeued
No issue.

* high traffic site, so wc-cart-fragments are dequeued (#7777)
* variable product with a lot of variations, so stock lookup happens through ajax
* previously the add-to-cart-variation.js used the wc_cart_fragments_params for the ajax URL, which in this case wasn't available, the result was a hung page
* decoupled from cart fragments: added the wc_ajax_url to the params that wc_add_to_cart_variation_params gets, so no more hung pages.
2016-08-11 01:17:43 +01:00
Mike Jolley 7861b76e9b Checkout handling
Also introduces add_item so you can add items to an order before the
order exists. Save at once is more efficient.
2016-08-09 14:02:40 +01:00
Mike Jolley 2295f40fcd Update jquery payment
Closes #11012
2016-06-01 11:33:53 +01:00
Mike Jolley 693a5ab34a Missing script dependencies 2016-04-25 14:40:08 +01:00
Mike Jolley d1f363c356 Exclude geolocation of bots by user agent
Closes #10626
2016-04-01 11:14:26 +01:00
Kevin Killingsworth 30a272e58a Add remove coupon ajax handling in cart.
Add code to handle ajax call for removing a coupon from the cart.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth ce90c440cb Cart ajax: apply coupon
Adds an ajax call for applying coupons while on the cart
screen (not checkout, as it already has this.)

This is the first commit to add ajax calls to the cart update
functions. See issue #6734
2016-02-12 15:43:05 -06:00
Mike Jolley 4c29b7607f Show notices on variation button clicks
Closes #10281
2016-02-08 16:21:02 +00:00
Mike Jolley aa4bfde937 Remove deprecated chosen js scripts 2016-02-08 12:10:42 +00:00
Mike Jolley 6a8e89da2f [2.5] HTML5 validation message on weak password, and append to indicator 2016-01-28 15:36:24 +00:00
Mike Jolley a2843c03c7 [2.5] Added password hint text and error messages 2016-01-27 10:54:03 +00:00
Claudio Sanches 4f3ef79b8c Added password strength meter to my account > edit account page
Closes #10103
2016-01-22 17:33:35 -02:00
Shiva Poudel df0b6eb9d5 Updated select2 version to register script 2015-12-09 13:15:46 +05:45
Mike Jolley 1b5af9e188 Output the wp.template instead of passing in 2015-12-04 14:28:32 +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
Claudio Sanches e1c2054b5c Improved how geolocation js check for pages where shouldn't load
Simplified all checks in just one
Less PHP and JS conditionals

cc @mikejolley
2015-11-04 01:51:54 -02:00
Claudio Sanches fde904b27a [2.4] Fixed redirection loop on customizer screen
It's caused an redirection loop on the customizer page when
activated "Geolocate (with page caching support)" option

cc @mikejolley
2015-11-04 01:20:16 -02:00