Page 1 of 1
ShopBy Filters within R9
Posted: Tue Oct 07, 2014 8:49 am
by jasonhendee
In a development installation (on the Search.aspx page), I noticed that any 'ShopBy' filters in place are lost upon paging, as well as when the number of products displayed is changed; the filters do, however, remain in place upon changing the sort by selection. I haven't looked into it too deeply yet, but wondered if anyone else is seeing this behavior. I have a long list of customizations ahead of me, so I don't want to spend time chasing this one if it's a bug that the folks at AC can quickly iron out for us.
Thank you.
Re: ShopBy Filters within R9
Posted: Wed Oct 08, 2014 5:19 am
by Katie
Hi Jason,
Thanks for letting us know. I will try to reproduce and get back to you soon.
Katie
Re: ShopBy Filters within R9
Posted: Fri Oct 10, 2014 6:24 am
by Naveed
We were able to reproduce the issue and it is fixed. Here I explain the code changes to fix the issue:
1. Open the "Website/Search.aspx.cs" file in Visual Studio.
2. Go around line # 24 and define a new class level variable to hold the information about the "shop by" options selection as under:
Code: Select all
private string _shopBy = string.Empty;
3. Inside the Page_Load event method add the following code to initialize the above defined variable with the data/information. ( around line # 64 )
Code: Select all
_shopBy = StringHelper.StripHtml(Server.UrlDecode(Request.QueryString["shopby"]));
if (!string.IsNullOrEmpty(_shopBy))
{
_shopBy = StringHelper.StripHtml(_shopBy).Trim();
}
4. Find the "BindPagingControls()" method and add the following code just at the end of code where "baseurl" variable is initialized. (line # 268)
Code: Select all
if(!string.IsNullOrEmpty(_shopBy))
baseurl += "shopby=" + _shopBy + "&";
5. Save the file and compile the website project.
I am also attaching the updated file.
Re: ShopBy Filters within R9
Posted: Fri Oct 10, 2014 12:25 pm
by NC Software
Can you all keep a page of known issues that have fixes so we have a central page to go to in order to apply all known fixes? Otherwise everyone hits the bug, reports it, you get overloaded, and we have to scour the forum for issues and fixes. Please create a R9 Wiki or some page that we can go to with bug report / unsupported fix per se. When I get to implementing R9 soon I certainly want to apply all known fixes to be the absolute most up to date and stable at release.
Re: ShopBy Filters within R9
Posted: Fri Oct 10, 2014 2:17 pm
by Katie
The help site has always kept a log of the hot patches and service updates, upgrades, and pretty much everything related to the technical support of AbleCommerce.
Here is the hot patch page for Gold -
http://help.ablecommerce.com/index.htm# ... s_gold.htm
You can subscribe to the page to receive updates when it is changed.
This particular bug is not listed there yet. I'll get it added as soon as I can.