2015-01-21 1 views
0

다음과 같은 문제가있는 웹 사이트에서 Virtuemart를 사용합니다. 우리는 다국어를 웹 사이트에서 사용하지만 영어 버전에서는 제조업체가 네덜란드어와 영어 링크를 제조업체에 모두 표시합니다. 다음은버추 마트 2 다국어 제조업체 double

코드는 우리가 사용되어 이에 대한

<?php 
/** 
* 
* Description 
* 
* @package VirtueMart 
* @subpackage Manufacturer 
* @author Kohl Patrick, Eugen Stranz 
* @link http://www.virtuemart.net 
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. 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. 
* @version $Id: default.php 2701 2011-02-11 15:16:49Z impleri $ 
*/ 

// Check to ensure this file is included in Joomla! 
defined('_JEXEC') or die('Restricted access'); 

// Category and Columns Counter 
$iColumn = 1; 
$iManufacturer = 1; 

// Calculating Categories Per Row 
$manufacturerPerRow = 3; 
if ($manufacturerPerRow != 1) { 
    $manufacturerCellWidth = ' width'.floor (100/$manufacturerPerRow); 
} else { 
    $manufacturerCellWidth = ''; 
} 

$doc = JFactory::getDocument(); 
$page_title = $doc->getTitle(); 
// Lets output the categories, if there are some 
if (!empty($this->manufacturers)) { ?> 

<script type="text/javascript"> 
jQuery.noConflict(); 
function equalHeight(group) { 
    tallest = 0; 
    group.each(function() { 
     thisHeight = jQuery(this).height(); 
     if(thisHeight > tallest) { 
     tallest = thisHeight; 
     } 
    }); 
    group.height(tallest); 
} 
jQuery(document).ready(function() { 
    equalHeight(jQuery(".sameheight")); 
}); 
</script> 

<div class="manufacturer-view-default category-view"> 
    <div class="bp_page_head_bar_cat"> 
    <h2><?php echo $page_title ?></h2> 
    </div> 

    <?php // Start the Output 
    foreach ($this->manufacturers as $manufacturer) { ?> 
    <!-- 
    <pre> 
    <?php print_r($manufacturer); ?> 
    </pre> 
    --> 
    <?php 
     // Show the horizontal seperator 
     if ($iColumn == 1 && $iManufacturer > $manufacturerPerRow) { ?> 
      <div class="horizontal-separator"></div> 
     <?php } 

     // this is an indicator wether a row needs to be opened or not 
     if ($iColumn == 1) { ?> 
     <div class="row"> 
     <?php } 

     // Manufacturer Elements 
     $manufacturerURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id); 
     $manufacturerIncludedProductsURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id); 
     $manufacturerImage = $manufacturer->images[0]->displayMediaFull("",false); 

     // Show Category ?> 
     <div class="manufacturer category floatleft<?php echo $manufacturerCellWidth ?>"> 
      <div class="FWcategorybox sameheight"> 
       <center> 
        <a id="FWcategorynameImage" alias="<?php echo $manufacturer->mf_name; ?>" title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturerImage;?></a> 
       </center> 
        <a id="FWcategorynamelink" title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturer->mf_name; ?></a> 
      </div> 
     </div> 
     <?php 
     $iManufacturer ++; 

     // Do we need to close the current row now? 
     if ($iColumn == $manufacturerPerRow) { 
      echo '<div class="clear"></div></div>'; 
      $iColumn = 1; 
     } else { 
      $iColumn ++; 
     } 
    } 

    // Do we need a final closing row tag? 
    if ($iColumn != 1) { ?> 
     <div class="clear"></div> 
    </div> 
    <?php } ?> 

</div> 
<?php 
} 
?> 

어떤 제안?

+0

안녕하세요! 이후 Joomla에는 자체 StackExchange 사이트가 있습니다 : [joomla.stackexchange.com] (http://joomla.stackexchange.com). 거기에 답을 얻을 수 있습니다. 질문을 거기로 옮기는 것을 고려하십시오 ([SO]에서 삭제하고 [joomla.stackexchange.com] (http://joomla.stackexchange.com)에 질문 텍스트를 붙여 넣으십시오). – miroxlav

답변

0

찾았습니다. 데이터베이스를 디버깅 한 후에 잘못된 ID가 있음을 발견했습니다. 그래서 잘못된 ID를 올바른 ID로 업데이트했습니다.

관련 문제