单击导航栏中的类别,直接转到“产品详细信息"页面 [英] Directly go to Product Detail page on click of a category in the nav bar

查看:75
本文介绍了单击导航栏中的类别,直接转到“产品详细信息"页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的商店中,其中一个类别只有一种产品.单击导航栏中的此类别,是否可以将用户直接带到该产品的产品详细信息页面?

In my store, one of the category has only one product. Is it possible to take the user directly to the product detail page of this one product whenever they click this category in the nav bar?

推荐答案

是的,可以使用 Magento Admin 中的 URL重写管理选项来完成.

Yes this can be done by using the URL Rewrite Management option in Magento Admin.

在Magento管理员中:

In Magento Admin:

  1. 从菜单栏中选择目录> URL重写管理.
  2. 点击添加URL重写按钮.
  3. 选择要重定向的类别.
  4. 记下 ID路径(例如: category/10 )和请求路径(例如:花盆). html )
  5. 重复步骤 1& 2 ,但是这次从 Create Urlrewrite 下拉框中选择 Custom .
  6. 在每个字段中输入值:

  1. Select from menu bar Catalog > URL Rewrite Management.
  2. Click on the Add URLRewrite button.
  3. Select the category you want to redirect from.
  4. Make a note of the ID Path (e.g.: category/10) and the Request Path (e.g.: flowerpots.html)
  5. Repeat steps 1 & 2, but this time select Custom from the Create Urlrewrite dropdown box.
  6. Enter the values in each field:

  • ID路径(来自第4步)
  • 请求路径(来自第4步)
  • 目标路径-输入产品(或您要重定向到的页面)的路径.
    • 示例1:输入产品网址 www.myswebsite.co.uk/flowers.html .输入 鲜花. html .
    • 示例2:输入产品网址 www.myswebsite.co.uk/sale/garden/flowers.html ,输入 sale/garden/flowers.html .
    • ID Path (from step 4)
    • Request Path (from step 4)
    • Target Path - enter path of your product (or the page you want to redirect to).
      • example 1: for product url www.myswebsite.co.uk/flowers.html enter flowers.html.
      • example 2: for product url www.myswebsite.co.uk/sale/garden/flowers.html enter sale/garden/flowers.html.

      重定向下拉列表中选择重定向永久(301).

      现在,当在您的网站上单击类别时,它将重定向到产品.

      Now when the category is clicked on on your website it will re-direct to the product.

      这篇关于单击导航栏中的类别,直接转到“产品详细信息"页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