VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: marvays on January 13, 2022, 05:06:52 AM

Title: paymentName in invoice email
Post by: marvays on January 13, 2022, 05:06:52 AM
In the order email there is an item "paymentName" and "shipmentName" which consists of two fields ... name and description. Both fields are inserted in close succession, without gaps and further optical separation. Everything happens in the core VM and cannot be modified in the template.

I suggest separating the fields with a space and enclosing the description in parentheses so that it is clear what the name is and what the description is.

Thank you and good luck.
Title: Re: paymentName in invoice email
Post by: GJC Web Design on January 13, 2022, 15:37:43 PM
http://forum.virtuemart.net/index.php?topic=147766.msg526988#msg526988
Title: Re: paymentName in invoice email
Post by: marvays on January 13, 2022, 16:09:48 PM
Quote from: GJC Web Design on January 13, 2022, 15:37:43 PM
http://forum.virtuemart.net/index.php?topic=147766.msg526988#msg526988
This is not the solution.
Title: Re: paymentName in invoice email
Post by: GJC Web Design on January 13, 2022, 18:07:42 PM
How would you know?  Do u know what is being discussed?
Title: Re: paymentName in invoice email
Post by: Jörgen on January 13, 2022, 20:03:16 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
Title: Re: paymentName in invoice email
Post by: pinochico on January 14, 2022, 07:22:29 AM
a lot of mail client delete div or span
Title: Re: paymentName in invoice email
Post by: Jörgen on January 14, 2022, 09:56:53 AM
Then maybe try this


  if ($this->orderDetails['paymentName']) {
   str_replace('spaceChar', ' ', $this->orderDetails['paymentName']);
   echo $this->orderDetails['paymentName'];
}


'spaceChar' is whatever you want to use to replace with ' ' or some other string..

Put this in your override for invoice and mail etc. This is a temporary fix the final fix should be done in the core.

Jörgen