User777 Posted March 3, 2016 Share Posted March 3, 2016 Hello, I would like to have some custom fields on the checkout page at different positions. With that there are everytime on the same position, because of the foreach loop i think: if ($customfields) { $pdf->Ln(); foreach ($customfields as $customfield) { $pdf->Cell(0, 4, $customfield['fieldname'] . ': ' . $customfield['value'], 0, 1, 'L'); } } How can I define a specific customfield, to have them on different positions? Hope you can help. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 3, 2016 Share Posted March 3, 2016 i'm confused - you mention the checkout page and then paste code form invoicepdf.tpl template! one solution is shown in the thread below where you can reference a custom field using an {if} statement and display it wherever you want to. http://forum.whmcs.com/showthread.php?109071-EU-VAT-number-text-box-placement-on-checkout-page-Can-you-change-the-placement&p=446518#post446518 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.