Running Unit Test in DDEV # Run all tests ddev exec composer run phpunit:test # Run a specific test class, example...
With system config: + If that's not what you want, we can do event-observer: /** * Event 'checkout_cart_product_add...
This whole class Mage_Core_Controller_Varien_Exception has only one reference in the core, see search result.
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.
When there are input elements for search criteria in frontend grid with pagination block 'page/html_pager', the search params will be...
* 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...
OM uses Zend Version 1.12.16. Adding Another Table to the Query with JOIN Many useful queries involve using a JOIN...
Generate the URL: /** * For file and image field, get the file URL * * @see Mage_Customer_Model_Attribute_Data_File * @return...
See production grade nginx and docker config here. Some notes on this: the PCI work was trial and error, we...
protected function _prepareLayout() { $this->getLayout()->getBlock('head')->addCss('course/form.css'); $this->setTitle('Course Eligibility Result'); return parent::_prepareLayout(); }
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...
Top menu is configured in backend > Catalog > Manage Categories. The landing page can be set to product list, static block...
* Add new radio option 'Moby' to Application Type * Affect products: i14, i14u, i14g */ $optionTitle = 'Application Type'; $values[] = array( 'title' => 'Moby...
Each uploaded file is processed here: Mage_Catalog_Model_Product_Option_Type_File::_validateUploadedFile() To see the uploaded files:
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
makandra offers an 8 month paid trainee program 🇩🇪 for junior developers that are looking to start a professional career in...
GitLab has a RubyMine plugin that enables you to review and process merge requests within RubyMine! Setup Open RubyMine settings...