Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    Create a product by installer in magento2

    To create a product by installer you need to add file “InstallData.php” at path:



    After that, you just need to run upgrade command, and your product is created in your site.

    Upgrade command: php bin/magento setup:upgrade

    . . .

    Comment (1)

    Add Your Comment

  • Anil
    Hi Bulbul,
    I nice article, I have once concern regarding create custom attribute, suppose I have created one product attribute and want to assign to attribute set say Bike (Other than Default), How can I do that ? By default Magento 2 assign attribute to all available attribute set say Default and Bike.
  • Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again