Mike Jolley
5a4cc2d46c
Update comment.
2018-01-31 15:35:25 +00:00
Mike Jolley
a370a4c12a
Merge pull request #18693 from woocommerce/fix/18692
...
Webhooks API error checking
2018-01-31 14:53:49 +00:00
Mike Jolley
b8df0ea474
Hide uncategorized from store by default.
2018-01-31 13:37:23 +00:00
Mike Jolley
6f6ddf2eeb
Prevent uncategorized from being sorted. it's always top of the list.
2018-01-31 13:34:55 +00:00
Rodrigo Primo
211ec9b896
phpcs fixes
2018-01-31 11:22:33 -02:00
Jason Kytros
55c664d2d7
Remove filter 'woocommerce_order_item_product' from class-wc-structured-data.php
2018-01-31 14:53:44 +02:00
Mike Jolley
33ec416214
On update, set woocommerce_catalog_columns to old default of 4
2018-01-31 12:33:30 +00:00
Chunkford
afb21dda06
Update wc-cart-functions.php
2018-01-31 12:02:59 +00:00
Mike Jolley
0f33d446e3
Before getting wc_get_loop_prop, setup the loop.
...
Closes #18687
2018-01-31 11:59:40 +00:00
Chunkford
4af291c38c
Update wc-cart-functions.php
...
Alteration to the proposed changes to take into account free shipping so the price isn't displayed
2018-01-31 11:58:37 +00:00
Mike Jolley
57c00701e6
Ensure the table handler is only loaded once. Prevents multiple loads if a plugin calls check_ajax_referer many times.
2018-01-31 11:30:10 +00:00
Mike Jolley
b230d6be4c
Error checking
2018-01-31 10:40:06 +00:00
Gerhard Potgieter
a0b89fdda3
PHPCS fixes
2018-01-31 08:07:27 +02:00
Gerhard Potgieter
6a7f00ce89
Fix grammer
2018-01-31 08:06:51 +02:00
Claudiu Lodromanean
de4cd97b00
Merge pull request #18659 from woocommerce/fix/rest-api-typos
...
[REST API] Fixed typos in products schema
2018-01-30 17:37:31 -08:00
Mike Jolley
96982cd318
Min columns must be 1, not 0
2018-01-30 23:32:52 +00:00
Mike Jolley
81c8aba8c9
Add woocommerce_output_product_categories so we can handle legacy templates.
2018-01-30 23:24:26 +00:00
Shohei Tanaka
78e41d225a
Fix : Argument swapping at sprintf
...
change the arguments from %s to %1$s and %2$s.
2018-01-31 05:50:56 +09:00
Rodrigo Primo
538ee2097c
Merge pull request #18594 from alexminza/master
...
Added support for additional HTML5 input types for settings/checkout forms
2018-01-30 17:33:13 -02:00
Rodrigo Primo
7255855789
Merge pull request #18655 from woocommerce/fix/17761-tables
...
Fix table styling in mobile
2018-01-30 17:08:13 -02:00
Claudio Sanches
e6597cd351
Fixed coding standards
2018-01-30 15:05:25 -02:00
Claudio Sanches
05a80e2d4f
[REST API] Fixed typos on products schema
2018-01-30 15:03:01 -02:00
Claudiu Lodromanean
30c612643c
Merge pull request #18656 from woocommerce/fix/18653
...
Increase precision from 4 to 6
2018-01-30 07:32:56 -08:00
Mike Jolley
c8b14b6f76
Increase precision from 4 to 6
2018-01-30 15:00:53 +00:00
Claudiu Lodromanean
94caad1af3
Merge pull request #18651 from woocommerce/fix/18645-cast-multiselect-values
...
Cast multiselect keys as strings
2018-01-30 06:16:47 -08:00
claudiulodro
141aeaa1b3
Fix spacing
2018-01-30 06:15:30 -08:00
Claudiu Lodromanean
85d9631714
Merge pull request #18649 from woocommerce/fix/18643
...
Remove kses from before/after attribute
2018-01-30 06:13:27 -08:00
Mike Jolley
341dfe1e7b
Fix table styling in mobile
2018-01-30 13:24:59 +00:00
Gerhard Potgieter
e041136974
Cast multiselect keys as strings since html does not know anything about integers.
2018-01-30 14:03:28 +02:00
Mike Jolley
057b40e044
Remove kses from before/after attribute
...
Closes #18643
2018-01-30 11:45:00 +00:00
Rodrigo Primo
2feacfb47a
Display whether or not external object cache is enabled
...
This commit adds a new line to the section "WordPress environment" of the system status page to indicate whether or not WP external object cache is enabled.
2018-01-29 15:56:01 -02:00
Rodrigo Primo
75fc594013
Manually fix coding standard violations that can't be fixed with phpcbf
2018-01-29 15:55:43 -02:00
Rodrigo Primo
a15ecc1601
Automatically fix coding standard violations using phpcbf
2018-01-29 15:53:54 -02:00
Mike Jolley
2563728edd
Store attachment ID
2018-01-29 17:15:14 +00:00
Boro Sitnikovski
a03bdc27ed
Bail out earlier
2018-01-29 17:03:34 +00:00
Boro Sitnikovski
906084d2e9
Make param 3 optional and skip if it's not available for WP compat
2018-01-29 17:03:34 +00:00
Claudiu Lodromanean
183a00503a
Merge pull request #18639 from woocommerce/update/shipping-method-wildcard-wording
...
Update help text for shipping wildcards. Update to #18611
2018-01-29 08:17:36 -08:00
Claudiu Lodromanean
1fc3a71e76
Merge pull request #18625 from pmgarman/patch-3
...
Return amount refunded as a float
2018-01-29 08:01:43 -08:00
Claudiu Lodromanean
2cdffd538c
Merge pull request #18636 from MechielCouvaras/patch-2
...
Update Klarna URLs to relevant versions
2018-01-29 07:45:38 -08:00
Gerhard Potgieter
3e14fd41c4
Update help text for shipping wildcards. Update to #18611
2018-01-29 17:32:55 +02:00
Claudio Sanches
b1b12fc50b
Merge pull request #18606 from woocommerce/update/dont-use-wccom-hosted-image
...
Serve WC core copy of the WC logo instead of WC.com copy
2018-01-29 13:20:24 -02:00
Mike Jolley
46f9e00497
Tweak paypal seller protection text
...
Closes #18632
2018-01-29 14:43:25 +00:00
Mechiel Couvaras
8d6f434ba0
Update Klarna URL to relevant versions
...
Updating Klarna URL to point to the relevant product page (region specific) on WooCommerce.com
2018-01-29 15:40:53 +02:00
Patrick Garman
fd3a39345f
Return amount refunded as a float
...
An amount refunded should be numeric, I was receiving pHP notices that a non numeric value was encountered. Seems this is something potentially new as of PHP 7.1? Is there any reason we should **not** return a float here? Any null or empty response from the SQL query would be 0, which would still be accurate for the total that was refunded for that order.
```2018/01/27 16:50:50 [error] 46797#0: *2930 FastCGI sent in stderr: "PHP message: PHP Warning: A non-numeric value encountered in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php on line 212
PHP message: PHP Stack trace:
PHP message: PHP 1. include() /cms/wp-admin/post.php:174
PHP message: PHP 2. do_meta_boxes() /cms/wp-admin/edit-form-advanced.php:714
PHP message: PHP 3. WC_Meta_Box_Order_Items::output() /cms/wp-admin/includes/template.php:1063
PHP message: PHP 4. include() /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:41```
2018-01-27 17:07:20 -06:00
Chunkford
e831406d9f
Display zero value when using shipping classes
...
When offering free shipping on certain products via a shipping class, the price (albeit zero value) isn't shown to the end user.
https://www.screencast.com/t/8oT7maIftTZo
It makes for a better user experience to actually show the 0.00 price to ensure there isn't any doubt.
https://www.screencast.com/t/mkrKWNItrI5r
2018-01-27 13:25:24 +00:00
Rodrigo Primo
9c4c006baa
Fix: set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
...
This commit fixes a bug in WC_Customer_Download_Data_Store::get_downloads() that made impossible to change the order in which the query returned the results. This method accepts the arguments `order_by` and `order` but it was ignoring them and always using the default values ('permission_id' and 'ASC' respectively).
One of the assertions of the WC_Customer_Download_Data_Store::get_downloads() test method was modified to make sure the code now works.
This bug was introduced by commit a443419
.
2018-01-26 15:55:13 -02:00
Claudiu Lodromanean
021734d97b
Merge pull request #18619 from woocommerce/fix/18607
...
Correctly sanitize posted attributes when JS is off.
2018-01-26 08:24:21 -08:00
Mike Jolley
e56b007af1
Correctly sanitize posted attributes when JS is off.
2018-01-26 16:11:53 +00:00
Claudiu Lodromanean
1627cbd8eb
Merge pull request #18618 from woocommerce/fix/18613
...
Cast min, max, and value to int
2018-01-26 07:58:30 -08:00
Claudiu Lodromanean
3f5d82b4c4
Merge pull request #18617 from woocommerce/fix/18615
...
Enforce columns in shortcodes
2018-01-26 07:56:32 -08:00
Mike Jolley
2d952b1597
base 10
2018-01-26 15:54:34 +00:00
Mike Jolley
36bce5f939
Cast min, max, and value to int
...
Fixes #18613
2018-01-26 15:53:23 +00:00
Claudiu Lodromanean
18f9bb408f
Merge pull request #18604 from woocommerce/update/thumbnails
...
Tweak thumbnails + intermediate sizes
2018-01-26 07:47:56 -08:00
Mike Jolley
4378bd6df1
Enforce columns in shortcodes
2018-01-26 15:15:06 +00:00
Mike Jolley
a5a3f2149b
Regen missing images
2018-01-26 14:54:26 +00:00
Mike Jolley
4edd65c124
1 resize per batch
2018-01-26 14:31:27 +00:00
Mike Jolley
06e84b7af3
Merge image meta data
2018-01-26 13:35:11 +00:00
Mike Jolley
4a3124ba46
Update batch per task
2018-01-26 12:36:07 +00:00
Mike Jolley
626b8baebc
MAGICK_THREAD_LIMIT fix for timeouts
2018-01-26 12:17:41 +00:00
Gerhard Potgieter
97ca671efa
Validating user usage limit should check that of customer and not logged in user when applying coupons in admin area.
2018-01-26 12:37:23 +02:00
Gerhard Potgieter
057c87c457
Add missing woocommerce_update_options_ action for settings classes save methods overridden from parent.
2018-01-26 11:22:09 +02:00
Claudiu Lodromanean
be7ad7f234
Merge pull request #18599 from woocommerce/fix/18573
...
[REST API] Refund line items are read-only
2018-01-25 11:34:30 -08:00
Rodrigo Primo
52eb803e81
Serve WC core copy of the WC logo instead of WC.com copy
...
This commit changes the URL of the WC logo displayed in the WooCommerce.com Subscriptions page inside WooCommerce admin to use an image served from WC core instead of WC.com.
2018-01-25 16:46:31 -02:00
Rodrigo Primo
526db5faf8
PHPCS fixes
2018-01-25 16:43:07 -02:00
Mike Jolley
674145a2e7
Tweak intermediate sizes
2018-01-25 17:27:50 +00:00
Mike Jolley
ebde2d64fb
phpcs
2018-01-25 17:03:54 +00:00
Mike Jolley
6e83fcec50
Sizes for 3 cols default
2018-01-25 17:03:01 +00:00
Claudio Sanches
47883d89ab
Coding standards
2018-01-25 14:04:11 -02:00
Claudio Sanches
e8b8e87cae
[REST API] Refund line items are read-only
...
Closes #18573
2018-01-25 14:02:31 -02:00
Claudiu Lodromanean
eade481164
Merge pull request #18592 from woocommerce/update/18586
...
Customizer tweaks
2018-01-25 07:54:38 -08:00
Mike Jolley
76a37fa0d2
Feedback
2018-01-25 15:14:02 +00:00
Mike Jolley
de4ff9742c
Revert debug code
2018-01-25 15:06:12 +00:00
Mike Jolley
e0f8ff8f39
Revert "Prevent timeouts with option + reduce number of thumbnails generated by script"
...
This reverts commit a4b6110990
.
2018-01-25 15:05:04 +00:00
Mike Jolley
a4b6110990
Prevent timeouts with option + reduce number of thumbnails generated by script
2018-01-25 15:04:55 +00:00
Mike Jolley
c7ccc93a69
Prevent timeouts with option + reduce number of thumbnails generated by script
2018-01-25 15:02:33 +00:00
Alexander Minza
519bfadc63
Added support for additional HTML5 input types
2018-01-25 15:14:30 +02:00
Mike Jolley
e2d553fb61
Merge pull request #18588 from woocommerce/fix/setup-wizard-copy-and-style-tweaks-for-wc-3-3
...
Setup wizard: various style and copy tweaks
2018-01-25 12:59:52 +00:00
Mike Jolley
e85338d8d3
Import ratio from old settings
2018-01-25 12:34:28 +00:00
Mike Jolley
9b155d53d4
Feedback; show panels at all times and redirect to store.
2018-01-25 11:48:45 +00:00
Mike Jolley
845c667e77
phpcs
2018-01-25 11:38:05 +00:00
Paul Dechov
25373cadee
Tweak spacing of store setup step towards original static design
2018-01-24 17:21:04 -05:00
Claudiu Lodromanean
b20f9e4985
Merge pull request #18585 from woocommerce/update/18561
...
Ensure customer id is not empty in cookie
2018-01-24 11:54:46 -08:00
Claudiu Lodromanean
1d3a642d59
Merge pull request #18584 from woocommerce/fix/18574
...
Add notice for moved product display settings
2018-01-24 09:29:13 -08:00
Mike Jolley
db49d9acbc
Merge pull request #18577 from woocommerce/fix/note-metadata-keys
...
Order: Make note of two more meta keys that we store for an order.
2018-01-24 17:28:19 +00:00
Mike Jolley
03098e7435
Merge pull request #18583 from woocommerce/fix/18567
...
[REST API] Prevent errors when taxonomy is unregistered
2018-01-24 17:26:50 +00:00
Mike Jolley
db73de335a
Add notice for moved settings
2018-01-24 17:18:28 +00:00
Claudio Sanches
1cf8dc4232
Fixed coding standards warnings with PHPCBF
2018-01-24 15:09:50 -02:00
Claudio Sanches
75de578d38
Fixed coding standards errors
2018-01-24 15:07:51 -02:00
Claudio Sanches
4536afb47c
[REST API] Prevent errors when taxonomy is unregistered
...
Closes #18567
2018-01-24 15:04:32 -02:00
Mike Jolley
f91b733a0f
Make compound rates stack
2018-01-24 16:26:44 +00:00
Paul Dechov
98fe2c7c3e
Remove newline and whitespace from dropdown option tooltips
2018-01-24 10:31:16 -05:00
Mike Jolley
c27df5833f
Merge pull request #18556 from woocommerce/tweak/hook-on-order-recalculation
...
Add action to hook onto for order recalculation
2018-01-24 09:06:39 +00:00
Boro Sitnikovski
e684afc5e6
Update name
2018-01-24 08:46:26 +01:00
Peter Westwood
0b19427d1d
Order: Make note of two more meta keys that we store for an order.
2018-01-23 19:27:20 -07:00
Steve Grunwell
16b59b60a0
Merge branch 'master' into feature/post-system-status-tool-hook
2018-01-24 01:45:44 +00:00
Paul Dechov
e5d00fa98e
Fix payment addons link again
2018-01-23 18:25:44 -05:00
Paul Dechov
7f973c2c79
Tweak Activate step lower heading to reflect listing of features of above
2018-01-23 18:20:47 -05:00
Paul Dechov
591dd9ec2d
Clarify 'payments' (in WCS feature list) to 'payment setup'
2018-01-23 18:19:12 -05:00
Paul Dechov
4eb1c182b2
Point PPEC extension link to woocommerce.com instead of wordpress.org
2018-01-23 18:16:33 -05:00
Claudiu Lodromanean
5f613656af
Merge pull request #18564 from woocommerce/fix/18501
...
Move custom image sizes registration to the init hook
2018-01-23 08:17:20 -08:00
Mike Jolley
42b1ab50c0
Ensure customer id is not empty in cookie
2018-01-23 13:36:53 +00:00
Mike Jolley
1c92b970a9
Use only review count
...
Closes #18558
2018-01-23 11:03:30 +00:00
Tiago Noronha
149ff95e8a
Move custom image sizes registration to the init hook
2018-01-23 12:56:37 +02:00
James Allan
b2510773b1
On 3.3 upgrade set PayPal sandbox API credentials
2018-01-23 12:53:17 +10:00
Claudiu Lodromanean
1e2cdb67ad
Merge pull request #18535 from woocommerce/update/disable-all-payment-gateways-by-default
...
Disable all payment gateways by default
2018-01-22 11:04:21 -08:00
Claudiu Lodromanean
34710ba5f1
Merge pull request #18534 from woocommerce/fix/children-when-swapping-type
...
Prevent grouped products showing when the type is variable
2018-01-22 11:03:30 -08:00
Mike Jolley
6389f1af9a
Merge branch 'fix-18452'
2018-01-22 15:43:32 +00:00
Mike Jolley
02ebd8f2ee
Coding standards
2018-01-22 15:43:23 +00:00
Boro Sitnikovski
af9441fea5
Add action to hook onto for order recalculation
2018-01-22 15:53:42 +01:00
Mike Jolley
a8957bd7a3
Strip currency
2018-01-22 14:13:08 +00:00
Mike Jolley
3ce51d9791
JSON context
2018-01-22 14:11:43 +00:00
Mike Jolley
5bd786703e
Run sanitize_callback
2018-01-22 14:09:56 +00:00
Mike Jolley
304ece0a9b
phpcs
2018-01-22 12:06:31 +00:00
Mike Jolley
2298f491d1
phpcs
2018-01-22 11:33:15 +00:00
Mike Jolley
96db283ae3
phpcs
2018-01-22 11:03:13 +00:00
Mike Jolley
a205eadb7e
sanitize_callback
2018-01-22 10:59:25 +00:00
Mike Jolley
1ab8d795f6
phpcs
2018-01-22 10:57:55 +00:00
Konstantin Kovshenin
9a496e5d88
Helper: Fix some code problems in the connection prompt.
...
* Use `wc_get_screen_ids()` instead of hard-coding a list.
* Use the `$strict` param in `in_array()`
* Run the WooCommerce string through l10n to make sure we target the correct screen in non-English installs
2018-01-19 20:58:36 +03:00
Mike Jolley
aa87aa0fbd
phpcs
2018-01-19 15:42:48 +00:00
Mike Jolley
d1269ce74f
Add transient cache so we know if an order needs processing.
2018-01-19 15:14:00 +00:00
Mike Jolley
24efb439fb
Order items should only save changes.
2018-01-19 14:36:08 +00:00
Mike Jolley
70e92302f5
Refactor woocommerce_wp_select so it could be used for a multiselect
2018-01-19 13:36:14 +00:00
Mike Jolley
f6e0593d47
Prevent grouped products showing when the type is variable
2018-01-19 12:20:27 +00:00
Mike Jolley
ff7716509e
Merge pull request #18532 from woocommerce/fix/18527-numeric-username-lookup
...
Ajax customer search to cater for numeric usernames
2018-01-19 10:36:26 +00:00
Gerhard Potgieter
15e77b30a1
Merge pull request #18500 from woocommerce/tweak/pay-order-stock-filter
...
Allow stock to be overriden by filter when paying for orders
2018-01-19 10:15:58 +02:00
Gerhard Potgieter
4ef8251750
Merge pull request #18491 from woocommerce/update/helper-text
...
Updates Helper text to be correct
2018-01-19 10:13:15 +02:00
Gerhard Potgieter
8e6afdfdc7
Fix indentation
2018-01-19 09:57:27 +02:00
Gerhard Potgieter
b495e803e8
Reworks the ajax user lookup so it caters for numeric usernames without affecting performance of lookups by ID.
2018-01-19 09:52:05 +02:00
Paul Dechov
54fa85f388
Disable all payment gateways by default
...
Switches defaults for Check payments and PayPal Standard to 'no', so that no payment gateways are enabled by default before running through setup wizard.
2018-01-19 02:23:55 -05:00
Steve Grunwell
4d6a0ecb82
Merge branch 'master' into feature/post-system-status-tool-hook
2018-01-18 21:54:47 +00:00
Rodrigo Primo
250b94b0ce
Merge pull request #18524 from woocommerce/fix/18510
...
Saving taxes should invalidate caches.
2018-01-18 16:55:55 -02:00
Rodrigo Primo
257feb63bd
Fix doc typo
2018-01-18 16:50:27 -02:00
Rodrigo Primo
54e013d5ca
Merge pull request #18492 from woocommerce/update/18447
...
Clear persistent cart with system status tool
2018-01-18 16:25:02 -02:00
Claudiu Lodromanean
ee2a562cf0
Merge pull request #18517 from woocommerce/fix/18499
...
Fix undefined var.
2018-01-18 09:50:53 -08:00
Claudiu Lodromanean
b6204fb7aa
Merge pull request #18518 from tyrann0us/patch-1
...
Remove legacy "view" key from register_post_type()
2018-01-18 09:48:31 -08:00
Mike Jolley
a110180643
Saving taxes should invalidate caches.
2018-01-18 17:47:26 +00:00
Steve Grunwell
90c1a310f1
For consistency with the other endpoints, rename the 'woocommerce_rest_system_status_tool_executed' hook to 'woocommerce_rest_insert_system_status_tool'.
...
Reference: https://github.com/woocommerce/woocommerce/pull/18505#pullrequestreview-89828432
2018-01-18 16:59:47 +00:00
Philipp Bammes
fecc0d00fd
Remove legacy "view" key from register_post_type()
2018-01-18 16:59:53 +01:00
Mike Jolley
c618895ece
Fix undefined var. Closes #18499
2018-01-18 15:25:27 +00:00
Manos Psychogyiopoulos
e77ec2444e
Add woocommerce_admin_html_order_preview_item_class filter
...
For parity with woocommerce_admin_html_order_item_class filter in html-order-item.php view.
2018-01-18 16:57:51 +02:00
Konstantin Kovshenin
3c3077d305
Helper: Prompt a Helper connection only on relevant screens.
...
Fixes #18452
2018-01-18 12:28:00 +03:00
Gerhard Potgieter
f48985095b
Update image galery to use CRUD and not directly meta_data calls
2018-01-18 11:10:26 +02:00
Steve Grunwell
cc91fba4f8
*WHITESPACE ONLY* Clean up whitespace in the WC_REST_System_Status_Tools_Controller file, according to WordPress coding standards
2018-01-17 22:33:58 +00:00
Steve Grunwell
ff0e200ae5
Introduce the woocommerce_rest_system_status_tool_executed action, which fires after one of the WooCommerce REST system status tools is executed.
2018-01-17 21:48:23 +00:00
Paul Dechov
3dee78ea54
Tweak variable name
2018-01-17 12:43:44 -05:00
Jonathan Belcher
77578c5509
Corrects string to use sprintf properly
2018-01-17 10:35:43 -05:00
Boro Sitnikovski
7b52082dc3
Allow stock to be overriden by filter when paying for orders
2018-01-17 14:31:56 +01:00
Paul Dechov
dc884c5e2f
Refactor so as to leave 'enabled' setting alone in case gateway was already enabled
2018-01-16 16:15:30 -05:00
Paul Dechov
fcf3d368f2
Setup wizard: if selected, activate but disable PPEC gateway by default
2018-01-16 16:14:35 -05:00
Jonathan Belcher
dbb0f6f1ef
Add links to Sharing and Transferring string
2018-01-16 14:35:30 -05:00
Claudiu Lodromanean
3b895bd0a9
Merge pull request #18490 from woocommerce/fix/cart-hash-naming
...
cart_hash_key param
2018-01-15 10:13:55 -08:00
Mike Jolley
270f4c3608
Update text and clear cart meta data.
2018-01-15 17:04:50 +00:00
Jonathan Belcher
535e1c5b58
Updates Helper text to be correct
2018-01-15 11:41:32 -05:00
Claudiu Lodromanean
99f58c4c56
Merge pull request #18488 from woocommerce/fix/18474
...
Protocol-relative paths are absolute.
2018-01-15 08:28:42 -08:00
Mike Jolley
431b95dade
cart_hash_key param
2018-01-15 16:03:27 +00:00
Mike Jolley
9a2b051d74
Relative paths are absolute.
2018-01-15 15:41:31 +00:00
Mike Jolley
93bac7ce04
Adding view_items string
2018-01-15 14:53:26 +00:00
Shiva Poudel
e17d2819ea
Use dirname rather than __DIR__ and use parenthesis for WC_CLI
2018-01-15 11:06:53 +05:45
Claudio Sanches
dff5fefe73
Merge pull request #18460 from woocommerce/fix/18448
...
Revert RTL changes in price formatting
2018-01-12 14:28:36 -02:00
Claudiu Lodromanean
544d181538
Merge pull request #18458 from woocommerce/update/storefront-wizard
...
Update wizard wording
2018-01-12 07:24:42 -08:00
Mike Jolley
dbdc3af9e5
Tests
2018-01-12 14:20:39 +00:00
Mike Jolley
7a7995f697
Revert price formatting changes which break in RTL
2018-01-12 14:16:18 +00:00
Mike Jolley
243c664030
Wording update
2018-01-12 12:29:22 +00:00
Mike Jolley
89c888d654
phpcs
2018-01-12 11:33:26 +00:00
Claudiu Lodromanean
c51f199c22
Merge pull request #18439 from ryanr14/master
...
Updates & renames all dummy data to sample data.
2018-01-11 08:56:11 -08:00
Ryan Ray
b3af5c808d
Updates & renames all dummy data to sample data.
2018-01-11 11:39:51 -05:00
Claudio Sanches
c96b5e77f1
Merge pull request #18435 from shivapoudel/cli/format
...
Fix undefined format in WC CLI
2018-01-11 14:23:49 -02:00
Claudiu Lodromanean
466cf64db8
Merge pull request #18436 from woocommerce/fix/18288
...
[REST API] Handle unicode in variation attributes
2018-01-11 07:58:49 -08:00
Claudio Sanches
9ed1681f39
[REST API] Handle unicode in variation attributes
...
Closes #18288
2018-01-11 13:11:36 -02:00
Shiva Poudel
0856ba6376
Fix undefined format, closes #18418
2018-01-11 20:47:54 +05:45
Mike Jolley
438778f5d6
Merge remote-tracking branch 'origin/master'
2018-01-11 15:01:26 +00:00
Mike Jolley
9ac5a44d3e
Merge branch 'pr/18432'
2018-01-11 15:01:18 +00:00
Mike Jolley
0363312084
spacing
2018-01-11 15:01:07 +00:00
Claudio Sanches
a887b49bb4
Merge pull request #18430 from woocommerce/update/18405
...
Add new `$order->get_edit_order_url()` method.
2018-01-11 12:34:41 -02:00
Claudio Sanches
45dfb7d015
Merge pull request #18427 from woocommerce/fix/18426
...
Correct bulk edit price formatting.
2018-01-11 12:31:45 -02:00
Claudio Sanches
4586eadcd7
Merge pull request #18420 from tiagohillebrandt/master
...
Use table format as default.
2018-01-11 12:29:29 -02:00
Mikalai Okun
2e2e5d60e5
Updated strval() to round()
2018-01-11 08:49:54 -05:00
Mike Jolley
fbbbc7a8df
Merge pull request #18406 from woocommerce/update/themenotice
...
Remove unsupported theme notice
2018-01-11 13:46:09 +00:00
Mike Jolley
7f626926b8
Merge pull request #18417 from liquidweb/fix/get-customer-last-order
...
Rewrite wc_get_customer_last_order() to leverage the customer data store
2018-01-11 13:45:11 +00:00
Mike Jolley
405c2614a8
Use new methods
2018-01-11 12:54:48 +00:00
Mike Jolley
c7a3fd266c
phpcs
2018-01-11 12:53:47 +00:00
Mike Jolley
16870a30e7
phpcs
2018-01-11 12:32:58 +00:00
Mike Jolley
7a50512e16
Structured data
2018-01-11 12:29:12 +00:00
Mike Jolley
f1e0d4929b
Implement get_edit_order_url method.
2018-01-11 12:04:39 +00:00
Mike Jolley
be8bc99796
Merge pull request #18421 from shivapoudel/notice-logic
...
Notice logic
2018-01-11 11:32:58 +00:00
Mike Jolley
c1fc8c241a
Correct bulk edit price formatting.
2018-01-11 11:21:37 +00:00
Mikalai Okun
cd8c09769d
Workaround for precision on floating values.
2018-01-11 01:38:36 -05:00
Shiva Poudel
7e731fa4c6
PHPCS fixes
2018-01-11 10:39:30 +05:45
Shiva Poudel
4e3317bbe6
Fix - wc_notice_count logic cont...
2018-01-11 10:32:41 +05:45
Tiago Hillebrandt
84aeb00754
Use table format as default.
2018-01-11 02:41:41 -02:00
Tiago Hillebrandt
8c4a0dfefe
Use table format as default.
2018-01-10 22:32:40 -02:00
Manos Psychogyiopoulos
009a21af15
Fix exception handling in v2 update_additional_fields_for_object REST API calls
2018-01-10 20:46:02 +00:00
Steve Grunwell
493298504d
Rewrite wc_get_customer_last_order() to leverage the customer data store.
...
The wc_get_customer_last_order() function (used by the v1 API) was performing a hard-coded SQL query against the postmeta table, regardless of the data store used by the WC_Customer class. This commit effectively makes the function act as a wrapper around WC_Customer::get_last_order().
2018-01-10 18:39:35 +00:00
claudiulodro
a3d0d71cdf
Deprecate theme notice
2018-01-10 09:52:52 -08:00
claudiulodro
d87497962b
Revert "Remove unsupported theme notice"
...
This reverts commit aad3792817
.
2018-01-10 09:45:16 -08:00
Claudiu Lodromanean
a94ef8dcdc
Merge pull request #18398 from woocommerce/fix/18360
...
Use intval for download limit and expiry
2018-01-10 09:42:15 -08:00
Mike Jolley
fd6002511e
Merge pull request #18404 from woocommerce/fix/18362
...
Update billing if account form changes.
2018-01-10 17:29:58 +00:00
Mike Jolley
4ffff150b5
fix while loop
2018-01-10 17:28:26 +00:00
Claudio Sanches
8a7066e319
Merge pull request #18414 from woocommerce/fix/18412
...
Fix wc_notice_count logic and add test
2018-01-10 11:39:08 -02:00
Claudio Sanches
501f03e306
Merge pull request #18411 from MechielCouvaras/patch-1
...
Update Klarna copy in Setup Wizard
2018-01-10 11:11:41 -02:00
Claudio Sanches
76f66fdbab
Merge pull request #18413 from woocommerce/fix/18377
...
Rest API - Orders should be created for users who exist on the site only.
2018-01-10 11:10:24 -02:00
Mike Jolley
97673e2de8
Fix wc_notice_count logic and add test
2018-01-10 12:43:48 +00:00
Mike Jolley
ee6794fb0c
Orders should be created for users who exist on the site only.
2018-01-10 12:32:58 +00:00
Mechiel Couvaras
294b2cca74
Update class-wc-admin-setup-wizard.php
...
Update to Klarna copy as per their specification.
2018-01-10 12:42:47 +02:00
Shiva Poudel
8232d0ba74
Storefront theme as official theme
2018-01-10 15:30:03 +05:45
Andrew Minion
0b2fbe906b
add file array key similar to other functions
...
See also https://github.com/woocommerce/woocommerce/blob/master/includes/wc-user-functions.php#L458-L461
2018-01-09 20:41:35 -05:00
claudiulodro
aad3792817
Remove unsupported theme notice
2018-01-09 13:51:12 -08:00
Mike Jolley
2ca2cc0f6c
Update billing if account form changes.
2018-01-09 17:50:43 +00:00
Mike Jolley
2b2b73b4b7
Pass through zoom options
2018-01-09 15:44:54 +00:00
Mike Jolley
fd2b830a9f
Use intval for download limit and expiry
2018-01-09 10:56:57 +00:00
Mike Jolley
d13dfa65c6
Remove unused code
...
Closes #18390
2018-01-09 09:33:16 +00:00
claudiulodro
4d370309be
Change transient name
2018-01-08 13:09:50 -08:00
Claudiu Lodromanean
8f878a30ed
Merge pull request #18383 from woocommerce/update/18364
...
Customizer visual feedback for columns and rows
2018-01-08 12:02:43 -08:00
Shiva Poudel
3c659a44fc
Include background process library ( #18380 )
...
* Include background process library
* PHPCS fixes
2018-01-08 18:57:50 +00:00
Mike Jolley
371f504964
Helpers for theme support vars and error messages.
2018-01-08 18:48:57 +00:00
claudiulodro
00372e9bb0
Remove videos from help sections
2018-01-08 10:48:25 -08:00
claudiulodro
a0be4eace9
Merge remote-tracking branch 'origin/square-3.3' into HEAD
2018-01-05 11:44:45 -08:00
Paul Maiorana
00da05c437
Update description for Square per their feedback.
2018-01-05 14:31:37 -05:00
Claudiu Lodromanean
1ae74a56f8
Merge pull request #18372 from woocommerce/fix/17996
...
Round correctly when removing taxes from prices.
2018-01-05 11:14:30 -08:00
Claudiu Lodromanean
70294e977b
Merge pull request #18371 from woocommerce/fix/18314
...
Preserve seconds when saving order date.
2018-01-05 11:09:22 -08:00
Claudiu Lodromanean
fe4727b593
Merge pull request #18367 from woocommerce/fix/18357
...
Allow quantities less than 1, but not 0.
2018-01-05 10:55:05 -08:00
claudiulodro
b5271064c2
Resolve conflicts
2018-01-05 10:47:27 -08:00
Mike Jolley
856528d529
Merge pull request #18277 from woocommerce/fix/18276
...
Change sanitize function in product sales report filter box
2018-01-05 14:59:40 +00:00
Mike Jolley
a44e4f64ac
Round correctly when removing taxes from prices.
2018-01-05 14:56:33 +00:00
Mike Jolley
ae723d83fd
Preserve seconds when saving order date.
2018-01-05 14:44:36 +00:00
Mike Jolley
2c915ba961
Allow quantities less than 1, but not 0.
2018-01-05 12:48:24 +00:00
Mike Jolley
14afff129c
Add appropriate column widths and fix up price method for consistentcy.
2018-01-05 12:23:08 +00:00
Claudiu Lodromanean
ae9a98b0a0
Merge pull request #18356 from woocommerce/fix/archive-links
...
Post types with no archives should not show in breadcrumb.
2018-01-04 08:17:30 -08:00
Mike Jolley
613adb0c07
Post types with no archives should not show in breadcrumb.
2018-01-04 12:09:11 +00:00
claudiulodro
cdad70a6b1
Safety first
2018-01-03 13:40:51 -08:00
claudiulodro
afdc737ec5
Ajax add to cart button shortcode fix for variations
2018-01-03 13:38:06 -08:00
Claudiu Lodromanean
06a4bfe2af
Merge pull request #18347 from woocommerce/update/remove-unused-variable
...
Remove two unused variables
2018-01-03 11:13:38 -08:00
claudiulodro
d2618c2330
Merge remote-tracking branch 'origin/master' into HEAD
2018-01-03 10:13:23 -08:00
claudiulodro
646caf5753
Tweaks for variation reports
2018-01-03 10:09:53 -08:00
Rodrigo Primo
aad2c83994
Remove unused variables
...
This commit removes two unused variables from WC_Product_Data_Store_CPT class.
2018-01-03 16:00:28 -02:00
Rodrigo Primo
22f1e549ef
Manually fixes remaining coding standard violations
2018-01-03 15:57:33 -02:00
Claudiu Lodromanean
14c2180928
Merge pull request #18279 from woocommerce/fix/setup-wizard-service-style-tweak
...
Setup wizard: adjust styling for service child elements
2018-01-03 09:38:28 -08:00
Rodrigo Primo
a2b8e38a61
Fix coding standards violations automatically using phpcbf
2018-01-03 15:27:48 -02:00
Claudiu Lodromanean
e15f267270
Merge pull request #18335 from woocommerce/fix/18328
...
Product downloads - API and download check fixes
2018-01-03 09:14:26 -08:00
Paul Dechov
e03f0c201f
Align service name logos to top, and adjust padding
2018-01-03 10:43:26 -05:00
Mike Jolley
5eb4ed9b64
Merge pull request #18307 from unfulvio/issue-18223-transient
...
[#18223 ] Store related posts query arguments in transient
2018-01-03 11:47:15 +00:00
Mike Jolley
800b4feba1
Merge pull request #18252 from shivapoudel/frontend-session
...
Only load session handler class on frontend not during cron
2018-01-03 11:19:23 +00:00
Mike Jolley
effbf87e22
API should generate or set file ID when setting downloads. Closes #18330
2018-01-03 11:02:38 +00:00
Mike Jolley
3459f83a9d
When serving downloads, ensure order/key are set and valid. Fixes #18328
2018-01-03 10:55:57 +00:00
Mike Jolley
e1a82a4127
Add nonce to both panels. Closes #18333
2018-01-03 10:37:07 +00:00
Claudiu Lodromanean
373ff64ff8
Merge pull request #18315 from alexminza/master
...
Fixed Moldova states, added Moldova information for the installer
2018-01-02 14:31:30 -08:00
Claudiu Lodromanean
09f9d86786
Merge pull request #18327 from woocommerce/fix/default-columns-isset
...
Fix default columns isset check
2018-01-02 11:51:00 -08:00
Claudiu Lodromanean
e17dcdf81f
Merge pull request #18297 from macbookandrew/improve-blank-state
...
add button for creating coupons to coupon blank state
2018-01-02 11:45:28 -08:00
Tiago Noronha
ece1963e66
Fix default columns isset check.
2018-01-02 19:27:28 +00:00
Andrew Minion
785641ef3c
update link to match rest of codebase
2018-01-02 14:05:47 -05:00
Claudiu Lodromanean
de71c92fa0
Merge pull request #18278 from woocommerce/fix/setup-wizard-ppec-api-subject-set-when-unchecked
...
Setup wizard: don't set PPEC "API Subject" when WCS rerouting is unchecked
2018-01-02 10:39:35 -08:00
Claudiu Lodromanean
6db59dbc91
Merge pull request #18283 from WPprodigy/fix-set-orderby-default
...
Set default catalog_orderby in customizer
2018-01-02 10:34:18 -08:00
Claudiu Lodromanean
9937edc292
Merge pull request #18285 from WPprodigy/add-filter-woocommerce_loop_product_link
...
Add woocommerce_loop_product_link filter
2018-01-02 10:11:18 -08:00
Claudiu Lodromanean
c52563f558
Merge pull request #18319 from pathurs/patch-1
...
Geolocation: Remove port from string before checking IP
2018-01-02 10:06:49 -08:00
Claudiu Lodromanean
8d78287da4
Merge pull request #18284 from WPprodigy/update-docs-for-layerednav-function
...
Update docs.
2018-01-02 09:33:27 -08:00
Claudiu Lodromanean
5382134041
Merge pull request #18306 from unfulvio/issue-18223-filter-related-products
...
[#18223 ] Filter results for related products
2018-01-02 08:58:23 -08:00
Claudiu Lodromanean
f56fff18d9
Merge pull request #18322 from woocommerce/fix/importer-file-names
...
Importer file names
2018-01-02 08:10:20 -08:00
Mike Jolley
4e996ce268
Check for mb_detect_encoding support
2018-01-02 13:55:11 +00:00
Mike Jolley
5aee9f973c
Append timestamp to filename
2018-01-02 13:29:23 +00:00
Mike Jolley
46c51bb3a6
Allow filename to be set from javascript
2018-01-02 13:16:43 +00:00
Mike Jolley
1a65aed0d9
Merge branch 'pr/18272'
2018-01-02 11:57:45 +00:00
Mike Jolley
da281d21ab
Keep product check
2018-01-02 11:57:29 +00:00
Mike Jolley
3defa83a81
Missing spaces between city and state.
...
Closes #18305
2018-01-02 11:45:56 +00:00
Pathurs
119d3485b1
Remove port from string before checking IP
...
Fix a bug where if `$_['HTTP_X_FORWARDED_FOR']` contains a port, an `rest_is_ip_address()` returns `bool(false)`.
WooCommerce Version: 3.1.2
Observed results of functions and variables:
```
WC_Geolocation::get_ip_address()) string(0) ""
$_SERVER['X-Real-IP'] string(7) "Not set"
$_SERVER['HTTP_X_FORWARDED_FOR'] string(18) "203.41.99.98:50986"
trim( current( explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) ) string(18) "203.41.99.98:50986"
$_SERVER['REMOTE_ADDR'] string(12) "203.41.99.98"
```
Old result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(0) "" ["state"]=> string(0) "" }```
New result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(2) "AU" ["state"]=> string(0) "" }```
2018-01-02 11:54:26 +11:00
Alexander Minza
2307febfa1
Fixed Moldova states
2017-12-30 14:34:12 +02:00
Fulvio Notarstefano
b8beb703ef
[ #18223 ] Filter results for related products
2017-12-29 12:18:50 +08:00
Fulvio Notarstefano
3045e01f4e
[ #18223 ] Store related posts query arguments in transient
2017-12-29 12:12:26 +08:00
Andrew Minion
40d9efc4b8
add button for creating coupons to coupon blank state
...
Makes it more user-friendly for someone unfamiliar with WordPress/WooCommerce, and even for those who are familiar and don’t immediately see the typical “Add Coupon” button in the top left corner by the header.
2017-12-27 11:53:20 -05:00
Caleb Burks
0192fb9ef0
Add woocommerce_loop_product_link filter
2017-12-25 02:20:40 -06:00
Caleb Burks
2b4a756438
Update docs.
2017-12-25 02:16:10 -06:00
Caleb Burks
54fd171f04
Set default catalog_orderby in customizer
2017-12-24 23:39:44 -06:00
Paul Dechov
a87183503f
Fix api_subject option being set even when reroute_requests unchecked
2017-12-22 14:57:50 -05:00
Claudiu Lodromanean
eb60a17818
Merge pull request #18265 from Miller-Media/millermedia/scheduled_sales_actions
...
Added actions before & after scheduled sales initiation and completion
2017-12-22 10:23:02 -08:00
Matt Miller
69d9f1f6ff
Updated spacing
2017-12-22 09:58:05 -08:00
claudiulodro
611ca58d09
Change sanitize function
2017-12-22 09:46:57 -08:00
Claudiu Lodromanean
20f698db2b
Merge pull request #18219 from woocommerce/fix/18197
...
Compare the date modified when loading session data.
2017-12-22 08:17:14 -08:00
Jason Kytros
a21ada68cd
Fix coupon 'Excluded Categories' restriction evaluation
2017-12-22 11:21:47 +02:00
Claudio Sanches
d69f67bfd5
Auto fixed minor coding standards with PHPCBF
2017-12-21 18:18:04 -02:00
Claudio Sanches
514087e4aa
Fixed coding standards
2017-12-21 18:10:55 -02:00
Claudio Sanches
2198eb136c
Remove Postcode from Suriname
2017-12-21 17:49:56 -02:00
Claudio Sanches
2f1c00b773
Merge pull request #18256 from woocommerce/fix/18246
...
Use text color for email links
2017-12-21 17:34:38 -02:00
Claudio Sanches
1d132b8b9d
Merge pull request #18263 from woocommerce/fix/18244
...
Process embed shortcode in short description
2017-12-21 17:27:34 -02:00
claudiulodro
2d88654a0a
Always use contrasting color for links
2017-12-21 11:14:14 -08:00
Mike Jolley
e9105bd37d
Fix tests
2017-12-21 19:00:55 +00:00
claudiulodro
90dd9179ac
Remove duplicate unautop
2017-12-21 10:43:02 -08:00
Matt Miller
4b83514e28
Added actions before and after the scheduled sales initiation and completion
2017-12-21 10:33:08 -08:00
claudiulodro
9dc9fffc3a
Process embed shortcode in short description
2017-12-21 10:19:15 -08:00
Claudio Sanches
71a1fd319e
Fixed coding standards
2017-12-21 15:53:12 -02:00
Claudio Sanches
c18cc47286
Format prices while exporting products
2017-12-21 15:43:45 -02:00
Claudiu Lodromanean
4f94d9dbbc
Merge pull request #18247 from AdamQuadmon/wc-exporter-custom-filters
...
Add product export row action hook
2017-12-21 06:02:56 -08:00
Shiva Poudel
0ec0ca29a2
Only load session handler class on frontend not during cron
...
Ref: #18193
CC @mikejolley
2017-12-21 10:16:13 +05:45
Luciano Amodio
1b42973b75
Add export ajax query args and filename filter hooks
...
`woocommerce_export_get_ajax_query_args` let you pass args to ajax actions
`woocommerce_{$this->export_type}_export_get_filename` let you change the filename
2017-12-20 21:20:02 +01:00
Luciano Amodio
865efa3736
Add product export row action hook
...
having this hook is possible to actually use the woocommerce_product_export_product_query_args filter
```
add_action('woocommerce_product_export_row', 'export_custom_product');
add_filter( 'woocommerce_product_export_product_query_args', 'export_product_query_args');
// https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query
add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handle_custom_query_var', 10, 2 );
function export_custom_product() {
$args = [
'show_option_all' => 'Custom',
'taxonomy' => 'pa_custom',
'name' => 'custom',
'orderby' => 'name',
'order' => 'ASC',
'selected' => isset($_REQUEST['custom']) ? $_REQUEST['custom'] : '',
'show_count' => true,
'hide_empty' => true,
'menu_order' => false
];
?>
<tr>
<th scope="row">
<label for="custom">Filter by Custom</label>
</th>
<td>
<?php wp_dropdown_categories($args); ?>
</td>
</tr>
<?php
}
function export_product_query_args($args) {
$args['custom'] = 'default';
if ( ! empty( $_POST['form'] ) ) {
$values = explode('=', $_POST['form']);
if('custom' === $values[0]) {
$args['custom'] = wp_unslash( $values[1] );
}
}
return $args;
}
function handle_custom_query_var( $query, $query_vars ) {
if ( ! empty( $query_vars['custom'] ) ) {
$query['tax_query'][] = array(
'taxonomy' => 'pa_ custom',
'field' => 'id',
'terms' => esc_attr( $query_vars['custom'] )
);
}
return $query;
}
```
2017-12-20 20:13:10 +01:00
Claudiu Lodromanean
59ccb00e49
Merge pull request #18242 from lipemat/fix/date-args-wpcli-wc-product_review
...
Fix --date_created and --date_created_gmt args for wc product_review
2017-12-20 10:07:18 -08:00
lipemat
c4cb7d146a
support --date_created and --date_created_gmt via wp-cli wc product_review create
2017-12-20 09:54:42 -05:00
Alexander Minza
fca5ef8dd8
Added Moldova states
2017-12-19 23:44:25 +02:00
Claudiu Lodromanean
5349ffbb47
Merge pull request #18233 from woocommerce/fix/18232
...
Fixed file log dates and implement better date formatting
2017-12-19 11:53:06 -08:00
Claudio Sanches
068418124e
Merge pull request #18203 from AdamQuadmon/wc-exporter-limit-filter
...
Add WC Product CSV Exporter limit filter
2017-12-19 15:42:38 -02:00
Claudio Sanches
f40f3291f8
Fixed file log dates and implement better date formatting
...
Closes #18232
2017-12-19 15:38:50 -02:00
Luciano Amodio
bec2e939b4
change filter name
2017-12-19 18:25:16 +01:00