Mike Jolley
2ed018d542
Trigger post modified update when saving products and variations, but no other product data
...
Closes #19562
2018-04-03 12:51:58 +01:00
Claudiu Lodromanean
fe140110a6
Merge pull request #19502 from rynaldos/duplicate-queries
...
Duplicate queries for WC_Admin_Report->get_order_report_data()
2018-04-02 08:49:25 -07:00
Will Gorham
55707ecc7e
Display order item refund as negative value
2018-03-30 17:09:44 -04:00
Claudiu Lodromanean
5ff236fd54
Merge pull request #19567 from woocommerce/fix/19524
...
Ensure background process class returns `data` as an array
2018-03-30 08:13:52 -07:00
Claudiu Lodromanean
b92ea90761
Merge pull request #19571 from Chouby/before_delete_product
...
Add action woocommerce_before_delete_{$post_type}
2018-03-30 08:00:17 -07:00
Mike Jolley
01be034279
Disable geolocation if using legacy php #19548
2018-03-29 17:04:31 +01:00
Mike Jolley
69a3a78a4c
Typo
2018-03-29 16:46:11 +01:00
Mike Jolley
b88289e5c1
GeoIP version check in status report
2018-03-29 16:44:45 +01:00
Mike Jolley
7ec6917475
PHP version checks to recommend 7.2
2018-03-29 16:38:44 +01:00
Mike Jolley
36aee04abb
Include WordPress version check and resolve phpcs issues
2018-03-29 16:08:36 +01:00
Frédéric Demarle
ee2140944c
add action woocommerce_before_delete_{$post_type}
2018-03-29 14:52:19 +02:00
Mike Jolley
51d634e29a
Ensure background process class returns `data` as an array
...
Fixes #19524
2018-03-29 11:09:41 +01:00
Mike Jolley
4a6c526229
Merge pull request #19557 from bernattorras/before_variations_hook
...
Add 'woocommerce_variable_product_before_variations' hook to variations tab
2018-03-29 11:00:34 +01:00
bernat torras
307605a739
Added 'Removed extra tabs
2018-03-28 21:27:46 +02:00
Claudio Sanches
e718bdd11c
Merge pull request #19192 from nishitlangaliya/Issue-18990
...
Fixes- Admin - removed product type column
2018-03-28 15:37:57 -03:00
Claudio Sanches
5bec3b229f
Merge pull request #19527 from woocommerce/fix/19519
...
Use `get_variation_price` method in structured data to grab min/max so filters are ran.
2018-03-28 15:23:14 -03:00
Claudio Sanches
35b75b5beb
Merge pull request #19555 from woocommerce/update/19547-wp-cli-pagination
...
WP-CLI integration per_page default
2018-03-28 14:01:38 -03:00
bernat torras
47d85844d8
Added 'woocommerce_variable_product_before_variations' hook to variation tab
2018-03-28 16:02:06 +02:00
Mike Jolley
51252915e1
Merge pull request #19493 from woocommerce/fix/19404
...
Removed line item limit and made sure the URL is shorter than 2083 ch…
2018-03-28 13:56:57 +01:00
Peter Fabian
3809ab3f4c
Fixed shipping tax logic to behave the same as originally
2018-03-28 13:08:05 +02:00
Gerhard Potgieter
2c24872989
Merge pull request #19541 from woocommerce/update/tracking-wording
...
Tweak wording for opt-out
2018-03-28 12:12:18 +02:00
Mike Jolley
5547c57c03
Merge pull request #19504 from woocommerce/fix/19485-backorder-import
...
Product import backorders default to no
2018-03-28 11:00:09 +01:00
Mike Jolley
7966fcfbe7
Merge pull request #19522 from woocommerce/fix/19491
...
Apply strip_tags to attributes in loop template
2018-03-28 10:57:58 +01:00
Peter Fabian
c2e27919ce
Replaced array_key_exists with isset test
2018-03-28 11:19:03 +02:00
Peter Fabian
59c47c4407
Refactored line item logic
...
- prepare_line_items is not used as a test anymore, it only updates line items
- add_line_item is not used as a test anymore, only adds line items
- added method line_items_valid to test for valid line items
- shipping tax inclusion test moved to get_shipping_cost_line_item to encapsulate shipping tax-related logic
2018-03-28 11:04:34 +02:00
Gerhard Potgieter
9c67760bc0
per_page must be between 1 and 100, default to 100.
2018-03-28 10:18:10 +02:00
Gerhard Potgieter
1f2468ca3e
When no per_page is defined for list wp-cli command default to displaying all items as per the wp-cli standard.
2018-03-28 09:47:15 +02:00
Mike Jolley
57378785bf
Split up state and country fields
2018-03-27 19:32:04 +01:00
Mike Jolley
38c29204d4
Include US in US dollar dropdown so it's searchable
2018-03-27 18:35:15 +01:00
Claudiu Lodromanean
d802d2ca6a
Merge pull request #19526 from woocommerce/fix/19511
...
Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
2018-03-27 08:36:31 -07:00
Peter Fabian
86f1b3701f
Tag stripped outside template
...
Stripping only affects aria-label attribute now.
2018-03-27 17:19:49 +02:00
Claudiu Lodromanean
ccdf0923fa
Merge pull request #19509 from woocommerce/update/19506
...
Call empty cart when completing payment in PayPal
2018-03-27 07:58:59 -07:00
Peter Fabian
f39e8e3900
Removed incorrect comment
2018-03-27 16:28:25 +02:00
Peter Fabian
5eda49f98a
Line item logic refactored
...
Renamed function get_non_line_item_args
Documentation updates
...all part of code review fixes
2018-03-27 15:55:03 +02:00
Mike Jolley
0c3ab5d485
Update currency text to make it clear it's to accept payments
2018-03-27 13:35:13 +01:00
Mike Jolley
0599c06b20
Disable Gutenberg for products.
2018-03-27 13:28:03 +01:00
Mike Jolley
dd3b998851
Tweak wording for opt-out
2018-03-27 13:00:19 +01:00
Mike Jolley
ffb6bc844c
Use `get_variation_price` method in structured data to grab min/max so filters are ran.
...
Closes #19519
2018-03-26 12:54:17 +01:00
Peter Fabian
88588eccbc
Code duplication removed
...
Added test for non line item agrument presence
Fixed incorrect comment
2018-03-26 13:05:55 +02:00
Mike Jolley
ced5980e79
Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
2018-03-26 12:03:00 +01:00
Mike Jolley
b25ff31d5c
Merge pull request #19419 from woocommerce/feature/18477
...
MaxMind GeoLite2 integration
2018-03-26 11:31:21 +01:00
Mike Jolley
c8f6330158
Merge pull request #19515 from woocommerce/fix/order-products-by-price
...
Use minimum price to order variable products on term archives
2018-03-26 11:17:23 +01:00
Peter Fabian
e19d64e51e
Fixed PHPCS violations
2018-03-26 11:00:28 +02:00
ahmedofali
d06854a0b4
Defining array before attempting to append to it
2018-03-25 18:28:14 +00:00
Rodrigo Primo
a02b77bedc
Use minimum price to order variable products on term archives
...
Commit 12d7bf7
added a specific query to order products by price from low to high on term archives (see #17690 and #16694 for more details), but, probably due to a copy and paste error, it changed the behavior when dealing with variable products. Instead of using the smallest variation price of each variable product, it was using the highest variation price. This commit changes this new query to use the smallest variation price of each variable product. This way ordering by price from low to high on term archives will again behave in the same way that on the shop page when dealing with variable products.
2018-03-23 16:15:37 -03:00
Mike Jolley
fb290ebbaa
Merge pull request #19510 from woocommerce/fix/19472
...
Check query var for orderby if not found in $_GET
2018-03-23 18:00:42 +00:00
Peter Fabian
26144afbc6
Test request length after applying filter
...
- added default value to get_line_item_args to not break interface
- smaller code review updates
2018-03-23 17:22:09 +01:00
claudiulodro
62d88892bf
Check query var for orderby
2018-03-23 08:30:02 -07:00
Mike Jolley
0573232c62
Call empty cart when completing payment in PayPal
2018-03-23 12:54:03 +00:00
Mike Jolley
f98eb66f8c
Webhooks do not need permission checks
2018-03-23 12:45:10 +00:00
Mike Jolley
0f040f08c4
Merge pull request #19494 from woocommerce/fix/download-handler-class-phpcs
...
Fixed includes/class-wc-download-handler.php PHPCS violations
2018-03-23 11:51:01 +00:00
Gerhard Potgieter
e876f0dfb2
empty check on 0 will be true, return no when empty.
2018-03-23 11:21:59 +02:00
Gerhard Potgieter
04cce41b6b
Default to no when importing backorders.
2018-03-23 11:19:02 +02:00
rspublishing
2eca0d73bd
Duplicate queries for WC_Admin_Report->get_order_report_data()
2018-03-23 11:15:21 +02:00
Peter Fabian
59af63e642
Merge branch 'master' into fix/19404
2018-03-23 09:36:15 +01:00
Claudiu Lodromanean
d4ef90bf91
Merge pull request #19495 from woocommerce/fix/emails-class-phpcs
...
Fixed includes/class-wc-emails.php PHPCS violations
2018-03-22 13:27:21 -07:00
Claudiu Lodromanean
8048afe4ce
Merge pull request #19498 from woocommerce/fix/frontend-scripts-class-phpcs
...
Fixed includes/class-wc-frontend-scripts.php PHPCS violations
2018-03-22 13:25:12 -07:00
Claudio Sanches
027789271d
Fixed includes/class-wc-frontend-scripts.php PHPCS violations
2018-03-22 16:01:03 -03:00
Claudio Sanches
930591808b
Fixed includes/class-wc-product-variation.php PHPCS violations
2018-03-22 15:49:01 -03:00
Claudio Sanches
b2e33b3fb9
Fixed includes/class-wc-product-variable.php PHPCS violations
2018-03-22 15:47:50 -03:00
Claudio Sanches
8470a691a7
Fixed includes/class-wc-product-simple.php PHPCS violations
2018-03-22 15:43:51 -03:00
Claudio Sanches
50c0a34dec
Fixed includes/class-wc-product-query.php PHPCS violations
2018-03-22 15:41:53 -03:00
Claudio Sanches
dfeb867a04
Fixed includes/class-wc-product-grouped.php PHPCS violations
2018-03-22 15:37:29 -03:00
Claudio Sanches
73a56469ef
Fixed includes/class-wc-product-factory.php PHPCS violations
2018-03-22 15:36:07 -03:00
Claudio Sanches
6eada732b8
Fixed includes/class-wc-product-external.php PHPCS violations
2018-03-22 15:26:09 -03:00
Claudio Sanches
475e0c734f
Fixed includes/class-wc-product-download.php PHPCS violations
2018-03-22 15:10:22 -03:00
Claudio Sanches
809ca5e0fc
Fixed includes/class-wc-product-attribute.php PHPCS violations
2018-03-22 15:07:06 -03:00
Claudio Sanches
a529e1fdf3
Fixed includes/class-wc-emails.php PHPCS violations
2018-03-22 14:54:16 -03:00
Claudio Sanches
88d0b502d9
Fixed includes/class-wc-download-handler.php PHPCS violations
2018-03-22 14:12:36 -03:00
Mike Jolley
db9e66e743
Merge pull request #19481 from woocommerce/fix/payment-classes-phpcs
...
Fixed payment main classes PHPCS violations
2018-03-22 15:11:13 +00:00
Mike Jolley
d40e09b3c9
Merge pull request #19484 from woocommerce/fix/shipping-classes-phpcs
...
Fixed shipping classes PHPCS violations
2018-03-22 15:08:11 +00:00
Mike Jolley
66a5895645
Merge pull request #19483 from woocommerce/fix/posts-classes-phpcs
...
Fixed post classes PHPCS violations
2018-03-22 15:07:45 +00:00
Claudio Sanches
e79012e7e3
Fixed a typo
2018-03-22 12:06:36 -03:00
Peter Fabian
27a309d2df
Removed line item limit and make sure the URL is shorter than 2083 characters
...
- removed limit to 9 line items per Paypal order
- if the request URL with all line items will be longer than 2083 characters, send it as one line item
- fix the character limit function to account for URL encoding happening in http_build_query
2018-03-22 15:39:30 +01:00
Claudio Sanches
fd57c1c596
Fixed includes/class-wc-shipping-rate.php PHPCS violations
2018-03-21 20:58:20 -03:00
Claudio Sanches
996d3decfe
Fixed file and class dockblock
2018-03-21 20:54:10 -03:00
Claudio Sanches
39f1c3e8fc
Fixed coding standards
2018-03-21 20:53:59 -03:00
Claudio Sanches
7b1fc4c8e8
Fixed includes/class-wc-post-types.php PHPCS violations
2018-03-21 20:50:40 -03:00
Claudio Sanches
ce8033ddf6
Fixed includes/class-wc-post-data.php PHPCS violations
2018-03-21 20:44:35 -03:00
Claudio Sanches
b0617a13c4
Removed unnecessary ternary operators
2018-03-21 20:05:19 -03:00
Claudio Sanches
0660a50e07
Removed obvious boolean results
2018-03-21 19:57:10 -03:00
Claudio Sanches
72d0b448f6
Fixed includes/class-wc-payment-tokens.php PHPCS violations
2018-03-21 19:45:27 -03:00
Claudio Sanches
d14615a6f7
Fixed includes/class-wc-payment-gateways.php PHPCS violations
2018-03-21 19:40:47 -03:00
Mike Jolley
a826d4d91f
Better method of removing product query after it runs.
2018-03-21 17:41:14 +00:00
Claudio Sanches
21dc6d28cf
Merge branch 'master' into feature/18477
2018-03-21 14:31:58 -03:00
Mike Jolley
b037c965cb
Set default order if empty
2018-03-21 17:24:00 +00:00
Mike Jolley
9c42735386
temp fix; comment out lines
2018-03-21 16:41:22 +00:00
Mike Jolley
dc7aa30694
Merge pull request #19467 from woocommerce/fix/some-includes-classes-phpcs
...
Fixed PHPCS violations in some classes on includes directory
2018-03-21 10:39:18 +00:00
Claudio Sanches
a7692478b0
Fixed includes/class-wc-order-item.php PHPCS violations
2018-03-21 00:56:59 -03:00
Claudio Sanches
583378cf7b
Fixed includes/class-wc-order-item-tax.php PHPCS violations
2018-03-21 00:52:55 -03:00
Claudio Sanches
eedc8c57e5
Improved class description
2018-03-21 00:50:30 -03:00
Claudio Sanches
949514fe75
Fixed includes/class-wc-order-item-product.php PHPCS violations
2018-03-21 00:49:45 -03:00
Claudio Sanches
d03e5a5f6c
Fixed includes/class-wc-order-item-shipping.php coding standards
2018-03-21 00:46:32 -03:00
Claudio Sanches
51a06da91d
Fixed includes/class-wc-order-item.php PHPCS violations
2018-03-21 00:45:44 -03:00
Claudio Sanches
9a55d16f44
Fixed includes/class-wc-order.php PHPCS violations
2018-03-21 00:44:44 -03:00
Claudio Sanches
ddac79152a
Fixed includes/class-wc-order-item-meta.php PHPCS violations
2018-03-21 00:43:54 -03:00
Claudio Sanches
e70f278123
Fixed includes/class-wc-order-item-fee.php PHPCS violations
2018-03-21 00:39:37 -03:00
Claudio Sanches
806c0d7a6d
Fixed includes/class-wc-order-item-coupon.php PHPCS violations
2018-03-21 00:33:44 -03:00
Claudio Sanches
f2cce37d6f
Fixed includes/class-wc-order-factory.php PHPCS violations
2018-03-21 00:31:15 -03:00
Claudio Sanches
7978671dd0
Fixed includes/class-woocommerce.php coding standards
2018-03-21 00:22:29 -03:00