HomeHome Product Discus... Product Discus...SmithCartSmithCartFiltering Products for Customers Before Log InFiltering Products for Customers Before Log In
Previous
 
Next
New Post
6/14/2012 9:17 PM
 

I'm helping out a group with some specific filtering requirements. Essentially they need to be able to have a user make a choice about what kind of customer they are (without actually logging in, just a simple choice from a drop down list) then have that filter the set of products they can view. Another reason using Roles might be a challenge is that there end up being quite a lot of permutations to their Customer Type / Product List, so when they tried managing that with user roles it was giving them various issues (as well as being difficult to maintain)

So, is it possible to filter on something like a session variable in any of the newer versions of Smith Cart? Everything I saw seemed to be role based.

They're currently on SC 4.92 and DNN 6 but upgrading would be possible.

Thanks

Mike

 
New Post
6/15/2012 2:00 PM
 

Hi Mike,

The product listing page in Smith Cart will use a session variable titled "SearchPID" for filtering products if it exists in session.  The "SearchPID" session variable is simply a comma seperated list of product ids.

 
If this doesnt work for you, the Smith Search module configured for the "Single Search Box Layout" provides the following role filtering options:
 
All - Public and Role Secured – The “All” option will search across all products, both public viewable products and products you have defined as only viewable by DNN role.
 
Public Only – The “Public Only” option will allow searching of public viewable products only.  Products you have defined as viewable by only certain DNN roles will be excluded from the search.
 
Role Only - The “Role Only” option will allow searching of Products you have defined as viewable by DNN role.  Products you have defined as public viewable will be excluded from the search.
 
Hope this helps!
 

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/23/2012 9:44 PM
 

Thanks for the reply.

The SearchPID variable is getting me closer, the problem now is in it's durability. The first view of the buy now module after setting the session var works perfectly, but that variable is being cleared immediately. So any subsequent reload of that page then shows all products again. Is there a way to make this more persistent?

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartFiltering Products for Customers Before Log InFiltering Products for Customers Before Log In