通过Magento中的CMS Page查看具有特定自定义属性值的类别中的产品
I have made a book store in magento. I have made a custom attribute called 'Author' that has names of author who has written the book.
I have made categories for the book like Fiction, Fantasy, Horror.
I have made a CMS page for Every Author. Eg. For CMS page of Author ABC. I have categories listed i.e (Fiction, Fantasy, Horror) inside that CMS Page.
When user clicks on the Fantasy link on that CMS page I need it to redirect it to page listing Books under Fantasy Category by Author ABC
I tried giving link like "magento.com/fantasy?author=1" but when we click, it redirects to "magento.com/fantasy".
How to list Books under Fantasy Category by Author ABC ?
我在magento做了一个书店。 我创建了一个名为“作者”的自定义属性,其中包含撰写该书的作者姓名。
我为这本书制作了类别,如小说,幻想,恐怖。
我为每个作者制作了一个CMS页面。 例如。 对于作者ABC的CMS页面。 我在CMS页面中列出了类别(小说,幻想,恐怖)。
当用户点击该CMS页面上的幻想链接时,我需要将其重定向到页面列表作者ABC下的幻想类别下的书籍 strong>
我试过提供“magento.com/fantasy?author=1”这样的链接,但是当我们点击它时,它会重定向到“magento.com/fantasy”。
如何列出 Fantasy下的书籍 作者ABC的类别 strong>? p>
div>
You should check how default magento sends parameters in URL. When the URL switches the protocol that is from http to https, params appended with "? = " will be lost.
Try using following format : magento.com/fantasy/author/1/
Also ensure that your attribute is filterable in layered navigation and your category is marked as anchor.
Hope this helps!!