VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: marvays on January 12, 2022, 15:12:57 PM

Title: 'paymentName' in invoice email
Post by: marvays on January 12, 2022, 15:12:57 PM
There is an error in the order email, payment and shipping line. The name of the payment and the info for the payment are written in a row without a space. Where can I fix it? It's burning.

In mail_html_pricelist.php is only:
<td align="right" style="border: 1px solid #CCCCCC;" class="pricePad" colspan="6"><?php echo $this->orderDetails['paymentName'?> </td>

Thx
Title: Re: 'paymentName' in invoice email
Post by: GJC Web Design on January 12, 2022, 15:19:01 PM
add a space in front of the desc or  -  etc
Title: Re: 'paymentName' in invoice email
Post by: marvays on January 12, 2022, 15:22:53 PM
Quote from: GJC Web Design on January 12, 2022, 15:19:01 PM
add a space in front of the desc or  -  etc

Yes. But this will cause a grammatical error in the cart. Because in the cart, the info is given in parentheses.
Title: Re: 'paymentName' in invoice email
Post by: pinochico on January 13, 2022, 03:11:14 AM
paymentName is created by function in VM core.

If you need space between name and description you can:
- add space before description
- change core code

Look at the www.zelenazeme.cz - the shipping and payment name with description are changed by hack in core VM function.
Title: Re: 'paymentName' in invoice email
Post by: marvays on January 13, 2022, 05:01:14 AM
It will probably be better if I report it as a bug and maybe the guys will fix it in future versions. You'll need to separate it intelligently ... in italics, or put it in parentheses. Otherwise it looks amateurish.
Title: Re: 'paymentName' in invoice email
Post by: pinochico on January 13, 2022, 10:05:37 AM
this bug is 9 years old :)
Title: Re: 'paymentName' in invoice email
Post by: GJC Web Design on January 13, 2022, 15:36:44 PM
I know that payment and shipping names and desc are being discussed in the dev group now...
Title: Re: 'paymentName' in invoice email
Post by: Jörgen on January 13, 2022, 20:02:43 PM
Encapsulate with htmltags, for example:

<span class="vmpayment_info">Avsluta köpet genom att betala in köpesumman till det angivna bankgironumret.</span>

Jörgen @ Kreativ Fotografi