each OPC basket.hml.php theme includes a line
- Code: Select all
foreach( $product_rows as $product ) {
right after this line, pls add the attributes:
- Code: Select all
// attribute tester
$desc = '';
for ($i=2; $i<=40; $i++)
{
$attr = 'attr'.$i;
$attr_title = 'attr'.$i.'_title';
if (!empty($product['product']->{$attr}))
{
if (!empty($desc)) $desc .= '<br />';
$desc .= $product['product']->{$attr_title}.': '.$product['product']->{$attr};
}
}
//
This will create a custom $desc variable which can be then printed for example further below in:
- Code: Select all
<div class="op_col2_2"><?php echo $product['product_name'] . $product['product_attributes'];
if (!empty($desc))
{
echo '<br />'.$desc;
}
?> <br />
Best Regards,
Stan