Welcome, Guest
Username: Password: Remember me

TOPIC: Sender name isnt showing in backend

Sender name isnt showing in backend 4 years 4 months ago #3838

  • shonnpiersol
  • shonnpiersol's Avatar
  • Offline
  • Junior Boarder
  • Posts: 26
  • Karma: 0
The sender name needs to show instead of "user" name because most buyers is not site member.

I get paypal notice of payment from "lindsey". But in gift card component, it says User "guest" receiver Andrew. But no way to know Lindsey bought it for Andrew unless i dig deep into the gift card details and go to a specific tab.

If user is changed to "sender name" this fixes that issue. Thank you
The administrator has disabled public write access.

Sender name isnt showing in backend 4 years 4 months ago #3839

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1638
  • Thank you received: 245
  • Karma: 27
Hi

To achieve this, in administrator/components/com_cmgiftcard/views/cards/tmpl/default.php you replace these lines
								if ($item->user_id > 0)
								{
									echo JFactory::getUser($item->user_id)->username;
								}
								else
								{
									echo JText::_('COM_CMGIFTCARD_GUEST');
								}

with
								echo $item->from_name;

Regards,
Hung
The administrator has disabled public write access.