Ron Rennick
c1ad273a03
replace all remaining str_replace( 'pa_', ... with wc_attribute_taxonomy_name_raw(...)
2018-12-03 11:32:33 -04:00
Ron Rennick
8e7715088e
allow limited html in `woocommerce_rating_filter_count` filter
2018-11-13 11:33:44 -04:00
Refael Iliaguyev
127f1cb276
Use WC() instead wc() for consistency
2018-11-08 12:59:07 +02:00
claudiulodro
67d80c35d8
Update cache key to consistently work with all types of chars
2018-09-20 08:21:39 -07:00
Gerhard Potgieter
f28002f257
Use wp_json_encode instead of esc_js. Hat tip @dtugend
2018-09-10 14:35:55 +02:00
Gerhard Potgieter
16b2abe8cd
Remove charset, WP will load site charset by default. We need to do esc_js first before wp_specialchars_decode to avoid esc_js to encode double quotes again.
2018-09-10 11:58:39 +02:00
Gerhard Potgieter
6b3feb0417
Decode encoded special chars for Any string label used in the layered nav widget.
2018-09-10 10:49:25 +02:00
Rodrigo Primo
20fd569a55
Fix clearing filters in "Filter products by attribute" widget
...
This commit fixes an issue that was making it impossible to clear filters in the "Filter products by attribute" widget when the attribute name contained non-ASCII characters. The problem was caused by a call to sanitize_title() which doesn't seem necessary as it is sanitizing one of the widget parameters which is already sanitized in 679d719368/includes/widgets/class-wc-widget-layered-nav.php (L116)
. So this commit simply removes the sanitize_title() call. Even if we needed to sanitize the variable `$taxonomy`, it would be better to use sanitize_text_input_field() or wc_sanitize_taxonomy_name() as sanitize_title() will replace accented characters.
For more about the problem that is fixed by this commit see #21028
2018-08-14 11:45:57 -03:00
Khan M Rashedun-Naby
e41a6199bb
Updated @todo comment
2018-08-14 13:11:23 +06:00
Khan M Rashedun-Naby
826e94f5a6
Added @todo comment to PHPDoc
2018-08-14 13:03:02 +06:00
Khan M Rashedun-Naby
d56edfd53a
#20696 Cart widget Customizer selective refresh fix
2018-07-17 22:57:32 +06:00
Mike Jolley
9bead7a702
Merge pull request #20617 from woocommerce/add/20603
...
Convert product categories widget to use selectWoo.
2018-06-27 18:52:01 +01:00
Gerhard Potgieter
4c54dedd9d
Rredirect to shop page when product categories dropdown filter is cleared.
2018-06-26 11:54:04 +02:00
Gerhard Potgieter
345416312a
Move selectwoo support to widget class to avoid it running on admin pages.
2018-06-25 15:58:18 +02:00
Mike Jolley
01a3e359c3
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-13 10:18:38 +01:00
Mike Jolley
679d719368
Use correct escaping on placeholder
...
Use correct escaping on placeholder - this is not HTML, this is an attribute output within javascript code.
Closes #20360
2018-06-04 10:53:10 +01:00
Rodrigo Primo
597033ca6f
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-04-24 13:47:22 -03:00
Ernest
0d70b3b34e
Recent Product Reviews template
2018-04-13 14:20:46 +03:00
Rodrigo Primo
bb553c88ae
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-03-29 12:05:55 -03:00
Rodrigo Primo
edfadcf7ae
Product price filter widget: add a new filter to change the query to get max and min prices
2018-03-29 11:52:49 -03:00
Mike Jolley
06418f67e5
Merge pull request #19225 from roylindauer/17355-SplitAndFilter
...
Split layered nav transient per issue #17355
2018-03-14 12:50:54 +00:00
Roy Lindauer
b151480e6b
fix indentation issues
2018-03-13 15:34:47 -07:00
Claudio Sanches
82fec65fa0
Merge branch 'master' into update/walkers-phpcs
2018-03-12 12:31:57 -03:00
Claudio Sanches
18a44172a2
Fixed class-wc-widget-top-rated-products.php PHPCS violations
2018-03-09 17:50:02 -03:00
Claudio Sanches
b329d81279
Fixed class-wc-widget-recently-viewed.php PHPCS violations
2018-03-09 17:48:28 -03:00
Claudio Sanches
d3b81b17a8
Fixed class-wc-widget-recent-reviews.php PHPCS violations
2018-03-09 17:45:45 -03:00
Claudio Sanches
f9eed130ec
Fixed class-wc-widget-rating-filter.php PHPCS violations
2018-03-09 17:43:52 -03:00
Claudio Sanches
dfe3965fbb
Fixed class-wc-widget-products.php PHPCS violations
2018-03-09 17:41:07 -03:00
Claudio Sanches
85aba0221a
Fixed class-wc-widget-product-tag-cloud.php PHPCS violations
2018-03-09 17:37:23 -03:00
Claudio Sanches
74b5e3f8fa
Fixed class-wc-widget-product-search.php PHPCS violations
2018-03-09 17:29:16 -03:00
Claudio Sanches
cbb1271b2c
Fixed class-wc-widget-product-categories.php PHPCS violations
2018-03-09 17:28:08 -03:00
Claudio Sanches
341dddc3ae
Fixed class-wc-widget-price-filter.php PHPCS violations
2018-03-09 17:26:40 -03:00
Claudio Sanches
e87c309b01
Fixed class-wc-widget-layered-nav.php PHPCS violations
2018-03-09 17:10:03 -03:00
Claudio Sanches
84b0446736
Fixed class-wc-widget-layered-nav-filters.php PHPCS violations
2018-03-09 16:56:15 -03:00
Claudio Sanches
5cf942c22b
Fixed class-wc-widget-cart.php PHPCS violations
2018-03-09 16:37:52 -03:00
Claudio Sanches
4daf256c32
Fixed path of walker classes
2018-03-09 16:31:00 -03:00
Roy Lindauer
bb9afb29be
cached_counts would not be defined if cache is false
2018-03-06 07:32:12 -08:00
Roy Lindauer
4147038e93
Add filter to control caching of layered nav counts. Split cached layered nav counts by taxonomy
2018-03-02 22:14:20 -08:00
Mike Jolley
5330d0b860
Make terms logic match for breadcrumb and widget
2018-02-20 11:49:06 +00:00
Mike Jolley
2ed9691c14
Fix shop on homepage with unsupported themes
2018-02-01 11:15:46 +00:00
Claudiu Lodromanean
e898623668
Merge pull request #18174 from woocommerce/fix/18170
...
Adjusts price filter code to exclude taxes to match how prices are stored in the DB
2017-12-18 11:13:44 -08:00
Mike Jolley
5ed3c9e37e
Adjusts price filter code to exclude taxes to match how prices are stored in the DB
2017-12-14 15:21:49 +00: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
claudiulodro
d60456cc73
Resolve conflicts and bring up to date with master
2017-12-04 13:56:59 -08:00
Claudio Sanches
777a004a1f
Allow max of 15 products in Recent Viewed Products widget
2017-11-29 19:24:39 -02:00
Mike Jolley
208b2d1b81
Slugs are encoded, so decode before outputting to the form
...
Fixes #17845
2017-11-21 16:50:33 +00:00
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
Mike Jolley
76adff572e
woocommerce_recently_viewed_products_widget_query_args filter
...
Closes #17678
2017-11-15 10:19:11 +00:00
Mike Jolley
cc18f85baa
Replace usage of global query
2017-11-09 12:01:27 +00:00
Mike Jolley
1a7d7dd127
Widget base url
2017-11-09 11:24:29 +00:00
Mike Jolley
1b22d97be2
Combined get_page_base_url
2017-11-09 11:16:47 +00: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
8695d46637
Merge branch 'pr/17041'
2017-10-27 15:35:43 +01:00
Mike Jolley
bfebd204ee
Code standards and better action names
2017-10-27 15:35:34 +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
Mike Jolley
8fa6116ef6
Hide cat-parent class when category will show no children due to depth setting
...
Closes #17184
2017-10-13 12:50:49 +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
Filipe Seabra
0dad12537b
Version was bumped
2017-10-04 12:54:00 -03:00
Filipe Seabra
872fed68dc
Added to new actions in content-widget-product.php so plugins can easily and specifacally do sth within product widgets. There's no issue/reference, sorry.
2017-10-03 17:52:36 -03:00
grosssmutttr
146fdff506
Update WC_Widget_Layered_Nav_Filters
...
Add rel="nofollow" to the URLs to avoid duplicate content.
2017-10-01 11:41:22 +02:00
Mike Jolley
d125739742
fix init
2017-09-16 12:37:29 -07:00
Claudio Sanches
c9dc585a7f
Fixed coding standards
2017-08-28 16:36:32 -03:00
Mike Jolley
55d75cdcb7
Add max depth option to widget
...
Closes #16132
2017-08-25 12:49:40 +01: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
Claudio Sanches
6ad9987e0d
Merge pull request #15658 from woocommerce/update/15643
...
get_filtered_term_product_counts performance
2017-07-04 17:30:09 -03: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
Mike Jolley
db3b230ff6
Add filter to control rating HTML in widget
...
Closes #15624
2017-06-15 11:33:09 +01:00
Mike Jolley
4251d71dab
Hide replies from recent reviews widgets
...
Fixes #15307
2017-05-29 10:09:17 +01:00
Claudio Sanches
a58bd42dcf
Merge pull request #15172 from woocommerce/fix/15166
...
Correct price query when on a post type archive
2017-05-24 21:13:30 -03:00
Mike Jolley
47d7fedff8
Correct price query when on a post type archive
...
Fixes #15166
2017-05-19 11:19:30 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Claudio Sanches
26a6dfa803
Applied wc_get_star_rating_html() to rating filter widget
2017-04-28 20:01:01 -03:00
Akeda Bagus
0b416439c8
Fixed all typos of all files in includes/ directory.
...
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell .
2017-03-29 00:58:51 +07:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
a9e224fa78
Wrap rating with esc_html
2017-03-14 12:32:34 +00:00
Rami Yushuvaev
d2457fe922
i18n: escape translation strings and fix wrong usage of i18n functions
2017-03-13 07:39:46 +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
66c3cff76d
More escaping
2017-01-06 14:09:36 +00:00
Mike Jolley
76f8c3dddd
Escaping for scruitinizer
2017-01-06 12:45:28 +00:00
Mike Jolley
e9be3a425a
Handle search params in filters
...
Closes #12685
2016-12-23 14:45:58 +00:00
Mike Jolley
0300464613
Use accounting.js in price slider widget
2016-12-20 13:11:09 +00:00