Commit Graph

1481 Commits

Author SHA1 Message Date
Jesper V Nielsen 8799de8477
fix-missing-colon 2018-10-12 09:43:43 +02:00
Jesper V Nielsen 1e8692aeb1
allow-filtering-on-wiget-get_current_page_url
Allow for filtering on get_current_page_url() in widgets, to make it possible to extend the parameteres, and keep them.

If building some functionality, where wee work with the parameters in the url, they will be removed, when using the links produced by wc_widget - for example the layered nav, or the price range.

With the filter, we kan add out custom parameter, to the url generated by these widgets.
2018-10-12 08:53:46 +02:00
Claudiu Lodromanean f1a7792454
Merge pull request #21403 from woocommerce/fix/21294
Fix attributes bugs
2018-09-28 08:24:03 -07:00
claudiulodro 178f98ff65 Fix attribute saving 2018-09-19 11:35:46 -07:00
Ewout Fernhout 9c411dc532
Fixes #21345 2018-09-13 15:23:00 +02:00
Claudio Sanches 61873627a7 Merge branch 'master' into feature/rest-api-v3 2018-09-10 19:16:22 -03:00
Rodrigo Primo 4d2530ef45 Fix: product attributes cache should work when non-ASCII characters are used
This commit fixes an issue in the code that sets product attributes that was breaking product attributes cache removal when non-ASCII characters are used in the attribute name. For more information see https://github.com/woocommerce/woocommerce/issues/21026#issuecomment-412111740
2018-08-15 13:24:33 -03:00
Rodrigo Primo fef0cd48ea phpcs fixes 2018-08-15 13:24:09 -03:00
Claudio Sanches 7d07d52279 Allow _fields 2018-07-24 15:52:48 -03:00
Claudiu Lodromanean 87acfa731d
Merge pull request #20260 from leglesslizard/master
Set low stock notification threshold per product
2018-07-24 10:23:15 -07:00
Khan M Rashedun-Naby 25ab294d40 Unnecessay Spaces Removed 2018-07-19 10:33:22 +06:00
Claudio Sanches 99840c3914 Merge branch 'master' into feature/rest-api-v3 2018-07-12 16:07:57 -03:00
Claudio Sanches 9b7fbff544
Merge pull request #20686 from woocommerce/fix/20673
Replaced query attribute placeholder with actual value for header link.
2018-07-10 15:22:30 -03:00
Claudiu Lodromanean e8a2e19b27
Merge pull request #20648 from woocommerce/update/crud-get-image
Custom tables: Get image from ID, not post thumbnail
2018-07-09 11:04:52 -07:00
Joey Gilham 58cdd7dad2
Merge branch 'master' into master 2018-07-03 15:41:15 +01:00
Peter Fabian 70d876d122 Replaced query attribute placeholder with actual value for header link. 2018-07-02 16:02:54 +02:00
Mike Jolley ddb779e917 Check type correctly 2018-06-29 11:22:03 +01:00
Mike Jolley a6c5065718
Merge pull request #20633 from aelia-co/tweak-shipping_method_add_rate_filter
Added new filters when adding shipping rates
2018-06-28 14:29:28 +01:00
Mike Jolley 64b589f032 Get image from ID, not post thumbnail 2018-06-28 13:10:25 +01:00
Diego Zanella 9c9bdb0b2e Changed prefix for new filters to "woocommerce_shipping_method_" 2018-06-27 22:00:25 +01:00
Claudiu Lodromanean 2a3cedddcd
Merge pull request #20520 from woocommerce/feature/product-custom-tables-supporting-changes
Product custom tables supporting changes
2018-06-27 08:57:50 -07:00
Diego Zanella ab3b6b5433 Fixed call to filter woocommerce_shipping_add_rate_args 2018-06-27 16:09:22 +01:00
Diego Zanella 25817b9236 Added new filters when adding shipping rates
Ref. https://github.com/woocommerce/woocommerce/issues/20632
2018-06-26 20:15:54 +01:00
Bharat Kambariya fdeadcdbea fix param doc for update_meta and add_meta fn. 2018-06-21 11:47:18 +05:30
Claudiu Lodromanean ec5fcc333e
Merge pull request #20573 from woocommerce/fix/20521
Update status based on stock, always
2018-06-19 07:41:55 -07:00
Mike Jolley 0cee6a69b0 Update status based on stock, always 2018-06-19 13:35:17 +01:00
Joey cd8416122f removed low stock options for variations, and addressed changes 2018-06-19 12:40:27 +01:00
David Marín f28b00d5df
Fixing bug: I was casting the wrong value 😖 2018-06-19 13:31:48 +02:00
Gerhard Potgieter 90387e7d7e Revert "Deprecate manage_stock methods in favor of stock_status methods."
This reverts commit 2d9c058876.
2018-06-19 11:54:07 +02:00
Gerhard Potgieter 2d9c058876 Deprecate manage_stock methods in favor of stock_status methods.
Closes https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/100
2018-06-19 11:35:57 +02:00
David Marín 6649569aa2
Update abstract-wc-settings-api.php 2018-06-19 07:12:39 +02:00
David Marín 597ba7df98
Cast multiselect keys as strings 2018-06-19 06:41:44 +02:00
Rodrigo Primo b6e73f528b Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-06-15 14:56:31 -03:00
Claudiu Lodromanean 25be9fc13c
Merge pull request #20546 from woocommerce/fix/20509
Normalize parent tax class
2018-06-15 09:23:27 -07:00
Risto Niinemets 174fd95765 fix undefined index attribute in layered nav widget without attributes (#20544) 2018-06-15 15:20:21 +01:00
Mike Jolley a8e2eaee2a Normalize parent tax class 2018-06-15 11:35:22 +01:00
Claudiu Lodromanean 4c47574d7c
Merge pull request #20533 from woocommerce/fix/20505
Round items for order total
2018-06-14 09:11:57 -07:00
Claudiu Lodromanean cdee048337
Merge pull request #20531 from woocommerce/fix/20519
Shipping tax may be a string, so cast it
2018-06-14 08:25:09 -07:00
Mike Jolley 893e6affb1 Revert this change - no issue, just keeping diff small 2018-06-14 12:56:21 +01:00
Mike Jolley 90c90591f3 Round items for order total 2018-06-14 12:52:13 +01:00
Mike Jolley aa4a89f92d Shipping tax may be a string, so cast it
Fixes #20519
2018-06-14 11:49:45 +01:00
Mike Jolley 812586742b Allow only valid default attributes 2018-06-13 14:33:13 +01:00
Mike Jolley cfe1cb5c16 Handle login and change events 2018-06-12 15:32:01 +01:00
Mike Jolley 10a5779fd1 wp_localize_script 2018-06-12 14:57:44 +01:00
Mike Jolley 52a7fafd74 Search for matching keys when updating meta data 2018-06-11 12:50:49 +01:00
Joey 98e44092e7 updating suggested changes 2018-06-07 14:37:06 +01:00
Claudiu Lodromanean 839d52d153
Merge pull request #20390 from woocommerce/fix/20369
Clear needs_processing transient when adding a product to an order
2018-06-05 06:56:14 -07:00
TheDramatist 1d923bd7a0 WC_Abstract_Privacy PHPDoc Fixed (#20368)
* WC_Abstract_Privacy PHPDoc Fixed

* Unnecessary spaces removed
2018-06-05 13:29:20 +01:00
Mike Jolley 813db4c7f1 Clear needs_processing transient when adding a product to an order 2018-06-05 11:28:45 +01:00
Diego Zanella 18731221fa Added order to "woocommerce_order_is_vat_exempt" filter arguments 2018-06-04 11:01:15 +01:00
Joey b08b55a651 added changes for low stock notifications per product 2018-05-27 05:40:58 +01:00
Mike Jolley a05059f3eb redundent check 2018-05-24 20:44:02 +01:00
Mike Jolley 4cdae90aa4 Avoid new method
Co-Authored-By: grola <grola@users.noreply.github.com>
2018-05-24 20:41:20 +01:00
Mike Jolley 974d33eb85 Prevent action running for non-instance screens
Co-Authored-By: grola <grola@users.noreply.github.com>
2018-05-24 20:35:48 +01:00
Claudio Sanches fc6da6d4ee Introducing inline documention to WC_REST_Controller 2018-05-22 13:44:00 -03:00
Marcin Bot 5130edf566 WC_Abstract_Privacy allow to specify filters' priority 2018-05-18 16:07:36 +01:00
Mike Jolley d25bd2dd33 Fix rounding of line items for orders 2018-05-15 23:18:39 +01:00
Claudiu Lodromanean 7a6b0d8cf5
Merge pull request #19934 from woocommerce/fix/19819
Add protocol to URLs for thumbnails in cart.
2018-05-09 10:09:17 -07:00
Mike Jolley 14cbf7b0f0 Pass scheme without hyphen 2018-05-09 17:06:34 +01:00
Claudiu Lodromanean ec02a133a3
Merge pull request #20021 from woocommerce/fix/19967
Switch stock status when manage stock gets changed and qty is sufficient.
2018-05-09 07:21:59 -07:00
Peter Fabian 424213bc17 Applied the filter inside the function.
Added optional scheme parameter and @since docstring according to the code review.
2018-05-09 09:42:28 +02:00
Mike Jolley 3b5dfcb80b Settings API should force autoload on by default. 2018-05-08 11:12:40 +01:00
Peter Fabian 8a8f085dcf Added back extra parameter for backwards compatibility. 2018-05-08 10:16:53 +02:00
Peter Fabian c2493310d9 Switch stock status when manage stock gets changed.
As the stock quantity might be saved in the database from previous settings, stock_status needs to be in sync if qty is > 0.
2018-05-07 16:01:59 +02:00
Mike Jolley 8d6bbabc58
Merge pull request #19929 from woocommerce/fix/19924-parent-id-0-categories
Parent:0 terms via API PUT/POST
2018-05-04 18:56:15 +01:00
Gerhard Potgieter c2dbc0c887 Keep taxonomy_hierarchical test in place 2018-05-04 08:50:14 +02:00
Peter Fabian 92180d2b42 Add scheme to widget id when caching objects.
This should prevent cache from serving mixed content when widget cache is preloaded with http version, then accessed via https.
2018-05-03 14:10:04 +02:00
Boro Sitnikovski 194dba40e2 Make sure devs pass their own unique ID and use localisation for constructor 2018-05-03 10:47:30 +02:00
Boro Sitnikovski 1cfa6c6e4e Per discussion with Mike, use id when adding exporters/erasers 2018-05-03 10:36:11 +02:00
Boro Sitnikovski 0d981a000a Update abstract class to use associative arrays 2018-05-03 10:08:29 +02:00
Gerhard Potgieter a43ac9acae No need to do checks of parent, WordPress does all the checks when running wp_insert_term and wp_update_term 2018-05-03 08:19:16 +02:00
Peter Fabian 8789642fb9 Add protocol to URLs for thumbnails in cart.
Removed wc_get_relative_url(), as it's not used anymore.
2018-05-02 14:34:50 +02:00
Mike Jolley 2e78259452 Compatibility with 4.9 branch 2018-05-02 11:45:02 +01:00
Gerhard Potgieter 992a46c513 Do not unset parent_id when 0 but actuall handle 0 as it can be passed to wp_insert_term. 2018-05-02 12:19:56 +02:00
Gerhard Potgieter 61e624b937 Allow parent:0 param passing when updating a term via the API 2018-05-02 08:44:06 +02:00
Gerhard Potgieter 2124972232 If 0 is supplied as parent ID simply remove it before creating the term. 0 means no parent. 2018-05-02 08:31:28 +02:00
Mike Jolley f59acf1350 Merge branch 'master' into update/erasure-requests 2018-05-01 13:46:53 +01:00
Mike Jolley e6eaa4f83c Fix colorpicker styling 2018-04-26 12:21:17 +01:00
Mike Jolley 091d5326f2 Update abstract class and privacy code 2018-04-26 11:29:51 +01:00
Boro Sitnikovski 92cd1ec0d8 Abstract out privacy class so that extensions can easily re-use it 2018-04-25 02:13:59 +01:00
Mike Jolley 314d949d2c Background process to cleanup 2018-04-17 15:21:03 +01:00
Mike Jolley d8814f9381 tip alignment 2018-04-17 12:19:01 +01:00
Mike Jolley 094fc1bf3a
Merge pull request #19703 from woocommerce/update/settings-tabs-for-privacy
Moved around settings tabs to allow for a privacy page
2018-04-16 16:45:19 +01:00
Mike Jolley 1b34cd4745 Moved settings tabs around to allow for privacy page. 2018-04-12 16:59:42 +01:00
JeroenSormani 4e6b0dc500 Doc improvements (return types mostly) 2018-04-12 09:10:14 +02:00
Claudio Sanches 900c8fc33f
Merge pull request #19380 from woocommerce/update/19302
Override supports for PayPal to see if credentials exist
2018-04-06 15:44:42 -03:00
Brian Henry b6f1f68a00
Documentation punctuation fixes: its = posessive 2018-04-05 19:45:14 -07:00
Mike Jolley 5ac7aac369 Improve can_refund_order and add unit tests 2018-04-03 17:09:09 +01:00
Mike Jolley d02106f697 Merge branch 'master' into pr/18596 2018-04-03 16:24:19 +01:00
Mike Jolley 51d634e29a Ensure background process class returns `data` as an array
Fixes #19524
2018-03-29 11:09:41 +01:00
Claudio Sanches b0617a13c4 Removed unnecessary ternary operators 2018-03-21 20:05:19 -03:00
Claudio Sanches 0660a50e07 Removed obvious boolean results 2018-03-21 19:57:10 -03:00
Claudiu Lodromanean b6c1a9d2c1
Merge pull request #19220 from woocommerce/fix/19218
Only append tax label if taxes are enabled
2018-03-05 09:26:10 -08:00
Gerhard Potgieter 5075fb4964 PHPCS passing for abstract-wc-widget.php 2018-03-05 15:21:04 +02:00
Gerhard Potgieter 17f013b5b1 PHPCS passing for abstract-wc-shipping-method.php 2018-03-05 15:08:55 +02:00
Gerhard Potgieter f56c6366c1 PHPCS passing for abstract-wc-settings-api.php 2018-03-05 15:01:21 +02:00
Gerhard Potgieter d968621afb PHPCS passing for abstract-wc-session.php 2018-03-05 15:00:52 +02:00
Gerhard Potgieter ba1e7d1e99 PHPCS passing for abstract-wc-rest-shipping-zones-controller.php 2018-03-05 14:59:35 +02:00
Gerhard Potgieter 74ec8a4a14 PHPCS passing for abstract-wc-rest-posts-controller.php 2018-03-05 14:58:28 +02:00
Gerhard Potgieter fb3afa672d PHPCS passing for abstract-wc-rest-crud-controller.php 2018-03-05 14:55:17 +02:00
Gerhard Potgieter 5dcfeac7c1 PHPCS passing abstract-wc-rest-controller.php 2018-03-05 14:52:49 +02:00
Gerhard Potgieter 7f2362aab1 PHPCS passing abstract-wc-product.php 2018-03-05 14:46:34 +02:00
Gerhard Potgieter cb87a0ee54 PHPCS passing for abstract-wc-payment-token.php 2018-03-05 13:54:54 +02:00
Gerhard Potgieter 940ab475d4 PHPCS passing for abstract-wc-payment-gateway.php 2018-03-05 13:48:54 +02:00
Gerhard Potgieter 440358a4f2 PHPCS passing for abstract-wc-order.php 2018-03-05 13:41:04 +02:00
Gerhard Potgieter 9fd043eaea PHPCS passing for abstract-wc-object-query.php 2018-03-05 13:39:05 +02:00
Gerhard Potgieter b3c998b0cd PHPCS passing for abstract-wc-long-handler 2018-03-05 13:36:56 +02:00
Gerhard Potgieter 41958de93d PHPCS passing for abstract-wc-integration.php 2018-03-05 13:34:38 +02:00
Gerhard Potgieter 42978bb031 PHPCS passing for abstract-wc-data.php 2018-03-05 13:29:18 +02:00
Mike Jolley 85450f60ec Merge branch 'master' into pr/18596 2018-03-02 19:31:37 +00:00
Mike Jolley 57cfa72d99 Only append tax label if taxes are enabled 2018-03-02 16:22:54 +00:00
Mike Jolley 58796bf981
Merge pull request #18554 from woocommerce/fix/18545
Flat rate: remove currency symbols
2018-02-22 12:21:49 +00:00
Mike Jolley 69816b9854
Merge pull request #18538 from woocommerce/update/16366
Optimise saving of orders
2018-02-22 12:20:14 +00:00
Claudio Sanches fe83dfdba7 Merge branch 'master' into fix/18545 2018-02-21 19:15:45 -03:00
Boro Sitnikovski 927576edb2 Pass image to get_image_filter as well 2018-02-15 16:22:30 +01:00
Mike Jolley bdd4898946 Set status after order is created/updated. 2018-02-12 11:56:48 +00:00
Claudio Sanches 7615783980 Introduced new methods into WC_Background_Process to complete clean process 2018-02-01 12:02:03 -02:00
Claudio Sanches d74d664f79 Fixed includes 2018-02-01 11:52:14 -02:00
Claudio Sanches 37d25dfaec Introduced new WC_Background_Process abstract class 2018-02-01 11:42:13 -02:00
Manos Psychogyiopoulos e5fe92778c Close optgroup :) 2018-01-25 16:56:16 +02:00
Manos Psychogyiopoulos 3dc5f2a277 Allow optgroup in settings multiselect fields 2018-01-25 16:35:30 +02: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
Boro Sitnikovski e684afc5e6 Update name 2018-01-24 08:46:26 +01:00
Boro Sitnikovski af9441fea5 Add action to hook onto for order recalculation 2018-01-22 15:53:42 +01:00
Mike Jolley 5bd786703e Run sanitize_callback 2018-01-22 14:09:56 +00:00
Mike Jolley 2298f491d1 phpcs 2018-01-22 11:33:15 +00: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
Manos Psychogyiopoulos 009a21af15 Fix exception handling in v2 update_additional_fields_for_object REST API calls 2018-01-10 20:46:02 +00:00
Mike Jolley 2c915ba961 Allow quantities less than 1, but not 0. 2018-01-05 12:48:24 +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 4eaf1afb88 Cleanup session callback. 2017-12-15 15:14:05 +00:00
Mike Jolley df04d0c4a2 phpcs 2017-12-15 15:13:48 +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
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
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 320392fc59 is_visible should ensure product is is not trashed
Closes #18023
2017-12-06 13:47:09 +00:00
Mike Jolley 05e7eaae03 get_meta_data return array values
Closes #17997
2017-12-05 13:14:12 +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 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
urosmil 18e7b25eab Filter for line items in abstract-wc-order.php (#17759)
* Filter for line items in abstract-wc-order.php

When creating custom product class there are places where line items is only value that can be handled. This is one of that places causing subtotal values after checkout not to be calculated and displayed.

* Extension to woocommerce_order_get_items filter

This is extension to filter as get_items() is used for different classes and types. This way it would be possible to distinct which type is called for items.

* Removed filtering inside subtotal function

$types parameter is added as parameter for filter inside get_items() function so previous commit is reverted as there is no need for it.
2017-11-23 10:00:03 +00:00
claudiulodro 5513dc4546 Update with master 2017-11-22 11:02:14 -08:00
Claudio Sanches 69c8a87f41 Display correct deprecated version for hooks 2017-11-22 15:21:32 -02:00
Claudio Sanches 11772ca015 Fixed coding standards 2017-11-22 14:55:12 -02:00