CMS Development

DFeldman1
Member

Not pulling the unit price

SOLVE

created a custom quote and accidentally deleted the unit price column. I recreate the line item to put it back but it will not pull any information into that column. It shows the information within the Quote template settings but once we try to actaully create a quote it does not appearUP.png

0 Upvotes
1 Accepted solution
MichaelMa
Solution
Top Contributor

Not pulling the unit price

SOLVE

If that's the case, you need to talk to your devs to make sure that it's working properly. They may not have built the code to pull "Unit cost" to display properly. If they're using the field type "CRM object property", they can access the actual field name using the .property notation on the field.

 

{{ module.crmobjectproperty_field.property }} -> internal field name
{{ module.crmobjectproperty_field.property_definition.label }} -> What it displays as
{{ module.crmobjectproperty_field.property_definition.type }} -> type of data

 

For reference, the internal field name for "Unit Cost" is "hs_cost_of_goods_sold". They might have coded it to try to pull "unit_cost" as the field name which is not correct.

MichaelMa_0-1757531805265.png

 

View solution in original post

3 Replies 3
MichaelMa
Top Contributor

Not pulling the unit price

SOLVE

What quote template are you using? Can you take a screenshot of the settings in the Line Items table of the quote? 

 

If you're using the Hubspot quote templates, it should show something like:

MichaelMa_0-1757529963619.png

 

When generating the quote, have you tried selecting another template and then switching back to the one you want? Sometimes this is needed to update the template after you made changes.

0 Upvotes
DFeldman1
Member

Not pulling the unit price

SOLVE

I am using a template we created and customized from the "Modern" style quote template. I have tried swithcing the template and it seems to pull up on others just not this one for some reason.Quote temp.png

0 Upvotes
MichaelMa
Solution
Top Contributor

Not pulling the unit price

SOLVE

If that's the case, you need to talk to your devs to make sure that it's working properly. They may not have built the code to pull "Unit cost" to display properly. If they're using the field type "CRM object property", they can access the actual field name using the .property notation on the field.

 

{{ module.crmobjectproperty_field.property }} -> internal field name
{{ module.crmobjectproperty_field.property_definition.label }} -> What it displays as
{{ module.crmobjectproperty_field.property_definition.type }} -> type of data

 

For reference, the internal field name for "Unit Cost" is "hs_cost_of_goods_sold". They might have coded it to try to pull "unit_cost" as the field name which is not correct.

MichaelMa_0-1757531805265.png