Error in Undefined variable: languageID in Opencart 2.3.0.2

107 Views Asked by At

Am having a small issue in my site related tab in both Arabic and English interface it's showing in English, Really i need someone to help me fix this issue also i'm getting this error: I have already setup the name in translation files for 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 help would be much appreciated.

Screenshot

            <?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 one here is 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 } ?>
0

There are 0 best solutions below