hide / remove custom fields from customer e-mail

  • Posts: 68
  • Thank you received: 2
10 years 2 months ago #203585

-- HikaShop version -- : latest business
-- Joomla version -- : latest
-- PHP version -- : 5.3
-- Browser(s) name and version -- : safari latest
-- Error-message(debug-mod must be tuned on) -- : n.a.

Hi,

I wonder if it is possible to hide my custom-fields from the order-email which is sent to the customer.

Thanks

Mark

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #203667

Hello Mark,
The solution will probably be to directly edit the code of your emails via "Hikashop->System->Emails".

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

  • Posts: 68
  • Thank you received: 2
10 years 2 months ago #204006

Thanks mohammed,

Any idea which part of the e-mail-setup I've to change. There are:
Preload-version, Text-version and HTML-version.

Thanks again.

Mark

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

  • Posts: 84220
  • Thank you received: 13673
  • MODERATOR
10 years 2 months ago #204010

Hi,

I suppose that these are custom item fields so you can remove the code

if(!empty($itemFields)){
			foreach($itemFields as $field){
				$namekey = $field->field_namekey;
				if(!isset($item->$namekey) || (empty($item->$namekey) && !strlen($item->$namekey))) continue;
				$t .= '<p>'.$fieldsClass->getFieldName($field).': '.$fieldsClass->show($field,$item->$namekey,'user_email').'</p>';
			}
		}
in the preload version in order to remove their display from the email.

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

  • Posts: 68
  • Thank you received: 2
10 years 2 months ago #204051

Thanks Nicolas,

I'll give it a try.

Let you know.

Mark

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

Time to create page: 0.071 seconds
Powered by Kunena Forum