VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Porings on August 14, 2014, 12:55:12 PM

Title: Displayed Name not showing up in confirmation mail/admin order page
Post by: Porings on August 14, 2014, 12:55:12 PM
I removed the first_name, last_name and middle_name userfields but I kept the name userfield, and I have tried everything but it just won't show anywhere after the first order that a user makes.
It does show up the first time the user registers and logs in and orders an item from our shop, but after that it just shows blank space. I've added screenshots to show what I mean.

In the order confirmation email:
(http://i59.tinypic.com/34i5myw.jpg)
As you can see, it does not show the name in the title after the comma, and not on the Bill To part, even though it should. It does always display the correct email though.

And this is in the admin order overview page:
(http://i62.tinypic.com/2w3sz91.jpg)
It shows nothing in the Name part. Only if it's the first time they log in and the first order they make it does show name. But any order after that it does not show up

I hope someone knows what's causing this, I've tried to fix it on my own for a long time now but I can't seem to fix it.
My Virtuemart version is: 2.0.26d.

Thanks in advance,
Porings
Title: Re: Displayed Name not showing up in confirmation mail/admin order page
Post by: jenkinhill on August 14, 2014, 13:59:54 PM
The name field is the Joomla name display field. VM uses the VM Name fields - which you have deleted. Not sure why the Joomla name should be used the first time, but that suggests that it should be available to use in a template override. The files are in components/com_virtuemart/views/invoice/tmpl/
Title: Re: Displayed Name not showing up in confirmation mail/admin order page
Post by: Porings on August 14, 2014, 14:04:52 PM
Thank you for your reply. I have played quite a bit with the override and tried many different things in the php view templates, but nothing worked so far.
It definately sounds like it might be worth a shot. I did not know that if the field title is Name it automatically refers to the regular Joomla user database. What is the command to bring forth the joomla username?
Title: Re: Displayed Name not showing up in confirmation mail/admin order page
Post by: Porings on August 14, 2014, 18:39:38 PM
Is it a good idea to change the "name" userfield to "first_name" in the mysql database? Or will other things stop working then?