Hi, I would like to add a new line (
) and the base price to my products, which are displayed with VAT.

E.g.

Price: 11,90 €
( 10 € + VAT)

Is it possible to use html-code (linebreak) and tokens (base price) in the suffix field?

CommentFileSizeAuthor
#1 text_format-1427768-1.patch3.38 KBikos

Comments

ikos’s picture

Assigned: Unassigned » ikos
Category: support » feature
Status: Active » Needs review
StatusFileSize
new3.38 KB

Hi,

The patch here adds an extra setting to the prefix / suffix formatter allowing you to specify the text filter used (depending on permission). You can then use permitted html.

Let me know if it works ok for you and I will commit it for the next version.

Richard

vistree’s picture

Hi ikos,
the linebreak is working great with your patch!! Thank you.
Just to know: should tokes have also to work with your patch? I tried to include [node:field-price] in the suffix - which is not replaced.

Kind regards and a nice evening!

ikos’s picture

Hi,

Tokens not yet working with this patch - mainly because there wasn't a token hook in commerce to tokenise the payment components.

I'll put one together as a separate patch - hopefully this week.

kind regards

Richard

vistree’s picture

thank you! Looking forward to test ;-)

Witch’s picture

Does this patch work?

Can somebody upload a patched version due to i have problems with patching... :(

Thank you

ikos’s picture

Status: Needs review » Fixed

Hi,

Marking a fixed as the text format patch I just applied will allow html and new lines in a formatter.

Token support is in development, so follow issue #1510852

kind regards

Richard

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.