It was clear that list_price field was added to the PriceList management with #2986283: Add a list_price to price list items
but the resolve method doesn't care about the field_name data passed with Context and returns the Price only:
PriceListPriceResolver.php:84

return $price_list_item ? $price_list_item->getPrice() : NULL;

So i was thinking of a patch that checks the field_name inside context before returning...

$method = $context->getData('field_name') == 'list_price' ? 'getListPrice' : 'getPrice';
return $price_list_item ? $price_list_item->$method() : NULL;

Comments

eglaw created an issue. See original summary.

eglaw’s picture

Status: Needs review » Closed (duplicate)

Already fixed in dev branch.
Hope you'll release it soon.

Meantime here's a patch

eglaw’s picture

Patch attached (Took it from the 8.x-2.x dev branch)

eglaw’s picture

StatusFileSize
new6.69 KB
eglaw’s picture

StatusFileSize
new6.68 KB

Other fix added ...