同じ問題がありました。しかし、私は価格だけを表示しなければなりませんでした。したがって、最も速い方法は、customfields.php のsql select ステートメントを変更することです。
Virtuemart 2.0 の Joomla 2.5 のパス administrator/components/com_virtuemart/models/customfields.php の 548 行目
public function getProductCustomsFieldRelatedProducts($product)
変更のみ
$query=
と
'SELECT C.`virtuemart_custom_id` , `custom_parent_id` , `admin_only` , `custom_title` , `custom_tip` , C.`custom_value`
AS value, `custom_field_desc` , `field_type` , `is_list` , `is_hidden` , C.`published` , field.`virtuemart_customfield_id` ,
field.`custom_value`, field.`custom_param`, price.`product_price`, field.`ordering`
FROM `#__virtuemart_customs` AS C
LEFT JOIN `#__virtuemart_product_customfields` AS field ON C.`virtuemart_custom_id` = field.`virtuemart_custom_id`
LEFT JOIN `#__virtuemart_product_prices` AS price ON
field.`custom_value` = price.`virtuemart_product_id`
Where field.`virtuemart_product_id` ='.(int)$product->virtuemart_product_id.' and `field_type` = "R"';
結局、559行目の変更
$field->custom_price
に
$field->product_price
そして最後に... 製品説明のテンプレート ビューで、以下のコードを挿入して、関連製品の価格を表示します。
<?php echo $field->product_price ?>