Commit Graph

551 Commits

Author SHA1 Message Date
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
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
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
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
Sören Schwert 8d0e37e6ca
Use full year and 24h format in order note tooltip 2019-10-16 14:59:36 +02:00
Joro Stoyanov 5c55eea31c
Add woocommerce_after_order_refund_item_name hook 2019-10-03 08:53:10 +03:00
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 490219de7c Use attributes orderby options to sort terms in product's edit screen 2019-05-06 20:39:36 -03:00
Mark Senff 0185795319
Update html-product-attribute.php 2019-04-07 09:42:27 -04: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
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 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 7def966e4f Impoved JSON handling 2019-02-20 12:00:47 +00: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
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
Mike Jolley e5af25e994
Merge pull request #21341 from kinging123/patch-2
Added action 'woocommerce_variation_header' after actions in variations list
2019-01-21 16:59:48 +00:00
Mike Jolley f4ed56a894
Merge pull request #21153 from jamesckemp/patch-12
`woocommerce_variation_option_name` Parameters
2019-01-10 12:28:21 +00:00
Mike Jolley 83f46aca15
Merge pull request #21887 from hannahswain/patch-1
Update external/affiliate URL placeholder from http to https
2019-01-07 12:44:45 +00:00
Mike Jolley 63bd02022f
Merge pull request #22084 from Prospress/fix/22075
Remove the stock data type on low stock threshold input which can be empty
2019-01-07 11:41:17 +00:00
JeroenSormani f4775ccd90 Use shipping method instead of property through magic + doc return statements 2019-01-04 12:41:38 +00:00
Mike Jolley 999f744d83 Allow notes to be updated after other order screen events 2019-01-03 11:46:43 +00:00
Ron Rennick b7f87c8cd2 Remove the stock data type on low stock threshhold input which can be blank 2018-11-29 14:58:51 -04:00
claudiulodro d09e9eb95c Use wp_kses_post for sanitizing product names instead of esc_html 2018-11-15 11:42:22 -08:00
Hannah Swain 1e142836b6
Update html-product-data-general.php
Changed external/affiliate product URL field's placeholder from http:// to https:// to reflect web preference for https
2018-11-12 13:56:00 +01:00
claudiulodro 510d3a756f Reintroduce Preview button on products 2018-11-06 15:28:23 -05:00
Emran Ahmed 5bceee62ad
Add extra filter param
Add `$attribute` to get more info about custom attribute types
2018-10-24 19:32:27 +06:00
Reuven Karasik a9afc72991
Updated html-variation-admin.php to comply with CS
Based on @ikraav 's proposals
2018-10-23 15:36:13 +03:00
Rodrigo Primo 8f04e09f26 Fix PHPCS violations automatically using phpcbf 2018-10-22 11:22:22 -03:00
claudiulodro b49a9a5809 Tweaks to unsupported theme handling and hidden preview button handling 2018-10-19 10:49:58 -07:00
Reuven Karasik 86c4c56d44
Fixed version and removed $variation_data array
Fixed version and removed $variation_data array (since it's deprecated) from filter `woocommerce_variation_header`
2018-10-06 12:21:40 +03:00
Reuven Karasik 37da7b6680
Added action 'woocommerce_variation_header' action 2018-09-13 12:17:51 +03:00
Gerhard Potgieter 6ff90a1912 Cleaner code and correct apply_filters 2018-09-11 12:50:20 +02:00
Gerhard Potgieter e3994348b3 Update checked functionality to use a filter, removed option from settings screen. Can use the woocommerce_restock_refunded_items filter to have the option checked or not, defaults to unchecked. 2018-09-10 11:31:24 +02:00
Ivete Tecedor 9b07180c7a #20822 -- adding config for making the "restock refunded items" checkbox be UNchecked by default 2018-09-10 11:27:14 +02:00
Hahn 6623db017b #21229 Updated class attribute for shipping class meta box 2018-08-30 12:17:43 -06:00
Peter Fabian 32d3ff76c5 Use simple quote. 2018-08-27 17:28:29 +02:00
Peter Fabian 058f14e7d3 Corrected wording of stock quantity description. 2018-08-27 17:20:46 +02:00
James Kemp 1ca1189f79
Add params to `woocommerce_variation_option_name` for admin variations 2018-08-22 11:49:17 +01:00
James Kemp 9fe201dd86
Add parameters to `woocommerce_variation_option_name` in admin view 2018-08-22 11:44:40 +01:00
Rodrigo Primo b8354da6b1 Use refund currency when displaying refund amount
Use the refund currency when wc_price() is called to display the refund amount in the "Edit order" admin screen. Without this change, wc_price would use the store default currency which is a problem for stores that at some point changed their currency or stores using extensions which support multiple currencies.
2018-08-20 11:32:56 -03:00
Rodrigo Primo aef5d3373c phpcs fixes 2018-08-20 11:12:12 -03:00
Rodrigo Primo 1274c61a7c Hide "Stock status" field for grouped products
In the product admin page, the field "Stock status" should be hidden for grouped products as stock is controlled individually for each of the child products and setting a stock status in the parent product has no effect.

Fixes #20927
2018-08-01 10:30:21 -03:00
Rodrigo Primo 4f41f99cd2 phpcs fixes 2018-08-01 10:27:22 -03:00
Gerhard Potgieter 75e462c448 Do not use array_merge for appending parent to tax classes rather +, array_merge will rewrite numeric keys which we allow for tax class names. 2018-07-27 11:16:28 +02:00
Claudiu Lodromanean 87acfa731d
Merge pull request #20260 from leglesslizard/master
Set low stock notification threshold per product
2018-07-24 10:23:15 -07:00
Claudiu Lodromanean 98b3b6305d
Merge pull request #20661 from woocommerce/fix/16620
Use view context so true is not returned if parent is stock managed and not the variation
2018-07-03 10:08:47 -07:00
Joey Gilham 58cdd7dad2
Merge branch 'master' into master 2018-07-03 15:41:15 +01:00
Mike Jolley b3b03755d7 update selector 2018-06-29 11:16:44 +01:00
Mike Jolley 4ac235a6e5 Use view context so true is not returned if parent is stock managed and not the variation. 2018-06-29 10:37:56 +01:00
Mike Jolley 3174aff57f Hide preview button 2018-06-28 14:59:04 +01:00
Joey cd8416122f removed low stock options for variations, and addressed changes 2018-06-19 12:40:27 +01:00
Rodrigo Primo b6e73f528b Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-06-15 14:56:31 -03:00
Mike Jolley 04e304921a Show stock based on querystring var 2018-06-15 15:11:07 +01:00
Mike Jolley a1bd9ab2ae Input type number with correct width 2018-06-15 14:32:30 +01:00
Mike Jolley 01a3e359c3 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-06-13 10:18:38 +01:00
Mike Jolley 52854b7690 Add qty to order via modal, include stock qty in formatted name display for reference 2018-06-08 16:18:32 +01:00
Mike Jolley ce8eabc4a5 Include qty and reduce stock field on add item modal 2018-06-08 12:19:14 +01:00
Mike Jolley 6b8cd9661f exclude new meta data from admin screens 2018-06-08 12:18:15 +01:00
Mike Jolley 8261cffaa7 Remove bulk actions 2018-06-07 18:01:21 +01:00
Joey 98e44092e7 updating suggested changes 2018-06-07 14:37:06 +01:00
Joey e5800b66b0 updated low_stock_amount fields to use global value if no value is entered 2018-05-27 06:43:23 +01:00
Joey b08b55a651 added changes for low stock notifications per product 2018-05-27 05:40:58 +01:00
James Kemp 0eeb7834cd
Echo attribute label 2018-05-26 13:10:09 +01:00
James Kemp 1c99022600
Echo attribute label for "empty" default option
The empty option for the default attribute value selectors was not echoed.
2018-05-26 12:59:40 +01:00
James Kemp 16785b33ab Do not escape HTML for attribute label 2018-05-24 15:29:53 +01:00
Rodrigo Primo 597033ca6f Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-04-24 13:47:22 -03:00
Beka Rice 7bd9cdacaa Filter the used coupon URL in 'edit order' screen 2018-04-18 11:49:35 -04:00
Peter Fabian 7861d7b95f Changed usage of selected with in_array to wc_selected. 2018-04-17 13:24:39 +02:00
Mike Jolley 5ac7aac369 Improve can_refund_order and add unit tests 2018-04-03 17:09:09 +01:00
Will Gorham 55707ecc7e Display order item refund as negative value 2018-03-30 17:09:44 -04:00
Rodrigo Primo bb553c88ae Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-29 12:05:55 -03:00
bernat torras 307605a739 Added 'Removed extra tabs 2018-03-28 21:27:46 +02:00
bernat torras 47d85844d8 Added 'woocommerce_variable_product_before_variations' hook to variation tab 2018-03-28 16:02:06 +02:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Rodrigo Primo 3a480e5d80 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-01 08:02:08 -03:00
Claudio Sanches ef393b8405
Merge pull request #18918 from woocommerce/fix/order-item-meta-key-maxlength
Set maxlength for order item meta key
2018-02-20 16:52:35 -03:00
Mike Jolley 5fce9152bd
Merge pull request #18080 from WPprodigy/fix-stock-update-order-notes
Enhancements for stock updates
2018-02-19 14:51:05 +00:00
Caleb Burks c278bffa78 Set maxlength for order item meta key 2018-02-09 22:33:35 -05:00
Gerhard Potgieter 780905cd0e Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-02-08 10:11:27 +02:00
Mike Jolley e36c05b1d5 Fix esc_attr/esc_html usage 2018-02-05 14:54:18 +00:00