Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Claudio Sanches
c08aec0680
Only the product name should have quotes #12039
2016-10-07 16:09:28 -03:00
Nico Mollet
35537814d8
Fixing syntax errors
2016-10-07 13:56:42 +02:00
Nico Mollet
9147d124a8
Product name in quotes in cart, after being removed
...
The product name should be in quotes after being removed in cart page.
2016-10-07 11:18:30 +02:00
Claudio Sanches
2e26752e47
Introduces the woocommerce_after_save_address_validation action, closes #11877
2016-09-13 19:13:12 -03:00
Aristeides Stathopoulos
7a509f53d4
Merge pull request #4 from woothemes/master
...
sync
2016-09-09 03:17:28 +03:00
Mike Jolley
7c134d7f7c
Do action when login fails.
...
Closes #11864
2016-09-08 10:06:16 +01:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Mike Jolley
311c540662
Merge pull request #11833 from aristath/master
...
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Claudio Sanches
22fd124b31
Merge pull request #11843 from terence1990/master
...
Order statuses valid for Order Again
2016-09-06 13:40:05 -03:00
terence1990
7f686c2f73
Spaces
2016-09-06 13:00:52 +01:00
terence1990
36311b76f6
Fix: Order Again Statuses
2016-09-05 17:30:58 +01:00
terence1990
8b838c88a8
Order statuses valid for Order Again
2016-09-05 17:25:17 +01:00
Aristeides Stathopoulos
2346c3b735
Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace
2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos
cc0b29ccf4
PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket
2016-09-02 05:00:46 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Mike Jolley
1b2df3dd3b
Merge branch 'pr/11797'
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley
62d0619b1a
Avoid legacy keys
2016-08-30 18:03:00 +01:00
Mike Jolley
7439f6d79f
Use set_props
2016-08-30 17:59:41 +01:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
a19848978a
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterCloseParenthesis
2016-08-27 07:47:24 +03:00
Aristeides Stathopoulos
6c30f84fa2
WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys
2016-08-27 06:23:21 +03:00
Mike Jolley
7cf75f5085
Remove use of deprecated functions
2016-08-22 16:57:54 +01:00
Mike Jolley
3f4ffe8a49
More crud updates
2016-08-19 17:05:47 +01:00
Mike Jolley
5afac69f10
Fix write context errors
2016-08-15 17:50:02 +01:00
Mike Jolley
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
8d58febaf8
Merge branch 'master' into orders-crud-function-update
...
# Conflicts:
# includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley
4ac4bcaa08
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# tests/unit-tests/cart/cart.php
2016-08-09 11:08:21 +01:00
Mike Jolley
39eb584321
Merge branch 'master' into orders-crud-function-update
2016-08-08 17:24:40 +01:00
Mike Jolley
31803f4e51
Billing/shipping
2016-08-08 16:46:58 +01:00
Nathaniel
92b28baeb4
Update class-wc-form-handler.php
...
As a user, I would expect to be returned to the Edit Address page as opposed to the My Account page.
2016-08-06 11:54:44 -07:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +01:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
475d8fc5ed
[2.6] More password check to else block
...
Closes #11623
2016-08-04 11:27:41 +01:00
Mike Jolley
ffb74a7b09
Add user to site on login
...
Closes #11409
2016-08-02 18:28:31 +01:00
Mike Jolley
d2adabaf89
Redirect to login after password reset.
...
Closes #11376
2016-07-27 12:47:41 +01:00
Mike Jolley
c8cce05c4d
Use a cookie and redirect instead of query string
2016-06-24 15:06:01 +01:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Mike Jolley
b569bd2caa
Unique nonce names
...
@claudiosmweb Fixes #11068
2016-06-08 13:19:30 +01:00
Mike Jolley
730019ef18
scrutinizer best practice
2016-06-06 19:39:23 +01:00
Antonino Scarfì
f5603bb762
Avoid leave query string on URL after delete and set default actions for token, from Payment Methods endpoint. Also, change hook position on set default action for token.
2016-05-26 15:50:22 +02:00
Mike Jolley
b441a218a4
Remove logged in notice
...
Closes #10904
2016-05-12 10:36:27 +01:00
Mike Jolley
d6a085b5ae
Improve lost password flow
...
@claudiosmweb Fixes #10785
Add confirmation and explanation after initial reset.
Also splits template files into lost password, reset password, and
confirmation for clarity.
2016-04-27 16:00:30 +01:00
Mike Jolley
29c6acf767
Used positional placeholders in strings where the order of strings may require modification in the locale.
...
Closes #10775
2016-04-25 13:07:41 +01:00
Mike Jolley
be9b7bd4b5
If no variation ID is set, do a match
...
Closes #10737
2016-04-20 12:35:06 +01:00
Mike Jolley
975f9d8c2d
Remove nonce on cancel order URL
...
Nonces are invalid if the user ID changes during checkout e.g. through
registration. Cancel links are invalid.
cc @claudiosmweb
Fixes #10605
2016-03-30 12:45:25 +01:00
Justin Shreve
ffc80ccd15
Start updating some usage, and start implementing the actual CRUD functions, and some new get/setters for username, email, etc.
2016-03-17 09:41:12 -07:00
Claudio Sanches
ffd150d4df
Coding standards
2016-03-08 15:54:19 -03:00
Justin Shreve
31bae0c19e
Hook up the tokenization API to the "add payment method" button in my account settings.
2016-03-01 11:49:41 -08:00
Mike Jolley
8a9060d1c4
Clean/trim values when validating account form
...
Fixes #10324
2016-02-11 14:21:46 +00:00
Dev49.net
c3202298c0
moved actions after order key verification
...
Use case described in Issue #10276
2016-02-05 19:44:55 +01:00
Dev49.net
dcbb17a99d
added actions before and after payment
...
Issue #10276
2016-02-05 01:44:19 +01:00
Mike Jolley
6050b204fc
Support qty display in cart messages
...
Closes #10114
2016-01-20 11:32:49 +00:00
Mike Jolley
b5d7f1de10
[2.5] Only show payment method button when needed, and check for required fields
...
Fixes #10112
@thenbrent @claudiosmweb
2016-01-20 10:47:36 +00:00
Mike Jolley
ef98a2d79c
Compare type
2015-12-03 10:51:07 +00:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Claudio Sanches
3ab4e76cd0
Replaed old WC_Cart methods to the new functions
2015-10-28 15:56:31 -02:00
Florian Ludwig
b549c73dea
Fixed bug where customer couldn't log in because of whitespace after mail address
2015-10-20 21:20:50 +02:00
Mike Jolley
277dbeb029
Merge branch 'WPprodigy-patch-2'
2015-10-06 12:33:55 +01:00
Mike Jolley
5ec400e514
Validate terms and conditions and improve templates
2015-10-06 12:33:45 +01:00
Claudio Sanches
605db1cf3a
hijax for variations on frontend
2015-09-22 13:22:12 -03:00
Akeda Bagus
82a7c70334
Don't show undo link if removed item product is out of stock.
2015-09-11 15:22:09 +07:00
Mike Jolley
38a5d04c53
woocommerce_save_account_details_required_fields hook
...
Closes #9056
2015-09-07 15:21:57 +01:00
Kevin Hagerty
164b39ea42
Use the needs_payment function
...
Instead of checking against a list of valid order statuses, use the needs_payment function which already checks against those statuses
2015-09-05 08:09:47 -04:00
Mike Jolley
a07824e8a7
Ensure product exists in add cart handler
...
Closes #8937
2015-08-24 15:28:57 +01:00
Mike Jolley
170737b4e8
Remove purchasable check completely
...
Not required as the cart class checks this later on. Was originally
added for #7220 . Later changed to support admin buying private products
https://github.com/woothemes/woocommerce/commit/9ed36d4b0104e77ede338862
b67a99d0a243aac8
Fixes #8908
2015-08-20 23:43:39 +01:00
Mike Jolley
80b6c0f541
Refactor add_to_cart_action by splitting product type methods
2015-08-20 23:41:56 +01:00
Mike Jolley
9ed36d4b01
In add_to_cart_action, check is_purchasable rather than post status.
2015-08-20 10:39:38 +01:00
Mike Jolley
ad691fe916
save_account_details should check display name of current user.
...
Fixes #8856
2015-08-17 12:02:16 +01:00
Mike Jolley
060fb16e2e
Move Pre 2.4 handling for attributes - DRY
...
@claudiosmweb @franticpsyx
2015-07-28 16:20:51 +01:00
Mike Jolley
8bf4469178
woocommerce_save_account_details_errors action
...
Closes #8532
2015-07-10 11:11:51 +01:00
Mike Jolley
ea82ce9f06
Tweak display name to only change if set to an email
...
#8532
2015-07-10 11:09:14 +01:00
Gerhard
230301e6da
Don't reveal username when login failed on valid email login
2015-06-26 14:15:31 +02:00
Mike Jolley
622b11ae9f
Add version check to prevent pre-2.4 logic kicking in when not needed
...
@claudiosmweb
2015-06-16 15:10:53 +01:00
Mike Jolley
89f7e15052
Save full version of text based attributes when dealing with variations
2015-06-11 14:43:02 +01:00
mehulkaklotar
05d5b421d6
filter when cart item remove notice item title, issue : #8204
2015-05-22 14:15:11 +05:30
Nikki DelRosso
940c2369b0
Added method to check if cart is empty
2015-05-14 14:18:53 -07:00
roykho
a23142423c
fixed on password change, password 1 field can be skipped closes #8079
2015-04-29 22:07:34 -07:00
Nicola Mustone
d2af01df5b
scrutinizer suggested tweaks
2015-03-27 16:15:40 +01:00
Mike Jolley
4171a20e29
Order again with custom attributes.
...
Fixes #7601
2015-03-09 15:50:13 +00:00
Mike Jolley
5cbd02fef2
Improved message when variation attributes are missing.
...
Closes #7670
2015-03-09 13:14:05 +00:00
Nicola Mustone
0fc973b5aa
undefined wc_error_count fix
2015-02-26 16:18:11 +01:00
Mike Jolley
542dfe7ce4
Add additional error handling to remove_item handler
...
Closes #7415
2015-02-16 11:31:38 +00:00
Paul Wilde
c913316f8b
Introduce wc_get_page_permalink.
2015-02-15 19:13:22 +00:00
Mike Jolley
d93d00271d
Use WP hook so we have access to query vars
...
Fixes #7341
2015-02-10 12:23:15 +00:00
Mike Jolley
3691a8fdfb
Fix thumbnail notice
...
Closes #7292
2015-02-04 14:04:02 +00:00
Mike Jolley
03cf7fa572
Fix potential notice
2015-02-03 14:57:04 +00:00
Claudio Sanches
d3ac28fbb3
Check if product is published, closes #7220
2015-01-29 16:30:07 -02:00
Mike Jolley
e3b360c138
Tweak to process_reset_password
2015-01-21 14:59:44 +00:00
Mike Jolley
204d1ae166
2 empties as PHP < 5.5 doens't like the join
2015-01-21 14:25:59 +00:00
Mike Jolley
10dac6fedd
process_lost_password/process_reset_password
2015-01-21 14:15:52 +00:00
Mike Jolley
51c6f7f670
Clean up process_registration()
2015-01-20 16:05:08 +00:00
Claudio Sanches
3228fc0e67
Initial remove and restore cart methods
2015-01-07 16:52:17 -02:00
Mike Jolley
1c696a10d3
Dev - Moved WC_Cart::get_cart_from_session() to a later hook (was init, now wp_loaded).
...
Closes #6873
2015-01-05 14:43:04 +00:00
Mike Jolley
c3fb83d443
Append query string when removing item from cart to bust cache
...
Closes #6544
2014-11-26 10:56:51 +00:00
claudiosmweb
744f80e0c6
Fixed password reset handler
2014-11-19 16:57:26 -02:00
Nicola Mustone
5d30109ab6
Handle cart item undo
2014-11-18 17:31:06 +01:00
Mike Jolley
ccdacb76b7
Fire all form handlers priority 20
...
Closes #6706
2014-11-12 16:43:29 +00:00
Mike Jolley
b5f359b22a
Merge pull request #6717 from bryceadams/master
...
Add filter for registration auth cookie #6707
2014-11-11 03:44:54 -08:00
Mike Jolley
f6fbdcd0ec
Merge pull request #6704 from helgatheviking/update_cart_action
...
move $cart_updated inside $passed_validation IF statement. #6703
2014-11-11 02:05:12 -08:00
Marin Atanasov
cce13abc06
checking _wpnonce before using it in WC_Form_Handler::process_registration()
2014-11-09 17:14:55 +02:00
Bryce
f489739349
Add filter for registration auth cookie #6707
2014-11-08 14:30:18 -08:00
Kathy Darling
5a2c9a3ed2
move $cart_updated inside $passed_validation IF statement. #6703
2014-11-07 11:16:37 +01:00
Mike Jolley
f4556fe710
[2.2] Fixed nonce check in form handler
2014-10-28 09:40:50 +00:00
Mike Jolley
06aca23919
Enforce slug format of translated edit-address-slugs.
...
Fixes issues with addresses not loading correctly in edit account.
2014-10-22 11:26:09 +01: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
045046492f
Fix nonce check on edit address.
2014-10-21 13:24:01 +02:00
Gerhard
a08b501ebc
Propper verify nonce use on edit account.
2014-10-21 08:53:54 +02:00
Gerhard
817e23a807
Propper verfiy nonce use on edit address.
2014-10-21 08:52:19 +02:00
Gerhard
36ae6b8876
remove more debug info.
2014-10-21 08:51:35 +02:00
Gerhard
9b7fd195a7
remove debug info.
2014-10-21 08:51:00 +02:00
Gerhard
1c46b7324a
Register nonce used same name as register form button.
2014-10-21 08:50:23 +02:00
Gerhard
9f438edfa0
Correctly use verify nonce on register
2014-10-21 08:41:52 +02:00
Gerhard
f2e65f0857
Propper verify_nonce use on reset password functionality.
2014-10-21 08:39:16 +02:00
Gerhard
1bc74317df
Use wp_verify_nonce correctly in process_login
2014-10-21 08:33:48 +02:00
Gerhard
1fd61e6d75
Use wp_verify_nonce correctly in save_account_details.
2014-10-21 08:31:48 +02:00
Mike Jolley
6f7ff36940
Prefix filter names #6576
2014-10-20 16:12:35 +01:00
Gerhard
1fdff91114
Make edit account details nonce unique to customer.
2014-10-20 09:35:54 +02:00
Kathy Darling
41c5b18659
add custom add to cart handler. update for #5923
2014-10-17 17:26:50 +02:00
Mike Jolley
5e07ec0382
$cart_totals should be checked to see if its an array
...
Closes #6496
2014-10-09 16:50:42 +01:00
Illimar Tambek
97ccd7c50f
Do not escape redirect url in form handler
2014-10-01 21:26:35 +03:00
Ryan Stock
4998f88dc5
Fix infinite redirect loop on cart page
...
Fix for issue #6319 :
https://github.com/woothemes/woocommerce/issues/6319
2014-09-19 13:24:31 +10:00
claudiosmweb
063d1eb349
fixed the access permissions
2014-09-01 12:44:51 -03:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Barry Kooij
6655188f0b
Changed use of get_order with wc_get_order
2014-08-15 14:29:21 +02:00
Mike Jolley
1b41eef5f6
Ensure add-to-cart is not present when redirecting after a deletion.
...
Fixes #5645
2014-07-29 15:25:43 +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
50a4c5bd23
Merge branch 'variation-stock-management'
...
Conflicts:
includes/class-wc-product-variation.php
2014-06-27 11:15:42 +01:00
Mike Jolley
0f6f04e017
Added wc_stock_amount() core function and replaced intval
...
#4612
2014-06-25 11:25:28 +01:00
Mike Jolley
f1a10c2e70
Fix incorrect variable check when editing address
2014-06-25 11:06:42 +01:00
Mike Jolley
8834679d93
Don't validate empty fields
2014-06-20 10:28:04 +01:00
Coen Jacobs
89ea6c46ab
Replace new WC_Order calls with get_order
2014-06-13 15:24:51 +02:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
309f700283
has_status
2014-06-03 10:45:33 +01: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
e198ee517a
Made stateless classes static to allow unhooking of hooks
...
Closes #5151
2014-05-28 14:52:50 +01:00
claudiosmweb
79a8986f06
added the possibility to translate the edit-address endpoint slugs, closes #4820
2014-04-24 18:18:41 -03:00
Mike Jolley
c09f710775
Merge pull request #5334 from ragulka/valid-order-statuses-improvements
...
Valid order statuses improvements
2014-04-23 15:07:15 +01:00
splashingpixels
fde72164a4
added a check for current password on password change closes #5177
2014-04-22 12:01:57 -07:00
Illimar Tambek
cbfd17437c
Use `woocommerce_valid_order_statuses_for_payment` in `pay_action` too
...
Even though it was possible to filter the statuses in my-order.php and other places,
it was not possible in the actual pay action.
2014-04-17 19:27:39 +03:00
splashingpixels
cc86fcc775
removed wc_clean/sanitize_text_field not needed. handled by wp core functions fixes #5318
2014-04-13 23:29:22 -07:00
Coen Jacobs
4afeb7926c
Merge branch 'refs/heads/2.1'
...
Conflicts:
i18n/languages/woocommerce-admin.pot
i18n/languages/woocommerce.pot
includes/class-wc-form-handler.php
package.json
readme.txt
templates/checkout/form-shipping.php
templates/emails/email-addresses.php
woocommerce.php
2014-04-10 16:42:08 +02:00
splashingpixels
afc17dad40
myaccount registration added check for auto generate password option
2014-04-10 13:47:34 +01:00
Andrew Benbow
92a62c4ae4
Resolve conflict
2014-04-10 13:34:46 +01:00
splashingpixels
ff5384714f
myaccount registration added check for auto generate password option
2014-04-01 19:45:25 -07:00
Andrew Benbow
e8bc26f51c
Update class-wc-form-handler.php
...
Updated as per comments
2014-03-26 09:58:51 +00:00
Andrew Benbow
d6782567a2
Order cancelled tweaks
...
Add filters for order cancelled message, change message class from
success to info and allow to be filtered
2014-03-25 12:10:08 +00:00
Mike Jolley
e2ea31fc94
pedantic nonce checking
2014-03-06 16:26:47 +01:00
Mike Jolley
c3d5111c8d
Check existence of nonce Closes #5050
2014-03-06 16:26:47 +01:00