VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: AnSit on September 17, 2015, 23:11:10 PM

Title: Error handling for the user in the text of the letter
Post by: AnSit on September 17, 2015, 23:11:10 PM
In a letter to the appearance of the product in stock instead of a user name is always inserted the name of the vendor.

I looked at the code(mail_html_notify.php). There used to be:

<strong><?php echo vmText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME'$this->user); ?></strong><br/>

And now for some reason:

<strong><?php echo vmText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME'$this->vendor->vendor_store_name); ?></strong><br/>

If you use the old version, the message is not sent at all.

Why and how to fix it?