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...
There are 3 machines: Local Computer Windows OS Development Server Production Server There are 3 repositories upstream, a fork of...
For read and write adapters, fetchOne(), fetchAll(), fetchAssoc(), fetchRow(), fetchCol(), fetchPairs(), see lib\Zend\Db\Adapter\Abstract.php Also, standalone class...
... "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...
The addition of head elements for Vue are dependent on the helper method which returns a bool.
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?> // same as <?php echo $this->getMessagesBlock()->toHtml() ?> In Controller $this->_initLayoutMessages('customer/session');
When there are input elements for search criteria in frontend grid with pagination block 'page/html_pager', the search params will be...
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...
Install the packages in vendor directory in the root by execute shell command: composer update For wins:
nginx URL rewrite stackoverflow PHP lib M1 Extension and the blog, version 2. API Implementation Doc Client based on ZF1...
There are 2 column types: // lib\Varien\Db\Ddl\Table.php const TYPE_TIMESTAMP = 'timestamp'; // Capable to support date-time from...
This doesn't work: ->addColumn('name', Varien_Db_Ddl_Table::TYPE_TEXT, 200, array( 'nullable' => false, 'collate' => 'utf8mb4_unicode_ci...
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...
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...
Mechanism: cache in model First, save the cache // app\code\core\Mage\Core\Model\App.php Mage_Core_Model_App /**
PHP Version 7.4.7 OpenMage 1.9.4.5 if ($day !== false) { $parse[$day] = 'd'; if (!empty($options['locale']) && ($options['locale'] !== 'root') && (!is_object...
We can add a 3rd-party to library to Magento, for example TCPDF. Download the library and unzip.
<?php if(!Mage::getBlockSingleton('page/html_header')->getIsHomePage()): ?> <?php echo $this->__('There are no products matching the selection.') ?> <?php endif ?>
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...