Variables in Mail Template
Hi,
When I try to use my Customized email template in payment
receipt .
and I use variables listed in this page :
https://cheddargetter.com/admin/emails/syntax/type/PaymentReceipt/e...
any one of the variable with .[n]. in middle returns error 500
.
e.g. : {$items.[n].name}
Please advise
thanks
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Marc Guyer on 04 Dec, 2013 02:44 PM
Hi Christina -- Sorry about that error. We're working to improve the reporting for errors like this (invalid variable name). The
items
variable is a list of items, so you need to reference them with a number (e.g., $items.[0].name is the name of the first item in the list). Alternatively, you can use a loop to reference them one at a time. There's a nice example using thecharges
list here:https://gist.github.com/marcguyer/800598#file-invoicelayout-txt
2 Posted by christina frank... on 05 Dec, 2013 11:02 PM
From a CUSTOMER’s profile page, I click the CUSTOMER tab and get to this URL:
https://cheddargetter.com/admin/customers/get/orderBy/name/orderByDirection/asc/perPage/25/page/1/search/Oneims+%2F+ClickExposure/customer_search_submit_x/19/customer_search_submit_y/18/subscriptionStatus//planCode//createdAfterDate//createdBeforeDate//canceledAfterDate//canceledBeforeDate//transactedAfterDate//transactedBeforeDate//couponCode//searchAgain/1<https://cheddargetter.com/admin/customers/get/orderBy/name/orderByDirection/asc/perPage/25/page/1/search/Oneims+%2F+ClickExposure/customer_search_submit_x/19/customer_search_submit_y/18/subscriptionStatus/planCode/createdAfterDate/createdBeforeDate/canceledAfterDate/canceledBeforeDate/transactedAfterDate/transactedBeforeDate/couponCode/searchAgain/1>
Where the error message is:
Not Found
The requested URL /admin/customers/get/orderBy/name/orderByDirection/asc/perPage/25/page/1/search/Oneims+/+ClickExposure/customer_search_submit_x/19/customer_search_submit_y/18/subscriptionStatus//planCode//createdAfterDate//createdBeforeDate//canceledAfterDate//canceledBeforeDate//transactedAfterDate//transactedBeforeDate//couponCode//searchAgain/1 was not found on this server.
Please advise asap. I’m just about done with entering my customers and I have this issue.
Marc Guyer closed this discussion on 06 Dec, 2013 02:01 PM.