Commit Graph

310 Commits

Author SHA1 Message Date
Marco Almeida 4800fda66c
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() 2019-08-29 08:45:41 +01:00
Gerhard Potgieter 556a238dfb
Merge pull request #24021 from AndyMardell/feature/allow-notice-type-changes
Allow notice type changes when updating cart contents
2019-07-14 21:06:20 +02:00
Andy Mardell 9d4e7f2e12 Rename filters 2019-07-09 21:22:41 +01:00
Gerhard Potgieter 213e52852c
Merge pull request #23968 from woocommerce/fix/23954
Allow display multiple error messages through registration validation
2019-07-04 13:17:39 +02:00
Andy Mardell 821d387c19 Add full-stop to inline comment 2019-07-01 08:31:10 +01:00
Andy Mardell f2152e665e Allow notice type changes when updating cart 2019-06-27 14:54:35 +01:00
Claudio Sanches 6989532274 Allow display multiple error messages through registration validation 2019-06-19 18:09:28 -03:00
rmalviya 5df3621640 Do not unslash password when resetting
Similar to PR(#23926) don't unslash password fields when posted
while resetting password or changing account details.
2019-06-14 09:16:21 +05:30
rmalviya 01025f9628 Stop unslashing password while registering user
After 79ff1b10e password is not unslashed while logging in but
this missed removing `wp_unslash` from password while registering.
This causes the mismatch of password if user registered with a
password containing quote (`"`).
Fixes #23922.
2019-06-14 09:16:21 +05:30
Claudio Sanches 836083c064 Fixed number of args for woocommerce_valid_order_statuses_for_cancel 2019-05-14 12:52:54 -03:00
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