Skip to content

Instantly share code, notes, and snippets.

View anilbajracharya's full-sized avatar

anilbajracharya

View GitHub Profile
@anilbajracharya
anilbajracharya / duplicate product image issue magento 2 .php
Last active June 25, 2018 04:17
duplicate product image issue magento 2
<?php
require '../app/bootstrap.php';
$params = $_SERVER;
$bootstrap = Bootstrap::create(BP, $params);
$obj = $bootstrap->getObjectManager();
$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');