Wednesday, February 24, 2010

virtuemart addtocart_list_single.tpl.php on line 38

If you are getting an attributes error in virtuemart with child products on line 38. Just open the file and add an if isset to the attributes around the foreach statement.

likea-so


if(isset($product['attrib_value']))
{
foreach($product['attrib_value'] as $attribute) { ?>
<span class="vmChildDetail<?php echo $cls_suffix ?>" style="width :<?php echo $attrib_width ?>;" />
<?php echo " ".$attribute ?></span>
<?php
}
}


Stumble Upon CodePyro

No comments:

Post a Comment