Claudio Sanches
5240682f38
Improve choice of words
2020-08-25 18:03:03 -03:00
Hayden Whiteman
3fca3caf1d
Fix #27413
2020-08-22 19:35:13 +12:00
Romario
073c63c9c4
Replace dirname with __DIR__ and add DIRECTORY_SEPARATOR
...
Previously 'dirname( __FILE__ )' was used to import files, however, the directory separator was missing.
This commit replaces 'dirname( __FILE__ )' that was introduced in 5370d02484
with __DIR__ and added DIRECTORY_SEPARATOR
2020-08-21 15:16:26 -05:00
Romario
5370d02484
Change relative include paths to absolute include paths
...
Relative include paths in PHP can break whenever the server is running opcache. As such, WordPress.com deploy system refuses to include WooCommerce because of that issue.
This commit changes the relative include paths to absolute include paths.
Relates to #27269
2020-08-20 15:32:04 -05:00
Claudio Sanches
525db3aa21
Fixed incorrect package tags
2020-08-05 17:49:10 -03:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Claudio Sanches
cc8282a23f
Merge pull request #27142 from woocommerce/fix/25788
...
Improve order details UI to highlight "Paid" and "Net Payment" sections
2020-07-30 15:49:24 -03:00
Claudio Sanches
77f8bb57a6
Check if there's a payment method title
2020-07-30 13:05:03 -03:00
Néstor Soriano
0f134ca6a2
Merge pull request #27054 from woocommerce/fix/27036
...
add/update correct deprecated notices on existing deprecations
2020-07-29 15:20:24 +02:00
Claudio Sanches
008e41170b
Improved UX to highlight order data when there's some refund
2020-07-28 15:13:00 -03:00
Claudio Sanches
134ab5c184
Fixed coding standards
2020-07-27 20:21:41 -03:00
Claudio Sanches
4f90307e2e
Fixed "Paid By Customer" data when the orders contains refunds
2020-07-27 20:18:33 -03:00
vedanshujain
cd09e91817
Applied coding standards
2020-07-24 19:12:25 +05:30
vedanshujain
853539df12
Remove wc_round_tax_total from shipping item because shipping price are never inclusive of taxes
2020-07-24 19:12:24 +05:30
Ron Rennick
5ee0eccb7b
add/update correct deprecated notices on existing deprecations
2020-07-16 17:13:08 -03:00
vedanshujain
8ded6a3057
Applied coding standards
2020-07-01 19:09:50 +05:30
Peter Fabian
14a26aca2c
Update min files and selectWoo
2020-06-16 17:15:12 +02:00
Jonathan Sadowski
4d6aad4ecb
Encode HTML entities in product attributes
2020-06-11 14:10:05 -05:00
Peter Fabian
ee865fe0b4
Merge pull request #25504 from woocommerce/update/order-detail-summary
...
Enhance order details and payment summary
2020-02-06 11:40:45 +01:00
Rodrigo Primo
44ecb0ec9e
Only display the "Paid by customer" section if the order has been paid
...
This commit changes the condition in the if the statement that decides
whether or not to display the "Paid by customer" section in the order admin
page. Before it, this section was displayed for all orders that
contained one of the following statuses: 'processing', 'completed' or 'refunded'.
The problem with this approach is that offline payment gateways, like
'Cash on Delivery', set the order status to processing when the order is
placed but before the customer pays for it. So the "Paid by customer"
section was being displayed in some cases where the order was not
actually paid yet creating a confusing experience to store managers.
To fix this, this commit also checks for the presence of the
`_date_paid` order meta. If this order meta is present and the order
status corresponds to one of the three statuses listed above, it means that
the order has been paid and we can display the "Paid by customer"
section. If this order meta is not present, we don't display the "Paid
by customer" section.
2020-02-05 16:08:13 -03:00
Peter Fabian
147266f44f
Updates to reflect PR feedback.
2020-02-04 21:43:29 +01:00
Peter Fabian
5001e14086
Renamed Discounts to Coupons.
2020-02-04 18:27:53 +01:00
Peter Fabian
d588218eb6
PHPCS
2020-02-03 23:18:12 +01:00
Peter Fabian
12fe0e6815
Corrected tax amount displayed in the summary.
2020-02-03 23:09:59 +01:00
Peter Fabian
f9c9498e7c
Replaced deprecated call with a substitute function.
2020-02-03 23:09:19 +01:00
Peter Fabian
248e69960b
Merge branch 'master' into update/order-detail-summary
2020-01-30 17:41:32 +01:00
Peter Fabian
7c07b192af
Changed country to country/region label.
2020-01-30 12:42:41 +01:00
David Levin
ee2c6b8096
Change net payment to net total
2020-01-27 21:10:11 -08:00
David Levin
3c92aacfcb
update shipping methods
2020-01-27 19:22:04 -08:00
vedanshujain
d768fcb139
Apply rounding only if value is integer to display "-" when needed.
2020-01-23 17:36:49 +05:30
David Levin
40c76b83a2
update order to play nice with gateways, add paid by customer when order is paid in full
2019-12-22 20:14:31 -08:00
David Levin
e4fcfc4d1a
add net payment calculation, and re-order refund item to bottom of rows
2019-12-20 14:28:06 -08:00
David Levin
34ff4544ff
trying to get net payment to work
2019-12-20 12:27:17 -08:00
David Levin
b7c455c9d1
Add line for net payment post refund
2019-12-20 12:06:11 -08:00
Rodrigo Primo
7337ab60c2
Fix PEAR.Functions.FunctionCallSignature violations
...
This commit fixes all violations of the PEAR.Functions.FunctionCallSignature sniff automatically using phpcbf.
2019-12-20 15:25:23 -03:00
Rodrigo Primo
86c1b61f03
Fix Generic.WhiteSpace.ScopeIndent violations
...
This commit fixes all violations of the Generic.WhiteSpace.ScopeIndent sniff automatically using phpcbf.
2019-12-20 14:48:11 -03:00
Rodrigo Primo
487f96d844
Fix WordPress.DateTime.CurrentTimeTimestamp vilations
...
This commit fixes all violations of the WordPress.DateTime.CurrentTimeTimestamp sniff automatically using phpcbf.
2019-12-20 14:23:05 -03:00
David Levin
b5bdb3dae0
change the order of shipping and fees in order line items
2019-12-19 12:11:50 -08:00
David Levin
25603cc190
display actual item price before discount in order item cost
2019-12-19 08:14:03 -08:00
David Levin
7ecae84d99
Rename coupons to discounts in order summary
2019-12-19 08:00:21 -08:00
David Levin
8c62fc72a6
update order summary totals
2019-12-19 07:53:35 -08:00
David Levin
5df30cdbd6
rename method to get fee totals
2019-12-18 21:34:40 -08:00
David Levin
c6cd7331f9
update order details summary with items subtotal and start to add fees
2019-12-18 20:51:45 -08:00
Rodrigo Primo
f06ad5d78a
Replace removed WordPress.Security.NonceVerification.NoNonceVerification
...
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:
```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```
(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31)
)
This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Rodrigo Primo
9c4de8f5e7
Fix indentation
2019-12-13 16:48:17 -03:00
Rodrigo Primo
d451b68488
Merge pull request #24929 from helgatheviking/feature/woocommerce_process_variation_object
...
Add woocommerce_admin_process_variation_object before $variation->save()
2019-12-13 16:46:22 -03:00
Claudio Sanches
5dac360e8a
Merge pull request #24208 from woocommerce/fix/order-screen-tax-calculation-to-honor-rounding-setting
...
Honor tax rounding preference in edit item and refund flows
2019-12-05 20:52:48 -03:00
Gerhard Potgieter
7d39222334
Merge pull request #25162 from woocommerce/fix/24018
...
Hid variable parent products from "Add Products" search on order page
2019-12-05 14:22:43 +02:00
Claudio Sanches
8033d5751e
Changed wc_get_product_classname function name to wc_get_product_object
2019-12-04 16:15:16 -03:00
Christopher Allford
d3a7266848
Hid variable product types from "Add Products" search on order management page
2019-12-03 14:17:51 -08:00
Paul Dechov
7f65a33fe8
Honor tax rounding preference in edit item and refund flows
...
The default value ('no') of the setting to round taxes at subtotal was not being honored on the Edit Order screen, which resulted in off-by-one discrepancies between the checkout item total and the edited or refunded item total.
This change is to round to the proper precision (w.r.t. the 'woocommerce_tax_round_at_subtotal' setting) for the default value of the form, as well as when the values are dynamically recomputed.
2019-11-25 17:49:43 +05:30
Claudio Sanches
ba0773d12e
Apply wc_get_product_classname() in the current code base
2019-11-13 15:30:09 -03:00
Kathy Daring
e55af6431c
Add woocommerce_admin_process_variation_object before $variation->save()
2019-10-29 11:50:52 -06:00
Julia Amosova
14e5d6b3ea
Capitalize `T` in `Move to trash` on order page
2019-10-18 14:44:47 +01:00
Sören Schwert
8d0e37e6ca
Use full year and 24h format in order note tooltip
2019-10-16 14:59:36 +02:00
Gerhard Potgieter
2d796f825e
Merge pull request #24760 from jorostoyanov/jorostoyanov-patch-1
...
Add woocommerce_after_order_refund_item_name hook
2019-10-08 11:21:51 +02:00
Joro Stoyanov
5c55eea31c
Add woocommerce_after_order_refund_item_name hook
2019-10-03 08:53:10 +03:00
Nico Mollet
8365365037
Removed space at the end of the line
2019-10-02 13:42:26 +02:00
Nico Mollet
5bcc35c24e
Coupon expiry date tooltip to help understand behaviour
...
Help understand if the date is included or excluded
2019-10-02 11:48:15 +02:00
Nikhil Chaudhary
951c57ada1
Update class-wc-meta-box-product-images.php
...
Added escaping function where required.
2019-09-14 09:13:48 +05:30
Yash Kapoor
be141f3231
Update html-variation-admin.php
...
Fixed escaping function for attribute value.
2019-08-28 19:43:02 +05:30
Jesse Pearson
009b0f030d
Sort shipping classes under products alphabetically
2019-08-01 13:07:05 -04:00
Claudio Sanches
b54997d9f5
Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221
2019-07-08 17:55:07 -03:00
Gerhard Potgieter
c3a25bb6bf
Merge pull request #23884 from woocommerce/fix/23875
...
Prevents taxes columns from being removed when the order is no longer editable
2019-07-04 09:25:49 +02:00
Mark Senff
9c013b132b
Update html-product-attribute.php
2019-07-03 07:30:32 -04:00
rmalviya
0e896f82fa
Change misleading tooltip for product sale meta box
...
Clarify the sale start and end time by changing the tooltip for
product sale price dates and fix #23931 .
2019-06-14 11:12:54 +05:30
Claudio Sanches
47c370809e
Prevents taxes columns from being removed when the order is no longer editable
2019-06-07 10:07:32 -03:00
Claudio Sanches
2e90e9ab65
Merge pull request #23743 from Sisanu/issue-23717-enhancement-hook
...
Implement the info & extra actions new filter for Product gallery
2019-05-28 18:22:33 -03:00
Iulia Cazan
f49cec5108
Coding standard updates
2019-05-23 08:58:13 +03:00
Claudio Sanches
17da960abe
Merge pull request #23137 from woocommerce/fix/23051
...
Change coupon amount field type based on coupon type
2019-05-22 21:19:03 -03:00
Iulia Cazan
051277d26e
Rename the hook
2019-05-21 09:20:46 +03:00
Iulia Cazan
1187563c93
Transform the filter into action, rewrite the piece of code to pass the coding standards, remove markup restriction.
2019-05-21 09:18:15 +03:00
Iulia Cazan
a1ac64aa30
Implement a new filter that allows for custom info or extra actions to be exposed for each of the attachments selected in the Product gallery
2019-05-17 12:03:40 +03:00
Claudio Sanches
490219de7c
Use attributes orderby options to sort terms in product's edit screen
2019-05-06 20:39:36 -03:00
Mike Jolley
d411f082d7
Added missing wp_unslash
2019-04-18 18:52:51 +01:00
Mike Jolley
4e50a8f6dd
Escape strings passed to selectwoo
2019-04-17 12:02:20 +01:00
Mark Senff
0185795319
Update html-product-attribute.php
2019-04-07 09:42:27 -04:00
Mike Jolley
eb45b94edb
Switch data_type
2019-03-25 15:10:56 +00:00
Mike Jolley
97f30e7f5c
Variation stock status handling
2019-03-18 12:56:49 +00:00
Timmy Crawford
e1c09b4609
Merge pull request #22973 from woocommerce/update/22545
...
Revised sale start/end date save logic
2019-03-14 17:53:40 -07:00
Claudio Sanches
d365497a66
Fixed coding standards
2019-03-14 19:48:47 -03:00
Rodrigo Primo
f9cdab66eb
Merge pull request #22889 from woocommerce/fix/22817
...
Hide 'other' payment method from invoice
2019-03-13 12:01:56 -03:00
Mike Jolley
bea53ebf4f
Handle date offsets on save
2019-03-08 13:36:55 +00:00
Mike Jolley
d9ab3b106e
Clean up date lookup
2019-03-08 13:36:22 +00:00
Mike Jolley
38816eb2ce
Update wording and presentation of discount amount
2019-03-06 16:39:28 +00:00
Mike Jolley
0f3be9fce4
phpcs
2019-03-06 16:17:33 +00:00
Mike Jolley
fd3173f63a
Hide 'other' payment method from invoice
2019-02-27 13:56:15 +00:00
Mike Jolley
27ac2e1577
phpcs
2019-02-22 13:33:41 +00:00
Mike Jolley
d07d1cf0b0
If taxes are enabled, make the refund box readonly
2019-02-22 13:30:49 +00:00
Mike Jolley
b65f93c756
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-20 12:45:34 +00:00
Mike Jolley
6b41041883
Merge pull request #22777 from woocommerce/fix/22730
...
check low_stock for empty string vs isset
2019-02-20 12:44:17 +00:00
Mike Jolley
7def966e4f
Impoved JSON handling
2019-02-20 12:00:47 +00:00
Ron Rennick
e9a98ce4ae
fixes from review
2019-02-19 15:37:45 -04:00
Ron Rennick
4c7f61e123
phpcs except for ignore use of $_POST
2019-02-19 13:41:14 -04:00
Ron Rennick
a2abe8783e
check low_stock for empty string vs isset
2019-02-19 11:08:14 -04:00
Mike Jolley
5bb5ae6265
Update from master
2019-02-18 16:54:24 +00:00
Chris Kreidl
63492aa98b
added IDs to other input fields for consistency
2019-02-16 22:59:33 -05:00
Peter Fabian
c1d82478a6
Added check for POST variable existance.
2019-02-07 13:39:47 +01:00
Mike Jolley
893b33973c
Merge branch 'fix/22147'
2019-02-04 13:05:40 +00:00
Mike Jolley
2a2863c5ba
Merge pull request #21648 from EmranAhmed/master
...
Add 3rd param on `woocommerce_product_option_terms` action to use custom attribute types on product attribute create
2019-01-22 18:28:24 +00:00