Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Search/Archive Pages Not WooCommerce compliant
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Search/Archive Pages Not WooCommerce compliant
- This topic has 23 replies, 6 voices, and was last updated 10 years by Rui Guerreiro – SUPPORT.
-
Posted in: Neighborhood
-
October 30, 2013 at 8:14 pm #29352
When a user searches for a product using the search function or goes to a specific product attribute page the theme stops behaving like a WooCommerce theme and there are no prices, or any buttons to buy the products. This is a major flaw and really takes away from the UX. Is there some quick fix to have these pages behave like normal product category pages while this is sorted?
November 2, 2013 at 7:56 pm #29681Hi,
You mean, search pages like this, don’t have a layout similar to shop page? http://neighborhood.swiftideas.net/?s=hi
Let me know, what you got.
Thanks,
laranz.November 4, 2013 at 10:48 am #29801Hi there,
Can you explain what you mean, or provide an example of the product attribute page not displaying as expected?
We’ll look improving the global search results in a future update.
– Ed
November 4, 2013 at 11:28 am #29803Hi,
The search results page and the other archive pages need to have a ‘add to cart’ button and prices like any other page on a eCommerce site. Check this theme for example: http://demo.yithemes.com/sistina/?s=jeans&post_type=product
If this is not provided, then a user searching for a product or looking at some product archives will be confused why all of a sudden the prices/add to cart/wishlist etc were replaced with something you would see in a normal blog.
November 4, 2013 at 8:46 pm #29931It’s possible to do the same, see here for example: http://neighborhood.swiftideas.net/?s=case&post_type=product
Which search are you using? Maybe we can add an option for it to be a product search instead of a full site search.
– Ed
November 4, 2013 at 9:12 pm #29939Hi Ed,
Yes that’s the type of search results style I want to show up (and also same for product attributes and other archive pages). How do I achieve this?
November 6, 2013 at 3:59 pm #30210It depends what asset you’re using for the search, all you need to do is add this within the form code:
<input type="hidden" name="post_type" value="product" />
– Ed
November 6, 2013 at 4:10 pm #30211Where is this form code so we can add the line of code?
November 7, 2013 at 8:16 am #30291Hi @oytamuah and @westcoastsurf,
Did you guys use this widget “WooCommerce Product Search” instead of the default WordPress search widget? That widget will search product only.
Let me know, what you got.
Thanks,
laranz.November 7, 2013 at 11:59 am #30314Im talking about the general search that’s in the header. How do I get searches from that to display results in a product centric way ?
November 7, 2013 at 9:02 pm #30398Hi,
Try this: Open up wp-content\themes\neighborhood\includes\swift-framework\sf-content-display\sf-header.php line #488 is like this
$menu_full_output .= '<li><form method="get" class="search-form" action="'.home_url().'/"><input type="text" placeholder="'.__("Search", "swiftframework").'" name="s" /></form></li>'. "\n";
change that to this.
$menu_full_output .= '<li><form method="get" class="search-form" action="'.home_url().'/"><input type="text" placeholder="'.__("Search", "swiftframework").'" name="s" /><input type="hidden" value="product" name="post_type"></form></li>'. "\n";
Let me know, what you got.
Thanks,
laranz.November 8, 2013 at 11:05 am #30465Thanks Laranz, that should do it!
– Ed
November 8, 2013 at 11:29 am #30473Yea that solves it – thanks alot. Im guessing there’s no such easy fix for archive pages or product attribute pages?
November 9, 2013 at 11:15 pm #30618Hi,
Can you explain what you mean, or provide an example of the product attribute page / attribute not displaying as expected?
Thanks,
laranz.November 11, 2013 at 2:03 pm #30798This is an example of an attribute page:
http://neighborhood.swiftideas.net/size/medium/
As you can see this doesn’t have add to cart button or price etc.
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.