Commit Graph

1035 Commits

Author SHA1 Message Date
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
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 6367d19615 phpcs 2019-01-21 08:11:40 -08: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 fe02144d0a
Merge pull request #21927 from woocommerce/add/21925
Make links in order notes clickable.
2019-01-09 16:52:37 +00:00
Mike Jolley a0aa663f29 Attribute post data needs stripslashes 2019-01-08 13:25:27 +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
Gerhard fae1e1cce1 Make links in order notes clickable. 2018-11-15 14:27:26 +02: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
David Marín bc86676b7e
Update class-wc-meta-box-product-data.php 2018-08-16 09:28:48 +02:00
David Marín 6b3ef46f4e
Complete filter call 2018-08-16 09:28:03 +02:00
David Marín 97eddce025
Admin: New filter to customize variations count
Adding new filter to customize variations count, so internal-use variations can be hidden by plugins.
2018-08-16 08:37:25 +02:00
Peter Fabian 1c2f51ee86 Unslashed the SKU for variation. 2018-08-09 12:13:23 +02: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
Matej Kravjar 233ac4b313 order billing fields do not overwrite value, if provided
(overwriting introduced by 1fa36b5f15)
2018-06-07 09:02:12 +02: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
Mike Jolley 81b65f1783 add missing wp_unslash calls to product data meta box 2018-05-25 12:15:59 +01:00
James Kemp 16785b33ab Do not escape HTML for attribute label 2018-05-24 15:29:53 +01:00
Eitan Shaked 032ed8a3d4 Add new class to order note 2018-05-02 17:14:24 +03:00
Mike Jolley 4487463bb4 PHPCS 2018-05-01 13:00:49 +01:00
Norcross a9cd0d9bd8 including `isset` check for nonce variable. 2018-04-30 11:55:03 -04:00
Mike Jolley ef69c27f25 Updates email restrictions label so it's clear this is a whitelist 2018-04-26 12:58:08 +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
Mike Jolley d381330a91
Merge pull request #19705 from woocommerce/fix/19619
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
claudiulodro f9e45bea91 Bring up-to-date with master and resolve merge conflicts 2018-04-17 13:27:39 -07:00
Mike Jolley fc05f8adb2
Merge pull request #19625 from danielbitzer/master
Set the order created_via property for orders created via admin area
2018-04-17 16:26:20 +01:00
Peter Fabian 7861d7b95f Changed usage of selected with in_array to wc_selected. 2018-04-17 13:24:39 +02:00
Gabor Javorszky d569920825 Cast coupon's $post->ID to int 2018-04-13 11:25:58 +01:00
Mike Jolley efe0d36eea Load meta box input values using CRUD and edit context 2018-04-10 13:01:52 +01:00
Mohammed Saimon eccd74b71d added checking for invalid ratings while saving 2018-04-09 18:13:13 +06:00
Mohammed Saimon 6d973b98b6 returned data early if nonce checking is failed 2018-04-07 15:13:35 +06:00
Mohammed Saimon 6f36133ed5 Product rating count doesn't update when ratings are edited by admin is fixed #19581 2018-04-07 12:50:14 +06:00
Daniel Bitzer 1f5d4050b3 Set created_via propery for orders created in admin area 2018-04-05 13:58:51 +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
Mike Jolley 7a568e2f68 Personal data removal experiment 2018-03-16 13:53:18 +00:00
Claudiu Lodromanean 3a5644ddce
Merge pull request #19338 from woocommerce/fix/19222
Fix JS state/country inputs
2018-03-13 10:10:24 -07:00
Mike Jolley 1b905b2975
Merge pull request #19331 from woocommerce/add/coupon-wildcard-email
Add wildcard email support for coupons.
2018-03-13 10:05:06 +00:00
Mike Jolley 272c43f0d8 Just ENT_QUOTES is enough in https://github.com/woocommerce/woocommerce/pull/19349 2018-03-13 09:58:38 +00:00
Anders Skouboe 363fb54a2d Decode single quotes in short description editor 2018-03-13 09:58:38 +00:00
Boro Sitnikovski d01ab9b24f Remove unnecessary string 2018-03-12 09:07:51 +01:00
Mike Jolley 1fa36b5f15 Fix JS state/country inputs 2018-03-09 16:25:42 +00:00
Gerhard Potgieter 1840d594ee Add wildcard email support for coupons.
Co-authored-by: l4ll3x
2018-03-09 10:57:12 +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
Mike Jolley fc9fe996d8 Add profile link to order screen 2018-02-26 18:19:03 +00: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
Caleb Burks bee4a57403 Fix array to string conversion error 2018-02-07 20:30:37 -05:00
Mike Jolley a0252af0af
Merge pull request #18511 from woocommerce/update/make-image-gallary-save-crud
Image Gallery missing CRUD calls
2018-02-06 11:38:38 +00:00
Mike Jolley e36c05b1d5 Fix esc_attr/esc_html usage 2018-02-05 14:54:18 +00:00
Caleb Burks 9c3611624c Remove extra CSS padding 2018-02-02 22:19:07 -05:00
Caleb Burks 02952bd0a3 Allow removing coupons on editable orders only 2018-02-02 21:59:09 -05:00
Mike Jolley f6e0593d47 Prevent grouped products showing when the type is variable 2018-01-19 12:20:27 +00:00
Gerhard Potgieter 711bcf1cd7 Merge branch 'feature/product-custom-tables-supporting-changes' of github.com:woocommerce/woocommerce into feature/product-custom-tables-supporting-changes 2018-01-18 11:39:10 +02:00
Gerhard Potgieter 14af98e9c9 Add image gallery crud functionality for saving and reading using already defined crud helpers 2018-01-18 11:37:03 +02:00
Gerhard Potgieter f48985095b Update image galery to use CRUD and not directly meta_data calls 2018-01-18 11:10:26 +02:00
Mike Jolley 672a31e7c6 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-01-16 10:40:19 +00:00
Mike Jolley ae723d83fd Preserve seconds when saving order date. 2018-01-05 14:44:36 +00:00
Mike Jolley e1a82a4127 Add nonce to both panels. Closes #18333 2018-01-03 10:37:07 +00:00
Caleb Burks 0d9e55d2ec Hide Apply coupon in admin if coupons are disabled 2017-12-17 22:21:08 -06:00
Mike Jolley d14d3afc2e
Merge pull request #18162 from WPprodigy/downloads-logging-enhancements
[3.3] New download logging reports enhancements
2017-12-15 11:09:21 +00:00
Caleb Burks 5130740aca Escaping 2017-12-15 04:26:22 -06:00
Caleb Burks 76a2e5fe87 Capitalization fix 2017-12-13 23:59:20 -06:00
Caleb Burks cb154b5d40 Add button for copying DL link 2017-12-13 23:57:47 -06:00
Caleb Burks 345376bc20 Add customer download report section 2017-12-13 23:29:12 -06:00
Caleb Burks c7f5ee97db Hide variation stock status setting conditionally 2017-12-13 22:38:03 -06:00
Caleb Burks 274e5c3aa2 Hide manage stock buttons if inventory is disabled 2017-12-09 23:02:40 -06:00
Mike Jolley 1944bf7191 Remove text type setting 2017-12-08 11:24:21 +00:00
Claudio Sanches 79e6821685 Fixed coding standards 2017-12-05 17:11:33 -02:00
Claudio Sanches 9e93d99056 Fixed "PHP Warning: printf(): Too few arguments" 2017-12-05 16:57:26 -02:00
Mike Jolley 0a9485c465 Merge branch 'master' into feature/11259
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	includes/admin/list-tables/class-wc-admin-list-table-products.php
#	includes/class-wc-install.php
#	includes/wc-update-functions.php
2017-12-04 14:14:03 +00:00
Shiva Poudel a0215d85da Txn clickable (#17878)
* Make transactional link clickable

* Oops, fix in modal tmpl
2017-11-23 10:18:23 +00:00
claudiulodro 5513dc4546 Update with master 2017-11-22 11:02:14 -08:00
Mike Jolley 3773b81bc9 Merge branch 'master' into update/order-screen-refinements
# Conflicts:
#	includes/admin/meta-boxes/views/html-order-item.php
2017-11-22 16:32:34 +00:00
The Dramatist 1783953f15 Admin metaboxes views translation escaping fix (#17776)
* Data escaped and validated. Plus translator comment documentation added.

* If it should be int then we should change the empty string default parameter to 0 as in 'if' condition checking 0 and empty string are same.

* Extra bracket removed.

* Indentation is fixed now.

* The taxonomy object should not be assigned to a variable before checking if this is a taxonomy or not.

* echo esc_attr__ replaced by esc_attr_e and visually tested.

* As I use WordPress VIP Coding Standard, they were marking them as warnings. But now it's fixed again.

* Escaping fix

* Extra Bracket Fix Again
2017-11-21 17:50:30 +00:00
Mike Jolley 98bebd14f2 Hooks for columns and preview list tables 2017-11-21 16:22:43 +00:00
claudiulodro a73436bdcd Merge remote-tracking branch 'origin/master' into HEAD 2017-11-20 14:43:12 -08:00
Mike Jolley 698db6c131 When custom attributes are created, they are decoded. Make the values match.
When we create/link variations, the entities are decoded.

When the variation form is posted, the entities are encoded (esc_attr).
This decodes them so they match correctly. Fixes #17820
2017-11-20 20:51:32 +00:00
The Dramatist 67aced7d62 Unused variable removed and some comment added. (#17786) 2017-11-20 11:47:16 +00:00
Mike Jolley ca7128927f Hide content after save 2017-11-17 15:57:27 +00:00
Mike Jolley 28d69c08e4 Filter attributes 2017-11-17 15:43:02 +00:00
claudiulodro 0390cf3e26 Bring up-to-date with master 2017-11-16 10:06:07 -08:00
claudiulodro dd0f748211 Fix invalid html 2017-11-16 08:01:59 -08:00
Mike Jolley 541dde95b3
Merge pull request #17710 from woocommerce/fix/17697-coupon-spend-incl-taxes
Coupon min/max spend based on displayed subtotal
2017-11-16 10:59:43 +00:00