php - Error in Undefined variable: languageID in Opencart 2.3.0.2 -
am having small issue in site related tab in both arabic , english interface it's showing in english, need me fix issue i'm getting error: have setup name in translation files both languages.
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]) ) { ?>
the code calling this:
<?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 } ?>
your appreciated.
<?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 } ?>
the second 1 here it:
<?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 } ?>
Comments
Post a Comment