Running Unit Test in DDEV # Run all tests ddev exec composer run phpunit:test # Run a specific test class, example...
Backend > Catalog > Manage Categories We can do the following: Create new root categories and subcategories. You can organize the categories...
In backend > Catalog > Manage Categories, we can configure a category page and put it on the main menu. The page...
For read and write adapters, fetchOne(), fetchAll(), fetchAssoc(), fetchRow(), fetchCol(), fetchPairs(), see lib\Zend\Db\Adapter\Abstract.php Also, standalone class...
* Add attributes to attibute_group 'CAUTION!!! System Config'. */ if ($attrs) { $resource = Mage::getResourceSingleton('eav/entity_attribute'); foreach ($customerGroupIds as $groupCode => $groupId) { /** @var...
* 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...
Fix At Adapter Level // app\code\core\Mage\CatalogInventory\Model\Resource\Stock.php /** * Correct particular stock products qty based on operator...
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...
DO NOT use inline translation. The inline translations are stored in the table core_translate. Backup the table, convert all...
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...
If the custom options of a product are the same across stores, but somehow there are not defaulted to store...
* Add new radio option 'Moby' to Application Type * Affect products: i14, i14u, i14g */ $optionTitle = 'Application Type'; $values[] = array( 'title' => 'Moby...
How to update a column in main table from another table's column. Reference: Varien_Db_Adapter_Pdo_Mysql::updateFromSeelct...
$collection->addFieldToFilter('field_name', [ ['eq' => 'value1'], ['eq' => 'value2'] ] ); // same as $collection->addFieldToFilter('field_name', ['value1', 'value2']);
A sample of different options to add field in Mage_Adminhtml_Block_Widget_Form Ref Varien_Data_Form_Element_Abstract...
Take a look at Mage_Adminhtml_Block_Widget_Grid_Column::_getRendererByType() to dive into the different column types...
* Resize image recursively until it is less than 25KB and saved as tmp.jpg * Original image is unchanged * * @param string fullpath...
condA AND (cond1 OR cond2 OR cond3) $cincId = $session->getCustomerId(); $attributes = array( array('attribute'=>'mc_by', 'eq'=>$clinicId), array('attribute...
Best results in other decks
Max Swahn attended the University of Pittsburgh, Swanson School of Engineering. He graduated in 2018 with a degree in Industrial...
This is a collection of frequently asked questions about the makandra hosting environment and our operations services.