To remove customer attribute programatically, create InstallData.php and and define the method intsall() as follows
File : app/code/PHPCodez/First/Setup/InstallData.php Continue reading Magento 2 Remove Customer Attribute Programmatically
To remove customer attribute programatically, create InstallData.php and and define the method intsall() as follows
File : app/code/PHPCodez/First/Setup/InstallData.php Continue reading Magento 2 Remove Customer Attribute Programmatically
To add customer attribute programatically, create InstallData.php and and define the method install() as follows
File : app/code/PHPCodez/First/Setup/InstallData.php Continue reading Magento 2 Add Customer Attribute Programmatically
<?php $order = Mage::getModel(‘sales/order’)->load($this->getOrderId()); ?>
<?php $orderData = $order->getData(); ?>
<?php echo $orderData[‘customer_firstname’]; ?>
<?php echo $orderData[‘customer_email’]; ?>