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.