Recently, a customer wanted to display the images of the products they sell within CPQ to make it easier for their sales reps to identify the differences in the products. After much research and digging through the Salesforce documentation, I found it to be lacking in the context needed to do it in Lightning.
Here are the step by step instructions for adding a Product Image in the QLE:
- Upload all product images as Files
- Create two fields on product
- Text area field: to be filled in with URL of the image
- Go to the actual image in the Files, where you can see the details
- Right-click on the image and select Open Image in new Tab
- Copy everything in the URL after “version/” and put into the Text Area field you created on the Product record
- Make sure to associate the correct image with its corresponding product
- Go to the actual image in the Files, where you can see the details
- Formula field for Image: IMAGE(“/sfc/servlet.shepherd/version/”+Product_Link__c+”.png”,”photo”,32,32) ** swapping name of custom field for the text area name
- Text area field: to be filled in with URL of the image
- Create two fields on Quote Line
- Twin field from product:
- Text area with same API name as the product text area
- Image field:
- Use the same formula as you did for the Formula field on the Product record
- Twin field from product:
- Add image field form quote line to line editor Field Set.
- Field Sets –> line editor
Final Result:
Related: How to Set up Twin Fields in CPQ
Good day, we have created the first field, when we try and create the second field, we are havign issues saving the Formula field for Image. how do we get this IMAGE(“/sfc/servlet.shepherd/version/”+Product_Link__c+”.png”,”photo”,32,32) ** swapping name of custom field for the text area name right?
LikeLike
Yes, that’s correct.
LikeLike
Hello!!
So is there a way to get the product image on to the quote template?
We’ve created the image to load on the quote line editor, but it will not show when generating the PDF document. Thanks!
LikeLike
Are you trying to have this show in the line items table or in a visualforce table? Or is this static content?
LikeLike