Joomla 1.5.22 VirtueMart 1.1.3
доброго времени суток
помогайте парни
В один "прекрасный" момент захожу на сайт, полетела страница каталога index.php?option=com_virtuemart&Itemid=18
стала пустой
потом заметил, что страницы производителей тоже пустые
начал рыть в сторону файлов shop.manufacturer_page.php вот его код
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
*
* @version $Id: shop.manufacturer_page.php 1095 2007-12-19 20:19:16Z soeren_nb $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName( __FILE__ );
$manufacturer_id = intval( vmGet( $_GET, 'manufacturer_id' ));
if( !empty( $manufacturer_id ) ) {
$q = "SELECT `manufacturer_id`,`mf_name`,`mf_email`,`mf_desc`,`mf_url` FROM `#__{vm}_manufacturer` WHERE ";
$q .= "`manufacturer_id`=$manufacturer_id";
$db->query($q);
if( !$db->next_record() ) {
return;
}
$mf_name=$db->f("mf_name");
$mf_email=$db->f("mf_email");
$mf_desc=$db->f("mf_desc");
$mf_url = $db->f("mf_url");
$tpl = vmTemplate::getInstance();
$tpl->set_vars(array('mf_name'=>$db->f("mf_name"),
'mf_email' => $db->f("mf_email"),
'mf_desc' => $db->f("mf_desc"),
'mf_url' => $db->f("mf_url"),
'db' => $db
)
);
echo $tpl->fetch('pages/shop.manufacturer.tpl.php');
}
?>
вот подгружаемый шаблон
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
*
* @version $Id: shop.manufacturer.tpl.php 1095 2007-12-19 20:19:16Z soeren_nb $
* @package VirtueMart
* @subpackage themes
* @copyright Copyright (C) 2007 Soeren Eberhardt. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName( __FILE__ );
?>
<h3><?php echo $mf_name;?></h3>
<table align="center"cellspacing="0" cellpadding="0" border="0">
<tr valign="top">
<th colspan="2" align="center"class="sectiontableheader">
<strong><?php echo $VM_LANG->_('PHPSHOP_MANUFACTURER_FORM_INFO_LBL')?></strong>
</th>
</tr>
<tr valign="top">
<td align="center"colspan="2"><br />
<?php echo " " . $mf_name . "<br />"; ?>
<br /><br />
</td>
</tr>
<tr>
<td valign="top" align="center"colspan="2">
<br /><?php echo $VM_LANG->_('PHPSHOP_STORE_FORM_EMAIL')?>:
<a href="mailto:<?php echo $mf_email; ?>"><?php echo $mf_email; ?></a>
<br />
<br /><a href="<?php echo $mf_url ?>" target="_blank"><?php echo $mf_url ?></a><br />
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="2">
<br /><?php echo $mf_desc ?><br />
</td>
</tr>
</table>
вставлял первой строчкой <?php echo "asd"; ?> в shop.manufacturer_page.php, не выводит. очевидно просто даже не доходит до этого кода. подскажите, кто знает, хоть в какую сторону рыть.
Кстати ссылка на страницу производителя формируется правильная
index2.php?page=shop.manufacturer_page&manufacturer_id=8266&output=lite&option=com_virtuemart&Itemid=18
мне кажется, что каталог и производители связаны и корень зла тут один, но ума не приложу что делать.
ПОМОГИТЕ