3

When developing a payment fee, I want to add a surcharge fee to Pdf. I found the pdf.xml config. However, I don't know how it works. Can anyone help me to explain the config pdf xml.

vendor/magento/module-sales/etc/pdf.xml

<totals>

        <total name="discount">
            <title translate="true">Discount</title>
            <source_field>discount_amount</source_field>
            <title_source_field>discount_description</title_source_field>
            <font_size>7</font_size>
            <display_zero>false</display_zero>
            <sort_order>200</sort_order>
        </total>

UPDATE: Good explain here: Magento 2: How to Read From Configuration Tree

  • 1
    The file pdf.xml configuration is used in the Magento\Shipping\Model\Order\Pdf\Packaging – Atish Goswami May 30 '16 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.