Hey guys,
I feel like this is probably something that is in the Able Commerce code and I'm just missing it.
What I need to be able to do, is to have a listing of all other products within the same category search critieria show in the sidebar when the user is on the product display page. So if the user searches through category A and sub category 2 and finds a list of products, and selects one product to view the details of, I'd like to show them a listing of all other products within that same search they just performed in the side bar so that they can select another product without having to go back to the search page.
Any ideas?
Thanks,
Marla
Products Page - List other Prods in Category
Re: Products Page - List other Prods in Category
You can load other products like this
Code: Select all
int currentProductId=PageHelper.GetProductId();
ProductCollection products = ProductDataSource.NarrowSearch("Search_Keyword","Category_Id",0,0,0);
ProductCollection filteredProducts = new ProductCollection();
foreach (Product product in products)
{
if (product.ProductId != currentProductId)
filteredProducts.Add(product);
}
ProductRepeater.DataSoruce = filteredProducts;
ProductRepeater.DataBind();
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog