individual text for order - allow use new variable

19.09.2016 15:41
#1
lunalounge
Joomshopping forum user no avatar
Name: luna
08.12.2014
Posts: 4
Quote
individual text for order - allow use new variable

Hello,

I would like to add more than these variables that addon allows. Where i have to go so as to load more variables. In which file do i have to go to add my code? Thanks in advance


Joomla: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
JoomShopping: Version 4.6.0
PHP: 5.6.26-1+deb.sury.org~xenial+1
MySQL: 5.7.15-0ubuntu0.16.04.1
Website Url: http://www.drug-store.gr/
 
20.09.2016 21:16
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16504
Quote
Aw: individual text for order - allow use new variable

change code
plugins\jshoppingorder\status_text\status_text.php

chnage (add new) code

$message = str_replace('{first_name}', $order->f_name, $message);
$message = str_replace('{last_name}', $order->l_name, $message);
$message = str_replace('{order_number}', $order->order_number, $message);
$message = str_replace('{order_status}', $new_status->$name, $message);
if ($order_details_url){
$message = str_replace('{order_detail_url}', '<a href = "'.$order_details_url.'">'.$order_details_url.'</a>', $message);
} else {
$message = str_replace('{order_detail_url}', '', $message);
}
$message = str_replace('{comment}', $comments, $message);
$message = str_replace('{company}', $vendorinfo->company_name, $message);
$message = str_replace('{address}', $vendorinfo->adress, $message);
$message = str_replace('{zip}', $vendorinfo->zip, $message);
$message = str_replace('{city}', $vendorinfo->city, $message);
$message = str_replace('{country}', $vendorinfo->country, $message);
$message = str_replace('{phone}', $vendorinfo->phone, $message);
$message = str_replace('{fax}', $vendorinfo->fax, $message);

 
Copyrights MAXXmarketing GmbH. All Rights Reserved