News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Displayed Name not showing up in confirmation mail/admin order page

Started by Porings, August 14, 2014, 12:55:12 PM

Previous topic - Next topic

Porings

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:

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:

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

jenkinhill

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/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Porings

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?

Porings

Is it a good idea to change the "name" userfield to "first_name" in the mysql database? Or will other things stop working then?