OpenMage

Running Unit Test in DDEV # Run all tests ddev exec composer run phpunit:test # Run a specific test class, example...

OpenMage

After installing DDEV in WSL2 Ubuntu terminal. Note: do not install in Windows. How to Launch VS Code

magentodevelop.blogspot.com

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...

OpenMage
github.com

... "aoepeople/aoe_blackholesession": "Skip creating a real session for bots", "aoepeople/aoe_jscsststamp": "Automatic Versioning of JS and CSS files", "aoepeople/aoe_scheduler": "Advanced cron scheduling...

To install, just issue the following PowerShell command at the root of OpenMage: PS D:\Work\project> composer require guzzlehttp/guzzle...

OpenMage

Define the API in the custom module app\code\local\{vendor}\{module}\etc\api.xml: benefit/api_member Member API benefit/member Check-In...

Install the packages in vendor directory in the root by execute shell command: composer update For wins:

OpenMage
github.com

nginx URL rewrite stackoverflow PHP lib M1 Extension and the blog, version 2. API Implementation Doc Client based on ZF1...

OpenMage

There are 2 column types: // lib\Varien\Db\Ddl\Table.php const TYPE_TIMESTAMP = 'timestamp'; // Capable to support date-time from...

OpenMage

* 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...

OpenMage
jouriy.github.io

M1 doc. OM GitHub Issue Test Script in devdocs-openmage.org stackoverflow magento.stackexchange.com/how-to-create-rest-api-for-the-magento-1-9-hosted-in-local-machine stackoverflow.com//magento-oauth-customer-login Inchoo's Guides:

OpenMage

Change Text Length /** @var Mage_Core_Model_Resource_Setup $installer */ $installer = $this; $installer->startSetup(); /** @var Varien_Db_Adapter_Pdo_Mysql...

OpenMage
framework.zend.com

OM uses Zend Version 1.12.16. Adding Another Table to the Query with JOIN Many useful queries involve using a JOIN...

OpenMage
github.com

See production grade nginx and docker config here. Some notes on this: the PCI work was trial and error, we...

There are many reasons why a payment method is not listed or missing on the checkout page: admin > System > Configuration...

github.com

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...

Each locale has different date formats. The default settings are configured in xml files located in lib\Zend\Locale\Data...

We can add a 3rd-party to library to Magento, for example TCPDF. Download the library and unzip.

admin > product page > Design > Custom Layout Update: /controller/catalog_product/route skin_js js/aes.js dir/jsonp.js Insert Vue.js in frontend product page: lib/vue2611dev.js

collection->addFieldToSelect('col_name') will include the ID column in result. To return only columns of interest, use $collection->getSelect...

custom module productcoption config.xml 0.0.1 Somemod_ProductCoption Somemod_ProductCoption_Block Somemod_ProductCoption_Block_Adminhtml_ProductEditTabOptions_Option Somemod_ProductCoption_Block_Adminhtml...

OpenMage

$collection->addFieldToFilter('field_name', [ ['eq' => 'value1'], ['eq' => 'value2'] ] ); // same as $collection->addFieldToFilter('field_name', ['value1', 'value2']);

OpenMage

A sample of different options to add field in Mage_Adminhtml_Block_Widget_Form Ref Varien_Data_Form_Element_Abstract...