Как убрать "Недавно просмотренные товары" в VirtueMart?
Автор: Administrator 03.03.2011 19:24
Как убрать "Недавно просмотренные товары" в VirtueMart 1.1.5?
Находим файл: "components\com_virtuemart\themes\твой_шаблон\templates\common
recent.tpl.php"
Ищем в файле код и комментируем строки, заключая код между "<!--//" и "//-->":
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>
<?php if( empty($recent_products)) return;
?>
<!-- List of recent products -->
<!--//<h3 class="vmFieldTitle"><?php echo $VM_LANG->_('VM_RECENT_PRODUCTS') ?></h3>
<ul class="vmRecentDetail">
<?php
foreach( $recent_products as $recent ) { // Loop through all recent products
foreach( $recent as $attr => $val ) {
//echo $attr." - ".$val."<br />";
$this->set( $attr, $val );
}
/**
* Available indexes:
*
* $recent["product_name"] => The user ID of the comment author
* $recent["category_name"] => The username of the comment author
* $recent["product_thumb_image"] => The name of the comment author
* $recent["product_url"] => The UNIX timestamp of the comment ("when" it was posted)
* $recent["category_url"] => The rating; an integer from 1 - 5
* $recent["product_s_desc"] => The comment text
*
*/
?>
<li>
<a href="/blog/<?php echo $recent["product_url"]; ?>" >
<?php echo $recent["product_name"]; ?></a> (<?php echo $VM_LANG->_('PHPSHOP_CATEGORY') ?>:
<a href="/blog/<?php echo $recent["category_url"]; ?>" ><?php echo $recent["category_name"]; ?></a>)
</li>
<?php
}
?>
</ul>//-->
<?php if( empty($recent_products)) return;
?>
<!-- List of recent products -->
<!--//<h3 class="vmFieldTitle"><?php echo $VM_LANG->_('VM_RECENT_PRODUCTS') ?></h3>
<ul class="vmRecentDetail">
<?php
foreach( $recent_products as $recent ) { // Loop through all recent products
foreach( $recent as $attr => $val ) {
//echo $attr." - ".$val."<br />";
$this->set( $attr, $val );
}
/**
* Available indexes:
*
* $recent["product_name"] => The user ID of the comment author
* $recent["category_name"] => The username of the comment author
* $recent["product_thumb_image"] => The name of the comment author
* $recent["product_url"] => The UNIX timestamp of the comment ("when" it was posted)
* $recent["category_url"] => The rating; an integer from 1 - 5
* $recent["product_s_desc"] => The comment text
*
*/
?>
<li>
<a href="/blog/<?php echo $recent["product_url"]; ?>" >
<?php echo $recent["product_name"]; ?></a> (<?php echo $VM_LANG->_('PHPSHOP_CATEGORY') ?>:
<a href="/blog/<?php echo $recent["category_url"]; ?>" ><?php echo $recent["category_name"]; ?></a>)
</li>
<?php
}
?>
</ul>//-->
| < Предыдущая | Следующая > |
|---|
Статистика
Пользователи : 1
Статьи : 35
Ссылки : 6
Просмотры материалов : 31134
Статьи : 35
Ссылки : 6
Просмотры материалов : 31134
