Commit Graph

39 Commits

Author SHA1 Message Date
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 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
Claudio Sanches 1dadbb2842 Fixed coding standards for #7879 2015-04-13 12:37:22 -03:00
Danny van Kooten 88f2e690bb Changing all inefficient selectors of $('body') to $(document.body), which is about 80% faster (and even more on mobile, see https://jsperf.com/jquery-body-vs-document-body-selector/2 ). 2015-04-03 14:21:47 +02:00
Mike Jolley 21c5513526 Added endpoint for faster ajax requests 2015-03-20 12:28:26 +00:00
Mike Jolley 3ac113367d Pass clicked button to added_to_cart Closes #7550 2015-03-02 12:14:15 +00:00
James Koster e856377194 bye bye quantity increments. closes #6752 2014-11-18 13:29:58 +00:00
claudiosmweb c683720b02 Removed old ajax_loader_url param from all js files 2014-11-14 09:52:44 -02:00
Mike Hughes 5c4c5c1516 Fixed indentation for fix #6193 2014-09-09 12:43:56 +01:00
Mike Hughes be5623cf91 Fix for issue #6193 - loop through data- attributes for form submission data instead of hard coded 2014-09-09 12:41:14 +01:00
splashingpixels fc913b850f frontend add to cart jshinted and coding standards 2014-03-16 22:26:55 -07:00
toddlahman 13c24b410e Removed (document).ready from jQuery scripts
jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
2014-01-30 18:44:17 -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
James Koster 1fbb6249ff Replaced → / ← on frontend with icons from our font. closes #4009 2013-10-28 09:45:59 +00:00
Mike Jolley 8f196130ff Don't show view cart message on cart page. Closes #3877 2013-10-04 12:21:28 +01:00
Mike Jolley ef49977905 add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
Closes #3484 and Closes #3143. Pinging @thenbrent as the handler was
originally his idea and I've killed it.

@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley 4f0320fdb2 Refactor frontend scripts #3165 2013-06-11 13:31:41 +01:00
Dominic c07fac099f Removed commas after last item in object
Older IEs have issues with this for some reason.
2013-04-19 17:55:43 -07:00
Mike Jolley 85f98e48c7 Fix checkmark Closes #2951. 2013-04-15 12:36:04 +01:00
Mike Jolley 9977031a5d Nonces cannot be used on all pages with cache - removed them for add to cart actions + fixed caching for hiding the cart 2013-04-08 18:43:07 +01:00
Mike Jolley 7a84ddd6c1 Tidied up settings, removed some un-needed settings, and made some settings automatic e.g. coupons disabled if no coupons exist 2013-02-10 23:02:52 +00:00
Mike Jolley fc84aacd14 Modify trigger. Closes #2324, #2323 2013-02-01 15:04:10 +00:00
Mike Jolley fdfa0d6efb QTY Closes #2280. 2013-01-28 11:42:03 +00:00
Mike Jolley b211894d3c Get cart from ajax or local storage to prevent cache 2013-01-28 10:59:24 +00:00
Mike Jolley 0c523d30b1 @coenjacobs See this. Custom ajax handler and cart refresh per page load to get around cache issues. Custom handler foes *feel* a little wrong but since it doesn't load admin, it loads 100% faster. 2013-01-27 18:55:30 +00:00
Mike Jolley a3e5748369 Add to cart json #2268 2013-01-22 16:33:33 +00:00
Mike Jolley 9e72c6a879 Pevent error if no fragments are returned 2013-01-22 14:30:21 +00:00
Mike Jolley 5507e8453f Remove depricated jQuery Closes #2039 2012-12-28 13:02:12 +00:00
James Koster f5552e0b5e retina'd frontend ajax loader 2012-12-13 15:53:36 +00:00
James Koster 6e2b7067a2 Revert "fade the view cart link in"
This reverts commit ffb4b207d4.
2012-12-11 18:15:57 +00:00
James Koster d37435eaea Revert "still need the added class!"
This reverts commit f0641a5c05.
2012-12-11 18:15:38 +00:00
James Koster f0641a5c05 still need the added class! 2012-12-11 18:10:00 +00:00
James Koster ffb4b207d4 fade the view cart link in 2012-12-11 18:05:08 +00:00
James Koster cf8f381bd8 added title to added_to_cart anchor 2012-12-11 17:29:58 +00:00
Mike Jolley c394119983 Ajax view cart. Closes #1948. 2012-12-10 13:11:05 +00:00
Mike Jolley b450616848 woocommerce_ajax_loader_url 2012-08-25 10:32:14 +01:00
Mike Jolley 50b62fe4d4 tweak to add to cart logic 2012-08-24 18:44:11 +01:00
Mike Jolley 30b8ddaf1d Split up frontend scripts so they can be loaded when needed. 2012-07-17 15:09:18 +01:00