Commit Graph

14710 Commits

Author SHA1 Message Date
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
Rodrigo Primo 1195cf9eee Improve WC_Customer_Download_Data_Store::get_downloads() performance
This commit improves WC_Customer_Download_Data_Store::get_downloads() performance by changing the way the SQL query is built. Before this change, this method would get all table fields even when just the permission_id field is returned. Now the method will get from the database only the fields that will be returned. The fields retrieved from the database can be controlled using the parameter `$args['return']`:

- 'objects' (default): all fields are retrieved from the database and an array of WC_Customer_Download objects is returned.
- 'ids': gets and return only permision_ids
- comma separated list of fields (new option added by this commit): gets and return only the required fields. Examples: 'user_email,download_id,order_id' or 'order_id,download_count'.
2018-01-22 17:25:26 -02: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
Rodrigo Primo 16c9bc9694 Fix PHPCS violations in class-wc-customer-download-data-store.php 2018-01-22 15:16:59 -02: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
Mike Jolley c64c726da9 Set instance id 2018-01-15 14:49:55 +00:00
Mike Jolley 054e68a047 Instance ID methods 2018-01-15 14:31:05 +00:00
Mike Jolley ad18445eeb phpcs 2018-01-15 14:28:08 +00:00
Mike Jolley 58efd51a9c phpcs 2018-01-15 12:24:05 +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
Luciano Amodio 8983b38598 change filter name and position `woocommerce_product_export_get_limit` 2017-12-19 17:18:55 +01:00
Luciano Amodio f383886fb5 fix not needed double quotes 2017-12-19 14:51:23 +01:00
Luciano Amodio 4d267c0dbb Rename exporter filter to `woocommerce_product_export_init`
moving it in the abstract constructor and let it be more generic now is possible to do:
```
add_filter( 'woocommerce_product_export_init', function ( $exporter ) {
  if( 'product' === $exporter->export_type ) {
    $exporter->set_limit(100);
  }
});
2017-12-19 13:50:37 +01:00
Fulvio Notarstefano e718d7bd40 [#18223] Rename var to a more apt name 2017-12-19 17:19:10 +08:00
Fulvio Notarstefano ee123fb739 [#18223] Add argument to woocommerce_product_related_posts_query filter 2017-12-19 10:18:33 +08:00
Claudiu Lodromanean e898623668
Merge pull request #18174 from woocommerce/fix/18170
Adjusts price filter code to exclude taxes to match how prices are stored in the DB
2017-12-18 11:13:44 -08:00
Claudiu Lodromanean b494e45865
Merge pull request #18193 from woocommerce/fix/16940
Do not load SESSION class during CRON events
2017-12-18 10:47:07 -08:00
Claudiu Lodromanean aa85dd03d6
Merge pull request #18214 from WPprodigy/fix-duplicate-checkout-ids
Prevent duplicate IDs on checkout page
2017-12-18 08:49:40 -08:00
Mike Jolley 6fd3d9c100 Compare the date modified when loading session data. 2017-12-18 16:43:18 +00:00
Claudiu Lodromanean 052fbc73c6
Merge pull request #18212 from WPprodigy/hide-add-coupon
Only show 'Apply coupon' in admin if coupons are enabled
2017-12-18 08:41:12 -08:00
Claudio Sanches d2404a9e63 Fixed chmod 2017-12-18 14:12:53 -02:00
Shiva Poudel 0432b58182 Remove unwanted transient then were not set 2017-12-18 20:03:08 +05:45
Caleb Burks 82c5975b37 Prevent duplicate IDs on checkout page 2017-12-17 22:43:51 -06:00
Caleb Burks 0d9e55d2ec Hide Apply coupon in admin if coupons are disabled 2017-12-17 22:21:08 -06:00
Luciano Amodio 27dd962be7
Add WC Product CSV Exporter limit filter
with tons of products is nice to have an way to change the limit for the exporter (now is set to 50)

'''php
function wc_exporter_set_limit($limit) {
  return 1000;
}
add_filter( 'woocommerce_product_export_product_default_limit', 'wc_exporter_set_limit');
'''
2017-12-16 13:49:21 +01:00
Claudiu Lodromanean 906efe1ffc
Merge pull request #18189 from woocommerce/fix/17897
Add getter for tax_display_cart variable, with filter
2017-12-15 08:44:43 -08:00
Mike Jolley 1901493eee Should be pulic. 2017-12-15 15:18:17 +00:00
Mike Jolley 4eaf1afb88 Cleanup session callback. 2017-12-15 15:14:05 +00:00
Mike Jolley df04d0c4a2 phpcs 2017-12-15 15:13:48 +00:00
Mike Jolley 15089fc432 Added init method and phpcs changes. 2017-12-15 15:13:24 +00:00
Mike Jolley b84f9fa112 A session should not be generated on cron requests. 2017-12-15 15:13:06 +00:00
Mike Jolley 01871fd2c8 Add getter for tax_display_cart variable, with filter 2017-12-15 13:39:35 +00:00
Mike Jolley 47b39caf83 phpcs 2017-12-15 13:19:23 +00:00
Mike Jolley ea8681280a Only get ID when it's not empty so 0 and '' is ignored 2017-12-15 12:59:54 +00:00
Mike Jolley fd2c676837
Merge pull request #18184 from woocommerce/fix/18182-storefront-wizard-notice
Storefront in wizard for non WC themes and default themes
2017-12-15 12:51:19 +00:00
Gerhard Potgieter 4ba9af1c2f Change WC::is_active_theme into a global function wc_is_active_theme. Clean up the conditional checks to read better. 2017-12-15 14:32:54 +02:00
Mike Jolley 7c029d18e9
Merge pull request #18186 from woocommerce/fix/no-strict-array-select-settings
Option value comparison when saving select settings
2017-12-15 12:18:26 +00:00
Gerhard Potgieter 89d21a50a4 Convert allowed options to string values for comparison, html options have no data type distiction. 2017-12-15 13:39:05 +02:00
Gerhard Potgieter 30398a65f1 Do not use strict comparison when doing in_array on select settings as wp_unslash on the raw_value will return a string that fails comparison with int values. 2017-12-15 13:21:01 +02: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
Gerhard Potgieter 2907725e5c Display storefront theme in wizard when theme does not support woocommerce, or a default theme.
Closes #18182
2017-12-15 10:23:31 +02:00
Claudiu Lodromanean 204a990976
Merge pull request #18173 from woocommerce/fix/18168
Add ID orderby fallback for when prices are the same across multiple products.
2017-12-14 09:16:37 -08:00
Claudiu Lodromanean 5bf6ff0d48
Merge pull request #18172 from woocommerce/fix/18164-includes
Only show includes text when there are taxes
2017-12-14 09:14:38 -08:00
Claudiu Lodromanean 9cfc587d2e
Merge pull request #18160 from WPprodigy/hide-stock-status-on-variations
[3.3] Hide variation stock status setting conditionally
2017-12-14 09:05:01 -08:00
Mike Jolley e3b61f6203
Merge pull request #18151 from woocommerce/fix/18149
Save offline gateways in wizard
2017-12-14 16:45:20 +00:00
Mike Jolley 9bf677d48d
Merge pull request #18143 from woocommerce/fix/18142
Fix order of functions in wc_get_post_data_by_key
2017-12-14 16:42:21 +00:00
Mike Jolley 1555507756
Merge pull request #18123 from woocommerce/update/setup-wizard-omit-paypal-standard
Setup wizard: Omit PayPal Standard unless plugins cannot be installed
2017-12-14 16:42:03 +00:00
Mike Jolley 5ed3c9e37e Adjusts price filter code to exclude taxes to match how prices are stored in the DB 2017-12-14 15:21:49 +00:00
Mike Jolley a1f5e2be95
Merge pull request #18163 from woocommerce/fix/plugin-override-warnings
Fix warning for plugins that override this method with the specified …
2017-12-14 14:48:39 +00:00
Boro Sitnikovski 59c1aa0928 Add since tag 2017-12-14 15:43:35 +01:00
Boro Sitnikovski 080ece9588 Change method name 2017-12-14 15:37:42 +01:00
Mike Jolley 1df3af081c Add ID orderby fallback for when prices are the same across multiple products. 2017-12-14 14:17:20 +00:00
Mike Jolley a6594d6880 Only show includes text when there are taxes 2017-12-14 14:04:20 +00:00
Mike Jolley bfe7b835a3
Merge pull request #18157 from WPprodigy/customizer-string-updates
[3.3] Customizer string updates
2017-12-14 13:00:09 +00:00
Mike Jolley 3204e39a90
Merge pull request #18156 from WPprodigy/fix-18155-image-cropping
[3.3] Use correct image options in customizer settings
2017-12-14 12:56:52 +00:00
Shiva Poudel 3353505be5 Tweak - Duplicate relevance orderby for catalog 2017-12-14 15:37:12 +05:45
Boro Sitnikovski e1b753122e Deprecate the function as a whole 2017-12-14 10:23:51 +01:00
Boro Sitnikovski e061cb122c Fix warning for plugins that override this method with the specified parameter 2017-12-14 10:09:25 +01:00
Caleb Burks b8e208269e Adjust download reporting active filters display 2017-12-14 00:13:53 -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 fdd6e8be15 Update image descriptions 2017-12-13 21:22:38 -06:00
Caleb Burks ca0a921dbf Change Product Grid to Product Catalog 2017-12-13 21:04:52 -06:00
Caleb Burks 75dd3f1abf Update some text strings for clarity 2017-12-13 21:01:40 -06:00
Caleb Burks 1b64314e35 ‘Show subcategories’ is the better text to use 2017-12-13 20:49:47 -06:00
Caleb Burks 6902e2517b Update correct image options 2017-12-13 20:41:53 -06:00
claudiulodro cf86647de3 Save offline gateways in wizard 2017-12-13 13:38:33 -08:00
Beka Rice f0a33bfa79 [WC 3.3] Fix fatal if gateway is deactivated 2017-12-13 13:59:07 -05:00
claudiulodro 5aab643146 Fix parens 2017-12-13 09:56:01 -08:00
claudiulodro 2a17ad9a2b Flip arguments to prevent errors when key doesn't exist 2017-12-13 09:54:35 -08:00
Claudiu Lodromanean 1296d6e087
Merge pull request #18141 from woocommerce/helper-connect-prompt
Helper: Prompt connection to WooCommerce.com for updates/support
2017-12-13 09:43:41 -08:00
Claudiu Lodromanean 7d0d96f6ee
Merge pull request #18139 from woocommerce/fix/18126
Fix offline payments expand icon in Firefox and other standards compliant browsers
2017-12-13 09:40:24 -08:00
Konstantin Kovshenin 1928a9cbf6 Helper: Prompt connection to WooCommerce.com for updates/support
A persistent prompt for users to connect their store to their
WooCommerce.com account, if they happen to have one or more active
extensions provided by WooCommerce.com.

Fixes #17501
2017-12-13 19:34:44 +03:00
Mike Jolley 755647ec5c Improve subcat display to see if subcats can actually be displayed 2017-12-13 15:46:09 +00:00
Paul Dechov 8f3de46637
Merge branch 'master' into update/setup-wizard-omit-paypal-standard 2017-12-13 09:41:25 -05:00
Paul Dechov d7ae29fe51 Fix UK country code in Square support check 2017-12-13 09:37:15 -05:00
Paul Dechov f4c557a9be Add test verifying that the correct list of payment gateways is returned per country 2017-12-13 09:35:43 -05:00
Mike Jolley 71c9025709 Updates CSS for chevron to work across browsers - input::before is not supported in Firefox. 2017-12-13 14:30:00 +00:00
Mike Jolley a42ba4607e
Merge pull request #18060 from woocommerce/fix/17915
Background processing; multisite should process current blog queue only
2017-12-13 12:38:19 +00:00
Mike Jolley f2471aea16
Merge pull request #18122 from woocommerce/update/setup-wizard-ppec-settings-description
Setup wizard: omit unnecessary sentence from PPEC settings description
2017-12-13 12:33:00 +00:00
Rodrigo Primo 1b6c5fb9b2
Merge pull request #18098 from woocommerce/update/orders-list-table-phpcs
Fix PHPCS violations on class-wc-admin-list-table-orders.php
2017-12-13 10:21:47 -02:00
Rodrigo Primo e5160b28a9 Manually fix some PHPCS violations 2017-12-13 09:41:34 -02:00
Gerhard Potgieter f0846af533
Merge pull request #18124 from n-dawson/fix-exported-count
Fix calculation of total rows exported
2017-12-13 13:13:52 +02:00
Arif Widianto 53dafc9bde Removing unnecessary extra spaces 2017-12-13 15:51:54 +07:00
Paul Dechov b1b604b401 Fix stripe being shown in Klarna and Square cases regardless of Stripe support
No difference in practice, since I believe all Klarna and Square countries are supported by Stripe, but for robustness this should be explicitly checked.
2017-12-12 20:39:04 -05:00
Paul Dechov b26a3ca1a2 Fix 'Klarna Payments' name 2017-12-12 20:22:01 -05:00
Paul Dechov 4511c5ae12 Make PPEC opt-out in every case 2017-12-12 20:21:21 -05:00
Paul Dechov 1706c3e152 Refactor 'get_wizard_in_cart_payment_gateways' function
Extract function that returns all possible in-cart gateways, and tighten the logic overall.
2017-12-12 20:20:26 -05:00
claudiulodro 1cf31daf39 Rename customizer class to prevent class name collisions 2017-12-12 14:01:34 -08:00
Frédéric Demarle 52d7d136d6 Remove useless translators comment 2017-12-12 20:49:10 +01:00
Nathan Dawson 28a54fe983 Fix calculation of total rows exported 2017-12-12 19:33:48 +00:00
Paul Dechov 080c5b50e7 Omit PayPal Standard unless plugins cannot be installed 2017-12-12 14:04:36 -05:00
Paul Dechov 200c6780e9 Setup wizard: omit unnecessary sentence from PPEC settings description 2017-12-12 13:57:46 -05:00
Claudiu Lodromanean 7a726123ce
Merge pull request #18119 from woocommerce/fix/18104
Filter passed images before processing.
2017-12-12 10:21:05 -08:00
Claudiu Lodromanean 71647c1b9e
Merge pull request #18120 from woocommerce/fix/18117
Only resize WC image sizes.
2017-12-12 10:16:39 -08:00
Mike Jolley a89b8cd707 Update the logo in the wizard 2017-12-12 17:38:10 +00:00
Mike Jolley 3bc102b72f Only resize WC image sizes. 2017-12-12 17:24:52 +00:00
Mike Jolley e2f0126936 Filter passed images before processing. 2017-12-12 17:08:01 +00:00
claudiulodro 4af3f9f12f Add class back to paypal in wizard 2017-12-12 08:24:35 -08:00
Claudiu Lodromanean 07b40a6d99
Merge pull request #18108 from WPprodigy/more-customizer-things
Move some display settings to the customizer
2017-12-12 07:40:35 -08:00
Mike Jolley 91803be50c Fix install_actions action name 2017-12-12 11:42:59 +00:00
Caleb Burks a4f9d1e65a Docs update 2017-12-11 23:42:48 -06:00
Caleb Burks 83c1e70d00 Fix docs type 2017-12-11 23:12:53 -06:00
Caleb Burks 2b2a0016d3 Move early return 2017-12-11 22:36:39 -06:00
Caleb Burks 53873857ef Move three display settings to customizer 2017-12-11 22:30:14 -06:00
Caleb Burks a767f11473 Product Grid settings should only show someimtes 2017-12-11 21:22:28 -06:00
Caleb Burks af4d7c6bcb Change filter to action 2017-12-11 21:09:16 -06:00
Caleb Burks ea29af1ac4 Use woocommerce_thumbnail_cropping_custom_height 2017-12-11 21:08:48 -06:00
Claudiu Lodromanean 6520ea493d
Merge pull request #18099 from aelia-co/fix-legacy_api-use_edit_context_when_setting_prices
Legacy API - Use "edit" context when checking if the product is on sale during an "edit" operation
2017-12-11 11:48:19 -08:00
claudiulodro ba363b6353 Bring up-to-date with master and resolve conflicts 2017-12-11 11:36:00 -08:00
Claudiu Lodromanean 7b81d39039
Merge pull request #18036 from woocommerce/tweak/script-data-filter
Add filter for script data
2017-12-11 10:51:56 -08:00
claudiulodro 3b94d0c52b Bring up-to-date with master and resolve conflict 2017-12-11 10:27:05 -08:00
Diego Zanella 218aebd329 Legacy API - Use "edit" context when setting product prices
Ensured that the "edit" context is used when checking if the product is on sale, like it's done when fetching product's regular and sale prices. This prevents price filters from running and, potentially, altering the prices set via the API.

* Ref. https://github.com/woocommerce/woocommerce/issues/17125
* Ref. 6e5cdc60e8
2017-12-11 17:08:53 +00:00
Claudiu Lodromanean c0e0f9c2cb
Merge pull request #18039 from woocommerce/add/setup-wizard-wcs-paypal-express-checkout-settings
Setup wizard: PayPal Express Checkout settings for rerouting via WCS
2017-12-11 08:26:24 -08:00
Rodrigo Primo 5915e6e892 Fix WPCS violations automatically using phpcbf 2017-12-11 14:24:54 -02:00
Paul Dechov 0f84a5eb4b Revise checkbox label 2017-12-11 09:50:27 -05:00
Mike Jolley dd59a9c51c
Merge pull request #18093 from woocommerce/fix/unsupported-php-syntax
Replace PHP >= 5.4 syntax with PHP 5.2 alternative
2017-12-11 14:09:13 +00:00
Rodrigo Primo fc43bde6f8 Replace PHP >= 5.4 syntax with PHP 5.2 alternative
Commit 8f37ea33ed added the following line that works only on PHP >= 5.4 as function array dereferencing is not present in PHP version 5.3 or earlier. This commit fixes it by replacing that line with a alternative that is compatible with PHP >= 5.2.

6ecc3bc442/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L189)
2017-12-11 11:20:42 -02:00
Mike Jolley a65db31443 Update text.
Closes #18078
2017-12-11 13:19:19 +00:00
Mike Jolley f4927ea837 Give control over loop button attributes
Closes #18079
2017-12-11 13:09:21 +00:00
Boro Sitnikovski 9d76af7607 Add deprecation notice for old hooks 2017-12-11 09:29:08 +01:00
hardipparmar db14a2595f Changed. 2017-12-11 12:15:44 +05:30
Caleb Burks 274e5c3aa2 Hide manage stock buttons if inventory is disabled 2017-12-09 23:02:40 -06:00
Caleb Burks 457e60d253 Allow for multiple stock updates at once 2017-12-09 22:22:41 -06:00
Caleb Burks c7a583e5c1 Add CSV import option to use previous mapping 2017-12-09 02:58:07 -06:00
Caleb Burks 9db92e7152 Remove html that was being escaped 2017-12-09 01:13:27 -06:00
Caleb Burks 4f187a0840 Ajaxify the order note addition 2017-12-09 00:32:35 -06:00
Caleb Burks 2237c35912 Set $added_by_user to true
These stock updates are done manually
2017-12-08 22:33:09 -06:00
Caleb Burks e88ef38a76 Standardize stock update messages
Essentially just use get_formatted_name(), that way the product name appears along with either the sku or ID
2017-12-08 22:29:01 -06:00
Mike Jolley 426897ac2d
Merge pull request #18075 from woocommerce/update/extension-screen-styles
Update extension screen styles
2017-12-08 17:28:39 +00:00
Mike Jolley cb97f0fc80 Performance tweak; close connection before running queue. 2017-12-08 16:57:53 +00:00
Mike Jolley 39b947e1ee Prefix per site 2017-12-08 16:53:51 +00:00
Mike Jolley bbc9180951 Restore variable name 2017-12-08 16:47:52 +00:00
Mike Jolley 05eb303a6f Revert "Background processing; multisite should process current blog queue only"
This reverts commit c950dcc6e3.
2017-12-08 16:46:25 +00:00
Claudio Sanches eaa440df5f
Merge pull request #18071 from woocommerce/update/18045
Attributes; remove 'text' display option
2017-12-08 14:36:36 -02:00
Mike Jolley 1f109ba62e Merge branch 'pr/18072' 2017-12-08 16:32:58 +00:00
Mike Jolley b4bfe6303f Keep public method around 2017-12-08 16:24:04 +00:00
Claudiu Lodromanean 99e948551f
Merge pull request #18076 from woocommerce/fix/18069
Shipping calculator and taxes
2017-12-08 08:17:45 -08:00
Mike Jolley 5b0df590c0
Merge pull request #18065 from woocommerce/improve/18064
Add default row/column control for themes
2017-12-08 16:14:19 +00:00
claudiulodro fef9d612c7 Better function name 2017-12-08 07:38:40 -08:00
claudiulodro b2cac1dcab Better description 2017-12-08 07:36:33 -08:00
claudiulodro e37391affb Set/remove defaults on theme activation 2017-12-08 07:33:42 -08:00
claudiulodro 600b1bd82c Revert "Add defaults control for themes"
This reverts commit 29090e4676.
2017-12-08 07:23:46 -08:00
Mike Jolley 912c3e2ef8 Process form fields if set 2017-12-08 14:11:41 +00:00
Mike Jolley d0db71c6c2 Flex grid for extension list 2017-12-08 13:23:08 +00:00
Mike Jolley 1bf47c2a81 API: Use KSES for purchase_note like admin 2017-12-08 11:47:27 +00:00
Mike Jolley 1944bf7191 Remove text type setting 2017-12-08 11:24:21 +00:00
James Allan 82c282e83a Clone the child objects rather than instantiating new objects.
When cloning the cart, the current fees and session objects should
remain the same but have new pointers.
2017-12-08 21:15:45 +10:00
James Allan 83de162adb Only remove fees which belong to the cart which is being emptied/reset
If there are multiple instances of WC_Cart and therefore multiple
instances of WC_Cart_Fees, if 1 cart is emptied and
woocommerce_cart_emptied is triggered, all instances of WC_Cart_Fees
will trigger remove_all_fees, removing all the fees from all the carts.
2017-12-08 21:15:08 +10:00
Gerhard Potgieter 0c5a0b06cc
Merge pull request #17926 from woocommerce/add/search-functionality-extensions-page
Adds search functionality to extensions page
2017-12-08 10:48:38 +02:00
Gerhard Potgieter 9491db496c Fix issue where get_batch was referencing a non set variable for the column name. Add a couple of unit tests to test the background process class. 2017-12-08 10:31:05 +02:00
Gerhard Potgieter 75ecb887c3
Merge pull request #18017 from woocommerce/tweak/decouple-cart-template-methods
Decouple cart templating methods from WC_Cart class
2017-12-08 08:15:46 +02:00
claudiulodro e22318449e Fix syntax error @bor0 2017-12-07 14:29:07 -08:00
Claudio Sanches 0c36ab23cf Updated API settings making clear that is from our legacy REST API 2017-12-07 19:53:40 -02:00
Claudio Sanches 05987ff3be Removed unresolved merge conflicts 2017-12-07 19:06:07 -02:00
Claudio Sanches 2f6f6112c2 Merge branch 'master' into feature/webhook-crud 2017-12-07 18:21:52 -02:00
Claudio Sanches 2db8fdbf0b Removed legacy custom topic handler 2017-12-07 18:04:45 -02:00
claudiulodro 29090e4676 Add defaults control for themes 2017-12-07 11:35:06 -08:00
Boro Sitnikovski b6801d3761 Fix wrong call 2017-12-07 20:16:54 +01:00
Boro Sitnikovski d0f9aaa99a Merge branch 'master' into tweak/decouple-cart-template-methods 2017-12-07 20:16:08 +01:00
Claudiu Lodromanean 1b079f1e43
Merge pull request #18061 from woocommerce/fix/import-export-18047
Fix ID mapping to existing IDs
2017-12-07 09:57:31 -08:00
Jonathan Belcher f4d6b6f68f Merge Commit 2017-12-07 12:10:00 -05:00
Jonathan Belcher 3bb55107e8 Fix placeholder comment 2017-12-07 12:04:25 -05:00
Jonathan Belcher 885f869d40 Merge commit 2017-12-07 12:02:55 -05:00
Jonathan Belcher 937cdbf230 Merge commit 2017-12-07 11:50:42 -05:00
Jonathan Belcher 9695bc4183 Small code review changes 2017-12-07 11:47:33 -05:00
Claudiu Lodromanean 7c06e7d63d
Merge pull request #18008 from woocommerce/update/rounding-17970-17863
Rounding fixes/line item rounding
2017-12-07 08:34:15 -08:00
Claudiu Lodromanean 804c771296
Merge pull request #17683 from woocommerce/feature/unsupported-theme
Unsupported theme enhancements
2017-12-07 08:05:29 -08:00
Mike Jolley 5e51af9d2c Fix white space in order actions 2017-12-07 15:50:27 +00:00
Mike Jolley 36b1753925 Version 2017-12-07 15:41:53 +00:00
Mike Jolley 7a94bf06df Reversion changes 2017-12-07 15:39:10 +00:00
Mike Jolley d7b29bc833 Merge branch 'pr/17993' 2017-12-07 15:33:36 +00:00
Mike Jolley f0c04b019b Rename filter and pass order 2017-12-07 15:33:26 +00:00
Mike Jolley 7e7b79efd0 typo 2017-12-07 15:31:55 +00:00
Mike Jolley 05d6e393ae Merge branch 'pr/18013' 2017-12-07 15:29:59 +00:00
Mike Jolley 54d4012c33 Use timestamp function 2017-12-07 15:24:57 +00:00
Boro Sitnikovski 588c5f3779 Change method name 2017-12-07 15:53:16 +01:00
Mike Jolley 86ff5f5842
Merge pull request #18049 from woocommerce/fix/undefined-var
Fixed undefined variable on WC_Shipping_Zones::get_zone_by
2017-12-07 14:32:21 +00:00
Mike Jolley 03db5c4590
Merge pull request #18048 from woocommerce/fix/17722-2
Allow import and export draft products
2017-12-07 14:29:50 +00:00
Mike Jolley 3de87d3db7 Fix ID mapping to existing IDs
Fixes #18047
2017-12-07 14:12:20 +00:00
Claudio Sanches 3300534963
Merge pull request #18058 from woocommerce/fix/18053
Update docblock for $include_taxes
2017-12-07 11:05:39 -02:00
Mike Jolley c950dcc6e3 Background processing; multisite should process current blog queue only
#17915
2017-12-07 13:01:05 +00:00
Mike Jolley acbd4295f9 phpcs 2017-12-07 12:35:13 +00:00
Mike Jolley 91887b918f phpcs 2017-12-07 12:31:30 +00:00
Mike Jolley cadfcfc11f phpcs 2017-12-07 12:21:01 +00:00
Mike Jolley d3cd420c0a Format data of headers 2017-12-07 12:15:39 +00:00
Mike Jolley c3623a9967 Update docblock for $include_taxes
Closes #18053
2017-12-07 11:46:35 +00:00
Marcin Bot d0756a4a36 Fixed the undefined index notice 2017-12-07 11:20:04 +00:00
Jonathan Belcher b42004f7b3 Fix escaping 2017-12-06 16:48:30 -05:00
Claudio Sanches bb575ad07e Fixed @since 2017-12-06 19:12:42 -02:00
Claudio Sanches 390844f73b Fixed coding standards 2017-12-06 19:11:40 -02:00
Claudio Sanches cae02bee36 Fixed undefined variable on WC_Shipping_Zones::get_zone_by 2017-12-06 19:07:00 -02:00
Paul Dechov 1433347eda Remove unused description string for Braintree 2017-12-06 15:36:46 -05:00
Claudio Sanches 0946fd04cf Allow import and export draft products
Closes #17722
2017-12-06 18:32:35 -02:00
Paul Dechov f2cc10922a Add full stops to code comments 2017-12-06 14:53:31 -05:00
Mike Jolley 1f2011e8de Tweak query args 2017-12-06 19:03:14 +00:00
Mike Jolley 119ee7f27c Use new loop functions 2017-12-06 18:10:44 +00:00
Mike Jolley 8bdff47133 Hook in subcats 2017-12-06 18:10:28 +00:00
Mike Jolley 3c36ab0517 Helper functions for loop handling to avoid global usage, and helper for displaying subcats 2017-12-06 18:10:19 +00:00
Mike Jolley e343c99ccb Remove is_shortcode_loop 2017-12-06 18:09:49 +00:00
Jonathan Belcher c43f4c65be Merge Commit 2017-12-06 12:07:27 -05:00
Jonathan Belcher bbaabb5b80 Remove unused function 2017-12-06 12:03:50 -05:00
Jonathan Belcher b5c1025621 Fixes from code review 2017-12-06 12:02:09 -05:00
Mike Jolley 07792a253b Correct variable name 2017-12-06 15:54:40 +00:00
Paul Dechov c75f5f54af Show PPEC instead of Braintree in US, and remove Braintree altogether 2017-12-06 10:02:32 -05:00
Paul Dechov 94da7ffbed Default PPEC to enabled 2017-12-06 10:01:55 -05:00
Paul Dechov 28c4dc0fbe Install WCS if PPEC settings set 2017-12-06 09:19:39 -05:00
Paul Dechov eecd0db0f0 Tweak checkbox label 2017-12-06 09:19:08 -05:00
Paul Dechov 4155f02ec8 Make sure PPEC settings are opened if enabled on load 2017-12-06 09:18:06 -05:00
Marcin Bot 0d12b31a13 Updated the Klarna logo 2017-12-06 14:04:28 +00:00
Mike Jolley 320392fc59 is_visible should ensure product is is not trashed
Closes #18023
2017-12-06 13:47:09 +00:00
Mike Jolley 67a4339ee0
Merge pull request #18031 from woocommerce/fix/admin-product-warnings
Fixed "PHP Warning: printf(): Too few arguments"
2017-12-06 13:32:26 +00:00
Mike Jolley 8dcffa660e Normalise get_query_results names and add new param for pagination 2017-12-06 13:13:43 +00:00
Gerhard Potgieter 6ff40c2821
Merge pull request #18011 from WPprodigy/add-helper-notice
Add admin notice when helper plugin is deactivated
2017-12-06 12:37:34 +02:00
Boro Sitnikovski 4981d68b38 Add filter for script data 2017-12-06 11:03:16 +01:00
Paul Dechov 6500b11db8 Adjust logo widths to match design and approximately equalize prominence 2017-12-05 19:55:43 -05:00
Paul Dechov 9a3b63036f Address 'Undefined index' notice by checking for set param 2017-12-05 14:56:15 -05:00
Paul Dechov 570a2e9512 Add PPEC settings to wizard, to facilitate rerouting via WCS 2017-12-05 14:53:44 -05:00
Jonathan Belcher 38984b03ce
Merge pull request #18026 from woocommerce/add/clear-addons-transients
Clear addons transients on update to 3.3.0
2017-12-05 14:41:21 -05:00
Jonathan Belcher d38a9e2af6
Change order of commands to make DB last 2017-12-05 14:39:37 -05: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
Claudio Sanches c07d039242 [Importer] Get global attribute ID only when is a global attribute.
Closes #17923
2017-12-05 16:55:56 -02:00
claudiulodro 535d014ef9 Line up arrays 2017-12-05 10:50:17 -08:00
claudiulodro aab65923c1 Refactor for better style 2017-12-05 10:45:08 -08:00
Claudio Sanches a56018b967 Removed webhook custom topic input and included better error messages 2017-12-05 16:07:36 -02:00
Claudiu Lodromanean 9d644e0852
Merge pull request #18012 from woocommerce/fix/18010-merge-persistant-session-carts
Merge session and persistent carts when both exists
2017-12-05 09:49:52 -08:00
Jonathan Belcher 51c66d7f7a
Remove automatic spacing changes made by my editor 2017-12-05 12:27:13 -05:00
Claudiu Lodromanean 87e1cf485d
Merge pull request #18022 from woocommerce/fix/17979
Return packages with no rates so shipping calculator is displayed.
2017-12-05 09:27:00 -08:00
Jonathan Belcher c39a181cb6 Clear addons transients on update to 3.3.0 2017-12-05 12:23:51 -05:00
Marcin Bot 399e2893e1 Updated the Klarna logo 2017-12-05 17:06:35 +00:00
claudiulodro 73bfc1444b Fix weird bracket 2017-12-05 08:42:50 -08:00
claudiulodro 813024c654 line up array 2017-12-05 08:42:04 -08:00
Marcin Bot 10f912a0a9 Split Klarna into two plugins and updated their display logic 2017-12-05 16:38:19 +00:00
claudiulodro fec60ab2ea Fix product shortcode pagination 2017-12-05 08:31:50 -08:00
Marcin Bot d1e4d0fe3c Fixed a <label>'s id 2017-12-05 16:21:36 +00:00
Marcin Bot fbc630114c Fixed the payment gateways link 2017-12-05 16:21:36 +00:00
Marcin Bot 628906a5bc Added Klarna and Square CSS classes 2017-12-05 16:20:15 +00:00
Marcin Bot 6dae7f3451 Fixed an i18n domain 2017-12-05 16:20:15 +00:00
Marcin Bot 8b0e0e3df4 Fixed the copies 2017-12-05 16:20:15 +00:00
Valerie 8c6d069377 Add Square to wizard payment step 2017-12-05 16:20:15 +00:00
Valerie e28341a9a3 Wizard: Ask user if selling in person 2017-12-05 16:20:15 +00:00
Valerie 6d2ca0fd15 Add Klarna to wizard payment step 2017-12-05 16:20:15 +00:00
Jonathan Belcher f05ed543fa Fix css and add search query header 2017-12-05 11:15:09 -05:00
Claudio Sanches 09dd86da1c
Merge pull request #18021 from woocommerce/fix/17974
wc_lostpassword_url should not be used before init
2017-12-05 13:20:25 -02:00
Jonathan Belcher 2c12dcfacd Merge Commit 2017-12-05 10:16:28 -05:00
Jonathan Belcher 66dbcdead6 Update for API changes 2017-12-05 10:06:58 -05:00
Mike Jolley 8f9bd7d0bf Return packages with no rates. 2017-12-05 15:00:07 +00:00
Mike Jolley 79e9464dc3 wc_lostpassword_url should not be used before init
Closes #17974
2017-12-05 14:25:24 +00:00
Mike Jolley 3e00533183 phpcs 2017-12-05 14:02:40 +00:00
Mike Jolley 5a5f179346 translators 2017-12-05 13:41:56 +00:00
Mike Jolley 4e7da70185 Update permalink setting text #17745 2017-12-05 13:40:40 +00:00
Mike Jolley 5a8cdb1ded Update wording for #17968 2017-12-05 13:31:42 +00:00
Mike Jolley 05e7eaae03 get_meta_data return array values
Closes #17997
2017-12-05 13:14:12 +00:00
Mike Jolley d49590d0a3 Fixes to 5.2 rounding function and additional tests 2017-12-05 12:10:23 +00:00
Boro Sitnikovski 145d47c580 Decouple cart templating methods from WC_Cart class 2017-12-05 13:00:21 +01:00
Caleb Burks 6374a13d30 Update a product’s modified_date for stock changes 2017-12-05 00:53:52 -06:00
Gerhard Potgieter 961a70965d PHPCS Fixes 2017-12-05 08:48:35 +02:00
Gerhard Potgieter ccb54faf0b When getting a cart from a session and there are contents as well as contents in the persistant cart, merge the two carts to avoid loosing the persistant cart content. 2017-12-05 08:45:52 +02:00
Caleb Burks 21e798e1a8 Add admin notice when helper plugin is deactivated 2017-12-04 23:57:47 -06:00
Mike Jolley b6f87e70d7 round total to cents 2017-12-04 22:42:39 +00:00
Mike Jolley 55af8a2ec8 wc_cart_round_discount 2017-12-04 22:10:47 +00:00
claudiulodro d60456cc73 Resolve conflicts and bring up to date with master 2017-12-04 13:56:59 -08:00
Mike Jolley 7da5780c00 Store unrounded, calc rounded. 2017-12-04 21:40:12 +00:00
Mike Jolley 8e851d834f Rounding and price should match the cart. 2017-12-04 20:38:29 +00:00
Mike Jolley 17095a4011 Totals should be set to store DP setting. 2017-12-04 20:38:14 +00:00
Mike Jolley 277127a400 Round line totals and taxes per line correctly to the store DP setting. 2017-12-04 20:38:00 +00:00
Mike Jolley 664970539d Remove rounding/precision from the tax class and handle exclusively in cart totals. 2017-12-04 20:33:27 +00:00
Mike Jolley 6b740671cc Change how precision is added
Some users have increased precision beyond the DP setting. Support this
by converting to cents and leaving some precision on the end.

e.g. 10.00 would be converted to cents (1000) and have 2 dp precision
on the end (1000.00).
2017-12-04 20:32:51 +00:00
Mike Jolley 6b37aa7b70 Allow negative rounding (php does) 2017-12-04 20:27:30 +00:00
Mike Jolley 02bfeddf4b
Merge pull request #18002 from woocommerce/tweak/use-protected-methods
Use protected instead of private methods to allow easy override
2017-12-04 15:38:30 +00:00
Mike Jolley 20633d409d Fix archive with default permalinks 2017-12-04 15:35:52 +00:00
Mike Jolley 4ff70f96ee Force woocommerce options to show in customizer with unsupported themes 2017-12-04 15:33:42 +00:00
Claudio Sanches 0f4f8a3f16
Merge branch 'master' into feature/webhook-crud 2017-12-04 12:37:10 -02:00
Claudio Sanches 673732946b Merge branch 'master' into feature/webhook-crud 2017-12-04 12:34:23 -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
Boro Sitnikovski 6c29d886ca Use protected instead of private methods to allow easy override 2017-12-04 15:10:35 +01:00