Skip to content
Snippets Groups Projects
Commit a02c9046 authored by Christel Loftus's avatar Christel Loftus
Browse files

cleanup

parent c691c4fb
Branches
Tags
1 merge request!6Rates at checkout
<?php
namespace BobGroup\BobGo\Setup;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Eav\Setup\EavSetupFactory;
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;
public function __construct(EavSetupFactory $eavSetupFactory)
{
$this->eavSetupFactory = $eavSetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$eavSetup->addAttribute(
\Magento\Sales\Model\Order::ENTITY,
'weight_unit',
[
'type' => 'varchar',
'length' => 255,
'nullable' => true,
'comment' => 'Weight Unit',
]
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment