user3929607
user3929607

Reputation: 231

Display the list of products in a tab

In my magento application i want to create a module which is for adding FAQ for a individual product. So while adding the FAQ, in the new tab i want to show the list of all products(like product listing) for which product we want to add FAQ.

So please help me how to customize for getting list of products and display in the new tab?

Upvotes: 1

Views: 384

Answers (1)

Rajeev K Tomy
Rajeev K Tomy

Reputation: 2214

The question is too broad friend. So don't hope any full solution here. That is because, this question is related to an external extension. But you will get guidance here. Here you may need to do following things.

  1. I think in admin, the extension provides provision to manage each individual faque. What you need to do is, you need to create an extra field that will relate that faq with a product or multiple products.

  2. If you set up this, you need to store this information in database. So for each faq, there may be a product id or multiple product ids related to it

  3. Now you need to create a new block for your extension. This block will filter faqs that related to a particular product.

  4. Next step is add above block in layout. Layout handle you need to use here is catalog_product_view.

  5. Create a new template for your custom block and in that template file, you need to put design codes. You can create this template with the help of current template that this extension uses. That way, you can reduce a lot of time for creating the design.

Hope that helps !

Upvotes: 1

Related Questions