Description: As is the comparison between multiple products that have options shows every option the customer could choose. This mod changes it to only the default options are listed on comparison.
File: compare.php
Around Line: 114
change:
$sql .= " WHERE (ip.item_id=" . intval($item_id) . " OR ip.item_type_id=" . $db->tosql($item_type_id, INTEGER) . ") ";
$sql .= " ORDER BY ip.property_order, ip.property_id ";
to:
$sql .= " WHERE (ip.item_id=" . intval($item_id) . " OR ip.item_type_id=" . $db->tosql($item_type_id, INTEGER) . ") ";
$sql .= " AND ipv.is_default_value=1 "; // mod
$sql .= " ORDER BY ip.property_order, ip.property_id ";
battleaxe
15 Jul 2007 4:36 PM
Thanks Charles, great mod, options not really needed on comparison.