Find attribute_id
SELECT * FROM eav_attribute where attribute_code = 'is_anchor'
Update all of them with anchor_id from above (usually is ID 51)
UPDATE `catalog_category_entity_int` set value = 1 where attribute_id = 51
public function mycoolAction() | |
{ | |
/* ... Some code ...*/ | |
$update = $this->getLayout()->getUpdate(); | |
/* ... Some code ...*/ | |
$this->addActionLayoutHandles(); | |
/* ... Some code ...*/ | |
$this->loadLayoutUpdates(); | |
/* ... Some code ...*/ | |
/* My stuff, add pure XML like you do from XML layout files <img src="http://inchoo.net/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley"> */ |
<?php | |
namespace Pokus; | |
class Exception extends \Exception | |
{ | |
} | |
function tttt($string) | |
{ | |
try { |
<?php | |
function getExceptionTraceAsString($exception) { | |
$rtn = ""; | |
$count = 0; | |
foreach ($exception->getTrace() as $frame) { | |
$args = ""; | |
if (isset($frame['args'])) { | |
$args = array(); | |
foreach ($frame['args'] as $arg) { | |
if (is_string($arg)) { |
######################################################################################## | |
# Kathir 'Sid' Vel's robots.txt file for Magento websites | |
######################################################################################## | |
User-agent: * | |
Allow: / | |
#Disallow: / | |
######################################################################################## | |
# Do not crawl development files and folders |
<?php | |
/* | |
If your products have been deleted but not your media gallery images you | |
can use the following SQL statement to remove these dormant records. | |
Please make sure you backup your installation and database before running this | |
SQL statement. It has been used on Mage 1.8.1 system: | |
<?php | |
require_once('app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
$customers = Mage::getModel('customer/customer')->getCollection(); | |
$customers->addAttributeToSelect('*'); | |
$customersArray[0] = array( |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{HTTP_HOST} !^content\.(.*)$ [NC] | |
RewriteCond %{HTTP_HOST} !^themes\.(.*)$ [NC] | |
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] |