Commit Graph

27 Commits

Author SHA1 Message Date
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