Commit Graph

11628 Commits

Author SHA1 Message Date
Brent Shepherd acd6bf9cb7 Apply woocommerce_variable_price_html filter once
To save a bit of duplicate code.
2017-06-06 13:35:41 -07:00
Claudio Sanches 2523490f9f [REST API] Fixed oAuth1.0a to allow multi-dimensional arrays
Fixes #15395
Closes #15396
2017-06-06 17:05:03 -03:00
Claudiu Lodromanean fa3586729a Merge pull request #15469 from woocommerce/fix/15457
Revert thousand removal in wc_format_decimal, and add more tests
2017-06-06 10:31:40 -07:00
Claudio Sanches 20d5e0f769 Merge pull request #15477 from woocommerce/fix/15392
Variations to inherit catalog_visibility
2017-06-06 14:27:46 -03:00
Claudio Sanches c43afcfbd0 Merge pull request #15474 from woocommerce/update/15031
Update copy + css for zones
2017-06-06 14:26:24 -03:00
Claudio Sanches f430e5edc8 Merge pull request #15471 from woocommerce/fix/15467
Check taxonomy exists before allowing function to run
2017-06-06 14:23:54 -03:00
Mike Jolley ed783e1bbf Merge pull request #15473 from jamesckemp/patch-6
woocommerce_shortcode_products_query params
2017-06-06 15:52:06 +01:00
Mike Jolley 52e9dc5443 Merge pull request #15462 from woocommerce/fix/15081
Start indexing variations with 1
2017-06-06 14:57:49 +01:00
Mike Jolley e0a64ad36a Variations to inherit catalog_visibility 2017-06-06 14:49:32 +01:00
Mike Jolley eddcb16e00 Update copy + css for zones
Closes #15031
2017-06-06 13:46:09 +01:00
James Kemp 984ed08ccc woocommerce_shortcode_products_query params
The `woocommerce_shortcode_products_query` filter is used earlier on in this file but with 3 params. The third being `$loop_name`. It's not relevant here, so set to `null`, but needs to be included to avoid errors when adding a filter.
2017-06-06 13:22:28 +01:00
Mike Jolley 253bb0743c Ensure taxonomy exists in wc_get_product_visibility_term_ids 2017-06-06 13:10:56 +01:00
Mike Jolley e83450b861 Errors do not need localisation 2017-06-06 13:10:22 +01:00
Mike Jolley d62aefba74 Merge branch 'master' into fix/15414
# Conflicts:
#	includes/wc-core-functions.php
2017-06-06 12:55:50 +01:00
Mike Jolley 09d43670fc function exists 2017-06-06 12:54:49 +01:00
Mike Jolley 4c7f8c0fbd Revert thousand removal in wc_format_decimal, and add more tests 2017-06-06 12:44:58 +01:00
Mike Jolley c77347da48 Merge pull request #15459 from woocommerce/fix/14659
Make phone number clickable
2017-06-06 11:52:05 +01:00
Mike Jolley 513bca9fa5 Merge pull request #15456 from woocommerce/fix/15288
Fixed unicode characters when saving webhook delivery logs
2017-06-06 10:26:26 +01:00
Claudio Sanches 6be1569955 Start indexing variations with 1, closes #15081 2017-06-05 17:42:58 -03:00
Claudio Sanches 6c42f3c16a Properly sanitization for wc_make_phone_clickable() and fixed coding standards
Closes #14659
2017-06-05 16:15:04 -03:00
Claudio Sanches f65005be41 Merge pull request #14719 from avinapatel/fix-14659
Made the buyer phone number clickable in the in the order backend.
2017-06-05 15:47:16 -03:00
Claudio Sanches 4aec4efa67 Merge pull request #15432 from woocommerce/update/wcs-banner-responsive
Update WooCommerce Services extensions banner
2017-06-05 15:36:22 -03:00
Claudio Sanches 58b22f343a Fixed unicode characters when saving webhook delivery logs
Closes #15288
2017-06-05 15:25:29 -03:00
Claudio Sanches 6c29d32396 Merge pull request #15446 from woocommerce/fix/15437-15443
Notice fixes in API and meta handling class
2017-06-05 15:00:48 -03:00
Claudiu Lodromanean 2e6219f682 Merge pull request #15452 from woocommerce/fix/15440
Add correct args to woocommerce_shipping_zone_method_deleted
2017-06-05 11:00:22 -07:00
Claudio Sanches 527fa0d07a Fixe CHMOD 2017-06-05 14:45:30 -03:00
Valerie 70570f3745 Update WCS banner style 2017-06-05 11:30:42 -04:00
Valerie baf405fdcf Update WCS banner image 2017-06-05 11:28:37 -04:00
Valerie 8939dfc1a5 Update WCS banner text 2017-06-05 11:28:37 -04:00
Mike Jolley b4098a7472 Use WP date format in admin
Closes #15453
2017-06-05 15:58:29 +01:00
Mike Jolley 76a19c27a5 Add correct args to woocommerce_shipping_zone_method_deleted 2017-06-05 15:11:08 +01:00
Mike Jolley a348dedfb7 Merge pull request #15397 from woocommerce/update/add-activation-toggles-in-subscriptions
Update/add activation toggles in subscriptions
2017-06-05 14:29:36 +01:00
Mike Jolley 67a0637417 Advanced locale switching 2017-06-05 14:18:39 +01:00
Mike Jolley 6f4ce488e2 Merge pull request #15402 from woocommerce/fix/ipn-authorization
Fix IPN authorization setting orders to completed automatically
2017-06-05 13:24:33 +01:00
Boro Sitnikovski 8a615a6e79 Update conditional for non-auth payments 2017-06-05 14:07:49 +02:00
Mike Jolley 3271ac7ab2 Merge pull request #15424 from lawkwok/patch-1
Update class-wc-data-store.php
2017-06-05 13:03:59 +01:00
Mike Jolley 2452fa807f Merge pull request #15425 from woocommerce/fix-incorrect-documentation
Fix incorrect documentation
2017-06-05 10:46:46 +01:00
Mike Jolley 1e8e40565d Avoid deprecated ID in API. Fixes #15437 2017-06-05 10:45:10 +01:00
Mike Jolley 52356c5caf Correct deprecated arg message. Fixes #15443
Fixes #15443
2017-06-05 10:43:13 +01:00
Boro Sitnikovski 4b82a750fc Fix IPN authorization setting orders to completed automatically 2017-06-05 10:07:22 +02:00
claudiulodro 992c1cce63 Add filter to exporter default column names 2017-06-02 11:46:27 -07:00
Mike Jolley 260cfce497 Format strings 2017-06-02 18:44:43 +01:00
Mike Jolley adc679633b Handle default subjects and headings at time of sending, not in constructor 2017-06-02 18:25:05 +01:00
Jonathan Belcher 66736e69f7 Fix incorrect documentation 2017-06-02 12:58:16 -04:00
Lawrence 127ed893dc Update class-wc-data-store.php 2017-06-02 09:19:54 -07:00
Claudio Sanches 46846ed4e0 Merge pull request #15416 from woocommerce/fix/15407
Correctly append cache
2017-06-02 12:18:55 -03:00
Claudio Sanches 86f2edb125 Merge pull request #15419 from woocommerce/fix/15412
Update florin
2017-06-02 12:16:15 -03:00
Mike Jolley fa1d2cba23 Merge pull request #15413 from bekarice/tweak/filter-cart-added-qty
Tweak: Filter quantity being added to the cart
2017-06-02 15:27:17 +01:00
Mike Jolley 7ee02d8f55 Merge pull request #15411 from crodas/tax_address_issue
Improve how taxes are applied
2017-06-02 15:16:32 +01:00
Mike Jolley b1ccb76d06 Update florin
Fixes #15412
2017-06-02 15:14:29 +01:00
Mike Jolley 198883e1fb Merge pull request #15406 from woocommerce/improvement/15382
Add index to order_id in woocommerce_downloadable_product_permissions table.
2017-06-02 13:37:56 +01:00
Mike Jolley da91857a84 Correctly append cache
Fixes #15407
2017-06-02 13:34:09 +01:00
José Marques 3d516ab9cd removes checkbox toggle markup and replaces inactive toggles links with spans 2017-06-02 11:22:48 +01:00
Beka Rice 494fa0974c Filter quantity being added to the cart 2017-06-02 00:07:06 -04:00
Cesar Rodas c96c62f380 Improved how taxes are applied
If by default the taxes are based on the shipping address and the current order doesn't have any, it would use the billing address rather than using the Shopping base location.

