Commit Graph

102 Commits

Author SHA1 Message Date
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
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Mike Jolley 7fdb93329c Merge branch 'revised-single-variation-cart-template'
Conflicts:
	includes/admin/views/html-admin-page-status-report.php
2015-11-02 11:26:49 +00:00
Claudio Sanches 3ab4e76cd0 Replaed old WC_Cart methods to the new functions 2015-10-28 15:56:31 -02:00
Mike Jolley f050c804e1 Use wp.template for variation and variation button 2015-10-28 13:04:28 +00:00
Claudio Sanches eedff144e7 Created assets/js/frontend/password-strength-meter.js #9319 2015-10-09 13:31:47 -03:00
Claudio Sanches 0248ebdac7 Better password-strength-meter load #9319 2015-10-09 11:22:31 -03:00
nishitlangaliya f468f16e29 fixes: changes as per suggestion given by claudiosmweb ref #8938 2015-10-09 13:25:47 +05:30
nishitlangaliya a45ef9f814 fixes: done changes using dom operation. ref #8938 2015-10-08 20:14:53 +05:30
Jeff Stieler a34c0578fb Avoid potential PHP Fatals by avoiding premature script enqueues. 2015-10-05 12:12:19 -06:00
Claudio Sanches 1e5332dc07 Register all styles on frontend before call #8488 2015-10-01 15:31:05 +02:00
Mike Jolley f7e4bf224d Exclude cart and account pages from geolocation
Closes #8967
2015-09-01 15:41:05 +01:00
Mike Jolley 15e3c545df Made checkout make use of new ajax endpoints.
Fixes #8763
2015-08-11 11:18:50 +01:00
Mike Jolley 0ab151562a Fix issues with trailing slashes on permalinks
Closes #8658
2015-07-27 11:56:07 +01:00
Claudio Sanches ce08c336e9 Updated jquery.payment.js to version 1.2.4 2015-07-09 17:17:34 -03:00
Mike Jolley f988aae387 Use hashes and server side redirection 2015-06-22 14:55:15 +01:00
Mike Jolley 389ccd5761 Remove base location from script and don't rely on session storage 2015-06-17 16:56:06 +01:00
Mike Jolley b1441c05c1 Move geolocation to separate script 2015-06-17 14:16:35 +01:00
Mike Jolley 33c298fea7 Experiment with appending geolocation to query string to prevent caching 2015-06-17 12:12:49 +01:00
Claudio Sanches 6d3ea23fac Added woocommerce_add_to_cart_redirect to ajax cart button, closes #8349 2015-06-11 11:40:26 -03:00
Shiva Poudel 9a818503b9 Updated blockUI Version 2015-05-25 17:03:41 +05:45
Mike Jolley 2763175d3e [2.3] Bump prettyphoto version to prevent caching 2015-05-20 10:56:45 -04:00
Mike Jolley c1e3da8bcb Return real json response during checkout
Closes #8086
2015-05-15 13:51:51 +01:00
Mike Jolley 21c5513526 Added endpoint for faster ajax requests 2015-03-20 12:28:26 +00:00
Mike Jolley 66e6366be0 Shipping calculator - Made state/postcode respect country locale like checkout.
Fixes #7637
2015-03-06 12:37:21 +00:00