Hi,
I want to known how to display especific custom quote field on the pdf.
This is my current code on invoiceplane.php
<?php foreach ($custom_fields['quote'] as $custom_quote_field_name => $custom_quote_field_value) : ?>
<b> <?php echo nl2br(htmlsc($custom_quote_field_name) .': ') ; ?> </b> <?php echo nl2br(htmlsc($custom_quote_field_value) .'.......'); ?>
<?php endforeach; ?>
I need to known how to display especific custom field not all fields on the pdf.
Thanks on advance.
Hi Crafter,
I want to display especific custom quote field, but i do not known how to display only my specific fields.
with the following code displaying all custom quote fields, but I just want 2 or 3 custom fields to display on the pdf.
<?php foreach ($custom_fields['quote'] as $custom_quote_field_name => $custom_quote_field_value) : ?>
```
<?php echo nl2br(htmlsc($custom_quote_field_name) .': ') ; ?> <?php echo nl2br(htmlsc($custom_quote_field_value) .'.......'); ?>
<?php endforeach; ?>
Thanks on advance.
Try
<?php echo $custom_fields['quote']['your_custom_field_name']; ?>
1 Like
UnderDog
Split this topic
6
A post was split to a new topic: Undefined variable custom_fields