Skip to content

Instantly share code, notes, and snippets.

@zainengineer
Last active April 10, 2019 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zainengineer/f3a6be4702f4cc3f3e82b043f679bbac to your computer and use it in GitHub Desktop.
Save zainengineer/f3a6be4702f4cc3f3e82b043f679bbac to your computer and use it in GitHub Desktop.
magento 1 cheat sheet
<global>
<session_save><![CDATA[db]]></session_save>
<cache>
<backend>database</backend>
</cache>
</global>
$collection->addAttributeToFilter('attribute_name', ['null' => 'dummy_value'], 'left');
more complex
https://magento.stackexchange.com/a/176444
->addAttributeToFilter(
array(
array('attribute'=> 'newfield','null' => 'dummy_value'),
array('attribute'=> 'newfield','eq' => ''),
),
'',
'left');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment