我的网站相关标签中有一个小问题,在阿拉伯语和英语界面中显示为英文,真的我需要有人帮我修复此问题,我也收到此错误: 我已经在两种语言的翻译文件中设置了名称。
PHP Notice: Undefined variable: languageID in public_html/catalog/view/theme/marine/template/product/product_detail_hitech.tpl on line 254
<?php if( $productConfig['enable_product_customtab'] && isset($productConfig['product_customtab_name'][$languageID]) ) { ?>
PHP Notice: Undefined variable: languageID in public_html/catalog/view/theme/marine/template/product/product_detail_hitech.tpl on line 335
<?php if( $productConfig['enable_product_customtab'] && isset($productConfig['product_customtab_content'][$languageID]) ) { ?>
调用此代码的代码:
<?php if ($products) { ?>
<li>
<a href="#tab-related" data-toggle="tab">
Related Products (<?php echo count($products); ?>)
</a>
</li>
<?php } ?>
<?php if( $productConfig['enable_product_customtab'] && isset($productConfig['product_customtab_name'][$languageID]) ) { ?>
<li>
<a href="#tab-customtab" data-toggle="tab">
<?php echo $productConfig['product_customtab_name'][$languageID]; ?>
</a>
</li>
<?php } ?>
非常感谢您的帮助。
<?php if ($products) { ?>
<li><a href="#tab-related" data-toggle="tab">Related Products (<?php echo count($products); ?>)</a></li>
<?php } ?>
<?php if( $productConfig['enable_product_customtab'] && isset($productConfig['product_customtab_name'][$languageID]) ) { ?>
<li><a href="#tab-customtab" data-toggle="tab"><?php echo $productConfig['product_customtab_name'][$languageID]; ?></a></li>
<?php } ?>
第二个是:
<?php if ($products) { ?>
<div class="tab-pane" id="tab-related">
<div class="product-related"> <?php require( PAVO_THEME_DIR."/template/common/products_related.tpl" ); ?> </div>
</div>
<?php } ?>