Template - Product Renders $1
Permalink Browser Info Environment
I have developed a registration form and template. When somebody submits the registration form then the template is called to email them a receipt/email. They have separate product options one product at $325 - {{ field_35 }} and another product at $425 - {{ field_36}}. The field(s) that are pulled into the template are {{ field_35 }} or {{ field_36}} for the selected product amount. The email generated only renders "1" for {{ field_35 }} or {{ field_36}} in the email notification not the total price of $325 or $425. The 1 seems to be coming from "increment" not "price" or "total" of purchase. What would be the {{ something }} to get the total to render in the email notification.
Thank you
Thank you
Type: | Discussion |
---|---|
Status: | In Progress |
Hi,
I ran some tests and it is to do with the nature of the product type field it records the value as 1 or 0 in the record after submission.
Assuming a customer is only selecting a single product from 2 possibles If you change the product to a radio button with a single value under options and specify manually as $325. When the customer checks that box it will come through with the value in the template.
PS. That does not work properly but I just realised you just use
{{ field_35 | times: 325 }}
Best
Phil
I ran some tests and it is to do with the nature of the product type field it records the value as 1 or 0 in the record after submission.
Assuming a customer is only selecting a single product from 2 possibles If you change the product to a radio button with a single value under options and specify manually as $325. When the customer checks that box it will come through with the value in the template.
PS. That does not work properly but I just realised you just use
{{ field_35 | times: 325 }}
Best
Phil
Better still
$ {{ field_35 | times: 325 }}
$ {{ field_35 | times: 325 }}
Phil,
Thank you. This worked
Thank you. This worked
I am not sure I understand exactly what you want to do here but you can add two fields by this liquid template structure
{{ field_35 | plus: field_36 }}
Hmm, okay I think i understand what you are saying, what does
{{ field_35 | times:1 }} output?
Best
Phil