View Single Post
  #5  
Old 02-08-2008, 07:53 PM
 
mikeynuts mikeynuts is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 46
 

Default Re: Parent SKU for a item with variants?

Quote:
Originally Posted by geckoday
X-Cart only supplies the product code of the variant and not the product. You would need to modify the query in include/func/func_order.php function func_order_data to rename the products table productcode field to something like parentproductcode so that it doesn't get overlayed by the product code in the order_details table. It should then be available in the template as $product.parentproductcode.

Oh wow, works perfectly... THANKS!

For anyone else I added:

$sql_tbl[products].productcode as parentproductcode

to the sql query in the query in the function above.
__________________
X-Cart Gold v4.1.9
Reply With Quote