When facets leave only one product, it gets rendered via single-product.php
3 years, 1 month ago #14711
Facets all work fine as long as there is more than one product left when filtering. But once the filtering is reduced down to a single product, then instead of displaying it as product archive, the template is changed to single-product.php and since we are within archive, all you get are related products that would normally be displayed below product details on single-product.php
if you select Bernard Foley (1) for the author for example, you get the effect I am talking about.3 years, 1 month ago #14712
Isn’t it a side effect of https://www.wpsolr.com/forums/topic/solar-search-in-custom-product-loop/ ?3 years, 1 month ago #14721
Unfortunately, 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.3 years, 1 month ago #14732
The same problem https://test.antikvarijatknjiga.hr/?s=kapital&post_type=product
If you select eg. Adam Smith as author, related products show.3 years, 1 month ago #14737
The minimal staging environment is a good idea indeed. Check that you have PHP 7.1 minimum, and WordPress, Elasticsearch or Solr up to date.
Notice that I do not log in customer’s backends during support. We need to find out what is different from my own environments, so I can replicate it to be able to xdebug the issue.3 years, 1 month ago #14738
This 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.3 years, 1 month ago #14747
I 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.
You must be logged in to reply to this topic.