It's basically what WooCommerce is [doing already in Javascript](https://github.com/woocommerce/woocommerce/blob/master/assets/js/admin/meta-boxes-order.js#L526-L575). This kind of checks should be done in the backend, never in the client side.
2017-06-01 15:51:55 -04:00
Claudio Sanches b01a6996d8 Merge pull request #15409 from woocommerce/improvement/wiki
Add wiki links to order query docblocks.
2017-06-01 16:03:43 -03:00
claudiulodro 16e88856f3 Add wiki link to order query 2017-06-01 11:59:15 -07:00
claudiulodro b27fb203ef Add wiki link to wc_get_orders 2017-06-01 11:58:43 -07:00
claudiulodro 63069976cf Order ASC in exporter 2017-06-01 11:52:14 -07:00
claudiulodro cad7757045 Add index to order_id 2017-06-01 11:26:35 -07:00
Mike Jolley e3a4008d9f Fix group clause depending on query
Fixes #15394
2017-06-01 13:33:30 +01:00
José Marques be229a3e5b replaces active/deactivate buttons with toggles 2017-06-01 12:51:45 +01:00
Mike Jolley d161ba0216 Merge branch 'pr/15384' 2017-06-01 12:09:04 +01:00
Mike Jolley 71a4b4b75d Code standards 2017-06-01 12:08:48 +01:00
David de Boer d788b15073 Set delete_meta_data @param to accept a string
Set delete_meta_data @param to accept a string
2017-06-01 01:47:52 +02:00
Pablo dos Santos Gonçalves Pacheco 435c29771e Create function to sanitize order id
I've realized that tracking an order id with **[woocommerce_order_tracking]** using # will not work. Some users think that they need to use the hash because it's the WooCommerce default. The new **wc_sanitize_order_id()** function fixes that.

And **woocommerce_shortcode_order_tracking_order_id** filters the order_id that comes from query string and is used on **[woocommerce_order_tracking]**.

It can be used for other cases though.
I hope it helps :)
2017-05-31 17:34:00 -03:00
Claudio Sanches 5369bae987 Merge branch 'master' into add/wcs-banners 2017-05-31 16:02:38 -03:00
Claudio Sanches 08f4d7b2f2 Merge pull request #15310 from woocommerce/update/add-woo-services-in-wizard
Add WooCommerce Services to Setup Wizard
2017-05-31 15:48:42 -03:00
Nabeel Sulieman 5f0c84ee13 payment_gateways should be payment-gateways 2017-05-31 11:44:52 -07:00
Claudio Sanches b93d286985 Stop auto skip column map and remove all related code 2017-05-31 14:59:17 -03:00
Nabeel Sulieman 62d7937a52 Only queue woocommerce services install if it's not active 2017-05-31 09:36:33 -07:00
Nabeel Sulieman 27a3e83642 - WooCommerce services enabled by default
- Clicking "skip" on shipping page should disable shipping
2017-05-31 09:36:32 -07:00
Mike Jolley fc5b4f0482 Only show no_shipping_methods notice if services is not being installed 2017-05-31 09:36:32 -07:00
Mike Jolley c25b844761 Tweak handler 2017-05-31 09:36:32 -07:00
Mike Jolley c53c83aebb Tweak test and styling 2017-05-31 09:36:32 -07:00
Nabeel Sulieman c49fa38e2c Make units controls look the same for touted and non-touted
Rename local functions to "location"
2017-05-31 09:33:50 -07:00
Nabeel Sulieman e940544a2a Use Inches and Ounces as default measurement units when location is in
US
2017-05-31 09:33:19 -07:00
Nabeel Sulieman ce5aff0236 Improve wording of measurement units on shipping page 2017-05-31 09:33:19 -07:00
Jeff Stieler 3ced364583 When checking for North American stores, default location to GeoIP if the option hasn’t been set. 2017-05-31 09:31:59 -07:00
Jeff Stieler 736d3e9f94 Remove “taxes” from shipping step naming. 2017-05-31 09:31:59 -07:00
Jeff Stieler d60a4fc1da Add missing name to WooCommerce Services plugin installation info. 2017-05-31 09:31:59 -07:00
Jeff Stieler 7dcaff3e39 Handle update of weight/dimension units in the wizard shipping step instead of locale. 2017-05-31 09:31:59 -07:00
Jeff Stieler 466cee9fc9 Update tax rates upon store location change. 2017-05-31 09:31:59 -07:00
Jeff Stieler 86f6921ced Handle SCRIPT_DEBUG config for setup wizard script includes. 2017-05-31 09:31:59 -07:00
Jeff Stieler f52eab71d2 Update wizard shipping step copy to match latest designs. 2017-05-31 09:31:58 -07:00
Jeff Stieler 42dfdc7e3c Schedule single install event for WooCommerce Services when saving the shipping step. 2017-05-31 09:31:58 -07:00
Jeff Stieler cd15b6fbc6 Fix shipping enable input name. 2017-05-31 09:31:58 -07:00
Jeff Stieler 1492c50373 Add skip/continue buttons back to wizard shipping step. 2017-05-31 09:31:58 -07:00
Jeff Stieler b52b38ecb0 Properly translate strings on the shipping wizard step. 2017-05-31 09:31:57 -07:00
Jeff Stieler 6111437750 Only show WooCommerce Services tout when the store is in North America. 2017-05-31 09:31:57 -07:00
Jeff Stieler 0a63b83c7c Move dimension and weight inputs to shipping step. 2017-05-31 09:31:57 -07:00
Nabeel Sulieman 1122faf760 Implement WooCommerce Services NUX in Setup Wizard:
- Rename "shipping locale" to "shipping location"
- Move tax setup to to shipping location page
- Rename shipping & taxes to just shipping
- Implement radio button selection to enable/disable shipping
- Add checkbox for installing WooCommerce services
- Start updating wc-admin css and javascript
2017-05-31 09:31:57 -07:00
Mike Jolley fc4a9d185e Move changes after set name 2017-05-31 16:28:55 +01:00
Jeff Stieler c212725053 Use WC_Install class to install/activate WooCommerce services from the Extensions page. 2017-05-31 09:27:19 -06:00
Jeff Stieler d8e508842d Allow all aspects of the WCS banner block to be overwritten by JSON data. 2017-05-31 09:27:18 -06:00
Jeff Stieler 9b6b4928a6 Show WCS banner on extensions page for both USA and Canada. 2017-05-31 09:27:18 -06:00
Jeff Stieler 0293884660 PHP 5.2+ compatibility - don’t use array dereferencing. 2017-05-31 09:27:17 -06:00
Valerie e7672d6572 Enable WCS banner on shipping extension page 2017-05-31 09:27:17 -06:00
Valerie 3b689b5da9 Enable WCS banner on featured extension page 2017-05-31 09:26:17 -06:00
Valerie 870e3ddea2 Add WCS banner addons block markup 2017-05-31 09:26:17 -06:00
Claudio Sanches bc3c7f6bbd Merge branch 'master' into fix/15315 2017-05-31 11:59:49 -03:00
Mike Jolley 6883b49e81 Atom sucks 2017-05-31 15:57:49 +01:00
Claudio Sanches d9e946491f Merge pull request #15357 from woocommerce/fix/15274-meta
Add ability to invalidate cache by object ID
2017-05-31 11:53:53 -03:00
Claudio Sanches 933386f272 Merge pull request #15371 from woocommerce/fix/15365
Add failed to processing for the processing email
2017-05-31 11:52:12 -03:00
Mike Jolley d8edc8a965 Always map 2017-05-31 15:07:07 +01:00
Mike Jolley eda55579b7 Merge pull request #15373 from woocommerce/feature/product-csv-import-export
Product CSV Import Export
2017-05-31 13:57:37 +01:00
Mike Jolley 21300951f1 Fix tests due to generated names 2017-05-31 13:48:28 +01:00
Mike Jolley 32ab4fb47f Merge pull request #15360 from woocommerce/fix/15228
Store user ID and use that to determine if the session should be loaded or not.
2017-05-31 13:03:29 +01:00
Mike Jolley 532ddfa6b0 Merge conflicts 2017-05-31 12:23:52 +01:00
Mike Jolley e185d5572b Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests 2017-05-31 12:19:58 +01:00
Mike Jolley 72ddb1f23d Merge branch 'feature/product-csv-import-export' into feature/15302
# Conflicts:
#	includes/export/class-wc-product-csv-exporter.php
2017-05-31 12:13:42 +01:00
Mike Jolley cb59bd0487 Merge pull request #15351 from woocommerce/fix/15329
Use get_max_purchase_quantityin cart template and fix logic
2017-05-31 11:39:53 +01:00
Mike Jolley 56ffa3d2aa Merge pull request #14706 from crodas/make_get_item_consistent
Make get item consistent
2017-05-31 11:10:09 +01:00
Mike Jolley 23315a6930 Add failed to processing for the processing email
Fixes 15365
2017-05-31 10:12:24 +01:00
Claudio Sanches 51ddc36080 Skip empty attributes and reset indexes 2017-05-30 19:26:31 -03:00
Claudio Sanches 4a98844bb8 Shows if attribute is visible in exported data 2017-05-30 18:58:45 -03:00
Claudio Sanches d6fb028481 Allow import and create new global attributes 2017-05-30 18:46:32 -03:00
Claudio Sanches 96fe919535 Added column in exported data to indicate if attribute is global 2017-05-30 18:06:56 -03:00
Claudio Sanches 64a60de24f Merge pull request #15353 from woocommerce/fix/15245
Set all legacy data
2017-05-30 17:58:28 -03:00
Claudio Sanches b8a2815ae5 Merge pull request #15358 from woocommerce/fix/15356
Only delete if the object has an ID
2017-05-30 17:48:22 -03:00
Mike Jolley 85b8d8661a Merge pull request #14595 from woocommerce/feature/helper
Helper: First pass at merging the Helper plugin into WooCommerce
2017-05-30 20:39:08 +01:00
Konstantin Kovshenin aa6353bfa1 Helper: Clean up navigation/headings, remove some noop markup. 2017-05-30 22:26:33 +03:00
Claudio Sanches fb81994855 Fixed downloads URLs in the CSV parser 2017-05-30 15:01:48 -03:00
Claudio Sanches 40c2b471f5 Grouped products after cross sells as in the admin screen 2017-05-30 14:50:54 -03:00
Konstantin Kovshenin 1dc7e507b1 Helper: Redesign (work in progress) 2017-05-30 20:50:14 +03:00
Claudio Sanches 18bb025eaf Fixed exported images 2017-05-30 14:33:17 -03:00
Konstantin Kovshenin 556c2cf84c Helper: Add tabbed interface to WooCommerce > Extensions 2017-05-30 19:46:26 +03:00
Claudio Sanches 73e34b583f Fixed generic stock mapping 2017-05-30 13:04:16 -03:00
Mike Jolley 60def8cde0 Store user ID and use that to determine is session data should overwrite user data. 2017-05-30 17:03:55 +01:00
Claudio Sanches ffd248f19d Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests 2017-05-30 13:03:17 -03:00
Mike Jolley 3dd7cbf59b Revert d570a81241 2017-05-30 16:54:37 +01:00
Claudio Sanches 9556e248a4 Missing tax class 2017-05-30 12:52:29 -03:00
Cesar Rodas 001cf94ff3 Fixed typo 2017-05-30 10:37:29 -04:00
Mike Jolley ed32f9c792 Only delete if the object has an ID 2017-05-30 14:44:28 +01:00
Mike Jolley 2366a036e3 Add id cache group to invalidate by ID 2017-05-30 14:37:29 +01:00
Mike Jolley f6b9c57b5b Invalidate by ID 2017-05-30 14:37:16 +01:00
Mike Jolley 2346af1816 Update title if changed
This could be the result of a term name changing, parent changing etc.

Fixes #15315

May degrade performance if reading many variations.
2017-05-30 13:20:36 +01:00
Mike Jolley fe3406ceec Set all legacy data
Fixes #15245
2017-05-30 12:36:20 +01:00
Mike Jolley 7529e1ac26 Merge branch 'pr/15304' 2017-05-30 11:56:10 +01:00
Mike Jolley 4ea9138d3e Code and test improvements 2017-05-30 11:54:31 +01:00
Mike Jolley 9880879ebb Merge pull request #15348 from davefx/patch-1
Add new filter woocommerce_logger_log_message
2017-05-30 11:37:18 +01:00
Mike Jolley 38bcdcfb28 Use get_max_purchase_quantityin cart template and fix logic
Closes #15329
2017-05-30 11:02:56 +01:00
Mike Jolley ef52345f1b Merge pull request #15337 from aelia-co/fix-issue-15336
Fix for #15336
2017-05-30 10:38:31 +01:00
David Marín f421939a3e Add new filter woocommerce_logger_log_message
It replicates the filter for the deprecated add logger function in the equivalent log function.
2017-05-30 09:55:10 +02:00
claudiulodro 7cf62bb023 Set up and add extra mappings 2017-05-29 11:16:44 -07:00
Cesar Rodas 8c67ae6a7a Make `get_item` to rely no `get_items` 2017-05-29 12:38:25 -04:00
Claudiu Lodromanean 2fb8f4b6b0 Merge pull request #15331 from woocommerce/fix/14759
Format parent stock qty on read
2017-05-29 08:24:15 -07:00
Claudio Sanches 7f4c650c87 Merge pull request #15334 from woocommerce/fix/15322
Ensure we have child before getting price
2017-05-29 12:02:01 -03:00
Claudio Sanches c73461f440 Merge pull request #15332 from woocommerce/fix/15307
Hide replies from recent reviews widgets
2017-05-29 12:00:57 -03:00
Diego Zanella b14a2db2e6 Fix for #15336
* Replaced reference to `WC()->payment_gateways` property with call to `WC()->payment_gateways()` method.
2017-05-29 13:02:16 +01:00