Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
charleshays
charleshays
Mod: Comparison Page Display Only Default Options
 
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
battleaxe
Thanks Charles, great mod, options not really needed on comparison.
 
cheers
Kim