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 : Friday, March 31, 2023 10:15:06 AM(UTC)
judy at Web2Market

Rank: Advanced Member

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

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
We have a 9.0.7 site launching on Monday and they have the ProductFinder in the left nav on their category page. Clicking on a manufacturer does not filter the products by manufacturer, like it did in Gold. Could we get code to fix that? I've looked at it some and looked in 9.0.8 code but nothing has changed there. The manufacturerId is put into the querystring of the category page after you click on the manufacturer.I just can't quickly figure out a way to fix this and still have paging work after you click a manufacturer also.
Thanks

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

Katie S  
#2 Posted : Friday, March 31, 2023 11:30:15 AM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 423

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Hi Judy,

I believe that the Product Finder widget has only been tested to work with the Search page. I reviewed the widget description and it says, "Used with the search results widget, the product finder allows a user to filter by category, brand, keyword, or custom attributes."

Not to say it couldn't be customized, but the developers are on leave today so I can't get a quick fix, assuming there is one.
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
shaharyar  
#3 Posted : Monday, April 3, 2023 3:06:25 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
I am able to reproduce the issue.

To fix:

1- Open the file \Website\Controllers\CategoryController.cs

2- Search for

Code:
public ActionResult CategoryGridPage(CategoryGridPageParams parameters, int page = 1, int pageSize = 0, string shopBy = "", string sortExpression = "IsFeatured DESC, OrderBy ASC, Name ASC")


3- Replace with

Code:
  public ActionResult CategoryGridPage(CategoryGridPageParams parameters, int page = 1, int pageSize = 0, int manufacturerId = 0, string shopBy = "", string sortExpression = "IsFeatured DESC, OrderBy ASC, Name ASC")


4- Search for line # 665 and remove the following code
Code:
int manufacturerId = 0;

Edited by user Monday, April 3, 2023 3:07:04 AM(UTC)  | Reason: Not specified

judy at Web2Market  
#4 Posted : Monday, April 3, 2023 5:53:09 AM(UTC)
judy at Web2Market

Rank: Advanced Member

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

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Thanks so much for the quick answer!
Users browsing this topic
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.