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
Mike Jolley
020b8c92c6
Fix URLs with quot; characters
...
Fixes #10795
2016-04-27 15:24:10 +01:00
Mike Jolley
39fc5a98ae
Fix base URL
2016-02-10 11:16:49 +00:00
Mike Jolley
0197b78b38
Combine all count queries per widget
2016-02-10 11:07:42 +00:00
Mike Jolley
0dba78acc0
Remove use of global
2016-02-10 10:19:32 +00:00
Mike Jolley
6bdd12d960
Rating counts
2016-02-10 10:02:50 +00:00
Mike Jolley
5f98720206
Combine count
2016-02-10 00:07:07 +00:00
Mike Jolley
c9cae8b214
No need to include children
2016-02-09 23:11:50 +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
e20565c498
Fix merge conflicts
2016-02-09 14:46:06 +00:00
Mike Jolley
cae1fe6b85
Refactors/improvements to layered nav to support slugs
...
#7806
2016-02-09 14:41:17 +00:00
Matthew Duhig
6ef4fcb144
Update class-wc-widget-layered-nav.php
...
Updates to layered nav to considerably improve speed on sites with large product databases (10k+). This method has seen speed improvements as notable as taking a 30 second plus load time of a /shop page with layered nav, down to 4 seconds.
2016-01-21 17:06:57 +00:00
Serg
ef867131e0
Change layered nav filters by ID to SLUG field
2016-01-19 10:15:42 +03:00
Fredrik Forsmo
bc9019458c
Improve docblock comments WC_Widget classes
...
* Added better comment to `widget`, `form` and `update` methods.
2016-01-06 19:58:38 +01:00
Mike Jolley
6892d73ea9
Store product ids for terms in term meta rather than transient
...
Data is kept in sync by looking at when terms are set for an object and
then clearing the meta for old and new terms.
2015-11-14 16:25:09 +00:00
Ibrahim Ibn Dawood
28fbdaa4c4
added min_rating query arg to layered nav
2015-11-13 15:17:02 +05:30
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
5c948f374c
Fix preg_replace in layered nav dropdown
2015-08-20 17:32:27 +01:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
Claudio Sanches
f333bb68b2
Improved js for widget layered nav #8332
2015-06-09 13:06:50 -03:00
Claudio Sanches
16ddd24887
[2.3] Fixed & and , for layered nav dropdowns, closes #8332
2015-06-09 12:49:57 -03:00
Claudio Sanches
55efdc5077
Escaped js/url in widget layered nav when use the dropdown option, closes #8320
2015-06-08 13:10:23 -03:00
James Koster
cafe0927f5
count styles in widgets. closes #7677
...
make category / layered nav list styles and markup consistent with core
post category widget.
2015-03-09 16:06:48 +00: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
Mike Jolley
1f3adbd0c2
esc_html for the term name
2014-11-25 10:38:54 +00:00
Mike Jolley
dd53f8e730
Move widget registration to own function/file - avoid register_widget in class files
2014-11-20 20:56:24 +00:00
Mike Jolley
d3dc8be3ec
Undo commit which autoloaded widgets
...
Since they are loaded every time with core, it doesn’t make sense to
autoload them.
2014-11-19 18:08:38 +00:00
claudiosmweb
24e17e36d3
Preventing errors when adding a widget using the WP Customize
...
Fixed coding standards and used methods from WC_Widget for start and end the widget
2014-11-14 23:12:59 -02:00
James Koster
452cb56cd9
layered nav count markup matches product/post categories. #5606
2014-11-13 08:30:10 +00:00
Mike Jolley
06f82686eb
[2.2] and test, use term_taxonomy_id for transient names
2014-09-24 14:22:02 +01:00
shivapoudel
fedb4dae7c
Absolute path and Indentation fix for includes/widgets/*.php :)
2014-09-21 01:22:45 +05:45
Florian Ludwig
f2f56ebb4a
Removed lines, were already deleted in upstream
2014-08-12 19:04:11 +02:00
Florian Ludwig
b8c2912138
More general approach for widget dropdown_layered_nav
2014-08-12 18:56:37 +02:00
Alexandru Furculita
130521a7ab
Update class-wc-widget-layered-nav.php
2014-08-01 13:44:15 +03:00
Coen Jacobs
3617316357
Updated expiry times for transients
2014-03-12 12:58:41 +01:00
Coen Jacobs
03163c54b0
set_transient calls should have expiration to prevent autoloading
2014-03-07 09:29:01 +01:00
Mike Jolley
6ff4ae1a7d
Merge pull request #4903 from splashingpixels/master
...
Ran through jshint and fixed coding standards
2014-02-25 15:51:50 +00:00