OpenMage

Running Unit Test in DDEV There are 3 ways to run a unit test with composer: 1. Basic Composer PHPUnit...

OpenMage

Install DDEV using windows installer, download it from release page. After installing DDEV in WSL2 Ubuntu terminal. Note: do not...

There are 3 machines: Local Computer Windows OS Development Server Production Server There are 3 repositories upstream, a fork of...

magento.stackexchange.com

In the module's config.xml: Vendor_Tpa <![CDATA[subdomain.rds.aws.com]]> <![CDATA[some_name]]> <![CDATA[some_pw]]> <![CDATA[some_db_name]]> mysql4...

The addition of head elements for Vue are dependent on the helper method which returns a bool.

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

OpenMage
github.com

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

This doesn't work: ->addColumn('name', Varien_Db_Ddl_Table::TYPE_TEXT, 200, array( 'nullable' => false, 'collate' => 'utf8mb4_unicode_ci...

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

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

OpenMage

Generate the URL: /** * For file and image field, get the file URL * * @see Mage_Customer_Model_Attribute_Data_File * @return...

OpenMage
github.com

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

github.com

Mechanism: cache in model First, save the cache // app\code\core\Mage\Core\Model\App.php Mage_Core_Model_App /**

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

Top menu is configured in backend > Catalog > Manage Categories. The landing page can be set to product list, static block...

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

public function completeAction() { $orderId = $this->getRequest()->getParam('order_id', false); $info['order_id'] = 0; if ($orderId) { $order = Mage...

OpenMage

Take a look at Mage_Adminhtml_Block_Widget_Grid_Column::_getRendererByType() to dive into the different column types...

OpenMage

Load Store by Store Code $store = Mage::getModel('core/store')->load('store_code'); // or $store = Mage::app()->getStore('store_code');

php.net

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

makandra Curriculum

makandra offers an 8 month paid trainee program 🇩🇪 for junior developers that are looking to start a professional career in...

docs.zizmor.sh

The linked tool can be used to scan your CI/CD workflows for potential security issues and suboptimal defaults if they...

Search in all decks