This topic has 4 replies, 2 voices, and was last updated 7 years, 6 months ago ago by Olga Barlow
Your brand filter is very temperamental. Even after updating permalinks, some work and some give 404 error message. It happens ever so randomly and also may I ask why are you using jquery to submit a “?brand=brand%20name” value to a page to work out which page it needs to redirect to and then wordpress doing a 301 redirect to the correct page /brand/brand-name ? When /brand/brand-name is already a valid page in the first place that you can link directly to?
Why not get jquery to redirect directly to the correct link to the correct page /brand/brand-name without all this submitting values, recalculating and redirecting using 301’s?
Can you not get wordpress to work out the type of permalink it is using and attach the full link instead. Avoids all the issues, 301 redirects etc
And another brand issue, if you set up a parent>child, the parent brand does not get recognized as a taxonomy to pass the woocommerce_products_will_display() check and therefore the page does not display the filter search options.
The piece of code your theme fails on is at woocommerce/archive-product.php
<?php if (<strong>woocommerce_products_will_display()</strong> && etheme_get_option( 'top_toolbar' ) ): ?>
<div class="filter-wrap">
<div class="filter-content">
<?php
/**
* woocommerce_before_shop_loop hook
*
* @hooked woocommerce_result_count - 20
* @hooked woocommerce_catalog_ordering - 30
* @hooked etheme_grid_list_switcher - 35
*/
do_action( 'woocommerce_before_shop_loop' );
?>
</div>
</div>
<?php endif ?>
I’ve attached a demo page below, you’ll notice no shopping filters or anything comes up, just a basic standard page.
Are we going to get any answers on this subject?
Hello,
Sorry for the delay in answering.
Thank you for your suggestions. Yes, it’s useful note and we’ll improve the brands in version 4.0.
Regards
You must be logged in to reply to this topic.Log in/Sign up