function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ian Lin 439Ian Lin 439 

how to dynamically fetch product family and list price on order product by selecting product name in vf page

AnudeepAnudeep (Salesforce Developers) 
Hi Ian - Product Family is not available on order product. However, ListPrice is available on OrderItem

Please see Order Item Field Reference
 
Select Product2Id, ListPrice from OrderItem

Product Family is a standard field on Product 2 

Please see Product2 Field Reference
 
Select Family from Product2

You need to run these queries in the controller of your VF page

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you