0

We are using SM Market theme for our Magento store (www.mymall.pk). Also, we have integrated Webkul multivendor extension with our store to allow different sellers to sell their products at our store.

Problem statement:

We need a custom tab in Listing Tab section of SM Market theme. Check below link to get an idea. https://pasteboard.co/IojyQig.png The image shows a button named "Brands". We need to add this custom button to each Listing Tab Block.

Expected functionality:

When user clicks on this button. The widget will show a list of sellers that sell their product in this category.

Possible solution:

How Magneto works: Magento stores data of all categories in the database. And, admins can associate a product with a category (category ID), this linkage/association is also stored in the database.

How Webkul Multi vendor Extension works? It stores data of all registered sellers in database. And, admins can associate a product with a seller account (seller ID), this linkage/association is also stored in the database.

So, on the basis of these two association, we can get a list of sellers that sell their product in a specific category.

Example use case:

1- Admin adds categories e.g. Fashion, Electronics, Sports

2- Admin adds products in these categories e.g. product A & B in Fashion, M & N in Electronics, X & Y in Sports

3- Admin adds sellers e.g. Khan, Bob, Ali

4- Admin assigns products to sellers e.g. products A & M to Khan, products N & X to Bob and products B & Y to Ali

After this assignment, each seller has got products in 2 different categories e.g. seller Khan has products in Fashion & Electronics categories, seller Bob has products in Electronics & Sports, seller Ali has products in Fashion & Sports categories.

In other words, the Fashion category has two sellers Khan & Ali, Electronics category has two sellers Khan & Bob and Sports category has two sellers Bob & Ali

Now, I want to display a list of all sellers that have products in a selected category.

Kindly tell me how do I apply such a filter in my current store.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.