ShopBy Filters within R9

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
jasonhendee
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Fri Apr 15, 2011 11:04 pm

ShopBy Filters within R9

Post by jasonhendee » Tue Oct 07, 2014 8:49 am

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.
Jason Hendee
Cables for Less

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: ShopBy Filters within R9

Post by Katie » Wed Oct 08, 2014 5:19 am

Hi Jason,

Thanks for letting us know. I will try to reproduce and get back to you soon.

Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: ShopBy Filters within R9

Post by Naveed » Fri Oct 10, 2014 6:24 am

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.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: ShopBy Filters within R9

Post by NC Software » Fri Oct 10, 2014 12:25 pm

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.
Neal Culiner
NC Software, Inc.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: ShopBy Filters within R9

Post by Katie » Fri Oct 10, 2014 2:17 pm

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.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply