/clone-product

Magento module (Command line utility/admin module) to copy all the existing simple products (New) in set of 2 (Used and Refurbished)

Primary LanguagePHPMIT LicenseMIT

Magento 2 - Clone Product Yogesh Suhagiya

  • Admin configurations to enable the module
  • Logs all the activities while code execution
  • Use of Inheritance, DI, Interface, Abstract class and Static methods
  • Organized code base using Helper class
  • Batch processing of 10 products at a time
  • Copy all the existing simple products (New) in set of 2 (Used and Refurbished)

Prerequisite

  • Composer: 2.x
  • PHP: 7.4
  • Magento: 2.4

Installation

  1. Composer Installation

    • Navigate to your Magento root folder
      cd path_to_the_magento_root_directory
    • Then run the following command
      composer require yogeshsuhagiya/clone-product
    • Make sure that composer finished the installation without errors
  2. Command Line Installation

    • Backup your web directory and database.
    • Download the latest installation package Source code (zip) from here
    • Navigate to your Magento root folder
      cd path_to_the_magento_root_directory
    • Upload contents of the installation package to your Magento root directory
    • Then run the following command
      php bin/magento module:enable Practical_CloneProduct
  • After install the extension, run the following command
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
  • Log out from the backend and login again.