Jump directly from category to product

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Hello !

when i have categorys with just one product, i want to redirect to product, not to see it alone in a white page, i mean jump the step.

for example:

1), go to caterogry menu, click Radiadores

http://www.calefacciononline.com.ar/Category/58-radiadores.aspx     (just 1 product in a category, i want to jump this link to the next one )

http://www.calefacciononline.com.ar/Products/94-radiador-kaldo.aspx
12 years ago
Did you determine if there is an option to do this or how to do this? I'm in the same boat. A category with one item. We want a direct link to that product.
12 years ago
hi,

i just put a redirect in the same html description box
see there

http://www.calefacciononline.com.ar/Category/58-radiadores.aspx

or you can doit via rewrite function, i use mod-rewrite for iis 6, and is a good option too.
6 years ago
Add the following code in catalog controller's "public virtual ActionResult Category(int categoryId, CatalogPagingFilteringModel command)" action method.

if (model.Products.Count == 1)
                return RedirectToAction("ProductDetails", "Product", new { SeName = model.Products[0].SeName });
3 years ago
Hi Guys,

Do you have any solution for NopCommerce 4.2 ?

I am tried add ....if (model.Products.Count == 1)
                return RedirectToAction("ProductDetails", "Product", new { SeName = model.Products[0].SeName });

to  Nop.Web\Models\Catalog\CatalogPagingFilteringModel.cs

But not worked.

Could you help me ?


Regards
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.