Код: Выделить всё
Fatal error: Call to a member function setData() on a non-object in /app/code/local/Mage/Tax/Model/Calculation.php on line 411
Warning: include(Mage.php) [function.include]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 94
Warning: include(Mage.php) [function.include]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 94
Warning: include() [function.include]: Failed opening 'Mage.php' for inclusion (include_path='app/code/local:app/code/community:/app/code/core:/lib:.') in /lib/Varien/Autoload.php on line 94
Fatal error: Class 'Mage' not found in /app/code/core/Mage/Core/functions.php on line 244
Warning: include(Mage.php) [function.include]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 94
Warning: include(Mage.php) [function.include]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 94
Warning: include() [function.include]: Failed opening 'Mage.php' for inclusion (include_path='app/code/local:app/code/community:/app/code/core:/lib:.') in /lib/Varien/Autoload.php on line 94
Fatal error: Class 'Mage' not found in /app/code/core/Mage/Core/Model/Resource/Session.php on line 108
Код: Выделить всё
protected function _getRates($request, $fieldName, $type)
{
$result = array();
$classes = Mage::getModel('tax/class')->getCollection()
->addFieldToFilter('class_type', $type)
->load();
foreach ($classes as $class) {
$request->setData($fieldName, $class->getId());
$result[$class->getId()] = $this->getRate($request);
}
return $result;
}
Код: Выделить всё
public function autoload($class)
{
if ($this->_collectClasses) {
$this->_arrLoadedClasses[self::$_scope][] = $class;
}
if ($this->_isIncludePathDefined) {
$classFile = COMPILER_INCLUDE_PATH . DIRECTORY_SEPARATOR . $class;
} else {
$classFile = str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $class)));
}
$classFile.= '.php';
//echo $classFile;die();
return include $classFile;
}
Код: Выделить всё
$errorMessage .= ": {$errstr} in {$errfile} on line {$errline}";
if (Mage::getIsDeveloperMode()) {
throw new Exception($errorMessage);
} else {
Mage::log($errorMessage, Zend_Log::ERR);
}
Код: Выделить всё
if (is_null($this->_lifeTime)) {
$configNode = Mage::app()->getStore()->isAdmin() ?
'admin/security/session_cookie_lifetime' : 'web/cookie/cookie_lifetime';
$this->_lifeTime = (int) Mage::getStoreConfig($configNode);
Я только что узнал, что когда я удалил 4-ю строку, будут отображаться страницы категорий. вверх. Но (логично) без многоуровневой навигации.
Код: Выделить всё
Catalog Category (Anchor)
Код: Выделить всё
[url=">[/url]
decorateDataList('narrow-by-list')
jQuery(function($){
$(".block-layered-nav dt").click(function(){
if($(this).next("dd").css("display") == "none"){
$(this).next("dd").slideDown(200);
$(this).removeClass("closed");
} else {
$(this).next("dd").slideUp(200);
$(this).addClass("closed");
}
});
});
--
Надеюсь, кто-нибудь поможет мне решить эту проблему.
Подробнее здесь: https://stackoverflow.com/questions/294 ... egory-page