Commit Graph

358 Commits

Author SHA1 Message Date
Claudio Sanches fa026ea49d Normalize the "Order #" #8305 2015-06-10 12:09:18 -03:00
Caleb Burks b54ee1efb2 Make the hash translatable/filterable 2015-06-05 12:25:18 -05:00
Claudio Sanches 7a24f7d482 Updated template version for #8232 2015-05-27 12:02:38 -03:00
Nicola Mustone 2c940e2299 Fix fatal error 2015-05-27 16:35:16 +02:00
Jörn Lund b774e46659 add action hook for lostpassword_form
Similar to registration form. see file `templates/myaccount/form-login.php`. Will allow additional captcha testing for example.
2015-03-20 17:44:11 +01:00
Paul Wilde c913316f8b Introduce wc_get_page_permalink. 2015-02-15 19:13:22 +00:00
Mike Jolley ca3d3f7f33 Fix logout endpoint 2015-01-06 14:07:26 +00:00
Gregory Karpinsky 975795119b wc_get_endpoint_url instead of wp_logout_url 2014-11-23 13:42:38 -05:00
claudiosmweb 744f80e0c6 Fixed password reset handler 2014-11-19 16:57:26 -02:00
Mike Jolley 2b8be95360 Remove # (hash) from get_order_number and add to strings instead as needed.
Most places use Order #X
Some places use Order Number: X

Both are now valid.

Fixes #6518
2014-10-24 14:53:43 +01:00
claudiosmweb 8a9e3d7e4f [2.2] fixed edit account page fields, closes #6577 2014-10-21 11:31:17 -02:00
Mike Jolley b09f1062da Merge pull request #6579 from woothemes/hotfix-unqiue-nonce-edit-details
[2.2] Make edit account details nonce unique to customer.
2014-10-21 13:17:36 +01:00
Gerhard 9645519f0f Bump template version for nonce name change. 2014-10-21 09:03:17 +02:00
Gerhard 1c46b7324a Register nonce used same name as register form button. 2014-10-21 08:50:23 +02:00
Gerhard 22cffec564 Revert nonce fieldname to original. 2014-10-21 08:30:30 +02:00
Gerhard 3b1ccbc23b Added var to wrong funciton :| 2014-10-20 09:41:28 +02:00
Gerhard 1fdff91114 Make edit account details nonce unique to customer. 2014-10-20 09:35:54 +02:00
Nicola Mustone 6e9176a5bf Fix disable password submitting twice 2014-10-16 21:59:45 +02:00
James Koster 0fa63d6da0 responsive orders table and adds .shop_table_responsive. closes #5121 2014-10-02 20:44:38 +01:00
shivapoudel fbf0314bb6 Absolute path should have curly braces - part 1 2014-09-22 22:16:03 +05:45
claudiosmweb 066eb3c5b0 fixed wc_get_order_status_name() appear as wc 2.1 order status 2014-09-12 10:01:49 -03:00
Remi Corson b126cc1c63 fixed order status translation 2014-09-11 08:39:00 +02:00
Bryce 101b0eb2e0 Added actions before and after all available downloads
For `my-downloads.php` template file
2014-08-21 20:12:02 +07:00
Barry Kooij 6655188f0b Changed use of get_order with wc_get_order 2014-08-15 14:29:21 +02:00
Tamara Zuk 6da6a6357f Separate edit address forms for billing and shipping 2014-08-08 20:35:12 -04:00
Tamara Zuk cc7e64c139 Add before/after edit address form actions
Introduce woocommerce_before_edit_address_form' and
'woocommerce_after_edit_address_form' actions
2014-08-08 20:23:55 -04:00
Mike Jolley 755001f19b Use order types where required 2014-07-11 12:43:42 +01:00
Coen Jacobs 86a4add087 Merge remote-tracking branch 'upstream/master' into order-factory-refactor
Conflicts:
	includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
Mike Jolley 12cf9edd52 Edit account form hooks
Fixes #5676
Closes #5677
2014-07-02 14:48:23 +01:00
Coen Jacobs 89ea6c46ab Replace new WC_Order calls with get_order 2014-06-13 15:24:51 +02:00
Mike Jolley e0a74fffc4 implement is_status() 2014-05-30 17:43:21 +01:00
Mike Jolley fca32a98de Implement is_status functions and update_status 2014-05-30 17:16:22 +01:00
Mike Jolley 05b9b8af4e get_status_name + my_orders 2014-05-30 16:29:44 +01:00
Yakir Gottesman 6fa1c6efd9 Update form-login.php 2014-05-28 21:00:52 +03:00
Yakir Gottesman 54aec6ee28 Update form-login.php 2014-05-28 20:57:03 +03:00
Yakir Gottesman 2940a35509 RTL the spam trap
Avoids horizontal scroll on rtl. (and some minor code styling)
2014-05-28 20:50:26 +03:00
Mike Jolley ec8ec7b9d6 Merge pull request #5487 from splashingpixels/myaccount
[2.1.x] removed unecessary localization from edit account fixes #5485
2014-05-22 10:04:59 +01:00
Cammy-the-block 4aec620ed3 Fixed my account setting values to wrong user submitted strings. 2014-05-15 19:42:07 -07:00
splashingpixels 4bd0350794 removed unecessary localization from edit account fixes #5485 2014-05-15 05:59:11 -07:00
Mike Jolley 45f1c8a40f Merge pull request #5359 from splashingpixels/feature-edit-password
added a check for current password on password change closes #5177
2014-04-23 11:39:01 +01:00
Mike Jolley 2592ad64d8 Print notices in view order template Closes #5348 2014-04-23 11:37:09 +01:00
Mike Jolley c24ca386cc Template cleanup 2014-04-23 11:37:05 +01:00
splashingpixels fde72164a4 added a check for current password on password change closes #5177 2014-04-22 12:01:57 -07:00
Mike Jolley 937db45913 [2.2] Merge ship to billing and billing only options
+ update options, update files to use new option + function Closes #5284
2014-04-08 16:28:27 +01:00
splashingpixels 1e998f776e template coding standard fixes 2014-04-07 19:29:39 -07:00
splashingpixels ff5384714f myaccount registration added check for auto generate password option 2014-04-01 19:45:25 -07:00
splashingpixels 4e0e184d5a form-login form values were not persistent after failed submission 2014-03-17 09:55:41 -07:00
Mike Jolley c0c21c8364 Unify textdomains Closes #4814 2014-02-17 13:14:45 +00:00
Mike Jolley 0ddff220d5 Make my-account/view-order use the template file 2014-02-17 09:44:45 +00:00
Mike Jolley 29ef76c17c Removed change password template and shortcode class - no longer used.
Change password is built into the edit-account endpoint. @coenjacobs
@hlashbrooke
2014-02-11 10:36:22 +00:00
claudiosmweb 6ccbd2b6f0 removed deprecated function 2014-02-09 03:05:03 -02:00
claudiosmweb d5f840c2ed improved the printf in my-account.php template 2014-02-05 00:57:03 -02:00
claudiosmweb 14e14787fc redirect user in logout to my account page, fixes #4633 2014-02-05 00:55:27 -02:00
Mike Jolley 39344f2ed5 Allow gateways to change the checkout place order button text on selection. Closes #4573 2014-01-28 11:25:57 +00:00
splashingpixels 454b97080a coding standards fixes 2014-01-22 20:36:24 -08:00
splashingpixels b16d5195c8 coding standards fixes 2014-01-14 21:53:37 -08:00
Illimar Tambek 3fc62123a7 Check for actions before looping over them 2014-01-09 12:13:57 +02:00
claudiosmweb c97195d0ad fixed conding standards in templates/myaccount/my-orders.php 2014-01-04 10:45:01 -02:00
claudiosmweb 5cb3849e07 fixed the indentation in templates/myaccount/my-orders.php 2014-01-04 10:40:22 -02:00
claudiosmweb e273026fff introduces the woocommerce_my_account_my_orders_query filter that helps customize the query in My Orders page. fixes #4450 2014-01-04 10:36:30 -02:00
Mike Jolley cdb1ad5e9e On cancel, use cart page unless otherwise defined. Closes #4375 2013-12-30 14:09:50 +00:00
Roy Ho 2dcd0149db missing ending semicolons on wp_nonce_field() 2013-12-07 10:49:53 -08:00
Mike Jolley 8ad1232d93 Use function for lost password url 2013-12-03 16:00:26 +00:00
Mike Jolley 2bd40b29b2 Humanize order number/status string Closes #4225 2013-11-27 15:53:57 +00:00
Coen Jacobs 4afbd0b556 Merge branch 'function-call-refactor'
Conflicts:
	includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley b774e84e29 Revert "Replaced templates functions"
