Hey,
I was also looking for an option to show price of a variant and after some trying I found out that this code works:
In file
/administrator/components/com_hikashop/types/characteristic.php
line about 227
instead of
$values[$k] = $value->characteristic_value;
put:
foreach($element->variants as $variant){
foreach($variant->characteristics as $variantCharacteristic){
if($variantCharacteristic->characteristic_id==$value->characteristic_id){
$cenaWariantu = $variant->prices[0]->price_value_with_tax;
$cena[] =sprintf("%01.2f", $cenaWariantu);
}
}
}
$values[$k]=$value->characteristic_value." - PLN ".$cena[$k-1];
Works at least for me.
But I also know that after HikaShop upgrade I will lose it. Is there a chance to implement this option by HikaShop Team?