bear Posted January 6, 2008 Share Posted January 6, 2008 I can't seem to get this to work. I have one product that the client orders all the time, but need a custom field included with the invoice email. So, in that one product, I created a custom field, with the name "My Field". (no "quotes") I go to edit the invoice email, look in the Merge Fields popup, and it tells me I need to use the following to make it appear: [Custom-My Field] When I do so, that's exactly what shows in the email: [Custom-My Field]. No replacement, and if the field isn't submitted for that particular invoice, I would assume it doesn't show the variable. Still does. Something is amiss. Do I have this correct? I've tried several times, and also used one word for the field, spaces next to the "-" in between and so on. Nada. Any thoughts? Also, I need this to show on the invoice generated, including the PDF version. So far, nothing. It only shows on the order. Maybe I've missed a step or instructions? 0 Quote Link to comment Share on other sites More sharing options...
Methinks Posted January 6, 2008 Share Posted January 6, 2008 I had the same problem had to remove the space between words custom-MyField not sure if thats the answer but mine worked afterwards 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted January 6, 2008 WHMCS CEO Share Posted January 6, 2008 That's not the answer. That is the correct syntax to use if it was a client custom field. For a product custom field, you use [ProductCustom-My Field] However, product custom fields only work in product related email templates. They won't work in invoice related templates. Matt 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 6, 2008 Author Share Posted January 6, 2008 Well, no wonder. Thanks Matt. I didn't find that in the docs. My bad searching, probably. 0 Quote Link to comment Share on other sites More sharing options...
Methinks Posted January 6, 2008 Share Posted January 6, 2008 I would check spelling first i forgot to caps one way or the other...then did space one place and not the other...once i got them the same they worked fine 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 6, 2008 Author Share Posted January 6, 2008 So, I take it there isn't any way to include a memo, custom field, note, anything I can use to show the information when ordering this for the client (I do it all from the back end) that will include this on invoices, invoice emails, and so on? I'll have to not send when placing the order, then edit the invoice to include a memo, then send notification? Clunky, but doable, if that's the only way. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 29, 2008 Share Posted January 29, 2008 bear, did you ever figure out how to do it without manually doing it? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.