Commit Graph

154 Commits

Author SHA1 Message Date
Rami Yushuvaev 4375618438 i18n context functions (#12156)
* Replace some context function with translation comments

* Remove two more context function

* Replace another context function with translation comments
2016-10-24 08:31:07 +01:00
Mike Jolley 42f420b16c Correct admin link for variable product. 2016-10-13 15:18:44 +01: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
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 089b5e93f2 Fixed coding standards 2016-09-13 19:04:33 -03:00
Aristeides Stathopoulos 734f284fa4 WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos d4e3faf014 PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket 2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos 0516e96843 PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket 2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos 538f8e02cc WordPress.WhiteSpace.ControlStructureSpacing.SpaceBeforeFunctionOpenParenthesis 2016-08-27 07:06:25 +03:00
Aristeides Stathopoulos 58b9df6564 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis 2016-08-27 05:23:54 +03:00
Aristeides Stathopoulos 32ddc22465 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterComma 2016-08-27 05:14:16 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Mike Jolley 461ec4da16 Return false instead of throwing exception 2016-08-25 17:48:36 +01:00
Mike Jolley 3755049d86 Fix item data 2016-08-17 11:45:07 +01:00
Mike Jolley e1318d9175 Stop WP core meta data being removed for customers
@justinshreve
2016-08-15 13:17:43 +01:00
Mike Jolley 6090e3cd00 set_backorder_meta helper 2016-08-15 11:02:38 +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 7861b76e9b Checkout handling
Also introduces add_item so you can add items to an order before the
order exists. Save at once is more efficient.
2016-08-09 14:02:40 +01:00
Mike Jolley 39b4831e95 get_id 2016-08-05 15:56:23 +01:00
Justin Shreve e3b1f6dbc9 A few fixes to customer CRUD:
* Implement some missing legacy functions
* Stop calling legacy functions from some pages
* Prevent extra meta from being deleted, unless requested by the CRUD (was causing problems with user/customer)
* Prevent save when loading from session AND logged out
2016-08-04 13:13:07 -07: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 d2754a0081 Simpler logic 2016-07-22 12:59:51 +01:00
terence1990 ca44110f3d Fix: ship_to_different_address 2016-07-20 14:26:14 +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 847dea6a2d docs/vars 2016-06-07 14:02:02 +01:00
Mike Jolley 730019ef18 scrutinizer best practice 2016-06-06 19:39:23 +01:00
Mike Jolley d9db29a035 Clean before json_encode to ensure values are strings
#10937 @thenbrent
2016-06-02 12:51:26 +01:00
Mike Jolley 2745d8721f Fix required field empty string check
@roykho
2016-05-31 18:02:15 +01:00
Mike Jolley 130933badf Merge pull request #10937 from thenbrent/cart_hash_tweak
Use print_r() to stringify cart session
2016-05-18 11:30:08 +01:00
Brent Shepherd 671ae32e58 Use print_r() to stringify cart session
Instead of json_encode(), because json_encode() takes types into
account, meaning numbers may end up being represented in the
encoded JSON as a string, e.g. "1" instead of 1, which can lead
to the md5() being different between requests.

This issue surfaces when creating a cart hash in a different
request to the request to pay for the order, because after adding
line items to the cart, the items quantity will be encoded with
json_encode() as an int, but when encoding them in a different
request, where they are coming from the database, they will be
encoded as a string.
2016-05-17 16:38:08 -07:00
Caleb Burks 75dfae2bf2 Return to shop if session expires and escape url. 2016-05-17 17:00:09 -05:00
Caleb Burks b8aea9aff0 Return to shop if session expires 2016-05-17 16:52:17 -05:00
Claudio Sanches 653f79b25b Fixed method retuning value in write context in includes/class-wc-checkout.php 2016-04-22 15:03:10 -03:00
Mike Jolley 6ae2fea045 Allow default address to be empty.
Fixes #10664
2016-04-18 14:51:39 +01:00
Mike Jolley bfadb22c7c Added notice when no methods exist 2016-03-31 18:54:33 +01:00
Mike Jolley bcd90ea1fb Fix error is default address values
Fixes #10606
2016-03-30 12:55:29 +01:00
Claudio Sanches ab90f54880 Better name for required field notices filter #10597 2016-03-24 09:06:17 -03:00
vasikgreif 565e259851 Add filter for required fields error message
Add the ability to change required fields error message, as discussed here: https://github.com/woothemes/woocommerce/pull/10591
2016-03-23 14:00:51 +01:00
Justin Shreve 4194aca904 Deprecated functions for old billing address functions 2016-03-17 13:40:30 -07:00
Justin Shreve e65ab6adec start transfering things to billing_ prefix 2016-03-17 12:39:29 -07: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
Mike Jolley ac122f13b9 Add context to checkout error messages
Closes #10540
2016-03-14 11:54:16 +00:00
JeroenSormani 67adc81814 Use real checkout fields for getting value 2016-02-12 13:51:08 +01:00
Mike Jolley a71a4de1b8 Add hash check when resuming order to detect changes.
@claudiosmweb
2016-02-05 09:41:25 +00:00
Mike Jolley 3938a43b44 Error handling when order cannot be retrieved.
Also renumbers error codes @claudiosmweb since 4xx usually reflects
client errors and may be misleading

Closes #10047
2016-01-11 10:47:10 +00:00
Max Rice 655089b162 Fix checkout result notice 2015-12-14 20:15:22 -05:00
Mike Jolley ef98a2d79c Compare type 2015-12-03 10:51:07 +00:00
Nicola Mustone c9da4f928a check if ABSPATH is defined 2015-11-06 10:22:19 +01:00
Mike Jolley 61e746730f wc_transaction_query function
Only uses transactions if enabled, or read uncommitted is supported
#9279
2015-11-04 14:11:40 +00:00