Read More
Read More
Menu Close

    Create a product by installer in magento2

    Magento-Code-Snippet-5-3

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

    app/code/Webkul/Hello/Setup/InstallData.php

    Here,

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

    Upgrade command: php bin/magento setup:upgrade

    Searching for an experienced
    Magento 2 Company ?
    Read More
    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    1 comments

  • 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