Здравствуйте. Следующая проблема.
Покуда стоит валюта по умолчанию - все работает.
Делаю следующие действия:
- выбираю основной валютой гривну,
- дополнительную - доллар;
- переименовываю их, как мне нужно;
- и перед этим в настройках "магазин-продавец" выбрал главную гривну и вторую - доллар.
После этого, товары перестают отображаться в категории.

Нужно, чтобы сразу при попадании в категорию, товары отображались.
Что я делаю не так?
Вот код страницы категории:
<?php
vmdebug('$this->category '.$this->category->category_name);
<?php
if ($this->category->category_name)
{ ?>
<h1 class="browse-view"><span><span><?php echo $this->category->category_name; ?></span></span></h1>
<?php } ?>
<?php if ($this->category->category_description) { ?>
<div class="category_description">
<?php echo $this->category->category_description ; ?>
</div>
<?php } ?>
<?php
if ( VmConfig::get('showCategory',1) && $this->search ==null && $this->category->category_name) {
if ($this->category->haschildren) {
<div class="category-view pad-bot">
<?php
<div class="horizontal-separator"></div>
<?php }
<div class="row">
<?php }
<div class="category floatleft<?php echo $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<div class="category-border">
<?php
</div>
<div class="category-title"><?php echo $category->category_name ?></div>
</a>
</h2>
</div>
</div>
<?php
$iCategory ++;
<div class="clear"></div>
</div>
<?php
$iCol = 1;
} else {
$iCol ++;
}
}
}
<div class="clear"></div>
</div>
<?php } ?>
</div>
<?php }
}
?>
<?php
<h3><?php echo $this->keyword; ?></h3>
<?php } ?>
<?php } ?>
<?php if ($this->search !==null ) { ?>
<?php if (empty($this->products)) { ?>
<h2><?php echo JText::_('COM_VIRTUEMART_NO_RESULT');?></h2>
<?php } ?>
<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&limitstart=0&virtuemart_category_id='.$this->category->virtuemart_category_id ); ?>" method="get">
<div class="virtuemart_search">
<?php echo $this->searchcustomvalues ?>
<input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>" />
<input type="submit" value="<?php echo JText::_('COM_VIRTUEMART_SEARCH')?>" class="button" onclick="this.form.keyword.focus();"/>
</div>
<input type="hidden" name="search" value="true" />
<input type="hidden" name="view" value="category" />
</form>
<?php } ?>
<?php if (!empty($this->products)) { ?>
<div class="orderby-displaynumber">
<div class="width90">
<?php echo $this->orderByList['orderby']; ?>
<?php echo $this->orderByList['manufacturer']; ?>
<div class="Results">
<div class="floatleft display-number"><span><?php echo $this->vmPagination->getResultsCounter();?></span><?php echo $this->vmPagination->getLimitBox(); ?></div>
</div>
</div>
<div class="clear"></div>
</div>
<div id="tabs" class="tabs-position">
<ul class="tabs">
<li class="first"><a href="#tabs-1"> </a></li>
<li class="second"><a href="#tabs-2"> </a></li>
<li class="three"><a href="#tabs-3"> </a></li>
</ul>
<div id="bottom-pagination" class="pag-bot"><?php echo $this->vmPagination->getPagesLinks(); ?></div>
<div class="tab_container">
<div id="tabs-1" class="tab_content">
<div id="product_list">
<?php
<div class="browse-view">
<?php
<div class="horizontal-separator2"></div>
<?php }
<div class="row <?php echo $cls ?>">
<?php }
<div class="product1 floatleft<?php echo $Browsecellwidth . $show_vertical_separator ?>">
<div class="spacer">
<div class="floatright col-2">
<div class="product-price marginbottom12" id="productPrice<?php echo $product->virtuemart_product_id ?>">
<?php
if ($this->show_prices == '1') {
echo $this->currency->createPriceDiv('salesPrice','',$product->prices);
</div>
<?php if (!VmConfig::get('use_as_catalog')) {?>
<div class="addtocart-area">
<form method="post" class="product" action="index.php" id="addtocartproduct<?php echo $product->virtuemart_product_id ?>">
<div class="addtocart-bar">
<label for="quantity<?php echo $this->product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label>
<span class="quantity-box">
<input type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>
<?php
<?php
<div class="clear"></div>
<span class="addtocart-button">
<input type="submit" name="<?php echo $button_name ?>" class="<?php echo $button_cls ?>" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
</span>
</div>
<input type="hidden" class="pname" value="<?php echo $product->product_name ?>"/>
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>" />
</form>
</div>
<?php }?>
</div>
<div class="floatleft col-1">
<div class="browseProductImageContainer">
<script type="text/javascript">
var $j = jQuery.noConflict();
this.screenshotPreview2 = function(){
xOffset2 = 200;
yOffset2 = 100;
</script>
<?php
$imgsmall = JURI::base(true).'/'.$product->images[0]->file_url;
echo JHTML::link($product->link, $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',false ), 'rel="'.$imgsmall.'" class="img-scr"');
?>
</div>
<?php if (!VmConfig::get('use_as_catalog') and !(VmConfig::get('stockhandle','none')=='none') && (VmConfig::get ( 'display_stock', 1 )) ){?>
<div class="padding-stock">
<span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP')?></span>
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
</div>
<?php }?>
</div>
<div class="floatleft col-3">
<div class="title-indent">
<h2><?php echo JHTML::link($product->link, $product->product_name); ?></h2>
<div class="rating">
<?php
if ($this->showRating || !empty($product->rating)) {
$maxrating = VmConfig::get('vm_maximum_rating_scale',5);
$ratingwidth = ( $product->rating->rating * 100 ) / $maxrating;
<span class="vote">
<span title="" class="vmicon ratingbox" style="display:inline-block;">
<span class="stars-orange" style="width:<?php echo $ratingwidth;?>%">
</span>
</span>
</span>
<?php
}
?>
</div>
<div class="detal">
<?php
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
$iBrowseProduct ++;
$counterr++;
<div class="clear"></div>
</div>
<?php
$iBrowseCol = 1;
} else {
$iBrowseCol ++;
$counter++;
}
}
<div class="clear"></div>
</div>
<?php
}
?>
</div>
</div>
</div>
<div id="tabs-2" class="tab_content">
<div id="product_list2">
<?php
<div class="browse-view">
<?php
<div class="horizontal-separator2"></div>
<?php }
<div class="row <?php echo $cls ?>">
<?php }
<div class="product1 floatleft <?php echo $cls . $show_vertical_separator ?>">
<div class="spacer column">
<div class="floatleft col-1">
<div class="browseProductImageContainer"><?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
?>
</div>
<?php if (!VmConfig::get('use_as_catalog') and !(VmConfig::get('stockhandle','none')=='none') && (VmConfig::get ( 'display_stock', 1 )) ){?>
<div class="padding-stock">
<span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP')?></span>
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
</div>
<?php }?>
</div>
<div class="floatright col-2">
<div class="title-indent">
<h2><?php echo JHTML::link($product->link, $product->product_name); ?></h2>
<div class="rating">
<?php
if ($this->showRating || !empty($product->rating)) {
$maxrating = VmConfig::get('vm_maximum_rating_scale',5);
$ratingwidth = ( $product->rating->rating * 100 ) / $maxrating;
<span class="vote">
<span title="" class="vmicon ratingbox" style="display:inline-block;">
<span class="stars-orange" style="width:<?php echo $ratingwidth;?>%">
</span>
</span>
</span>
<?php
}
?>
</div>
<div style="display:none;">
</div>
<?php if (!VmConfig::get('use_as_catalog') and !(VmConfig::get('stockhandle','none')=='none') && (VmConfig::get ( 'display_stock', 1 )) ){?>
<div class="padding-stock" style="display:none;">
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
<span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP')?></span>
</div>
<?php }?>
<div class="detal" style="display:none;">
<?php
</div>
</div>
<div class="product-price marginbottom12" id="productPrice<?php echo $product->virtuemart_product_id ?>">
<?php
if ($this->show_prices == '1') {
if( $product->product_unit && VmConfig::get('vm_price_show_packaging_pricelabel')) {
echo "<strong>". JText::_('COM_VIRTUEMART_CART_PRICE_PER_UNIT').' ('.$product->product_unit."):</strong>";
}
echo $this->currency->createPriceDiv('salesPrice','',$product->prices);
</div>
<?php if (!VmConfig::get('use_as_catalog')) {?>
<div class="addtocart-area">
<form method="post" class="product" action="index.php" id="addtocartproduct<?php echo $product->virtuemart_product_id ?>">
<div class="addtocart-bar">
<label for="quantity<?php echo $this->product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label>
<span class="quantity-box">
<input type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>
<?php
<?php
<div class="clear"></div>
<span class="addtocart-button">
<input type="submit" name="<?php echo $button_name ?>" class="<?php echo $button_cls ?>" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
</span>
</div>
<input type="hidden" class="pname" value="<?php echo $product->product_name ?>"/>
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>" />
</form>
</div>
<?php }?>
</div>
<div class="clear"></div>
</div>
</div>
<?php
$iBrowseProduct ++;
$counterr++;
<div class="clear"></div>
</div>
<?php
$iBrowseCol = 1;
} else {
$iBrowseCol ++;
$counter++;
}
}
<div class="clear"></div>
</div>
<?php
}
?>
</div>
</div>
</div>
<div id="tabs-3" class="tab_content">
<div id="product_list3">
<?php
<div class="browse-view">
<?php
<div class="horizontal-separator2"></div>
<?php }
<div class="row <?php echo $cls ?>">
<?php }
<div class="product1 floatleft <?php echo $cls . $show_vertical_separator ?>">
<div class="spacer column2">
<div class="col-1">
<div class="browseProductImageContainer"><?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
?>
</div>
<div class="rating">
<?php
if ($this->showRating || !empty($product->rating)) {
$maxrating = VmConfig::get('vm_maximum_rating_scale',5);
$ratingwidth = ( $product->rating->rating * 100 ) / $maxrating;
<span class="vote">
<span title="" class="vmicon ratingbox" style="display:inline-block;">
<span class="stars-orange" style="width:<?php echo $ratingwidth;?>%">
</span>
</span>
</span>
<?php
}
?>
</div>
</div>
<div class="col-2">
<div class="title-indent">
<h2><?php echo JHTML::link($product->link, $product->product_name); ?></h2>
<div style="display:none;">
</div>
<?php if (!VmConfig::get('use_as_catalog') and !(VmConfig::get('stockhandle','none')=='none') && (VmConfig::get ( 'display_stock', 1 )) ){?>
<div class="padding-stock" style="display:none;">
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
<span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP')?></span>
</div>
<?php }?>
<div class="detal" style="display:none;">
<?php
</div>
</div>
<div class="product-price marginbottom12" id="productPrice<?php echo $product->virtuemart_product_id ?>">
<?php
if ($this->show_prices == '1') {
if( $product->product_unit && VmConfig::get('vm_price_show_packaging_pricelabel')) {
echo "<strong>". JText::_('COM_VIRTUEMART_CART_PRICE_PER_UNIT').' ('.$product->product_unit."):</strong>";
}
echo $this->currency->createPriceDiv('salesPrice','',$product->prices);
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
$iBrowseProduct ++;
$counterr++;
<div class="clear"></div>
</div>
<?php
$iBrowseCol = 1;
} else {
$iBrowseCol ++;
$counter++;
}
}
<div class="clear"></div>
</div>
<?php
}
?>
</div>
</div>
</div>
<div id="bottom-pagination"><?php echo $this->vmPagination->getPagesLinks(); ?></div>
</div>
</div>
<?php
Возможно, в коде нужно принудительно это прописать.
Спасибо, надеюсь на помощь.
[вложение удалено Администратором]