test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • minhbao Friend
    #156457

    Hi,
    I install JA Mesolite, when I install VM mesolite template , products details pages show this content:

    “Notice: Undefined index: attrib_value in /home/baobibm/public_html/components/com_virtuemart/themes/ja-mesolite/templates/product_details/includes/addtocart_list_single.tpl.php on line 38”

    Please tell me remove its or fix this error.

    Thanks and best regards,
    Minh Bao

    Sherlock Friend
    #363873

    Dear minhbao,

    You can go to the file of componentscom_virtuemartthemesja-mesolitetemplatesproduct_detailsincludesaddtocart_list_single.tpl.php file,Looking for the block of codes
    [PHP]
    <?php // Ouput Each Attribute
    foreach($product[‘attrib_value’] as $attribute) { ?>
    <span class=”vmChildDetail<?php echo $cls_suffix ?>” style=”width :<?php echo $attrib_width ?>;” />
    <?php echo ” “.$attribute ?></span>
    <?php
    }
    ?>
    [/PHP]

    change it to
    [PHP]
    <?php
    if(isset($product[‘attrib_value’] )) {
    // Ouput Each Attribute
    foreach($product[‘attrib_value’] as $attribute) { ?>
    <span class=”vmChildDetail<?php echo $cls_suffix ?>” style=”width :<?php echo $attrib_width ?>;” />
    <?php echo ” “.$attribute ?></span>
    <?php
    }
    }
    ?>
    [/PHP]

    I Do hope that would help !

    minhbao Friend
    #365982

    Dear Dat,

    Thank you so much.

    Minh Bao.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  minhbao 14 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum