Running Unit Test in DDEV # Run all tests ddev exec composer run phpunit:test # Run a specific test class, example...
Uncaught TypeError: imagecopymerge(): Argument #9 ($pct) must be of type int, string given in /.../lib/Varien/Image/Adapter/Gd2.php:570 Stack trace: #0 /.../lib/Varien/Image/Adapter/Gd2.php...
For read and write adapters, fetchOne(), fetchAll(), fetchAssoc(), fetchRow(), fetchCol(), fetchPairs(), see lib\Zend\Db\Adapter\Abstract.php Also, standalone class...
To install, just issue the following PowerShell command at the root of OpenMage: PS D:\Work\project> composer require guzzlehttp/guzzle...
Define the API in the custom module app\code\local\{vendor}\{module}\etc\api.xml: benefit/api_member Member API benefit/member Check-In...
nginx URL rewrite stackoverflow PHP lib M1 Extension and the blog, version 2. API Implementation Doc Client based on ZF1...
* 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...
Generate the URL: /** * For file and image field, get the file URL * * @see Mage_Customer_Model_Attribute_Data_File * @return...
Mechanism: cache in model First, save the cache // app\code\core\Mage\Core\Model\App.php Mage_Core_Model_App /**
collection->addFieldToSelect('col_name') will include the ID column in result. To return only columns of interest, use $collection->getSelect...
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...
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...
UPDATE `sales_flat_order` SET `base_discount_refunded`=null, `base_shipping_refunded`=null, `base_shipping_tax_refunded`=null, `base_subtotal...
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...
The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...