Mike Jolley
46775c2f7d
standards
2017-11-20 12:14:05 +00:00
Alexandre GASNE
0018b4349e
Fix: Apostrophe wrongly escaped for price nav filter and widget nav filters
2017-11-18 20:11:53 +01:00
Gerhard Potgieter
21377fe5a7
input to button for submit in class-wc-widget-layered-nav.php
2017-11-07 10:56:36 +02:00
Gerhard Potgieter
364d266def
PHPCS fixes for class-wc-widget-layered-nav.php
2017-11-07 10:55:27 +02:00
Mike Jolley
a6e5a684d0
Merge branch 'pr/17134'
2017-10-27 16:07:41 +01:00
Mike Jolley
e5038e737e
Standards
2017-10-27 16:07:30 +01:00
Mike Jolley
35f5140e1c
Merge branch 'pr/17137'
2017-10-27 15:59:56 +01:00
Mike Jolley
47bb63733b
Standards
2017-10-27 15:59:47 +01:00
Mike Jolley
2d021e3786
Merge pull request #17077 from grosssmutttr/patch-2
...
Update class-wc-widget-layered-nav.php - Avoid duplicate content
2017-10-27 15:19:48 +01:00
grosssmutttr
1ccec7d156
class-wc-widget-layered-nav.php - Crawling Budget
...
Additional optimization to save up crawling budget.
Added $link = str_replace('%2C', ',', $link); on line 513
https://mydomain.com/produkt-kategorie/my-category/?filter_filter-color=orange,black
If you add another filter it encodes the existing commas:
https://mydomain.com/produkt-kategorie/my-category/?filter_filter-color=orange%2Cblack&filter_manufacturer=adidas&filter_cut=men.children
So sometimes you have "," as seperator and sometimes you have encoded "%2C".
After implementing this pull-request the seperator stays ",":
https://mydomain.com/produkt-kategorie/my-category/?filter_filter-farbe=orange,black&filter_manufacturer=adidas&filter_cut=men.children
This pull request belongs to the optimization https://github.com/woocommerce/woocommerce/pull/17134 to save up crawling budget,
2017-10-11 14:47:00 +02:00
grosssmutttr
d9f0bd5e92
Keep link structure - prevent duplicate content
...
Added asort($current_filter) so the urls always look the same and there are not millions of urls possibilities when adding multiple filters.
Current url example:
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=yellow,brown,blue,red
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=yellow,blue,red,brown
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=blue,yellow,red,brown
...
With asort you only have this url:
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=blue,brown,red,yellow
So it is independent on the sequence a user adds a filter
2017-10-11 08:33:46 +02:00
claudiulodro
f1dac6f3ac
Use esc_js instead of addslashes
2017-10-09 11:37:09 -07:00
claudiulodro
97d7ae7df8
Missing semicolon
2017-10-09 11:16:24 -07:00
claudiulodro
2ccd44afa7
Translate "no matches" message
2017-10-09 11:10:32 -07:00
Claudiu Lodromanean
2b49125b46
Enable clearing for attribute filter widget ( #17093 )
...
* Enable clearing for attribute filter widget
* Multiselect variant doesnt need clear button
* Make code less ugly
2017-10-09 11:21:21 +01:00
grosssmutttr
52beb782c6
Update class-wc-widget-layered-nav.php - Avoid duplicate content
...
Added rel="nofollow" to the filters to avoid duplicate content.
2017-10-05 19:55:10 +02:00
Mike Jolley
ff5228e944
Standardise widget titles and descriptions
...
Follow the same pattern as core WP widgets, including title case.
Avoids terms like ‘layered nav’ which has no real meaning to new users.
2017-08-25 12:07:17 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
claudiulodro
4c4526424a
Remove race condition
2017-07-11 13:21:42 -07:00
Mike Jolley
70420db6fd
Spacing
2017-07-11 11:31:02 +01:00
Mike Jolley
a527a9566b
Add select2 to layered nav
2017-07-10 14:36:47 +01:00
Mike Jolley
0a3856c5cb
Merge branch 'master' into feature-13189
2017-07-10 13:24:42 +01:00
Mike Jolley
67d13874ab
Add transient caching to get_filtered_term_product_counts to reduce large queries
2017-06-16 13:35:31 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Caleb Burks
c4805e41e1
Use Select2 for layered nav
...
WIP
2017-02-24 02:18:38 -06:00
Diego Zanella
de02645544
Improved filter `woocommerce_layered_nav_link`
...
* Added term and taxonomy as additional parameters.
2017-01-09 19:27:01 +00:00
Mike Jolley
e0e0c9e832
Replace rating filters with taxonomy
2016-12-09 15:43:25 +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
opportus
4c8e694dce
Layered Nav menu dropdown empty count fix
2016-11-22 19:48:39 +01:00
opportus
42bb48abf1
layered nav OR hide attributes applying to 0 product
2016-11-17 23:33:24 +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
Mike Jolley
50544233f5
Wrap layered nav term in filter
...
Closes #11922
2016-10-11 18:23:25 +01:00
Justin Shreve
0d8e993cc3
Coding style fix. Add $taxonomy to the filter args.
2016-10-05 11:37:53 -07:00
Justin Shreve
c7d191f84b
Wrap the "Any % (taxonomy)" string in a filter so admins/dev can customize the text correctly for languages with genders.
2016-10-05 10:45:09 -07:00
Aristeides Stathopoulos
9668247b95
WordPress.PHP.YodaConditions.NotYoda
2016-09-09 03:14:28 +03:00
Aristeides Stathopoulos
c823236098
Fix failing tests.
2016-09-02 00:33:36 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
84e883657c
Merge pull request #11412 from jlad26/master
...
Fix layered nav links on product attribute archives
2016-07-19 15:20:47 +02:00
Mike Jolley
d79f21a501
Better search handling
2016-07-19 14:09:56 +01:00
Leon Francis Shelhamer
a9e7c67230
fix search results layered nav counts issue
2016-07-13 21:44:00 -04:00
jlad26
ce0485a97c
Fix layered nav links on product attribute archives
...
If the option 'Enable archives' is selected for a product attribute, then the layered nav widget can also be used to filter that archive.
However the widget then doesn't work correctly in 'List' and 'OR' mode for that archive (although it works fine on the main shop page).
Example:
The attribute "product-type" is created and archives are enabled. It has values like "Courses", "One-to-one-tuition", "Equipment rental" and so on. Another product attribute "teaching-level" is created which uses values of "Beginner", "Intermediate" and "Advanced".
When the archive http://www.domain.com/pa_product-type/courses/ is visited the correct products are displayed. A layered nav widget is added in 'List' and 'OR' mode for the attribute 'teaching-level'. Clicking on any of "Beginner", "Intermediate" and "Advanced" will work fine the first time as the links are correctly generated in the form http://www.domain.com/pa_product-type/courses/?filter_teaching-level=advanced&query_type_teaching-level=or . (Advanced used for the example). However once one has been clicked, the links generated are now incorrect - they are in the form http://www.domain.com/?taxonomy=pa_teaching-level&term=advanced&filter_teaching-level=advanced%2Cbeginner&query_type_teaching-level=or .
Using get_queried_object instead of get_query_var fixes the problem.
2016-07-12 11:46:16 +01:00
Mike Jolley
cb13f11c14
Allow entire count query to be filtered
...
Closes #11145
2016-06-16 12:36:18 +01: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
5ff18ebb12
Layered nav dropdowns - When getting counts, use 'or' to exclude self. We don't need 'and' because dropdown fields can only choose 1 option anyway.
...
#11123
2016-06-15 00:09:32 +01:00
Mike Jolley
1ff00adcf6
Spacing
2016-06-14 11:02:23 +01:00
Serg
60a4da9660
Fix Layered navigation permalinks issue on category page
2016-06-14 12:35:52 +03:00
Claudio Sanches
21ffc13ab3
Added $count and $term in woocommerce_layered_nav_count filter
2016-06-08 12:55:20 -03:00
Mike Jolley
aa9e6542e3
woocommerce_layered_nav_count filter
...
Closes #11070
2016-06-08 16:29:27 +01:00
Mike Jolley
1dcf6c6058
Fix numeric sort in layered nav
...
Fixes #11069
2016-06-08 14:39:24 +01:00
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00