This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vendor\ModuleName\Options; | |
use Magento\Eav\Setup\EavSetupFactory; | |
use Magento\Framework\Setup\ModuleDataSetupInterface; | |
use Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory; | |
class RemoveOptions | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
ini_set('display_errors', 1); | |
// loads the proper email template | |
$emailTemplate = Mage::getModel('core/email_template') | |
->load(7); | |
// All variables your error log tells you that are missing can be placed like this: | |
$emailTemplateVars = array(); |