Mike Jolley
01871fd2c8
Add getter for tax_display_cart variable, with filter
2017-12-15 13:39:35 +00:00
Claudio Sanches
c6f8e95b97
Merge branch 'master' into feature/webhook-crud
2017-11-28 15:09:10 -02:00
claudiulodro
32347c5470
Fix legacy API include paths
2017-11-22 10:28:02 -08:00
Claudio Sanches
7043245cb5
Merge branch 'master' into feature/webhook-crud
2017-11-07 12:42:28 -02:00
Mike Jolley
93a6f68408
Merge pull request #17193 from woocommerce/fix/legacy-fees-api
...
Fix/legacy fees api
2017-10-13 17:36:43 +01:00
Mike Jolley
803b31a18c
Switched to property_exists and moved deprecation notice to avoid errors and setting fees unnecessarily.
2017-10-13 13:46:49 +01:00
Manos Psychogyiopoulos
3562f7156a
Add missing break in WC_Legacy_Cart class
2017-10-13 14:17:13 +03:00
Claudio Sanches
368d958be4
Merge branch 'master' into feature/webhook-crud
2017-10-10 16:13:37 -03:00
Claudio Sanches
c00fce3f94
Merge pull request #16490 from woocommerce/feature/16445
...
Webhooks CRUD and Data Store
2017-10-10 16:10:31 -03:00
Claudio Sanches
31f42ba907
Move includes/class-wc-legacy-api.php to includes/legacy/class-wc-legacy-api.php
2017-10-05 14:02:30 -03:00
Boro Sitnikovski
71305b131f
Treat values in cart_contents hash as arrays instead of objects
2017-09-29 18:46:34 +02:00
claudiulodro
d5981b34e8
Remove redundant rendundancy in deprecation notices
2017-09-21 09:45:38 -07:00
Mike Jolley
eb79566985
Fix legacy access to array props (fees, taxes, coupon totals + taxes)
...
Closes #16861
2017-09-20 15:39:05 +01:00
Boro Sitnikovski
d934bf89e1
Use proper variable scoping on class level instead of function level
2017-09-01 10:46:29 +02:00
Mike Jolley
57865204aa
Cart fees class and legacy
2017-08-22 15:17:58 +01:00
Mike Jolley
5c271af844
Handle isset for legacy props, and adjust free shipping logic
...
Closes #16547
2017-08-21 13:01:20 +01:00
Mihai Grigori
f6a6cef1d9
\WC_Legacy_Cart::get_cart_for_session must return a value
2017-08-21 11:58:29 +03: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
a190dc79c3
Legacy getters/setters
2017-08-18 12:24:17 +01:00
Mike Jolley
aefb9c4705
Moved magic method to legacy
2017-08-18 11:37:22 +01:00
Mike Jolley
c0368362ce
First pass
2017-08-18 11:29:26 +01:00
Claudio Sanches
67a6a7ce7f
Deprecated WC_Webhook::update_status
2017-08-16 21:14:07 -03:00
Claudio Sanches
a8f0f854f4
Legacy Webhook class
2017-08-16 21:07:24 -03:00
Mike Jolley
e9c3ebebdc
Merge branch 'master' into feature/discounts-class
...
# Conflicts:
# includes/abstracts/abstract-wc-data.php
# woocommerce.php
2017-08-08 15:49:59 +01:00
Mike Jolley
6dc67ee133
phpcs
2017-08-08 10:51:35 +01:00
Claudio Sanches
77855f9d07
Soft deprecated WC_Cart->coupon_applied_count
2017-07-28 18:12:56 -03:00
Fulvio Notarstefano
7781b2ea4d
[ #16242 ] Add context to woocommerce_backordered_item_meta_name
2017-07-25 11:54:03 +08:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Claudio Sanches
12bd41dd4b
Merge pull request #14849 from franticpsyx/fix-get-price-html-from-to-fallback
...
[3.0] Incorrect use of `wc_format_price_range` in `get_price_html_from_to`
2017-05-03 17:40:40 -03:00
Manos Psychogyiopoulos
faa53edc2b
Call `wc_format_sale_price` in `get_price_html_from_to`
2017-05-03 15:13:29 +03:00
Mike Jolley
27993c0c50
Legacy customer class missing get_address / get_address_2 functions
...
Fixes #14679
2017-04-25 13:18:58 +01:00
Mike Jolley
d8bc209cab
read_product_data does not exist
2017-04-06 20:55:51 +01:00
Mike Jolley
261ae0ebda
Only call sync if callable
2017-04-06 14:18:17 +01:00
Mike Jolley
14802a0307
Remove double unserialization
2017-03-31 12:10:20 +01:00
Rodrigo Primo
28c8ae8f95
Add the class name to deprecated messages wherever appropriate
...
Doing this change to make it easier to locate the deprecated method and its replacement and also to be consistent with the other deprecated messages.
2017-03-23 12:32:02 -03:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
75a5b062cf
Merge pull request #13577 from woocommerce/fix-13498
...
Timezone/Date method handling
2017-03-15 16:09:41 +00:00
Mike Jolley
d55653a408
Merge branch 'master' into fix-13498
...
# Conflicts:
# includes/class-wc-order.php
# tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Mike Jolley
a34dd0480d
Merge pull request #13587 from woocommerce/fix-13525
...
Update coupon date handling
2017-03-15 15:26:41 +00:00
Claudiu Lodromanean
9703af350d
Use correct legacy date format
2017-03-15 08:19:17 -07:00
Justin Shreve
fb124232cf
Update Payment Tokens to follow the same pattern for custom data as other object types.
...
Payment tokens was introduced in 2.6 and was updated to use the new CRUD code while some of the CRUD system was still in flux.
While most things were correct, the prop handling for custom fields (like a card's last 4 digits) were directly calling meta functions, instead of delegating to the data store/parent.
This PR moves these props to `extra_data` and follows the same pattern as product types or order items. It also updates some version tags to 3.0.0. Finally, it adds an additional test for saving meta after a create which looks like it was lacking.
To Test:
* Run `phpunit`.
* Go to the "My Account" tab and add a new payment method. You need a payment gateway that supports this, like Simplify.
* Test the add a payment method flow.
* Make a test purchase using the saved payment method.
2017-03-14 12:33:35 -07:00
Claudiu Lodromanean
62d00ff950
Return offset timestamp not utc in legacy
2017-03-14 10:39:37 -07:00
Mike Jolley
a3cc5cc9bb
has_meta -> meta_exists
...
#13590
Avoid has_meta conflict with old method.
#13581
2017-03-14 16:49:13 +00:00
Mike Jolley
9d7c5cee39
Work around legacy has_meta method for orders
2017-03-14 12:25:39 +00:00
Claudiu Lodromanean
b018cdc037
Update legacy coupon class with new date handline
2017-03-13 15:05:57 -07:00
Mike Jolley
1bac579df7
Date getters and setters
2017-03-13 19:52:44 +00:00
Mike Jolley
8e169ede98
Legacy handling
2017-03-10 16:30:06 +00:00
Justin Shreve
cd92351dd7
Fix direct property access for coupon amount.
...
In 2.6, you could access the amount via $coupon->coupon_amount. Or legacy code incorrectly handles $coupon->amount instead. 7778583340/includes/class-wc-coupon.php (L102)
This PR handles both since the RCs and betas allowed `->amount` and I don't want to break anything that may be accessing it that way..
To Test:
* `phpunit --filter=test_coupon_backwards_compat_props_use_correct_getters`
2017-03-09 10:34:45 -08:00