Showing posts with label Category. Show all posts
Showing posts with label Category. Show all posts

28 August 2014

Category - Anchor Categories trong Magento

In addition to the standard layered navigation, anchor categories appear in an additional section that lets you filter the list by attribute value. The attribute section of layered navigation appears if the category is set to “Is Anchor.” Each attribute can be configured to display the results, which is the number of matching records found.
Setting up anchored layered navigation is a two-step process. First, you need to set up the filterable attributes. Then, make the category an anchor. http://go.magento.com/support/kb/entry/name/anchor-categories/

Step 1: Set the Attribute Properties

  1. From the Admin menu, select Catalog > Attributes > Manage Attributes.
  2. Click to open the attribute in Edit mode, and do the following:
    1. Scroll down to the Frontend Properties section, and set Use In Layered Navigation to one of the following:
      • Filterable (with results)
      • Filterable (no results)
    2. Set Use In Search Results Layered Navigation to “Yes.”

Step 2: Make the Category an Anchor

  1. From the Admin panel, select Catalog > Manage Categories.
  2. In the Categories panel on the left, click to open the category. Then, do the following:
    1. On the Display Settings tab, set Is Anchor to “Yes.”
    2. Click the Save Category button.
  3. To test the setting, go to your store and select the category from the top navigation. The layered navigation with filters will appear in the left sidebar of the page.

25 August 2014

Category - Khác biệt giữa Root Category và Subcategory trong Magento

Root Category được áp dụng vào một Store View cụ thể trong Magento. Còn Subcategory là các category con trong một Root Category. Nếu trong cửa hàng của bạn có bao nhiêu Store View thì bạn nên tạo ra bấy nhiêu Root Category tương ứng.

Quy trình tạo một Root Category và áp dụng nó vào một Store View trong Magento:

Bước 1: Tạo một Root Category mới
  1. Bên trong Admin panel, chọn Catalog > Manage Categories.
  2. Ở phía trên, bên trái của trang Manage Categories, click vào nút Add Root Category.
  3. Trong ô Name, nhập tên cho Root Category mới.
  4. Thiết lập Active là Yes.
  5. Vào Tab Display Settings, và thiết lập Is Anchor là Yes.
  6. Click nút Save Category.
Bước 2: Tạo các subcategories là con của Root Category mới
  1. Cũng ngay trong trang Manage Categories, trong cây thư mục category bên tay trái, Click để tô chọn Root Category vừa tạo trong bước 1.
  2. Click nút Add Subcategory.
  3. Đạt tên cho subcategory, thiết lập Is Active là Yes.
  4. Click nút Save Category.
Bước 3: Áp dụng Root Category vào một Store View cụ thể.
  1. Bên trong Admin panel, chọn System > Manage Stores.
  2. Trong trang Manage Stores, chọn vào một trong các Main Store để chỉnh sửa Store
  3. Đổi thiết lập Root Category Root Category mới tạo.
  4. Click nút Save Store.