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
293c998a1d
Set price slider min to min price. Closes #4183
2013-12-03 13:39:02 +00:00
Mike Jolley
af34b43ee6
Tweaks for #4239
2013-12-03 12:14:12 +00:00
Ewout Fernhout
bfa4ce53ff
Allow custom checkout fields to be localized
2013-11-28 15:46:08 +01:00
Mike Jolley
0fae180f24
Minify all the things
2013-11-25 16:03:43 +00: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
Brent Shepherd
4a7f207eff
Use new ID for add pay method form
...
Part of #3396
2013-11-05 15:36:00 -08:00
Mike Jolley
b4d1c764d5
Move average rating outside of hidden tab. Closes #3867 .
2013-10-31 16:26:20 +00:00
James Koster
1fbb6249ff
Replaced → / ← on frontend with icons from our font. closes #4009
2013-10-28 09:45:59 +00:00
James Koster
e934947152
Remove placeholder polyfill. closes #4012
2013-10-28 09:03:03 +00:00
Mike Jolley
ece95e25ce
When handling variations, priority from top to bottom - disabled variations still taking into consideration allow you to exclude certain combinations when using 'all' for variations with lower priority. Message displayed if a variation is unavailable.
...
@coenjacobs please review
2013-10-10 16:34:44 +01:00
Mike Jolley
eef86ab5eb
First found should be used.
...
@coenjacobs this should go in .15 - the first matching variation should
always be used IMO, not the last.
2013-10-10 14:21:19 +01:00
Mike Jolley
1b91c75039
Tweak add to cart message. Closes #3876 .
2013-10-04 12:26:11 +01:00
Mike Jolley
8f196130ff
Don't show view cart message on cart page. Closes #3877
2013-10-04 12:21:28 +01:00
Justin Stern
e584ea83a2
Fixed Multiple Sets of Tabs on One Page Bug
...
When clicking on a tab on a page with multiple sets of products/tabs,
other products/tabs were influenced due to a missing jquery context
element
2013-10-03 14:23:50 -04:00
Mike Jolley
72c00a601a
Standardized, default credit card form for gateways to use if they support 'default_credit_card_form'. Closes #3616
2013-09-27 13:22:08 +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
ef24dfeac6
minify #3817
2013-09-23 15:53:21 +01:00
Manos Psychogyiopoulos
3af1df55c7
Allow variations JS to be used on multiple products in the same form
2013-09-22 18:30:39 +03:00
Mike Jolley
5f7753b343
Checkout error hook
...
@coenjacobs useful for .15 IMO
2013-09-16 14:55:21 +01:00
Mike Jolley
d13ec3bcd6
touchstart event for ios devices. Closes #3376 .
...
@coenjacobs might be good for .15
2013-09-13 15:48:23 +01:00
Mike Jolley
0405fabf69
Alt changes from .14
2013-09-04 17:22:35 +01:00
Mike Jolley
e1631bd084
Reloads checkout after registration which fixes #3612 , removes some notices preventing login cookie being set, moves cart check for #3162
...
No perfect solution for #3162 . DB locking would probably cause more
issues that its worth, we cannot reliably use transactions as some
clients still use MyIsam. Best to accept orders and deal with stock
conflicts after the fact.
2013-09-04 11:26:19 +01:00
Mike Jolley
54b3d53a1b
Flag a refresh when creating an account to prevent nonce issues. Fixes #3612 .
...
@coenjacobs Might be for .14? Part of it anyway, can't cherry pick this
one.
2013-09-02 17:43:57 +01:00
Mike Jolley
e01df544ec
Reworked total templates to support coupon lines, and started support for multiple shipping methods per order.
...
@todo store shipping methods in the order
@todo test with PP shipping real world
cc @coe
2013-08-14 21:00:34 +01:00
Mike Jolley
f8aaef00e4
Replace placeholder script. Closes #3586 .
2013-08-13 12:50:47 +01:00
Mike Jolley
7fda2bd832
Search for US/UK on country field. Fixes #3626 .
2013-08-13 12:38:26 +01:00
Mike Jolley
4b223f6260
Min
2013-08-06 14:04:40 +01:00
Legradi Szabolcs
94f8baee1a
Coupon slidedown animation clipping effect, fixes #3590
2013-08-06 10:36:28 +02:00
Mike Jolley
03af136986
Separate ship to options from sell to. Closes #3215 .
2013-08-02 16:54:28 +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
63433bbdd7
Check for undefined attributes. Closes #3487 .
2013-07-30 13:57:42 +01:00
Mike Jolley
17da2c0c44
Prevent breakage when moved to header by w3 total cache Closes #3412 .
2013-07-23 11:49:16 +01:00
Mike Jolley
19674a3d15
Allow autofill and use 'input' event to detect changes. Closes #3503
2013-07-21 10:38:22 +01:00
Mike Jolley
feb8d759a8
Only refresh fragment when cart cookie > 0
2013-07-10 17:07:25 +01:00
Neil Pie
687e1fb06a
Update add-to-cart-variation.js
2013-06-22 14:00:37 +02:00
Mike Jolley
9684ad95f7
Trigger an action when the variation form is attached
2013-06-17 13:53:21 +01:00
Mike Jolley
e1b49eb783
Checkout js
2013-06-14 12:22:00 +01:00
Justin Stern
d8ba734d4f
Bugfix: Always Submit Selected Shipping Method on Update Checkout
...
Fixes a bug where the shipping method was not posted on update checkout
if only a single shipping method is available (it's a hidden input
rather than a select or radio group)
2013-06-13 00:28:46 -04:00
Mike Jolley
c72ae714f7
Removed nonce helper
...
@coe
2013-06-11 17:55:55 +01:00
Mike Jolley
4f0320fdb2
Refactor frontend scripts #3165
2013-06-11 13:31:41 +01:00
Mike Jolley
71c57ecfd7
Extra trigger for slider
2013-06-06 12:30:55 +01:00
Mike Jolley
ac51ebf2b8
Revised checkout shipping process. Checkbox within heading. Closes #2571 .
2013-05-28 14:19:08 +01:00
James Koster
d1fbc3b7f1
replaced placeholder plugin
...
old one no longer in active dev
2013-05-21 12:46:47 +01:00
Mike Jolley
ffe064db99
Delegate order by Closes #3080 .
2013-05-10 12:47:43 +01:00
Mike Jolley
d0ee67d9e1
Trigger when loading fragments Closes #2985 .
2013-04-23 15:37:19 +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