View Single Post
  #2  
Old 03-19-2010, 06:25 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Anyone know how to display 'base' sku for variants - 4.3

Sometimes I feel like x-cart has one person who understands and writes the variants code and he works to ensure his job security

Open include/search.php

FIND:

Code:
foreach ($variant_properties as $property) { $fields[] = "IFNULL($sql_tbl[variants].$property, $sql_tbl[products].$property) as ".$property; }

Replace with:

Code:
foreach ($variant_properties as $property) { if ($property != 'productcode') $fields[] = "IFNULL($sql_tbl[variants].$property, $sql_tbl[products].$property) as ".$property; }
Reply With Quote