Commit Graph

272 Commits

Author SHA1 Message Date
vedanshujain 4a375e3e9c Revert PR 24526.
This reverts PR 24526 because in the refund mail this completely removes the downloadble product. We should instead only remove the downloadble link and keep the details of the product.
2019-10-27 18:14:44 +02:00
Gerhard Potgieter fdbdb5c73a
Merge pull request #24677 from woocommerce/fix/illegal-offset-bug
Small refactor in WC_Order methods to get formatted address
2019-09-30 15:00:34 +02:00
Gerhard 35ff7e3149 Bump @since for woocommerce_order_get_formatted_shipping_address and woocommerce_order_get_formatted_billing_address filters 2019-09-30 14:42:06 +02:00
Gerhard Potgieter 6c000bfe39
Merge pull request #24526 from itzmekhokan/fix/24430
Fixed issue #24430
2019-09-27 14:00:43 +02:00
Claudio Sanches 52108c1577 Fixed "Illegal offset" error caused by #24146
Introduces new filters to better handle order's formatted addresses
2019-09-24 13:15:35 -03:00
Claudio Sanches e814105728 Prefer wc_get_checkout_url() instead of wc_get_page_permalink( 'checkout' ) 2019-08-30 13:06:50 -03:00
itzmekhokan a21c18ee9c Fixed coding standards for this comment. 2019-08-30 07:35:17 +05:30
Marco Almeida 80c2ecd692
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url() 2019-08-29 08:46:25 +01:00
itzmekhokan c572d26170 Fixed wordpress coding standard 2019-08-29 10:25:32 +05:30
itzmekhokan 5234b85144 Fixed issue #24430 2019-08-28 22:25:14 +05:30
Gerhard fe2d46799f This PR reworks the intention of #23859 which causes failing unit tests due to $this->get_address( 'shipping' ) always returning an array even when no shipping address is present. 2019-07-14 20:34:30 +02:00
Gerhard Potgieter 6693b44a98
Merge pull request #23859 from RistoNiinemets/master
Allow filtering formatted shipping address
2019-07-14 20:24:44 +02:00
Risto Niinemets dbc9719d76 Use order raw address instead of formatted for filter 2019-06-04 08:13:40 +03:00
Risto Niinemets de1dfbb1b4 Allow filtering formatted shipping address 2019-06-03 09:18:36 +03:00
Mike Jolley 47eee0143f Restore order note on exception 2019-04-17 13:07:52 +01:00
Mike Jolley a0d4f6174c Consistent CRUD classes with before/after save hooks 2019-04-17 12:47:35 +01:00
Mike Jolley 1d7059ec90 Add other check in order totals too 2019-03-11 16:59:38 +00:00
Mike Jolley 39d9e4bd6f If date paid is not set but payment complete status has passed, set it anyway Ref: #22688 2019-02-14 14:45:26 +00:00
Mike Jolley 6367d19615 phpcs 2019-01-21 08:11:40 -08:00
Chris Shultz 2506ff250b Triggering woocommerce_order_edit_status on single order status edit. 2018-09-12 10:07:02 -07:00
Mike Jolley 9f86839cab Remove wc_transaction_query in favour of logging 2018-06-14 14:39:18 +01:00
Claudio Sanches 9a55d16f44 Fixed includes/class-wc-order.php PHPCS violations 2018-03-21 00:44:44 -03:00
Mike Jolley 21d7dbc612 Merge branch 'master' into update/17252 2018-03-01 15:58:17 +00:00
Mike Jolley 69816b9854
Merge pull request #18538 from woocommerce/update/16366
Optimise saving of orders
2018-02-22 12:20:14 +00:00
Claudiu Lodromanean 59b61ab744
Merge pull request #18408 from macbookandrew/downloadable_items_filter
add file array key similar to other functions
2018-02-08 10:38:12 -08:00
Mike Jolley aa87aa0fbd phpcs 2018-01-19 15:42:48 +00:00
Mike Jolley d1269ce74f Add transient cache so we know if an order needs processing. 2018-01-19 15:14:00 +00:00
Mike Jolley f1e0d4929b Implement get_edit_order_url method. 2018-01-11 12:04:39 +00:00
Mike Jolley ee6794fb0c Orders should be created for users who exist on the site only. 2018-01-10 12:32:58 +00:00
Andrew Minion 0b2fbe906b add file array key similar to other functions
See also https://github.com/woocommerce/woocommerce/blob/master/includes/wc-user-functions.php#L458-L461
2018-01-09 20:41:35 -05:00
Mike Jolley 9e4f296983 One save call 2018-01-03 16:15:04 +00:00
Mike Jolley 7f18e15ff6 Transactions break unit tests 2018-01-03 15:47:55 +00:00
Mike Jolley 89c1f83f70 Merge branch 'master' into update/17252 2018-01-03 11:44:28 +00:00
Claudio Sanches d2404a9e63 Fixed chmod 2017-12-18 14:12:53 -02:00
Mike Jolley 1918e2e554 Rollback and log errors when orders are updated. 2017-12-14 16:00:38 +00:00
Mike Jolley a6594d6880 Only show includes text when there are taxes 2017-12-14 14:04:20 +00:00
Mike Jolley f0c04b019b Rename filter and pass order 2017-12-07 15:33:26 +00:00
tom 9dcc4c49f4 Add filter for order downloadable items
ref #17992
2017-12-02 11:15:07 +08:00
Claudio Sanches d3a5a1bfd4 Fixed bugs caused after fixing coding standards 2017-11-29 10:32:35 -02:00
Claudio Sanches fd4fa0cf71 Fixed coding standards 2017-11-28 11:04:38 -02:00
Claudio Sanches def87b74bf Display product URL only if is not hidden in downloads list
Fixes #17925
2017-11-28 10:18:43 -02:00
Claudio Sanches 777ba46299
Merge branch 'master' into fix/17424 2017-10-30 11:01:17 -02:00
Shiva Poudel 53a2dfd77c Fix - Empty content undeclared variable in #17233 2017-10-29 23:02:27 +05:45
claudiulodro f06ecee1c5 Fix order methods and add tests 2017-10-27 13:37:00 -07:00
Mike Jolley ba3d959e66 Merge branch 'master' into pr/17183 2017-10-27 18:49:27 +01:00
Herre Groen 1bde5aa37f Add error logging to status update failes to prevent silent swallowing of errors. 2017-10-17 14:23:54 +02:00
Mike Jolley 7419168e65 More cleanup and new fallback option for addresses 2017-10-16 08:12:07 -07:00
Claudio Sanches 4887f7c5be Save order paid date as GMT+0
All dates should be saved as GMT+0 in order to make `WC_DateTime` work
correct.

Fixes #16932
2017-09-26 14:58:35 -03:00
Umangvaghela e38d01bcfa Resolve Issue 2017-09-15 10:54:30 -07:00
Michal Zuber 21c25f326b Remove dupe check
Already checked at 0337293e39/includes/abstracts/abstract-wc-product.php (L1593)
2017-09-08 14:25:02 +02:00