Forum Replies Created
- leomoonParticipant3 years, 5 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #22846
This was the solution in my case…
add_filter( ‘woocommerce_redirect_single_search_result’, ‘__return_false’ );
But still, if someone wants a product page to display in case of a single result, this plugin should handle that properly as well. If using faucets however, you don’t want that to happen.
leomoonParticipant4 years, 4 months ago in reply to: Deeper into _product_attributes field #15905That works, thanks!
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14757What happens is that instead of getting related products, I get all the products from a set, as if no filters are selected. If I select any of the filters with more than one product, it works fine. The problem is still when its filtered down to just one product.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14755I could not find I meant to say.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14754In template-loader.php, below line 47, the conditional is_singular() returns true and naturally the single product template is choosen for rendering.
Now when and why $GLOBALS[‘WP_Query’]->is_singular is switched to true, that I could find.leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14749Just downloaded the trial, and the problem is still there exactly as on version 21.6. But you should be able to xdebug it without problems at this point.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14747I can’t get authorization to purchase another license until I get this working so I am in a gridlock. I’ve been trying to integrate this search for over year and a half and the site is still in testing and cannot go live until I prove this is working properly. Where can I get the latest version before purchasing another license? Obviously, if everthing is working properly, the site can go live and I’ll be purchasing a license as it is necessary for live site.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14738This environment is remote xdebug enabled already and it is on PHP 7.3.5. WordPress is the latest. The only things active are the storefront theme (latest), woocommerce (latest), and wpsolr which is at 21.6. The particular ZIP you sent me the link for at one point was named wpsolr-pro-woocommerce-custom-taxonomies.zip. The archive was created on 24.8.
Is this enough information for debugging?
PHPSTORM is the debug string.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14736No errors whatsoever. I’ll have to create a minimal staging environment for you so you can check it out – I don’t see any other solution.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14732The same problem https://test.antikvarijatknjiga.hr/?s=kapital&post_type=product
If you select eg. Adam Smith as author, related products show.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14728I turned it off now: https://test.antikvarijatknjiga.hr/?s=kapital
With woocommerce turned off, all results get rendered with search.php of the theme, regardless of whether there are one or more of them.
leomoonParticipant4 years, 6 months ago in reply to: When facets leave only one product, it gets rendered via single-product.php #14721Unfortunately, this is not the reason. I have experimented with that, but at the moment, no changes to is_replace_by_wpsolr is taking place. As a matter of act, I have just disabled every single plugin except for WPSolr and Woocommerce and customization on test.antikvarijatknjiga.hr and have even switched theme to twentyfifteen just to eliminate all external potential sources of the problem and the same thing happens:
once the filters are down to a single post, it attempts to get rendered with single product template resulting only in related products being shown.leomoonParticipant4 years, 6 months ago in reply to: Suggestions results sort #14707If I turn off partial keywords (now turned off on the test site), the number of results is naturally reduced so this title makes it into 10 top results, but, it nevertheless shows up at number 7. which is again not taking into a consideration the fact that this is the exact match. I thought that the SOLR server itself would have some kind of logic that would calculate relevance better… or not?
leomoonParticipant4 years, 6 months ago in reply to: Suggestions results sort #14701Not keyword suggestions. I display content.
As you can see on https://test.antikvarijatknjiga.hr, I use separate columns to display taxonomy terms for each taxonomy. But even if I were to boost title, there are still more than 10 titles containing keyword “Una”, and therefore it would not show up as it seems that results are displayed as they come from Solr server which apparently does not prioritize “Una” over “Unaprijed” or “una lunga estate”.
leomoonParticipant4 years, 6 months ago in reply to: Solar search in custom product loop #14693This will work for now, thanks.