Would like Clos Link on notification Admin

  • Posts: 53
  • Thank you received: 1
  • Hikaserial Subscription Hikashop Business
7 years 11 months ago #256976

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.6
-- PHP version -- : 5

Dear : Hikashop
on ORDER_ADMIN_NOTIFICATION_SUBJECT
please see attach file for picture i would like to Close link order.
don't want to click and show link ( but wan't only show ORDER ID )

how to modify

Attachments:
Last edit: 7 years 11 months ago by i8acom.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
7 years 11 months ago #257014

Hi,

You can edit the order admin notification via the menu System>Emails and change that code in the preload version area:

'NOTIFICATION_OF_ORDER' => JText::sprintf('NOTIFICATION_OF_ORDER_ON_WEBSITE', $data->order_number, HIKASHOP_LIVE),
	'ORDER_BEGIN_MESSAGE' => JText::sprintf('ACCESS_ORDER_WITH_LINK',$vars['ORDER_LINK']),

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

  • Posts: 53
  • Thank you received: 1
  • Hikaserial Subscription Hikashop Business
7 years 11 months ago #257405

dear : nicolas,
Thank you somuch for Health,

I Try to modifiy as you teach but when finish order is show text :

Parse error: syntax error, unexpected T_ECHO in /home/baowaanc/domains/bao-waan.com/public_html/media/com_hikashop/mail/order_admin_notification.text.modified.php on line 13

attach file for Pictuer :



This My ORGINAL : CODE TEXT

<?php
/**
* @package HikaShop for Joomla!
* @version 2.6.4
* @author hikashop.com
* @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$url = HIKASHOP_LIVE.'administrator/index.php?option=com_hikashop&ctrl=order&task=edit&order_id='.$data->order_id;
echo JText::sprintf('ORDER_STATUS_CHANGED',$data->mail_status)."\r\n\r\n".JText::sprintf('NOTIFICATION_OF_ORDER_ON_WEBSITE',$data->order_number,HIKASHOP_LIVE);
echo "\r\n\r\n".JText::_('HIKA_EMAIL').': '.$data->customer->user_email[0];
$currency = hikashop_get('class.currency');
echo "\r\n\r\n".JText::_('HIKASHOP_TOTAL').' : '.$currency->format($data->order_full_price,$data->order_currency_id);
echo "\r\n".str_replace('<br/>',"\r\n",JText::sprintf('ACCESS_ORDER_WITH_LINK',$url));
if($data->order_payment_method=='creditcard' && !empty($data->credit_card_info->cc_number)){
echo "\r\n".JText::_('CUSTOMER_PAID_WITH_CREDIT_CARD');
if(!empty($data->credit_card_info->cc_owner)){
echo "\r\n".JText::_('CREDIT_CARD_OWNER').' : '.$data->credit_card_info->cc_owner;
}
echo "\r\n".JText::_('END_OF_CREDIT_CARD_NUMBER').' : '.substr($data->credit_card_info->cc_number,8);
if(!empty($data->credit_card_info->cc_CCV)){
echo "\r\n".JText::_('CARD_VALIDATION_CODE').' : '.$data->credit_card_info->cc_CCV;
}
echo "\r\n".JText::_('CREDITCARD_WARNING');
}
$fieldsClass = hikashop_get('class.field');
$fields = $fieldsClass->getFields('display:field_order_admin_notification=1',$data,'order','');
foreach($fields as $fieldName => $oneExtraField) {
$fieldData = trim(@$data->$fieldName);
if(empty($fieldData)) continue;
echo "\r\n".$fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField,$data->$fieldName);
}

Attachments:

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
7 years 11 months ago #257415

Hi,

The modification I've talked about is to be done in the preload area.
I never talked about modifying the text version and your error is about the text version.
Delete the text version code customization and you shouldn't have that error anymore.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum