Commit Graph

205 Commits

Author SHA1 Message Date
Mike Jolley 3fe7df6515 When searching, disable WC sort order
Closes #14292
2017-04-12 12:42:55 +01:00
Mike Jolley 57f733388c Unused variable 2017-03-27 17:32:00 +01:00
Mike Jolley dea59579bb description changes, and usage of ID's instead of IDs 2017-03-20 15:47:51 +00:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Aristeides Stathopoulos 10ffc92a73 Inline control structures are not allowed 2017-03-07 22:24:24 +02:00
Claudio Sanches 7baaeaafd0 Public WC()->query->get_endpoints_mask() #13179 2017-02-15 12:30:23 -02:00
Kathy Darling f29c51497e add woocommerce_get_query_vars filter 2017-02-13 12:22:05 -06:00
Frédéric Demarle e03000126e Check SHOP_IS_ON_FRONT existence before defining it 2017-01-29 21:32:26 +01:00
Claudio Sanches 539099c7d7 Include $endpoint in woocommerce_endpoint_X_title filter #12676 2016-12-25 20:43:25 -02:00
Guido Scialfa 440d407ce5 Move the 'woocommerce_endpoint_' . $endpoint . '_title' filter outside of the default condition, let's filter the titles regardless of the endpoint 2016-12-22 15:25:22 +01:00
Mike Jolley 8bd08e4c21 typos 2016-12-09 17:04:44 +00:00
Mike Jolley e0e0c9e832 Replace rating filters with taxonomy 2016-12-09 15:43:25 +00:00
Mike Jolley 767a1e500e Helper to get term ids 2016-12-08 17:01:39 +00:00
Mike Jolley 47fbae4d26 Product Visibility Taxonomies (#12527)
* Convert visibility and featured to taxonomy

* Comment

* Add missing tax_queries

* Only check SKU after read.

* Added visibility term for outofstock products to speed those queries up al

* wc_bool_to_string
2016-12-08 10:56:45 +00:00
Mike Jolley d7dfdd3d10 Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
Mike Jolley ea80897195 This is no longer needed #12272 2016-11-21 12:01:04 +00:00
Mike Jolley 2bcd3b9166 Improved layered nav counts on attribute archives.
Closes #12272
2016-11-21 11:50:40 +00:00
Krzysztof Grabania 4711066490 Removed empty string param in _deprecated_function function (#12301)
`_deprecated_function` has conditional which is checking if third param (replacement) is null. Passing replacement as empty string to this function will fail this test and the end of triggered error will look like this: `Use instead.` instead of `with no alternative available.`. This PR removes all occurrences of empty strings in this function.
2016-11-10 10:17:32 +00:00
Rami Yushuvaev 93d55dade9 add translators comments 2016-10-29 20:32:38 +03:00
Mike Jolley 83aa330621 Enforce loop_shop_post_in array 2016-10-24 07:51:48 +01:00
Claudio Sanches 21f7bfe7bc Fixed price meta_query 2016-10-14 11:19:20 +01:00
Claudio Sanches 8339e9ca25 Introduces wc_get_min_max_price_meta_query() function 2016-10-14 11:19:20 +01:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Aristeides Stathopoulos 734f284fa4 WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos 2346c3b735 Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace 2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos 6c30f84fa2 WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys 2016-08-27 06:23:21 +03:00
Aristeides Stathopoulos 58b9df6564 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis 2016-08-27 05:23:54 +03:00
Mike Jolley 747c48c13b Sort by rating with meta
Closes #11711
2016-08-18 11:33:19 +01:00
Claudio Sanches 35c499aa81 Fixed product archive on front #11500 2016-07-29 18:46:39 -03:00
Mike Jolley 0e1a2d9d04 Removed verbose page rule handling in pre_get_posts
#11500
2016-07-26 13:37:51 +01:00
Mike Jolley d326930d89 Helper to generate search sql 2016-07-19 14:09:31 +01:00
Claudio Sanches ec1c30283f Make easy to remove meta query items, closes #11339 2016-07-11 15:48:47 +02:00
Claudio Sanches 18b1b8c238 Disable empty my account endpoints, closes #11274 2016-06-30 13:58:10 -03:00
Claudio Sanches f8377fd55b Removed dead variable 2016-06-30 02:21:11 -03:00
Mike Jolley b188ad8250 Fix product feed when using shop base 2016-06-21 12:46:39 +01:00
Claudio Sanches 67b2b26c8e Allow top level endpoints only when using a page on the front end
This prevents conflicts when having pages with the same name than
endpoints.
2016-06-17 17:12:42 -03:00
Mike Jolley c8f55cfb8d Layered nav counts when term_id does not match term_taxonomy_id (before splitting).
@claudiosmweb this was a massive pita to fix
2016-06-15 19:20:50 +01:00
Mike Jolley 8441b5085b Layered nav - When getting counts, consider product cat and tag
#11123
2016-06-15 00:07:14 +01:00
Mike Jolley 1185333b56 Move legacy API code into WC_Legacy_API
@claudiosmweb to keep legacy api separated from the new REST API code.
2016-06-07 11:03:16 +01:00
Claudio Sanches e39274e753 HTTPS for everybody 2016-05-26 22:48:49 -03:00
Mike Jolley cc41c38ff8 Tweak page titles on account pages 2016-05-24 19:09:07 +01:00
Mike Jolley 75d10abd16 Order by date and ID
Fixes #10493
2016-03-08 12:54:07 +00:00
Justin Shreve 5d8967c7d7 Prepare a list of payment methods for output on the payment methods "my account" page. 2016-03-01 11:49:40 -08:00
Mike Jolley 8345f67f6c Tweak price filter + code comments
#10371
2016-02-22 13:23:25 +00:00
Claudio Sanches 2de00c61ff Added account endpoint for customer payment methods 2016-02-16 13:57:46 -02:00
Claudio Sanches d193caa987 Better pagination for account > orders 2016-02-16 13:50:06 -02:00
Claudio Sanches e9b5653f0b Created new filter for endpoint title and improved woocommerce_my_account_*_endpoint filter 2016-02-16 13:50:06 -02:00
Claudio Sanches 02e3c6362d Created my account > orders template 2016-02-16 13:50:06 -02:00
Claudio Sanches a8c390dae1 Include orders and downloads endpoints 2016-02-16 13:50:06 -02:00
Mike Jolley bc83a04c6c Feedback from Justin 2016-02-11 11:13:48 +00:00
Mike Jolley 0dba78acc0 Remove use of global 2016-02-10 10:19:32 +00:00
Mike Jolley 50407eb478 Run layered nav logic always 2016-02-10 10:08:44 +00:00
Mike Jolley 6bdd12d960 Rating counts 2016-02-10 10:02:50 +00:00
Mike Jolley 236c063cc2 Tidy 2016-02-09 23:11:38 +00:00
Mike Jolley d23c316326 Refactor queries to use WP_QUERY only 2016-02-09 21:14:55 +00:00
Mike Jolley 75cbb74520 Rating widget standards 2016-02-09 15:18:27 +00:00
Mike Jolley cae1fe6b85 Refactors/improvements to layered nav to support slugs
#7806
2016-02-09 14:41:17 +00:00
Mike Jolley 1ca9d8fbdc Merge pull request #9665 from seriusokhatsky/master
Slugs instead of IDs for layered nav by terms
2016-02-09 12:16:05 +00:00
Mike Jolley 628d791343 Price filter floats
Closes #10266
2016-02-04 16:53:17 +00:00
Serg ef867131e0 Change layered nav filters by ID to SLUG field 2016-01-19 10:15:42 +03:00
Mike Jolley 25ea52dec1 Merge branch 'pr/10078' 2016-01-15 09:51:48 +00:00
Mike Jolley 2c7501944b Use post_ids terminology to reflect whats being queried 2016-01-15 09:51:42 +00:00
Taylor Lovett 8702f806ad Add layered nav query posts filter 2016-01-15 00:47:52 -05:00
Taylor Lovett b4fda08091 Add unfiltered product ids filter 2016-01-15 00:36:11 -05:00
Mike Jolley 29058e47d1 Fix comparison types 2016-01-14 15:25:23 +00:00
Mike Jolley 133e7686b5 Stop canonical redirect breaking front page endpoints
Fixes #10062
2016-01-13 11:01:08 +00:00
Mike Jolley 0d569948fd spacing 2016-01-13 10:33:07 +00:00
Fredrik Forsmo 31cb32dc36 Improve docblock comments in WC_Query class
* Added comments to `add_query_vars`, `search_post_excerpt`,
`wpseo_metadesc`,  `wpseo_metakey` and `order_by_rating_post_clauses`
2016-01-06 16:17:26 +01:00
Mike Jolley 05ee7b2a91 Merge pull request #9782 from tjuris/master
use float values for price filter when taxes are not included in prices
2015-12-14 12:42:11 +00:00
Mike Jolley 77714623cf Remove post type archive title on front page
Closes #9812
2015-12-10 10:42:56 +00:00
Tanel Jüris 0f18b5f269 use float values for price filter when taxes are not included in prices 2015-12-07 13:04:10 +02:00
roykho c7aed861cd Fix invalid orderby key name for orderby pricing closes #9584 2015-11-17 07:59:53 -08:00
Ibrahim Ibn Dawood 91119e05c2 hooked rating_filter_init to init 2015-11-13 15:13:48 +05:30
Ibrahim Ibn Dawood 8deac2c563 added rating_filter method to WC_Query 2015-11-13 15:11:44 +05:30
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Serg 98523c8dd4 Add woocommerce_is_price_filter_active filter to Query class 2015-10-05 11:53:24 +03:00
Claudio Sanches 0966fedb12 Moved JS vendor libraries for our own directories #8488 2015-10-01 15:46:08 +02:00
Dominic 358336546e Check specifically for Post IDs in WC Query
The `WP_Query::queried_object_id` property can reference either a post
or a term ID. This way, we ensure that we are check for posts only.
2015-09-07 02:17:01 -07:00
Jack Gregory e75b462e86 add woocommerce_is_layered_nav_active filter 2015-09-03 15:09:21 +01:00
Mike Jolley c5cba283ed Remove numbered arguments from queries 2015-08-07 11:37:19 +01:00
Claudio Sanches 9e41552342 Removed all "@return void" 2015-07-16 16:55:48 -03:00
Claudio Sanches fa026ea49d Normalize the "Order #" #8305 2015-06-10 12:09:18 -03:00
Mike Jolley fe58e1b5e9 Account for tax classes 2015-06-09 14:58:27 +01:00
Claudio Sanches e6ae10ee9a Test 2015-05-29 10:01:43 -03:00
Nicola Mustone d2af01df5b scrutinizer suggested tweaks 2015-03-27 16:15:40 +01:00
Mike Jolley 88be174037 [2.3] Support price filter min or max only.
Closes #7743
2015-03-17 15:34:15 +00:00
Mike Jolley efb0b7f72f Fix query redirects
Fixes #7703
2015-03-13 10:33:38 +00:00
Claudio Sabatini f21ff35f8c Update class-wc-query
Added option that control if prices include tax for filtering
2015-03-06 11:32:30 +01:00
claudiosan b7d98bf53a Update class-wc-query - Filter prices when tax not included
Fixing filter price widget when prices are without taxes
2015-03-06 10:59:02 +01:00
Mike Jolley d9455994c8 Use 30 days instead of year for transients to avoid bugs in memcache plugins.
Closes #7520
2015-02-24 12:02:56 +00:00
Bryce 888622a621 Fix fatal error on /my-account/view-order/ endpoint
When no order number is set this causes a fatal error. This check for
the $order object should be sufficient.

Closes #7301
2015-02-05 12:55:33 +07:00
Mike Jolley 725d5e28d8 Additional tweaks to @b2c573ed8a04a8d425a73e018a450179514cbdc7
- Load API with other includes
- Register activation hook early
- Include autoloader early

cc @claudiosmweb
2015-01-28 17:50:58 +00:00
Mike Jolley 1c696a10d3 Dev - Moved WC_Cart::get_cart_from_session() to a later hook (was init, now wp_loaded).
Closes #6873
2015-01-05 14:43:04 +00:00
Mike Jolley 56e0e0dc55 Add special wc_query variable when querying products. #6444 2014-12-09 10:21:50 +00:00
Mike Jolley 2f66bbd8c0 woocommerce_price_filter_meta_keys filter to allow plugins to define min/max meta keys that require searching
Closes #6492
2014-12-09 08:33:33 +00:00
Mike Jolley 508bfd5c06 Merge branch 'breadcrumbs-class'
Adds endpoint page titles for #5522
Fixes link back to endpoint pages and closes #6638
Avoids need for breadcrumb fix which closes #6834
Removes the need and closes #6834
Fixes #6840
2014-12-05 13:42:19 +00:00
claudiosmweb 8eeb6fc204 Removed more some unused code 2014-11-19 22:43:09 -02:00
Mike Jolley 2294135bff Rename touch punch to stop grunt breaking minify 2014-10-23 14:38:19 +01:00
Mike Jolley 98361804e6 Merge pull request #5767 from IAmJulianAcosta/touch-compability
Price filter widget touch compability
2014-10-10 12:16:18 +01:00