includes/widgets/class-wc-widget-rating-filter.php 1 location
|
@@ 42-48 (lines=7) @@
|
| 39 |
|
* @return string |
| 40 |
|
*/ |
| 41 |
|
protected function get_page_base_url() { |
| 42 |
|
if ( defined( 'SHOP_IS_ON_FRONT' ) ) { |
| 43 |
|
$link = home_url(); |
| 44 |
|
} elseif ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id('shop') ) ) { |
| 45 |
|
$link = get_post_type_archive_link( 'product' ); |
| 46 |
|
} else { |
| 47 |
|
$link = get_term_link( get_query_var('term'), get_query_var('taxonomy') ); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
// Min/Max |
| 51 |
|
if ( isset( $_GET['min_price'] ) ) { |
includes/widgets/class-wc-widget-layered-nav.php 1 location
|
@@ 266-272 (lines=7) @@
|
| 263 |
|
* @return string |
| 264 |
|
*/ |
| 265 |
|
protected function get_page_base_url( $taxonomy ) { |
| 266 |
|
if ( defined( 'SHOP_IS_ON_FRONT' ) ) { |
| 267 |
|
$link = home_url(); |
| 268 |
|
} elseif ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id('shop') ) ) { |
| 269 |
|
$link = get_post_type_archive_link( 'product' ); |
| 270 |
|
} else { |
| 271 |
|
$link = get_term_link( get_query_var('term'), get_query_var('taxonomy') ); |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
// Min/Max |
| 275 |
|
if ( isset( $_GET['min_price'] ) ) { |