0

I want to create a custom attribute as "Similar product" which will behave like "Related products" attribute.

How can i do that in magento 2?

2

You can use the below module for the Create your custom linked products type programmatically like (Related, Cross-sell, Upsell products).

Module: https://github.com/ibnab/magento2-custom-product-link

Explanation: https://www.ibnab.com/en/blog/magento-2/adminhtml-ui-create-your-custom-linked-products-type-like-related-crosssell-upsell-products

Hope this will work for you.

| improve this answer | |
  • Yes, thank you. this is what i wanted. I will install this and check how it is working. – Nafisa Mar 6 at 5:45
  • Your welcome, Also, Please accept the answer if it works for you. – Kishor Thummar Mar 6 at 5:48
  • I installed this, and worked as expected. but when i export the products, i did not find this custom attribute in my export csv. Also, when i want to import this attributes through csv , how will i do that? – Nafisa Mar 6 at 6:18
  • For this, I think you have to override the default Export-Import functionality. – Kishor Thummar Mar 6 at 6:23

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.