github.com

...options[$storeId] = $collection->toOptionArray(); $this->_optionsDefault[$storeId] = $collection->toOptionArray('default_value'); Speed improved from 1.3ms to 0.7ms: class Sxxx_Xxgs_Model_Resource_Catalog_Product_Option_Collection extends Mage...

...Mage::app()->getCache(), $idPrefix, $tags) ; return $this->_toOptionHash('title', 'option_id'); } } From 3ms to 1ms: /** * Return hash key in iso3 or default iso2. * Always use cache. To flush, click button...

...variables > Path > Edit ... New Then add D:\Work\wamp64\bin\php\php8.2.5 For Magento 1.9 (Not required for OpenMage) Create dir vendor in the root and then modify Mage.php:

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

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

OpenMage

...name' => 'established_at', 'image' => $this->getSkinUrl('images/grid-cal.gif'), 'format' => $dateFormatIso, 'label' => $helper->__('Established At'), 'disabled' => '1', ]); $dateTimeFormatIso = Mage::app()->getLocale()->getDateTimeFormat( Mage_Core_Model_Locale::FORMAT_TYPE_SHORT ); $fieldset->addField('mc...

...name' => 'enabled', 'label' => $helper->__('Enabled'), 'required' => true, 'options' => array( 0 => Mage::helper('adminhtml')->__('No'), 1 => Mage::helper('adminhtml')->__('Yes'), ), ]); $fieldset->addField('enabled', 'select', [ 'name' => 'enabled', 'label' => $helper->__('Enabled'), 'required' => true...

OpenMage

...regexp' => $regularExpression] ['seq' => $stringValue] ['sneq' => $stringValue] ['is' => new Zend_Db_Expr('NULL')] Complex Conditions 1 /** * Filter by ((condition1) OR (condition2)) * * @param int $studentId * @return $this */ public function filterLanguage($studentId) { /** * condition1...

OR (`toefl_ibt` >= '6.0') ) Example 2 /** * WHERE ( * (`prefix` = 'claim') AND (`object_id` = '1') * OR * (`prefix` = 'claim_item') AND (`parent_id` = '1') * ) * @param string $parentPrefix * @param string $childPrefix

OpenMage

AND (`at_medical_group_id`.`attribute_id` = '240') WHERE (`e`.`entity_type_id` = '1') AND (g.customer_group_code = 'Corporate Client') AND ( (at_client_of_id.value = '1') OR ( (at_shared_level.value = 'group') AND (at_medical_group_id.value...

OpenMage
jouriy.github.io

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: Part 1. Introduction to Magento REST and oAuth We could divide Magento REST functionality into the two...

OpenMage
github.com

...GC or AWS firewall and a 4-8 core 32gig mem ubuntu server with 100gig SSD hard disk, all image assets are on the SSD we have a hacked up...

...here, we have quad core worker_processes 8; pid /var/run/nginx.pid; events { worker_connections 1024; } http { # This uses Nginx’s Map module to set a variable $fastcgi_https. # The variable is...

OpenMage

...this->addColumn('created_at', [ 'header' => $helper->__('Requested At'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '100px', 'align' => 'center', 'filter_index' => 'main_table.created_at', 'gmtoffset' => true ]); $this->addColumn('pickup_at', [ 'header' => $helper)->__('Pickup...

...Mage::helper('moe')->__('Enabled'), 'align' => 'left', 'width' => '60px', 'index' => 'enabled', 'type' => 'options', 'options' => array( 1 => Mage::helper('moe')->__('Yes'), 0 => Mage::helper('moe')->__('No') ), $this->addColumn('amount', array( 'header' => Mage...

OpenMage

-32002 Missing required parameter(s). -32602 A parameter has an invalid value. Benefit 100 Member 10 Check-in Note 1. // app\code\core\Mage\Adminhtml\Block\Api\Tab\Rolesedit.php...

Note 2. // app\code\core\Mage\Adminhtml\Block\Api\Tab\Rolesedit.php line 104 foreach ($children as $child) { if ($child->getName()!='title' && $child->getName()!='sort_order' && $child->attributes()->module...

...if ($errors !== true) { foreach ($errors as $error) { $this->_getSession()->addError($error); } $response->setError(1); } // ... $response->setError(1); $this->_getSession()->addError( Mage::helper('adminhtml')->__('Customer with the same email already exists...

...entity_id' => 'mageproductid', 'value' => 'userid']); $result = $collection->toArray(); $result output: array(2) { ["totalRecords"] => int(1565) ["items"] => array(1565) { [0] => array(2) { ["entity_id"] => string(2) "16" ["value"] => string...

...1] => array(2) { ["entity_id"] => string(2) "17" ["value"] => string(2) "24" } [2] => array(2) { ["entity_id"] => string(2) "18" ["value"] => string...

magentodevelop.blogspot.com

.../lib/Varien/Image/Adapter/Gd2.php(570): imagecopymerge(Object(GdImage), Object(GdImage), 0, 0, 0, 0, 400, 400, '') #1 /.../lib/Varien/Image.php(197): Varien_Image_Adapter_Gd2->watermark('/home/web/publi...', 0, 0, 30, false) #2 /.../app/code/core/Mage/Catalog/Model/Product/Image.php(557): Varien...

php.net

( [name] => YU XIA.jpg [type] => [tmp_name] => [error] => 7 [size] => [options] => Array ( [ignoreNoFile] => [useByteString] => 1 [magicFile] => [detectInfos] => 1 ) [validated] => [received] => [filtered] => [validators] => Array ( [0] => Zend_Validate_File_Upload ) [title] => YU...

[type] => image/jpeg [tmp_name] => /tmp/phpivaSBH [error] => 0 [size] => 360225 [options] => Array ( [ignoreNoFile] => [useByteString] => 1 [magicFile] => [detectInfos] => 1 ) [validated] => [received] => [filtered] => [validators] => Array ( [0] => Zend_Validate_File_Upload ) [title] => kiat1a.JPG...

OpenMage
github.com

...member MUST be included, but both members MUST NOT be included. Example: object(stdClass)#121 (3) { ["result"] => string(32) "bb6f3052b503303a4473990f0e2c2184" ["id"] => string(13) "607ff6cd1de84" ["jsonrpc"] => string(3) "2.0" }

...Json_Server_Request_Http Object ( [_rawJson:protected] => {"jsonrpc":"2.0","method":"customerGroupList","id":"60efafaaed751","params":["15c64c1d73bed7682227d1f1159afc00"]} [_id:protected] => 60efafaaed751 [_isMethodError:protected] => [_method:protected] => customerGroupList [_methodRegex:protected] => /^[a-z][a-z0...

...the js to run properly, we need to remove the var */ if (strpos($html, ' ') + 1); //start pos $pos = strrpos($html, ' '); //last occurrance of $html1 = substr($html, 0, $pos); //html part...

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

...return $result; } /** * Parse user input value and return cart prepared value, i.e. "one, two" => "1,2" * * @param string $optionValue * @param array $productOptionValues Values for product option * @return string|null */

* Add new radio option 'Moby' to Application Type * Affect products: i14, i14u, i14g */ $optionTitle = 'Application Type'; $values[] = array( 'title' => 'Moby...

Best results in other decks

DevOps Curriculum

...USA), Singapur(Singapur), Dublin(Irland), (bestimme den Preis selbst) Dieter und Judith reisen für 14 Tage nach New York Karl reist für 30 Tage nach Singapur Maria reist für...

...Tage nach Dublin und 7 Tage nach New York Judith reist 14 Tage nach Singapur Lass dir mit einem SELECT alle Urlaube anzeigen. Dabei sollen folgende columns sichtbar sein: Vorname...

Da wir für einige Übungsaufgaben Dockercontainer benötigen lernst du in diesem Kapitel die Basics zu Docker. Hier vermitteln wir nur...

Search in all decks