Commit Graph

15 Commits

Author SHA1 Message Date
Joe Flynn 652a66e3d1 ensure storage is writable when setting support flag. fixes #6755 2014-11-14 14:14:56 -05:00
Mike Jolley 2b4906bf4c Prevent security error with try catch block Closes #5275 2014-04-07 14:34:47 +01:00
splashingpixels 6d2aa8b3c3 cart-fragments jshinted and standard coding fixes 2014-03-17 19:56:31 -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
Mike Jolley cc40557077 filter for cart fragment #4132 2013-11-20 16:31:28 +00:00
Scott Basgaard f3b2854638 woocommerce_json_search_products() is now a method of WC_AJAX. Use $this->json_search_products() instead. 2013-11-19 14:44:28 +01:00
Scott Basgaard bee41fb7e5 woocommerce_get_refreshed_fragments() is no longer. Update where it was called to new Ajax class method. 2013-11-19 13:33:26 +01:00
Mike Jolley 34624fa4ca Rather than check if cart has contents, standardize cart hash adn cookie so its refreshed once. Closes #3505.
@coenjacobs for .14
2013-07-30 15:23:08 +01:00
Mike Jolley feb8d759a8 Only refresh fragment when cart cookie > 0 2013-07-10 17:07:25 +01:00
Mike Jolley 4f0320fdb2 Refactor frontend scripts #3165 2013-06-11 13:31:41 +01:00
Mike Jolley d0ee67d9e1 Trigger when loading fragments Closes #2985. 2013-04-23 15:37:19 +01:00
Mike Jolley 422b07b262 Reveal cart on adding_to_cart action 2013-04-09 09:38:55 +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 d403f4d9bc Split out fragment code into wc-cart-fragments Closes #2528 2013-02-26 12:15:12 +00:00