Mike Jolley
342ce28c61
Throw an error when the order is not loaded on checkout
2018-04-20 11:54:36 +01:00
Mike Jolley
bd539e38f0
Remove output buffering
2018-04-19 18:27:29 +01:00
Mike Jolley
860e7a5d23
Merge branch 'master' into update/gdpr-checkout-customizer
2018-04-16 18:02:28 +01:00
Mike Jolley
55aced044f
Avoid storing coupon `_used_by` data
2018-04-10 12:36:24 +01:00
Mike Jolley
3140a0fb62
More customistion options for terms and conditions.
2018-04-06 11:43:30 +01:00
Mike Jolley
fb8b670cda
Merge branch 'master' into update/19345
2018-03-19 18:00:28 +00:00
Claudio Sanches
47894cc64d
Fixed includes/class-wc-checkout.php PHPCS violations
2018-03-16 16:15:08 -03:00
Mike Jolley
5d6b43dbc8
Update nonce handling
2018-03-13 14:16:56 +00:00
Mike Jolley
b4579bb502
Merge branch 'master' into update/16912
2018-03-01 16:38:04 +00:00
Caleb Burks
0568470bb8
Only show T&C's notice if there is a valid T&Cs page
2018-02-28 21:58:34 -05:00
Caleb Burks
c21cc2e8fe
Replace “Cheatin’ uh?” with friendlier messages
2018-02-07 17:01:12 -05:00
Mike Jolley
c64c726da9
Set instance id
2018-01-15 14:49:55 +00:00
Mike Jolley
d9913c0d77
Checkout should store fee tax lines
...
Fixes #17815
2017-11-21 10:49:26 +00:00
Tim Howe
1b08688ea6
Checkout Postcode / Zip validation error message missing Billing / Shipping Identification #17474 ( #17535 )
...
* Fix - #17413
Update the `json_search_products` function to use the
`wc_products_array_filter_visible` filter rather then the
`wc_products_array_filter_editable` filter
Added an additional if condition to the `is_visible` function to check
if the product had a parent and it's post status
* remove additional comment from code to keep it clean
* Reverted filter
* Updated the is_visable to check parent product post status using WooCommerce class methods
* Updated the `if empty` check to make it is compatible with older versions of php
* Removed the empty check infavor of just testing on the returned value
Updated the way we are retrieving the partent product object
* Moved the `$parent_product` variable assigment out of the if statement.
* Applied and tested tregenza patch to updates Checkout Postcode / Zip validation error message
* Cleaned up code from testing
2017-11-02 11:54:03 -07:00
Boro Sitnikovski
b11ed6e3db
Fix direct access to props on checkout
2017-09-27 16:25:45 +02:00
Mike Jolley
8973a0cdad
Merge pull request #16797 from Umangvaghela/add-esc_html
...
add esc_html in class-wc-checkout.php file
2017-09-15 16:37:50 -07:00
Umangvaghela
37edbbedf5
add esc_html in class-wc-checkout.php file
2017-09-13 13:01:59 +05:30
nils-fredrik@maksimer.no
39bde22e56
Apply filter to posted data in checkout.
2017-09-08 21:34:55 +02:00
Boro Sitnikovski
5224eab917
Update PR with new logic
2017-09-05 19:56:56 +02:00
Mike Jolley
487478daa9
Store details about the original coupon
2017-08-24 17:07:49 +01:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Claudiu Lodromanean
b0f190fa1d
Merge pull request #16517 from woocommerce/integrate-cart-sessions-class
...
Integrate cart sessions, getters and setters
2017-08-18 08:41:57 -07:00
Mike Jolley
97f9a4037a
Change password label
2017-08-18 16:18:49 +01:00
Mike Jolley
1c8ad67a9e
Fix tests and tax merges
2017-08-18 15:05:01 +01:00
Mike Jolley
d2e3839d99
Use getters and setters in cart class
2017-08-18 12:51:45 +01:00
Mike Jolley
578da2d126
Unchecked checkbox should be an empty string
...
Closes #16184
2017-07-19 14:58:46 +01:00
Mike Jolley
872dca636f
Feedback
2017-07-10 14:48:42 +01:00
Mike Jolley
a6967d69d4
Normalise state keys
2017-07-10 14:48:42 +01:00
Akeda Bagus
53807185a8
Fixed typos.
...
These typos are catched by `misspell` program.
```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen | xargs misspell -w
```
Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Mike Jolley
fe3406ceec
Set all legacy data
...
Fixes #15245
2017-05-30 12:36:20 +01:00
Mike Jolley
0e675137e3
Merge branch 'fix/issue-15252'
2017-05-25 11:30:09 +01:00
Mike Jolley
d73849eee3
wc_strtoupper helper
2017-05-25 11:30:01 +01:00
Boro Sitnikovski
e68977d021
function_exists check
2017-05-24 20:22:58 +02:00
Boro Sitnikovski
c7c4cfbae5
Use mb
2017-05-24 20:19:17 +02:00
Kelly Dwan
ea98da7778
Use display_name from the customer data store
2017-05-24 14:14:29 -04:00
Boro Sitnikovski
43955736fc
Update PR after review
2017-05-24 20:10:51 +02:00
Kelly Dwan
51f4a6b1b8
Customers: Don’t update the display name of a user when completing an order, unless the old display name is an email.
2017-05-24 13:32:02 -04:00
Boro Sitnikovski
30f20b81de
Make state validation less stricter for keys
2017-05-24 14:09:09 +02:00
Mike Jolley
6dfdc86111
Merge branch 'pr/14678'
2017-05-23 19:16:37 +01:00
Mike Jolley
109e951de3
Renamed filters and actions
2017-05-23 19:16:30 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
00e5189a05
Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
...
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Mike Jolley
3b1894dd8f
Merge branch 'pr/15039'
2017-05-23 18:48:24 +01:00
Mike Jolley
c709b7f490
since
2017-05-23 18:48:16 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
4f00d7e5e3
PHPDoc: Add missing return statement
2017-05-15 13:37:59 +02:00
Mike Jolley
3d7533e02b
Correct variable name
2017-05-12 12:09:05 +01:00
Mike Jolley
de4e2fc667
Update all customer fields when updating via checkout
...
Adds set_customer_address_fields helper to make it more DRY
Fixes #14985
2017-05-12 10:43:14 +01:00
Diego Zanella
8fd1366bba
#15038 Made WC_Checkout::get_posted_data() public
2017-05-12 10:23:10 +01:00
Mike Jolley
a283351ef8
On multisite, add user to blog during checkout if not a user
...
Fixes #14736
2017-04-27 13:48:45 +01:00
Mike Jolley
ef2246a9cd
Don't strtolower address strings
...
Closes #14694
2017-04-26 11:40:59 +01:00
Petar Petrov
fdb28218ea
items_type_key filter and woocommerce_order_line_item_object fix
2017-04-25 18:07:40 +03:00
Petar Petrov
f71a498892
Allows to insert conditions for our custom "woocommerce_order_line_item" filter.
2017-04-25 16:06:43 +03:00
Petar Petrov
b551468072
Merge branch 'master' of github.com:pnpetroff/woocommerce
2017-04-25 14:41:57 +03:00
Petar Petrov
2b3ec357ad
fix-14302
2017-04-25 14:12:36 +03:00
Diego Zanella
19aa807da6
Restored filter `woocommerce_checkout_customer_id` during checkout validation
2017-04-24 14:41:23 +01:00
Mike Jolley
bb4507bcae
Better email handling when invalid
2017-04-20 14:45:04 +01:00
Govind Kumar
2adadd5737
Fixed issue
2017-04-20 17:41:20 +05:30
Claudio Sanches
086b60a871
Fixed legacy WC_Checkout->posted warning.
...
WC_Checkout->get_posted_data() is a protected method and third party
integrations should use $_POST.
2017-04-18 18:15:25 -03:00
Mike Jolley
add7170f34
Fixes legacy_posted_data access and adds notices if accessed.
2017-04-18 21:55:31 +01:00
Mike Jolley
3cf50c60f6
Fix backwards compat logic in enable_guest_checkout
...
Fixes #14211
2017-04-10 21:18:49 +01:00
Mike Jolley
8614a7922d
When forcing shipping to billing, set the shipping fields in the order itself
...
Fixes #14006
2017-04-06 09:50:34 +01:00
Mike Jolley
df13658dab
docblock correction
...
Closes #13818
2017-03-29 11:47:37 +01:00
Mike Jolley
b35e4c0cf9
Load values only when not-empty/set
...
Closes #13785
2017-03-28 12:30:04 +01:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
eb47dc7036
Improve validation event
2017-02-23 11:51:27 +00:00
Mike Jolley
af39a16434
Ensure date exists before setting
...
Fixes #13269
2017-02-21 20:50:52 +00:00
Brent Shepherd
e01b3b2714
Pass $order on checkout line item hooks
...
Because otherwise, there is no way to find out what order the line
item is associated with as the order has not been saved, so does
not have an ID to set on the line item yet - $item->get_order_id()
will return 0.
2017-02-20 21:35:00 -08:00
Claudio Sanches
486a81bf12
Fixed coding standards
2017-02-17 16:10:15 -02:00
Mike Jolley
9b7395705a
Fix checkout $order property
2017-02-15 17:07:03 +00:00
Claudiu Lodromanean
dda98da4ad
Merge pull request #13192 from woocommerce/deprecated-hooks
...
Deprecated hook handling
2017-02-15 08:40:16 -08:00
Mike Jolley
7b0b1529bf
woocommerce_checkout_order_processed bw compat
2017-02-14 18:57:29 +00:00
Brent Shepherd
5d10c797d0
Make WC_Checkout line item creations reusable
...
By passing in dependencies, like cart items, fees, taxes or coupons,
as well as the cart to which they relate.
2017-02-10 12:03:32 -08:00
Claudio Sanches
e3b563c518
Merge pull request #13044 from woocommerce/crud-perf-tweaks
...
[2.7] CRUD performance improvements for emails
2017-02-09 13:25:29 -02:00
Mike Jolley
dcce2a4190
Change order of execution on checkout so shipping is required.
...
Closes #12992
2017-02-09 12:59:13 +00:00
Mike Jolley
7ff301e2ca
Merge branch 'master' into crud-perf-tweaks
...
# Conflicts:
# includes/data-stores/class-wc-order-item-data-store.php
2017-02-09 12:31:25 +00:00
Mike Jolley
b08449e502
Payment method display
...
Fixes #12830
2017-02-07 14:51:21 +00:00
Mike Jolley
3a3588c92c
Check product once
2017-02-01 02:11:56 +01:00
Brent Shepherd
50da0ebd4a
Fix default WC_Checkout::get_value() behaviour
...
Prior to SHA: 43d362d1
, WC_Checkout::get_value() would set the default value
for an $input whenever the value after was null after being passed through
filters. This logic changed with SHA: 43d362d1
to *always* return the filtered
value, even if the value was not changed by filters and was still null.
This means if any code filters just one checkout value, like order_comments,
then all other checkout values will default to null, because the has_filter()
check will pass, but the default null value won't be modified by that callback.
2017-01-26 14:47:43 -08:00
Mike Jolley
66914966fb
Adjust meta saving code throughout
...
#12885
2017-01-23 11:30:53 +00:00
Nabeel Sulieman
3c8ce9b494
Add shipping rate meta data to line item
2017-01-18 10:41:32 -08:00
Mike Jolley
5bfb372f01
Customer update hook
2017-01-10 14:14:05 +00:00
Mike Jolley
a2a16a2ec0
Merge pull request #12683 from franticpsyx/shipping-rate-taxes-array-not-saved
...
[2.7] Shipping order item taxes array not saved on checkout
2016-12-23 14:19:43 +00:00
Manos Psychogyiopoulos
d7afab3930
fix saving of shipping order item taxes on checkout
2016-12-22 20:49:42 +02:00
Manos Psychogyiopoulos
40bf6afc29
fix incorrect inline comments
...
Ref: 01aba1fd2b
2016-12-22 19:41:23 +02:00
Mike Jolley
01aba1fd2b
Incorrect inline comments
2016-12-22 15:06:10 +00:00
Mike Jolley
a41f9d6ec4
Make sure shipping address is set if needed
2016-12-19 15:42:53 +00:00
Mike Jolley
910d6d9900
Store custom checkout fields prefixed with shipping or billing in meta
...
Closes #12634
2016-12-19 14:51:56 +00:00
Mike Jolley
0246172806
Action comments
2016-12-19 11:58:00 +00:00
Manos Psychogyiopoulos
87bb9adf08
use CRUD to add line item meta
2016-12-19 13:27:32 +02:00
Manos Psychogyiopoulos
f0aa493a98
order id omitted from woocommerce_add_shipping_order_item args
2016-12-18 18:39:37 +02:00
Manos Psychogyiopoulos
7751264a2a
package not passed in woocommerce_add_shipping_order_item action
2016-12-18 18:36:04 +02:00
Manos Psychogyiopoulos
3a8eae195b
maintain order item meta action hooks
2016-12-18 18:13:11 +02:00
Mike Jolley
3bf3422b5c
Feedback
2016-12-02 16:13:36 +00:00
Mike Jolley
43d362d107
Tidy, refactor, and split up methods in checkout class
2016-11-25 21:46:34 +00:00
Mike Jolley
eab41b37f7
Move location of billing email field to work with password managers.
...
Fixes #11016
2016-11-25 11:32:42 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Mike Jolley
430a31a963
Add notice class to checkout message
...
Closes #12245
2016-11-22 14:21:21 +00:00
Justin Shreve
b20b3590c8
First pass at order items
2016-11-21 10:56:21 -08:00