This reverts commit 4ce301a080.
2013-11-25 14:16:26 +00:00
Coen Jacobs 47ae00be28 Page functions woocommerce to wc refactor 2013-11-25 15:07:22 +01:00
Mike Jolley 51ba9c393f WC globals 2013-11-25 14:01:38 +00:00
Mike Jolley 4ce301a080 Replaced templates functions 2013-11-25 14:01:37 +00:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs aaa14894ca Core functions woocommerce to wc refactor 2013-11-25 13:45:04 +01:00
Coen Jacobs 90008d7143 Merge remote-tracking branch 'thenbrent/new_notice_api'
Conflicts:
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-message-functions.php
	woocommerce-ajax.php
2013-11-18 12:44:22 +01:00
Coen Jacobs f0adcb65b7 Merge remote-tracking branch 'thenbrent/add_payment_method_issue_3396' 2013-11-18 12:33:23 +01:00
Mike Jolley 35fc728090 Login form hooks Closes #4059 2013-11-13 12:12:27 +00:00
thenbrent 2fcd615f88 Update calls to wc_print_messages() function
Part of #4034
2013-11-12 20:59:40 -08:00
Brent Shepherd 4a7f207eff Use new ID for add pay method form
Part of #3396
2013-11-05 15:36:00 -08:00
Brent Shepherd b69066405b Move /add-payment-method/ endpoint to /my-account/
Part of #3396
2013-11-05 13:02:13 -08:00
Scott Basgaard 507b7bec96 Use wp_nonce_field. $woocommerce->nonce_field is deprecated. 2013-10-26 16:39:10 +02:00
Mike Jolley f742a91435 Rejig login form closes #4005 2013-10-25 16:10:13 +01:00
Patrick Garman 87c1c46317 Hide shipping address if shipping is disabled 2013-09-21 14:52:49 -05:00
Patrick Garman 249380562a Don't display shipping address if shipping is disabled 2013-09-21 14:13:51 -05:00
Mike Jolley 3ee6e2fa22 Validate rules, instead of doing it by key. Closes #3792. 2013-09-19 14:39:53 +01:00
Mike Jolley ee0ea942d7 Merge pull request #3676 from dominic-p/view-order-template
Add template for single order view in my account
2013-09-17 03:49:43 -07:00
Illimar Tambek c599c5ecbe Add 'woocommerce_my_account_edit_address_title' filter 2013-09-17 12:14:48 +03:00
Dominic d06a15ea72 Add a template for view order shortcode
Instead of hard coding the HTML into the shortcode definition.
2013-09-16 14:57:10 -07:00
Illimar Tambek c9a6907fc6 Add woocommerce_my_account_get_addrresses filter and allow getting custom address type fields. 2013-09-10 15:39:23 +03:00
Mike Jolley 64d87cbef7 Make logout an endpoint. Still hide it from menus. Fixes #3589
@coenjacobs do we need to do something about this for .14? Will leave
for you next week :)
2013-08-23 16:41:02 +01:00
Mike Jolley 596f4d1a23 More login hooks Closes #3543. 2013-07-30 13:38:45 +01:00
Mike Jolley 55150a08d8 Notices 2013-07-30 13:03:18 +01:00
Mike Jolley 725cb7714b More endpoints for myaccount pages, and endpoint options so they can be modified. Closes #3170. 2013-07-23 17:05:01 +01:00
Mike Jolley 79bdbbe4d0 Localisation Closes #3456. 2013-07-19 14:46:02 +01:00
Mike Jolley c72ae714f7 Removed nonce helper
@coe
2013-06-11 17:55:55 +01:00
Mike Jolley 646a8a008c Make use of new functions 2013-06-11 15:59:54 +01:00
Coen Jacobs e6bea70f62 Abstracted messages helper to class 2013-06-06 15:56:24 +02:00
Coen Jacobs a09ebc9cca Merge branch 'helpers-refactor' into core-class-refactor
Conflicts:
	classes/class-wc-shortcodes.php
	classes/shortcodes/class-wc-shortcode-change-password.php
	classes/shortcodes/class-wc-shortcode-view-order.php
	templates/myaccount/form-change-password.php
	templates/myaccount/form-login.php
	templates/order/order-details.php
	woocommerce-functions.php
