-
Search Results
-
Greetings,
We are having an issue when we are asking the plugin to show products from woocommerce categories. Its gets the blog post entries but not the product categories.
We would love to have some help here.
Thanks in advance.
Oscar Sanz
DinaturHi there,
In Woocommerce, I’m using a code snippet to change the columns from 4 (standard) to 3 products per column. Works fine. The only page I want 4 products per column is the page that I’m using the search and filter shortcodes.
I have a conditional tag in my functions.php file that works perfectly until you select a search filter on the one page I want 4 products per column to display.
Code can be seen here: http://pastebin.com/6GgQmY2Q
The page I’m talking about is http://athenasarmory.com/search-by-gun-model/ . 4 products per column works until you select a model in the drop down.
Somehow , the results script controlled by the search and filter plugin ignores my conditional tag in the functions.php file after a search filter is selected. I’ve tried conditional tags for is_page_template , is_page(ID) etc…and they all work until an option is selected from that drop down and the results get processed. (or you select page 2, 3 etc)
Hopefully this is making sense ๐ . Do you know of a conditional tag that I could use in my functions.php file that will remain TRUE even after the results are loaded?
As I’m typing this, I just realized I could probably change the script in functions.php to say “If page is woocommerce archive/category/etc, use 3 columns….if anything else, use standard 4 columns…” This wouldn’t be ideal but I guess it’s a solution if we can’t come up with a conditional tag the other way around that will work.
Show only attributes values that exist in this category.
For example attributes: colors.We do have many colors sitewide, but in specific category where we add the search we have only a few colors, how to make the search shows colors attributes that exist in this category products’ only instead of listing attributes from all products.
This is by default enabled in default “Woocommerce Layered Nav”, but slow down the website with many attributes. I guess it had do something with your “beta count” feature that is disabled currently.
This is one of the main features why I did buy this plugin, hopefully can get a help.
Topic: Template for woocommerce
Hi Ross ๐
I read in this forum that the best template to use for woocommerce is archive-product.php.
I’m using the shortcode method, but I don’t understand if I have to modify my results.php page in order to look like archive-product.php (using woocommerce functions, such as do_action( ‘woocommerce_before_shop_loop’)) or if it’s simply a matter of css.
Now my search works, but the results are in list and not in grid.I’m trying to understand by reading your guide here
https://support.searchandfilter.com/forums/search/woocommerce-page/Is it a good start? ๐