Skip to content

No product data in the document (PDF) #2451

Description

@netzarbeiter

If you have an attribute of the type "Text field" which is defined by your customer, the following problem can show up.

The customer inserts a special character (e.g. von <0.05% = n.d.) in the text field.

The special characters are output and understood by TCPPDF as HTML characters.

Therefore the product data is not outputed in the document.

Go to the iso_collection_invoice.html5 template:

Replace the following code

<?= $this->attributeValue($name, $value, ['html'=>true, 'item'=>$item['item']]) ?>

through

<?= htmlentities($this->attributeValue($name, $value, ['html'=>true, 'item'=>$item['item']])) ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions