Commit Graph

14078 Commits

Author SHA1 Message Date
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 41af89f392 Merge branch 'master' into update/use-post-author-for-customer-id 2017-12-13 10:22:55 -02: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
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 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
Rodrigo Primo 6ecc3bc442 Use post_author field instead of post meta in orders admin page
This commit changes the query used to get a list of orders in the orders admin page to use post_author field instead of the _customer_user post meta when filtering orders by customer.

Testing this change on a local WooCommerce install with about 2.5 million entries in the wp_posts table and about 100 million entries in the wp_postmeta table I got the following results:

- The original query using _customer_user took 28 seconds to run
- The new query using post_author took 0.0008 seconds to run
2017-12-11 10:24:19 -02: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
Rodrigo Primo 997a6fa40d Make sure post_author is used only after WC 3.3.0 DB upgrade routine is executed 2017-12-08 15:55:53 -02: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
Rodrigo Primo ad4304450d Set post_author to 0 for refund orders 2017-12-08 12:32:45 -02: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
Rodrigo Primo fee1dcf5f9 Merge branch 'master' into update/use-post-author-for-customer-id 2017-12-08 10:09:57 -02: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 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