How to display especific custom quote field on pdf


#1

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.


#2

Does this post help?


#3

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.


#4

Try
<?php echo $custom_fields['quote']['your_custom_field_name']; ?>


#5

Hi Crafter,

Works fine for me.

Thanks a lot.


How to use 2 currencies and numeric format for especific custom field value and name