Commit Graph

300 Commits

Author SHA1 Message Date
Claudio Sanches 79ff1b10e7 Stop removing backslash from passwords 2019-04-24 19:37:07 -03:00
Mike Jolley c523c379b4 Correct postcode validation on account page 2019-04-24 12:23:48 +01:00
Mike Jolley c39f447ff4 Merge branch 'fix/22937' 2019-03-12 13:27:13 +00:00
Mike Jolley e8aecdb824 Use wc_format_coupon_code when handling posted values
wc_clean and other functions strip characters - using wc_format_coupon_code keeps it consistent with post_title formatting.
2019-03-06 11:44:27 +00:00
Mike Jolley b12f549533 Add try catch block to pay_action 2019-03-01 11:25:31 +00:00
Claudio Sanches ff614f4f99 Catch WC_Data_Exception to avoid black screen
Also incldued a check to avoid duplicated messages about invalid billing
address emails.
2019-02-18 17:25:25 -03:00
Mike Jolley c62c1e1d05 Fix save logic by moving setter into loop grabbing the value
Broken by https://github.com/woocommerce/woocommerce/pull/22650 phpcs changes
2019-02-14 15:22:36 +00:00
Mike Jolley 53b9e219e7 Add notice when registration is complete 2019-02-04 15:49:10 +00:00
Mike Jolley 5b3b285a9d phpcs 2019-02-04 15:31:35 +00:00
Mike Jolley 6367d19615 phpcs 2019-01-21 08:11:40 -08:00
Kathy Darling f9fecefb5f Add product object and add to cart success status as params for woocommerce_add_to_cart_redirect filter 2018-12-04 11:58:14 -06:00
Peter Fabian 897af8d20e Updated phone validation and formatting rules. 2018-08-24 15:43:46 +02:00
Mike Jolley f9530c3ba2 Remove order again from URls 2018-06-22 13:32:21 +01:00
Mike Jolley f89724b718 Remove order again from form handler 2018-06-22 12:39:06 +01:00
Mike Jolley 3140a0fb62 More customistion options for terms and conditions. 2018-04-06 11:43:30 +01:00
Mike Jolley 5d6b43dbc8 Update nonce handling 2018-03-13 14:16:56 +00:00
Alex MacArthur 870338ee5d Make compliant w/ coding standards, sanitize ID. 2018-02-22 07:01:49 -06:00
Alex MacArthur 08982af65c Set to empty string in case invalid ID is passed. 2018-02-22 06:58:18 -06:00
Alex MacArthur c87c5627bb Add fallback support for passing user_login in password reset link. 2018-02-22 06:58:18 -06:00
Alex MacArthur e01385d2b4 Remove user login from reset password link. 2018-02-22 06:58:18 -06:00
Claudio Sanches 0f797714f1 Tweaks on account display name 2018-02-21 21:52:45 -03:00
Claudio Sanches c0e29d0cbe
Merge branch 'fix/17606' into add/17606 2018-02-21 21:34:38 -03:00
Gerhard Potgieter 94640ef5af Add back wc_get_product 2018-02-02 12:58:05 +02:00
Gerhard Potgieter fa7fd2228c Add check that product is not false before calling methods in if. 2018-02-02 12:56:24 +02:00
Mike Jolley e56b007af1 Correctly sanitize posted attributes when JS is off. 2018-01-26 16:11:53 +00:00
Mike Jolley 2ca2cc0f6c Update billing if account form changes. 2018-01-09 17:50:43 +00:00
Caleb Burks 82c5975b37 Prevent duplicate IDs on checkout page 2017-12-17 22:43:51 -06:00
Arif Widianto 53dafc9bde Removing unnecessary extra spaces 2017-12-13 15:51:54 +07:00
Boro Sitnikovski b6801d3761 Fix wrong call 2017-12-07 20:16:54 +01:00
Boro Sitnikovski 145d47c580 Decouple cart templating methods from WC_Cart class 2017-12-05 13:00:21 +01:00
Claudio Sanches 41335ae9b5 Remove "wc_error" query string after login process
Closes #17957
2017-11-29 19:57:59 -02:00
Arif Widianto 51948b7ae5 Fix account page for providing display_name edit 2017-11-28 07:56:36 +07:00
Arif Widianto 0b42515c93 Provides edit display name in my-account page (#17606) 2017-11-22 15:20:49 +07:00
Mike Jolley 698db6c131 When custom attributes are created, they are decoded. Make the values match.
When we create/link variations, the entities are decoded.

When the variation form is posted, the entities are encoded (esc_attr).
This decodes them so they match correctly. Fixes #17820
2017-11-20 20:51:32 +00:00
Mike Jolley c92f61d6d4 Variation add to cart logic 2017-11-15 16:29:04 +00:00
Mike Jolley 9f059e17a9 Add helper function instead of calling method, and restore old method for bw compat 2017-11-08 15:07:00 +00:00
Gerhard Potgieter 7b9fb6c0cb Change nocache_headers hook firing (#17540)
* wp hook is too late to fire the nocache_headers filter, some caching plugins read it before that it seems.

* Create do_not_cache_page helper function and call that instead of nocache_headers

* Must add checks to prevent caching on certain pages as well

* Nothing to return
2017-11-08 14:27:30 +00:00
Mike Jolley 72c10bdd33 Remove email to login handling code 2017-10-20 09:21:07 -07:00
Gary Ritchie cc44e72e61 sanitize _POST 2017-09-22 20:52:38 -07:00
Gary Ritchie a25d3c8af4 Allow registration to redirect to same page
Fixes #16889
2017-09-21 20:50:45 -07:00
Claudiu Lodromanean abc43c473e Merge pull request #16877 from nicoladj77/patch-1
Check for nonce when Cancelling Order.
2017-09-21 10:27:12 -07:00
Nicola Peluchetti 74bea6ec7d Check for nonce when Cancelling Order. 2017-09-21 03:08:06 +03:00
Mike Jolley c91cd01379 remove spam field
Closes #16862
2017-09-20 11:51:33 +01:00
Mike Jolley a8a33c8f0d Merge pull request #16717 from woocommerce/refactore/wc_maybe_define_constant
Use wc_maybe_define_constant() in all places
2017-09-07 12:16:13 +01:00
Claudio Sanches f8f9c7b04c Merge branch 'master' into add_to_cart_variation 2017-09-06 14:33:57 -03:00
Mike Jolley 7fefc5f5b5 Revise logic to deal with variation IDs 2017-09-06 17:05:21 +01:00
Mike Jolley 6fee915fdb phpcs 2017-09-06 16:47:48 +01:00
Mike Jolley 6ff78e29fe Fix conditonal on cart redirect
Closes #16724
2017-09-06 13:44:30 +01:00
Claudio Sanches a13158a75a Apply wc_maybe_define_constant() in all places 2017-09-05 16:52:39 -03:00
James Golovich 562912a27a Allow variable products to be added via simple HTTP Request
Matches existing behavior of simple products that allow adding via a URL link.
2017-09-05 09:12:53 -07:00