Info within e-mail

  • Posts: 234
  • Thank you received: 4
11 years 10 months ago #83990

Hello

I am trying to get the email to show the full information of the following

  1. Address, - This only shows the main parts of the address, could you get it to show the full address?
  2. customers email address. - (could this be in the From email) so that rather than the emails saying from "Draganfly Motorcycles" could it say from "Mr A Smith?
  3. Credit Card number - See below


I have been playing around with the email settings and I want it to show the full card number in the email which I receive. I tried changing the following line

echo "<br/>".JText::_('END_OF_CREDIT_CARD_NUMBER').' : '.substr($data->credit_card_info->cc_number,8);

so that at the end it changed from ,8); to ,16); this was far too simple and thus didn't work. I read in another post that changing the Credit card plugin was needed to get the full credit card number. Could someone please point me in the right direction.

Yours
Iain

Happy new year HikaShop.

Last edit: 11 years 10 months ago by mad-q.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 10 months ago #84119

Hi,

string substr ( string $string , int $start [, int $length ] )
Source: php.net/manual/en/function.substr.php

The call remove the 8 first characters in the string so if you don't want to strip it, just remove the "substr" call.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: mad-q

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum