- Posts: 53
- Thank you received: 1
Would like Clos Link on notification Admin
9 years 10 months ago - 9 years 10 months ago #256976
by i8acom
Would like Clos Link on notification Admin was created by i8acom
Last edit: 9 years 10 months ago by i8acom.
Please Log in or Create an account to join the conversation.
9 years 9 months ago #257014
by nicolas
Replied by nicolas on topic Would like Clos Link on notification Admin
Hi,
You can edit the order admin notification via the menu System>Emails and change that code in the preload version area:
You can edit the order admin notification via the menu System>Emails and change that code in the preload version area:
Code:
'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.
9 years 9 months ago #257405
by i8acom
Replied by i8acom on topic Would like Clos Link on notification Admin
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,
;
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);
}
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,
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);
}
Please Log in or Create an account to join the conversation.
9 years 9 months ago #257415
by nicolas
Replied by nicolas on topic Would like Clos Link on notification Admin
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.
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.190 seconds