logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Monday, February 28, 2022 8:23:33 AM(UTC)
judy at Web2Market

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

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Tuesday, March 1, 2022 2:57:06 AM(UTC)
shaharyar

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.
Code:
ViewBag.ShopBy = shopBy;


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!

judy at Web2Market  
#3 Posted : Tuesday, March 1, 2022 6:54:11 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Thanks, I will try that.
Users browsing this topic
Guest (3)
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.