Mike Jolley
c16df62b54
Fix tests and bootstrap
2017-07-28 17:43:08 +01:00
Mike Jolley
64e04c614a
fix variable in calculate_discounts
2017-07-28 16:43:51 +01:00
Mike Jolley
14717d4ebb
fix call to apply_coupon_fixed_cart_remainder
2017-07-28 16:33:02 +01:00
Mike Jolley
c7cb46a524
Fix array shift usage
2017-07-28 16:31:11 +01:00
Mike Jolley
9170b61a1c
fix in cents logic direction.
2017-07-28 16:17:57 +01:00
Mike Jolley
e23e55bb27
Methods for getting specific totals and discounts whilst keeping storage in a single array
2017-07-28 15:35:41 +01:00
Mike Jolley
51fbb1aec3
set_items_from_cart
2017-07-28 13:02:39 +01:00
Mike Jolley
9b458f9368
Remove private validation methods from coupon and use discounts class
2017-07-28 12:20:49 +01:00
Mike Jolley
5ed2f147a7
woocommerce_coupon_is_valid
2017-07-28 11:51:57 +01:00
claudiulodro
b56b87c97b
Good progress on wc_discount and manual discount handling
2017-07-27 14:08:38 -07:00
claudiulodro
3a11e345a6
Fix some things and hook up discount class
2017-07-27 11:08:22 -07:00
claudiulodro
409320482a
Get everything working again
2017-07-27 10:37:20 -07:00
claudiulodro
0aa9894bae
Merge remote-tracking branch 'origin/feature/discounts-class' into HEAD
2017-07-27 09:32:08 -07:00
Claudiu Lodromanean
74d33bd510
Merge pull request #16275 from woocommerce/feature/discounts-class-totals-refactored
...
Cart totals class and calculation improvements
2017-07-27 09:01:55 -07:00
Mike Jolley
fcfa510445
Fixed totals tests
2017-07-27 16:57:05 +01:00
Mike Jolley
decda1edf6
Merge pull request #16168 from webspecnick/add-filter-to-export-product-args
...
Add a filter to arguments passed to wc_get_products during prepare_data_to_export()
2017-07-27 15:58:39 +01:00
Mike Jolley
f47bb39a06
Merge pull request #15479 from woocommerce/add/poc-no-managing-meta-directly
...
Proof of concept to error when internal meta props are accessed directly
2017-07-27 15:54:24 +01:00
Claudio Sanches
fc5f199906
Deprecated WC_Coupon validation methods
2017-07-27 11:46:17 -03:00
Mike Jolley
795d8fa2fd
Tests
2017-07-27 15:46:02 +01:00
Mike Jolley
ded2be8d28
Legacy filters
2017-07-27 15:31:10 +01:00
Mike Jolley
6054519605
Discount taxes
2017-07-27 13:48:58 +01:00
Mike Jolley
98db84dfdd
Passing tests
2017-07-27 11:01:48 +01:00
Mike Jolley
c6b8ad598f
Precision functions
2017-07-27 10:51:08 +01:00
Mike Jolley
306db69eaf
Remove order subclass
2017-07-27 10:49:47 +01:00
Mike Jolley
ad2e408a66
Merge pull request #16267 from Valks/patch-1
...
Fix incorrect access level in class-wc-product-variation.php
2017-07-27 08:31:13 +01:00
claudiulodro
cfb04f0ead
Boolval wasnt added til php 5.5
2017-07-26 13:48:36 -07:00
claudiulodro
d15a2f5f6a
Make tax calculation optional
2017-07-26 13:46:50 -07:00
claudiulodro
ea0bd7980a
Get order totals working
2017-07-26 12:06:05 -07:00
claudiulodro
77838d05bb
Fix unknown item variable
2017-07-26 10:25:08 -07:00
Mike Jolley
b9b4336c1b
Removed some duplicate keys
2017-07-26 16:50:34 +01:00
Claudiu Lodromanean
b10d61eef3
Merge pull request #16219 from Nabesaka/master
...
Output custom attributes to radio inputs
2017-07-26 08:15:16 -07:00
Claudiu Lodromanean
2900ceca30
Merge pull request #16213 from woocommerce/fix/16206
...
Remove duplicate inherited method
2017-07-26 08:05:27 -07:00
Mike Jolley
abdb325d83
Order items
2017-07-26 15:47:30 +01:00
Valks
dd857d25eb
Update class-wc-product-variation.php
...
The variable $post_type is incorrectly public, must be protected.
2017-07-27 00:00:21 +10:00
Mike Jolley
1faae6a7aa
Order subclass
2017-07-26 14:32:43 +01:00
Mike Jolley
250dabaf41
WC_Cart_Totals subclass
2017-07-26 12:44:06 +01:00
Mike Jolley
052be04ee7
Use passed through cart item, rather than try to generate a custom one
2017-07-26 11:26:50 +01:00
Mike Jolley
e9f35febd0
Store cart item as part of items array
2017-07-26 11:26:35 +01:00
Mike Jolley
457a7c2a32
phpcs/tidy discounts class
2017-07-26 11:07:17 +01:00
Mike Jolley
58b54673d1
Merge pull request #16256 from woocommerce/feature/discounts-coupon-validation
...
Add coupon validation logic to WC_Discounts
2017-07-26 10:21:56 +01:00
Claudio Sanches
0f58d0cfc1
Merge pull request #16214 from woocommerce/fix/16179
...
Ensure we have a http URL for file path replacements
2017-07-26 01:21:58 -03:00
Claudio Sanches
70c2f7436b
Merge pull request #16233 from woocommerce/fix/16232
...
Check data is an array in set_variation method
2017-07-26 01:15:01 -03:00
Claudio Sanches
f0dfff4a86
Sync with feature/discounts-class
2017-07-25 22:41:18 -03:00
Claudio Sanches
2573adedd5
Moved coupon validation logic to WC_Discounts
2017-07-25 22:36:41 -03:00
claudiulodro
dfee2c0cbe
Maybe integrate cart and total classes
2017-07-25 14:44:54 -07:00
Mike Jolley
889a3cfdd5
Merge pull request #16111 from woocommerce/fix/15986
...
Improve tracking page validation
2017-07-25 21:04:16 +01:00
Kathy Darling
fe0c190894
Move settings init/save to load-$settings hook. Closes #16221
2017-07-25 14:43:26 -04:00
claudiulodro
ec6d11bd67
Just needs visibility support and cleanup
2017-07-25 10:01:24 -07:00
Mike Jolley
b68adf748b
Tests pass
2017-07-25 17:25:06 +01:00
claudiulodro
689c5e7006
Better code
2017-07-25 08:36:01 -07:00
Mike Jolley
474799889f
Disable discounts tests until rewritten
2017-07-25 15:57:58 +01:00
Mike Jolley
40cb2c9cb0
phpcs
2017-07-25 15:24:00 +01:00
Mike Jolley
4c4f26ff41
Changes to allow shipping to be calculated from totals class
...
Moved some items from
https://github.com/woocommerce/woocommerce/pull/11889/files to support
this.
2017-07-25 15:11:32 +01:00
Mike Jolley
e8e200195f
fees pass
2017-07-25 14:05:49 +01:00
Fulvio Notarstefano
7781b2ea4d
[ #16242 ] Add context to woocommerce_backordered_item_meta_name
2017-07-25 11:54:03 +08:00
claudiulodro
cdbead8961
Clean up and tests
2017-07-24 15:05:23 -07:00
Mike Jolley
ee545e7793
Totals progress
2017-07-24 17:21:08 +01:00
Mike Jolley
504a216582
Check data is an array in set_variation method
...
Closes #16232
2017-07-24 10:43:34 +01:00
Mike Jolley
45a9826a80
Totals class and tests files
2017-07-23 12:05:11 +01:00
Mike Jolley
45258a7e02
Started adding totals class from https://github.com/woocommerce/woocommerce/pull/11889/files
2017-07-21 16:49:52 +01:00
Paul Robinson
7c01201e34
Add custom attributes into radio fields for woocommerce_form_field
2017-07-21 14:23:21 +01:00
Mike Jolley
83b60573fa
Framework for discount class
2017-07-21 14:22:40 +01:00
Mike Jolley
fd12c344f8
Ensure we have a http URL for file path replacements
...
Closes #16179
2017-07-21 11:11:17 +01:00
Mike Jolley
e44450a40c
Remove duplicate inherited method
...
Closes #16206
2017-07-21 10:39:24 +01:00
Claudio Sanches
cb3e1de0be
Fixed coding standards
2017-07-20 18:14:53 -03:00
Mike Jolley
499519eaac
WC_Discount class
2017-07-20 20:50:09 +01:00
Mike Jolley
e5ec0e66e3
fixed discount
2017-07-20 20:33:27 +01:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Mike Jolley
0e96bd8a93
Discount rows
2017-07-20 17:34:30 +01:00
Claudio Sanches
48cfff4ab1
Merge pull request #16199 from woocommerce/fix/16145
...
Unset variable prices on read.
2017-07-20 12:39:19 -03:00
Mike Jolley
06c1a2ad8d
apply discount
2017-07-20 14:33:38 +01:00
Mike Jolley
3faa1c1ee9
Unset variable prices on read.
...
Closes #16145
2017-07-20 12:48:14 +01:00
Adrian Mörchen
d7484336c1
Fixed wrong class reference in comment
2017-07-20 13:29:54 +02:00
Saul Fautley
68470b51a4
Updated structured data for products
...
- Replaced outdated `priceSpecification` with `AggregateOffer`.
- Restructured data according to Google's latest specifications.
- Use product short_description if available.
2017-07-19 18:53:02 +02:00
Mike Jolley
f77fc21785
test_get_applied_coupons
2017-07-19 16:17:58 +01:00
Mike Jolley
24fcf52c59
Store applied_coupons
2017-07-19 15:55:56 +01:00
Claudio Sanches
18873ac9a7
Merge pull request #16189 from woocommerce/update/16153
...
Use comment_status input name
2017-07-19 11:23:06 -03:00
Mike Jolley
916294b7d0
Use comment_status input name
...
Closes #16153
2017-07-19 15:18:33 +01:00
Claudio Sanches
0a5cbae506
Merge pull request #16188 from woocommerce/fix/16184
...
Unchecked checkbox should be an empty string
2017-07-19 11:09:39 -03:00
Mike Jolley
578da2d126
Unchecked checkbox should be an empty string
...
Closes #16184
2017-07-19 14:58:46 +01:00
Claudio Sanches
af4c8b4d34
Merge pull request #16186 from woocommerce/fix/16157
...
Fix copy pasta errors in refunded email template
2017-07-19 10:52:23 -03:00
Claudio Sanches
eedc83b037
Merge pull request #16185 from woocommerce/fix/16156
...
Add placeholders array used in descriptions and for find and replace
2017-07-19 10:51:53 -03:00
Mike Jolley
16870c9c25
Fix copy pasta errors in refunded email template
...
Closes #16157
2017-07-19 14:30:47 +01:00
Mike Jolley
28cb0909c8
Add placeholders array used in descriptions and for find and replace
...
Fixes #16156
2017-07-19 14:25:00 +01:00
Mike Jolley
3c12a06c46
Limit to x
2017-07-19 13:49:22 +01:00
Mike Jolley
dd7fe5f158
More tests and precision fixes
2017-07-19 12:26:01 +01:00
Mike Jolley
8d277a263b
Sort by order + zone ID as a fallback in shipping zones
...
Fixes #16170
2017-07-19 10:16:50 +01:00
jaydeeprami
55100562b3
Fix typo in '@oaram' to '@param'
2017-07-19 08:14:41 +05:30
Mike Jolley
3a76e4492e
todos
2017-07-18 20:48:19 +01:00
Mike Jolley
d24faebea8
Split fixed cart from other discounts in class.
2017-07-18 20:42:47 +01:00
Mike Jolley
37fbd96de8
Small tidyup
2017-07-18 18:52:50 +01:00
Mike Jolley
2b9e3aafdd
fix endless loop of death
2017-07-18 18:47:05 +01:00
Mike Jolley
6a9e612a83
Some progress on actual discounts
2017-07-18 18:07:46 +01:00
Nick Hoobin
25038f6d0f
Add a filter to arguments passed to wc_get_products during prepare_data_to_export()
2017-07-18 10:38:36 -05:00
Mike Jolley
268628c09c
Include cart item class
2017-07-18 15:42:54 +01:00
Mike Jolley
cc8eb28724
Set items based on cart or an order, with tests
2017-07-18 15:42:46 +01:00
Mike Jolley
7f715e4776
WC_Cart_Item class
2017-07-18 15:42:29 +01:00
Paul Wilde
b64d855d96
Introduce `wc_get_account_formatted_address` function which removes a bunch of logic outside of the my-account template file.
2017-07-18 15:18:53 +01:00
Paul Wilde
60bbb41be8
Introduce `wc_get_account_orders_actions` function to reduce the amount of logic inside the account orders template files.
2017-07-18 15:03:26 +01:00
Mike Jolley
91dbdb0c4c
Correct value
2017-07-18 14:29:14 +01:00
Mike Jolley
efaa606894
Merge branch 'master' into feature/discounts-class
2017-07-18 14:27:20 +01:00
Mike Jolley
dfd7aa78d5
Use class raw data, don't pass it
...
#16127 caused an issue with fields which don’t require passing args
e.g. esc_url_raw callback. This broke tests.
2017-07-18 14:20:14 +01:00
Mike Jolley
31d535c932
Methods and tests
2017-07-18 14:04:56 +01:00
Mike Jolley
96f0a6e375
DateTime docblocks
2017-07-18 11:46:11 +01:00
Claudio Sanches
8b1b8b6b28
Initial WC_Discounts class
2017-07-18 01:43:31 -03:00
Claudio Sanches
90691e881f
Merge pull request #16140 from woocommerce/update/16136
...
Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
2017-07-17 19:24:44 -03: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
Mike Jolley
3f1144cf06
Merge pull request #16115 from woocommerce/refactor/woocommerce-class
...
Moving WooCommerce class to a separate file and fixing coding standards
2017-07-17 11:09:45 +01:00
Mike Jolley
62a3554c22
Merge pull request #16114 from woocommerce/fix/rest-api-options
...
[REST API] Allow OPTIONS requests again
2017-07-17 11:08:48 +01:00
Mike Jolley
0517673cfa
Reverse results of wc_array_cartesian so variations are created in a more expected way
...
Closes #16117
2017-07-17 11:02:47 +01:00
Mike Jolley
a2a34cf0be
Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
...
#16136
2017-07-17 10:34:44 +01:00
terence1990
f93413920b
Changed template name to receipt
2017-07-15 17:41:34 +01:00
Claudiu Lodromanean
19d844fa53
Merge pull request #16129 from woocommerce/fix/16128
...
Fixed missing reviews in product_page shortcode with SKU
2017-07-14 10:19:38 -07:00
claudiulodro
8c8684b8aa
Move meta query init above sku query
2017-07-14 10:10:37 -07:00
claudiulodro
96bc5e6f95
cleanup
2017-07-14 10:07:18 -07:00
Claudio Sanches
e5ebfb6141
Fixed missing reviews for product_page shortcode with SKU
...
When quering with SKU, WP_Query does not set `is_single` as true and this
makes fail the check inside `comments_template()`.
Closes #16128
2017-07-14 14:06:18 -03:00
claudiulodro
b04534bb85
Hook everything up to wc_product_query
2017-07-14 10:01:25 -07:00
claudiulodro
f66198c37d
Initial working wc_get_products
2017-07-14 09:50:20 -07:00
Claudio Sanches
4d3d377bcf
Merge pull request #16127 from woocommerce/fix/16119
...
Importing products with relative fields and skus
2017-07-14 12:55:11 -03:00
Claudio Sanches
14ff34ef81
Moved constants to main class and applied new description
2017-07-14 12:49:16 -03:00
Claudio Sanches
2e663af024
Merge pull request #16122 from woocommerce/update/16069
...
Check stock levels before showing payment form
2017-07-14 12:35:26 -03:00
Claudio Sanches
4f7b152b96
Merge pull request #16120 from woocommerce/fix/16118
...
Cast report data to floats
2017-07-14 12:34:00 -03:00
Mike Jolley
f63b2e24df
Merge pull request #16125 from websupporter/issue-16124
...
Switch to coupons internal get_email_restrictions() (solves #16124 )
2017-07-14 12:34:43 +01:00
Mike Jolley
2bc7f075f5
Make sure placeholders have or check for SKUS
...
Fixes #16119
2017-07-14 12:33:14 +01:00
Mike Jolley
02dc61677a
Improve cleanup of fails
2017-07-14 11:38:49 +01:00
websupporter
72baa43fe2
switch to coupons internal get_email_restrictions()
2017-07-14 13:37:00 +03:00
Mike Jolley
1c6a629d78
Check stock levels before showing payment form
2017-07-14 10:48:43 +01:00
Mike Jolley
44ef034a94
Cast report data to floats
...
#16118
2017-07-14 10:26:07 +01:00
Claudio Sanches
eb4caec13e
Applies wc_delete_order_note() and properly delete notes by AJAX
2017-07-13 19:38:37 -03:00
Claudio Sanches
97f9dab0ce
Applies wc_get_order_notes() on admin
2017-07-13 19:33:20 -03:00
Claudio Sanches
1b93282245
Change note to content
2017-07-13 19:30:25 -03:00
Claudio Sanches
fe550d5322
Fixed coding standards
2017-07-13 15:57:46 -03:00
Claudio Sanches
89bbd4acfa
Prevent direct access
2017-07-13 15:46:34 -03:00
Aristeides Stathopoulos
e4bf9b3d78
Properly define constants after moving class outside main plugin file.
2017-07-13 15:44:23 -03:00
Aristeides Stathopoulos
e7ffb9f910
Move WooCommerce class to separate file.
2017-07-13 15:44:20 -03:00
Claudio Sanches
8aa2701514
Merge pull request #16113 from woocommerce/fix/cod-shipping-logic
...
Improves cash on delivery logic when dealing with multiple methods
2017-07-13 15:23:15 -03:00
Claudio Sanches
f37e066d97
[REST API] Allow OPTIONS requests again
2017-07-13 15:19:17 -03:00
Claudio Sanches
940019f245
Merge pull request #16103 from jconroy/api-terms-page-data
...
Add the "Terms and conditions" page to the api system status pages property
2017-07-13 15:17:48 -03:00
Mike Jolley
37fc4c8f77
Ajaxify the product category filter ( #16110 )
...
* Ajaxify the product category filter
Closes #12773
* Min
2017-07-13 17:04:40 +01:00
Claudiu Lodromanean
287b0107b1
Merge pull request #16109 from woocommerce/fix/15858
...
add next button to pointers and allow it to be dismissed
2017-07-13 08:45:49 -07:00
Claudiu Lodromanean
c5443dddf5
Merge pull request #16107 from woocommerce/update/13171
...
Ajaxify widget remove from cart button
2017-07-13 08:41:36 -07:00
Claudiu Lodromanean
268166ecd0
Merge pull request #16093 from woocommerce/fix/15824
...
Fix select box styling in 2017
2017-07-13 08:28:51 -07:00
Mike Jolley
982edb2f9f
Improves cash on delivery logic when dealing with multiple methods
...
If an order has multiple shipping methods, check all against the
allowed methods using a simple array_diff.
2017-07-13 16:21:59 +01:00
Mike Jolley
175e93deb1
Custom colors
2017-07-13 15:05:22 +01:00
Beka Rice
1f95709e42
Fix deprecation notice from accessing order props directly
2017-07-13 09:56:46 -04:00
Mike Jolley
ac4d2db43a
Improve tracking page validation
...
Ensures error messages are vague but reflect the posted data.
Closes #15986
2017-07-13 14:50:30 +01:00
Mike Jolley
d63cf8c52f
add next button to pointers and allow it to be dismissed
...
Closes #15858
2017-07-13 13:09:52 +01:00
Mike Jolley
7c321a2269
Ajaxify widget remove from cart button
...
Fixes #13171
2017-07-13 12:15:13 +01:00
Ninos Ego
6b101d790e
Cleanup: WC_Query ( #15800 )
...
* Cleanup: WC_Query
Since WP 4.5 search_post_excerpt() is not needed anymore
* Fixed: Deprecate functions instead removing them
* Fixed: Don't forget to return param, otherwise existing filters would not work anymore
* Increased deprecated version from 3.1 to 3.2 because of milestone in PR
* Typo
2017-07-13 11:28:51 +01:00
Mike Jolley
6d65be1264
Merge pull request #16099 from woocommerce/feature/15982
...
Order note helper functions
2017-07-13 11:22:02 +01:00