Manufacturer List of Products doesn't work with Sort By

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Manufacturer List of Products doesn't work with Sort By

Post by Mike718NY » Tue Aug 05, 2008 8:29 am

When you select a Category or do a Search, the Manufacturer is displayed in
the list of results of those searches.

When you click a Manufacturer from that list, that Manufacturer is displayed, BUT, . . .
when you Sort By Name, or Price, . . it returns the complete list of products, . . :
it is not sorting just the products from that Manufacturer.

This my confuse a customer. Is there some way to fix this?
Or can I hide the "Sort By" box when the manufacturer list is displayed?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Manufacturer List of Products doesn't work with Sort By

Post by mazhar » Tue Aug 05, 2008 11:11 am

It should show the proper results when sorting the results selected for some manufacturer, the code tries to do so. It seems that this relates to the following problem.
http://bugs.ablecommerce.com/show_bug.cgi?id=7006

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Manufacturer List of Products doesn't work with Sort By

Post by Mike718NY » Thu Aug 07, 2008 8:42 am

Is there any available fix or work-around for this?
This is going to confuse and annoy the customer.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Manufacturer List of Products doesn't work with Sort By

Post by mazhar » Sat Aug 09, 2008 5:56 am

Fix for Bug#7006 is included in service release one. Check the following link
http://help.ablecommerce.com/upgrades/a ... _final.htm

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Manufacturer List of Products doesn't work with Sort By

Post by Mike718NY » Sat Aug 09, 2008 11:39 am

I applied the patch and updated my custom
CategoryGridPage.ascx.cs and SearchPage.ascx.cs files,
but it's still doing this.

Is there a way to check in code for /Search.aspx?m=xx (m for manufacturer)
and then have the Sort By drop down not appear?
There is no use in displaying the drop down if it doesn't work.

This is also happening on your 7.0 demo site.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Manufacturer List of Products doesn't work with Sort By

Post by mazhar » Mon Aug 11, 2008 9:39 am

There seems to be some problem with sort

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Manufacturer List of Products doesn't work with Sort By

Post by mazhar » Mon Aug 11, 2008 9:50 am

In order to hide the sort options when some Manufacturer is selected, edit the ConLib/SearchPage.ascx.cs file then locate and change the following method as below

Code: Select all

protected void BindProductList()
    {
        SortResultsLabel.Visible = !(_ManufacturerId > 0);
        SortResults.Visible = !(_ManufacturerId > 0);
        Trace.Write(this.GetType().ToString(), "Begin BindProductList");
        ProductList.DataSource = ProductDataSource.NarrowSearch(_Keywords, this.CategoryId, _ManufacturerId, 0, 0, _PageSize, (_HiddenPageIndex * _PageSize), SortResults.SelectedValue);
        ProductList.DataBind();
        NoSearchResults.Visible = (_SearchResultCount == 0);
        SearchResultsAjaxPanel.Update();
        Trace.Write(this.GetType().ToString(), "End BindProductList");
    }
In fact the first two lines are newly added and hides the information

Post Reply