Running Unit Test in DDEV # Run all tests ddev exec composer run phpunit:test # Run a specific test class, example...
In backend > Catalog > Manage Categories, we can configure a category page and put it on the main menu. The page...
The addition of head elements for Vue are dependent on the helper method which returns a bool.
* Really easy field validation with Prototype * http://tetlaw.id.au/view/javascript/really-easy-field-validation * Andrew Tetlaw * Version 1.5.4.1 (2007-01-05) * * Copyright (c) 2007 Andrew...
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 /**
Useful for long text. $form = new Varien_Data_Form(); $fieldset = $form->addFieldset('base_fieldset', [ 'legend' => Mage::helper('im...
custom module productcoption config.xml 0.0.1 Somemod_ProductCoption Somemod_ProductCoption_Block Somemod_ProductCoption_Block_Adminhtml_ProductEditTabOptions_Option Somemod_ProductCoption_Block_Adminhtml...
A sample of different options to add field in Mage_Adminhtml_Block_Widget_Form Ref Varien_Data_Form_Element_Abstract...
public function completeAction() { $orderId = $this->getRequest()->getParam('order_id', false); $info['order_id'] = 0; if ($orderId) { $order = Mage...
Take a look at Mage_Adminhtml_Block_Widget_Grid_Column::_getRendererByType() to dive into the different column types...
Best results in other decks
prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...