2013-06-06 13:55:36 +02:00
Coen Jacobs 88a7f0f720 Abstracted nonce helper to class #3282 2013-06-05 15:43:24 +02:00
Mike Jolley a3c2cef3f7 Better account edit Closes #3168 2013-06-05 12:07:23 +01:00
Mike Jolley 4aef7c73ee View order page endpoint 2013-06-04 17:33:43 +01:00
Mike Jolley 820d399b2f My account registration, made registration process DRY, added notification hook for new accounts. Closes #3085 2013-06-04 16:33:05 +01:00
claudiosmweb 6adec88c40 fixed woocommerce_my_account_my_address_formatted_address filter name 2013-04-08 17:15:51 -03:00
Mike Jolley 594bc7b383 Tweak filter name #2895 2013-04-08 20:36:36 +01:00
Mike Jolley de3cce85dc Merge pull request #2895 from claudiosmweb/address_filters
Added new filters to format the address
2013-04-08 12:35:33 -07:00
claudiosmweb 2aa712ef4a added filters to format the address 2013-04-07 05:31:21 -03:00
Daniel Espinoza eb6dfe9ad4 Changes to template files that were causing validation errors. 2013-04-05 21:56:36 -05:00
Matt d6f0b02313 Tabindex -1 on anti-spam input field 2013-03-19 15:14:09 -04:00
Max Rice 61bfe201d1 Add filters to allow orders with custom statuses to be paid/cancelled 2013-03-06 18:42:48 -05:00
Mike Jolley 7cee909c70 'for' 2013-02-15 10:06:32 +00:00
Mike Jolley a98de826f0 Tidied up order display #2452 Added new line count function 2013-02-15 09:54:06 +00:00
Ken Bass 91d77c5392 Make my order filters more flexible 2013-02-14 14:33:47 -05:00
Mike Jolley 2b4c428414 actions hook for buttons. Closes #2074. 2012-12-28 20:04:18 +00:00
Mike Jolley 0fb50856b9 Account page tweaks for #2027 2012-12-23 12:19:56 +00:00
Brian Richards 3b9b100356 Clean up my-account template
This patch moves Available Downloads into it's own separate template
file, and moves the titles for Recent Orders and My Addresses into
their respective templates as well. This patch also adds a couple of
new hooks and filters for making templating even easier.
2012-12-20 11:34:39 -05:00
Coen Jacobs 37feabd87f WooCommerce 2.0 is coming! 2012-12-03 20:19:58 +01:00
Mike Jolley b1ec4b289a Nuked whitespace. Closes #1846. 2012-11-27 16:22:47 +00:00
Mike Jolley 8c3ad31c07 Localisation spacing. 2012-10-16 10:45:33 +01:00
Coen Jacobs 943091d2ca [3.1.4] Prevent direct access to files #1575 2012-10-15 12:57:58 +02:00
Mike Jolley 3367403772 tweaks to password 2012-10-10 10:32:22 +01:00
Mike Jolley 07c9537fbb Merge pull request #1568 from maxrice/lost-password
added lost password shortcode / email notification
2012-10-09 22:09:25 -07:00
Mike Jolley 0d6c533484 Hooks for downloads. Closes #1536. 2012-10-09 14:00:08 +01:00
Max Rice 2faa4d651b added lost password shortcode / email notification
I think the current process for a customer to reset their password is
jarring, especially if the shop hasn't styled the wordpress login form
to match their branding. The form process is mainly copied from the
same process in wp-login.php and fires the same actions to maintain
compatibility.
2012-10-04 14:51:07 -04:00
Mike Jolley b4132a1adf Revert "Merge pull request #1414 from dasongoh/patch-1"
This reverts commit 2d8193acfd, reversing
changes made to a0217e15ed.
2012-08-23 11:43:55 +01:00
dasongoh a28d11e737 Update templates/myaccount/my-orders.php
Short of one <th> (total 4, should be 5) in <thead> for corresponding <td> (total 5). Table headers misalignment.
2012-08-23 18:41:19 +08:00
Mike Jolley ef7ec98f2e templates 2012-08-14 23:43:54 +01:00
Mike Jolley 9acb170520 Option to register using the email address as the username instead of entering a username. Closes #1027. 2012-08-10 12:15:32 +01:00
Coen Jacobs 863918f7f4 Revert "Moved # character in translatable order strings. Closes #1161"
This reverts commit f6c83fe6aa.
2012-06-20 19:18:16 +02:00
Coen Jacobs f6c83fe6aa Moved # character in translatable order strings. Closes #1161 2012-06-20 19:14:33 +02:00
Mike Jolley 5d9e4b9e82 Added hook for recaptcha. Closes #1136. 2012-06-10 14:26:07 +01:00
Mike Jolley 0fce6aecaa localisation issues Closes #1106. 2012-06-06 21:35:40 +01:00
albertorrent 521aa024af Update master 2012-06-06 02:40:16 +03:00
Brent Shepherd 6df9fff54d Adding "Replacing instances of "woocommerce_price($order->order_total)" with new WC_Order::get_formatted_order_total() function. 2012-04-27 12:22:19 +10:00
Mike Jolley 7ccefed4d7 View order tweaks
* Tweak - Changed recent order tables to make them slightly more compact
* Tweak - Moved recent order table to a template file
* Tweak - Improved default view-order page when order id is not defined
- instead of stating "invalid order" it will list recent orders
2012-04-09 23:57:57 +01:00
Mike Jolley e19f46c79d Add new terms + printf vs echo sprintf Closes #138. 2012-04-09 00:57:38 +01:00
Mike Jolley 659d3ee3b4 get order number function complete with filter. Tweak the display of order ID's if you use custom numbering.
Had to tweak some localisation strings to dump the '#' symbols.
2012-03-26 11:26:50 +01:00
Mike Jolley 8212e768f7 Option to reorder items by GeertDD
Removed the my account links because it was a bit busy there, + you
cannot see the items in the order anyway.
2012-03-15 00:25:51 +00:00
Geert De Deckere b3933a3407 Added nonce check 2012-03-14 15:00:09 +01:00
Geert De Deckere 0b53bc07b0 Started building the possibility for a customer to place a previous order again 2012-03-14 13:48:49 +01:00
Mike Jolley 02fe1b5889 Default values for my account 2012-02-29 10:07:53 +00:00
Mike Jolley 59c7ca1189 My account remembers post data upon error 2012-02-27 18:47:31 +00:00
Mike Jolley 01bc65dc7f Minor tweaks + disable shipping option turns off shipping address display 2012-02-27 15:02:44 +00:00
Mike Jolley 82cc872247 Missing errors 2012-02-26 11:49:43 +00:00
Mike Jolley 04fde0a603 Improved edit address. Closes #689. 2012-02-22 21:06:08 +00:00
Andrew White fb6e50f942 Add classes to My Orders table so table can be styled easier 2012-02-10 05:15:54 +00:00
Geert De Deckere 82f0e24204 Missing paragraph tags on the account page 2012-02-09 11:31:21 +01:00
Mike Jolley 3b5272e72e Improved template loader 2012-02-03 16:42:21 +00:00
Mike Jolley 35fadb00fe More consistent template file naming, broken checkout into templates 2012-01-29 13:36:33 +00:00
Mike Jolley 0836ce04db Better class names (final) 2012-01-27 16:38:39 +00:00
Mike Jolley 1f89670da2 Date fixes 2012-01-25 15:23:32 +00:00
Geert De Deckere 7706ecfe7b Starting class names with a capital. Closes #519. 2012-01-21 10:07:54 +01:00
Mike Jolley ef0ce00090 security fix 2012-01-18 17:19:04 +00:00
Mike Jolley 23a3776f04 Tweaks to order/validation class to improve performance 2012-01-13 00:46:56 +00:00
James Koster c82fa1ae79 Removed incorrect capitalisation 2012-01-12 15:28:02 +00:00
Mike Jolley bc91c1433b Goodbye &new. Closes #475. 2012-01-10 15:11:06 +00:00
Mike Jolley aba310f321 WPML filters #244 2012-01-06 17:14:31 +00:00
Mike Jolley f74e041a30 Renamed textdomain Closes #444. 2012-01-05 11:31:22 +00:00
Mike Jolley 3fe3fffe90 Address. Closes #301. Closes #395.
Improved checkout processing.
Made edit-address use the locale specific address fields.
2011-12-21 16:03:45 +00:00
Mike Jolley 17a59bf3ec Formatted address function + added to my account 2011-12-18 01:29:10 +00:00
Mike Jolley f778c4f3ec Started new structure, moved short codes into template files, moved main class into main file 2011-12-09 17:01:56 +00:00
Mike Jolley 3a03e094c3 Registration on My Account page. Closes #174. 2011-11-14 16:46:11 +00:00