Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I am trying to get the ProductFinder left nav with shop by working correctly with the category page. It filters the results according to the shop by OK, but when I select a new option in the Sort By dropdown, the shop by is ignored. How do I get the shop by back into the querystring? I see that it does it OK on the Search page, but I can't figure out where the code is that does it. Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Hi Judy, You need to update the code to achieve this requirement. If you are using the widget "Category Product Grid Multilevel" 1- Add the following line of code in the CategoryGridPage controller action. 2- Open the file \Website\Views\Category\_CategoryGridPage.cshtml and add the following line of code inside the form block Code:@Html.Hidden("ShopBy", (string)ViewBag.ShopBy)
3- Compile the code You can also take help from search widget controller side code and view file. Hope this helps!
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close