Jump to content

Custom fields on checkout at different positions


User777

Recommended Posts

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!

Link to comment
Share on other sites

i'm confused - you mention the checkout page and then paste code form invoicepdf.tpl template! :twisted:

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated