Running Unit Test in DDEV There are 3 ways to run a unit test with composer: 1. Basic Composer PHPUnit...
* Add attributes to attibute_group 'CAUTION!!! System Config'. */ if ($attrs) { $resource = Mage::getResourceSingleton('eav/entity_attribute'); foreach ($customerGroupIds as $groupCode => $groupId) { /** @var...
To install, just issue the following PowerShell command at the root of OpenMage: PS D:\Work\project> composer require guzzlehttp/guzzle...
public function visibleProductsAction() { $this->getResponse()->setBody( $this->getLayout()->createBlock('module/adminhtml_block_type')->toHtml() ); } Generic Block: $block = $this->getLayout()->createBlock('adminhtml/template') ->setTemplate...
Import Sample Actions XML: file var/import <![CDATA[filename.csv]]> <![CDATA[csv]]> <![CDATA[,]]> <![CDATA["]]> <![CDATA[fieldname_in_system]]> <![CDATA[firstname]]> <![CDATA[lastname...
See production grade nginx and docker config here. Some notes on this: the PCI work was trial and error, we...
Mechanism: cache in model First, save the cache // app\code\core\Mage\Core\Model\App.php Mage_Core_Model_App /**
We can use this file name config.mysql4.xml to load additional configuration in the module's etc folder, the folder which...
Top menu is configured in backend > Catalog > Manage Categories. The landing page can be set to product list, static block...
public function completeAction() { $orderId = $this->getRequest()->getParam('order_id', false); $info['order_id'] = 0; if ($orderId) { $order = Mage...
Load Store by Store Code $store = Mage::getModel('core/store')->load('store_code'); // or $store = Mage::app()->getStore('store_code');
The error is coming from Mage_Catalog_Model_Product_Option_Type_File but it is not interpreted in _getValidatorErrors(). The...
Best results in other decks
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...
Most of the time, when you are interested in any log output, you see the logs directly on your console...