Commit Graph

46 Commits

Author SHA1 Message Date
urosmil 5ec04d9398
Add endpoints to account menu items filter
This change will add possibility for adding new custom links to woo account, not only changing labels of existing ones.
2018-05-06 09:56:28 +02:00
Claudio Sanches b17440623e Fixed includes/wc-account-functions.php PHPCS violations 2018-03-07 10:55:46 -03:00
Mike Jolley b3d051565f code standards 2018-02-19 13:10:36 +00:00
Jonathan MacGregor c82297ca10
Update wc-account-functions.php 2018-02-16 13:19:50 +00:00
Jonathan MacGregor 29d53969c4 Logout from My Account Menu now appends the nonce 2018-02-16 13:10:17 +00:00
Mike Jolley 79e9464dc3 wc_lostpassword_url should not be used before init
Closes #17974
2017-12-05 14:25:24 +00:00
Boro Sitnikovski 9869503ed5 Define the variable in case the flow doesn't branch 2017-09-29 18:16:26 +02:00
Claudio Sanches 56f654eb4c Allow define customer ID in wc_get_account_formatted_address()
This should help 3rd party integrations, like custom emails or invoices.

Releated to #16165
2017-08-08 12:08:06 -03:00
Mike Jolley a97d3470db Merge branch 'master' into pr/16164
# Conflicts:
#	includes/class-wc-cache-helper.php
2017-08-08 13:12:37 +01:00
Mike Jolley 2f6aaa85bb Avoid using meta directly 2017-08-08 13:04:27 +01:00
Paul Wilde b64d855d96 Introduce `wc_get_account_formatted_address` function which removes a bunch of logic outside of the my-account template file. 2017-07-18 15:18:53 +01:00
Paul Wilde 60bbb41be8 Introduce `wc_get_account_orders_actions` function to reduce the amount of logic inside the account orders template files. 2017-07-18 15:03:26 +01:00
Mike Jolley 3939f50ced Download display in account/checkout 2017-07-11 13:45:35 +01:00
Mike Jolley 69838b2f4b Fix missing title for actions column
Closes #14581
2017-04-24 15:20:20 +01:00
Claudiu Lodromanean 4bae06b198 Dont redirect lost password on multisite global pages 2017-03-30 10:53:03 -07:00
Caleb Burks 9b22886a0d Allow password resets when account page isn’t set 2017-01-30 22:59:32 -06:00
Mike Jolley 9a9d133fc3 Use correct endpoint for lost password link 2016-12-07 12:07:10 +00:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Mike Jolley 78bde4ad09 Tweak download layout 2016-09-12 23:00:31 +01:00
Aristeides Stathopoulos 72696901f3 WordPress.WhiteSpace.OperatorSpacing.SpacingAfter 2016-08-27 09:14:06 +03:00
Aristeides Stathopoulos ff852038c9 WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys 2016-08-27 06:11:30 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Claudio Sanches 475cc036e5 Return full URL when using wc_get_account_endpoint_url() function, closes #11365 2016-07-05 19:09:03 -03:00
Claudio Sanches 3592bb61ba Fixed payment-methods exclusion from accout menu items 2016-06-30 14:38:34 -03:00
Claudio Sanches 18b1b8c238 Disable empty my account endpoints, closes #11274 2016-06-30 13:58:10 -03:00
Mike Jolley 9a77620cc4 Split download permission query from order retrieval to reduce overhead.
Closes #11274 @claudiosmweb
2016-06-29 12:06:03 +01:00
Mike Jolley 1247195e55 Ensure customer object exists
For #11227
2016-06-23 12:18:26 +01:00
Claudio Sanches ce96d637c3 [2.6] Hide 'payment methods' screen if no methods support it, closes #11127 2016-06-14 20:19:30 -03:00
Claudio Sanches d43145d979 Fixed tests for wc_get_account_menu_items()
cc @mikejolley
2016-05-24 19:11:21 -03:00
Mike Jolley b059c6b454 Hide downloads tab if empty 2016-05-24 19:09:13 +01:00
James Koster 9e65542d98 Apply Suit CSS naming conventions to classes in account area. closes #10660 2016-04-15 15:11:14 +01:00
Mike Jolley 333a391406 Remove wc_get_account_orders_query_args
#10500
2016-03-09 13:26:54 +00:00
Justin Shreve 9db1f65196 Hook up the payment token API to the my account > payment methods tab 2016-03-01 11:49:41 -08:00
Justin Shreve 5d8967c7d7 Prepare a list of payment methods for output on the payment methods "my account" page. 2016-03-01 11:49:40 -08:00
Justin Shreve b2b9d7e4da Give the downloads and payment methods pages their own filters. 2016-02-16 11:52:08 -08:00
Claudio Sanches 2de00c61ff Added account endpoint for customer payment methods 2016-02-16 13:57:46 -02:00
Claudio Sanches d34c580e1d Fixed order default qty 2016-02-16 13:50:06 -02:00
Claudio Sanches daf2f92a8c Added dashboard menu item and created function to get menu item classes 2016-02-16 13:50:06 -02:00
Claudio Sanches d193caa987 Better pagination for account > orders 2016-02-16 13:50:06 -02:00
Claudio Sanches 564f882fee Fixed typos 2016-02-16 13:50:06 -02:00
Claudio Sanches 6993e52ce5 Account functions tests 2016-02-16 13:50:06 -02:00
Claudio Sanches 3a3380e4ab Created account downloads endpoint 2016-02-16 13:50:06 -02:00
Claudio Sanches 02e3c6362d Created my account > orders template 2016-02-16 13:50:06 -02:00
Claudio Sanches ad9374785f Fixed wc_get_account_menu_items() endpoints 2016-02-16 13:50:06 -02:00
Claudio Sanches 211c379af6 My account initial navigation 2016-02-16 13:50:06 -02:00
Claudio Sanches 7ae806d16f Created new account functions file 2016-02-16 13:43:06 -02:00