View Single Post
  #8  
Old 12-31-2010, 10:57 AM
 
rsalimian rsalimian is offline
 

Newbie
  
Join Date: Nov 2010
Posts: 2
 

Default Re: When using variants, showing main SKU in product lists

hi all,

Current X-Cart logic is:
when product has Variants then it use the first variant SKU for showing at product detail

new login we need is:
showing main SKU instead of showing first Variant SKU


my Solution:


- FILE: \wholesale\include\func\func.product.php



FUNCTION: func_select_product

LINE: around 1049 √


what you should do is:



you should comment the line

Code:
$tmp = func_query_first("SELECT * FROM $sql_tbl[variants] WHERE variantid = '$product[variantid]'");


also :

in \skin\"your skin name"\customer\main\product_details.tpl

line: find the table row that shows the productcode and remove the "id=product_code" attribute of TD tag.

i think its not true for deleteing this attribute and we should find that where at the code side it set the value for this id.
__________________
Version 4.4.1
Reply With Quote