Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
second_website_with_second_currency_rollback.php
Go to the documentation of this file.
1 <?php
9 $configResource = $objectManager->get(\Magento\Config\Model\ResourceModel\Config::class);
10 $configResource->deleteConfig(
11  \Magento\Catalog\Helper\Data::XML_PATH_PRICE_SCOPE,
12  'default',
13  0
14 );
15 $website = $objectManager->create(\Magento\Store\Model\Website::class);
17 $websiteId = $website->load('test', 'code')->getId();
18 if ($websiteId) {
19  $configResource->deleteConfig(
20  \Magento\Directory\Model\Currency::XML_PATH_CURRENCY_DEFAULT,
21  \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
23  );
24  $configResource->deleteConfig(
25  \Magento\Directory\Model\Currency::XML_PATH_CURRENCY_ALLOW,
26  \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
28  );
29 }
30 
31 require 'second_website_with_two_stores_rollback.php';