Am I able to edit Instant Search to also search through the SKU?
Thank you for all your help, the slider is on the homepage only!
I am a little confused, do I need to create a new widget? I am using "@Html.Widget("home_page_main_top")" should i have made a new one?
And I have that on the index page as shown below:
Thank you for all the help, I am very new to this.
This is my index.chtml
@{
Layout = "~/Views/Shared/_ColumnsTwo.cshtml";
}
<div class="page home-page">
<div class="page-body">
@Html.Widget("home_page_main_top")
@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
@Html.Action("HomepageCategories", "Catalog")
@Html.Action("HomepageProducts", "Catalog")
@Html.Action("HomepageBestSellers", "Catalog")
@Html.Widget("home_page_before_news")
@Html.Action("HomePageNews", "News")
@Html.Action("HomePagePolls", "Poll")
@Html.Widget("home_page_bottom")
</div>
</div>
Here is my layout page: _ColumnsTwo.cshtml
@{
Layout = "~/Views/Shared/_Root.cshtml";
}
@{
//current category ID
int currentCategoryId = 0;
if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
Url.RequestContext.RouteData.Values["action"].ToString().Equals("category", StringComparison.InvariantCultureIgnoreCase))
{
currentCategoryId = Convert.ToInt32(Url.RequestContext.RouteData.Values["categoryId"].ToString());
}
//current manufacturer ID
int currentManufacturerId = 0;
if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
Url.RequestContext.RouteData.Values["action"].ToString().Equals("manufacturer", StringComparison.InvariantCultureIgnoreCase))
{
currentManufacturerId = Convert.ToInt32(Url.RequestContext.RouteData.Values["manufacturerId"].ToString());
}
//current product ID
int currentProductId = 0;
if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
Url.RequestContext.RouteData.Values["action"].ToString().Equals("product", StringComparison.InvariantCultureIgnoreCase))
{
currentProductId = Convert.ToInt32(Url.RequestContext.RouteData.Values["productId"].ToString());
}
}
<div class="center-2">
@RenderBody()
<!-- @Html.Widget("main_column_after")-->
</div>
<div class="side-2">
@if (IsSectionDefined("left"))
{
@RenderSection("left")
}
else
{
@Html.Widget("left_side_column_before")
@Html.Action("CategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
@Html.Widget("left_side_column_after_category_navigation")
@Html.Action("ManufacturerNavigation", "Catalog", new { currentManufacturerId = currentManufacturerId })
@Html.Action("PopularProductTags", "Catalog")
@Html.Action("PollBlock", "Poll", new { systemKeyword = "LeftColumnPoll" })
@Html.Widget("left_side_column_after")
}
</div>
I am having an issue with the anywhere sliders showing up on all the pages, I only want it on the homepage at the top just under the menu. Any help would be appreciated.
The 'Index.cshtml' page is calling the correct file.
Thank you.
Here is the code: I have the slider in its own div so it was show up across the whole page. I want the slider to render in the one column and I want the rest of the page to be two columns.
_ColumnsTwo.cshtml
<!--this is where the slider is located.-->
<div class="center-1">
@Html.Widget("home_page_top")
</div>
<!--end slider-->
<div class="center-2">
@RenderBody()
</div>
<div class="side-2">
@if (IsSectionDefined("left"))
{
@RenderSection("left")
}
else
{
@Html.Widget("left_side_column_before")
@Html.Action("CategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
@Html.Widget("left_side_column_after_category_navigation")
@Html.Action("ManufacturerNavigation", "Catalog", new { currentManufacturerId = currentManufacturerId })
@Html.Action("PopularProductTags", "Catalog")
@Html.Action("PollBlock", "Poll", new { systemKeyword = "LeftColumnPoll" })
@Html.Widget("left_side_column_after")
}