[Skip to main content](#vessel-content)

#   Change fields in orders backend

##

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile")
- [ Offline](/forum/user/916-mohairbears)

Less More

- Posts: 611
- Thank you received: 13
-

14 years 9 months ago [\#38005](#38005) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Re: Change fields in orders backend](/forum/4-how-to/34343-change-fields-in-orders-backend?start=20#38005 "I use HikaShop for wholesale orders. Our sales person enters orders for all our sales. He is listed as the customer for all the orders in the backend under &quot;Customer&quot;. Is there a way to replace the...")*

Hi, I have managed to get what I required with the code in red, don't ask me how, more luck that knowledge. I do still have an issue though, the payment method has never shown and this seems a good time to fix it?

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 1.5.6
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
&lt;div class="iframedoc" id="iframedoc"&gt;&lt;/div&gt;
&lt;form action="&lt;?php echo hikashop_completeLink('order'); ?&gt;" method="post" name="adminForm" id="adminForm"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td width="100%"&gt;
&lt;?php echo JText::_( 'FILTER' ); ?&gt;:
&lt;input type="text" name="search" id="search" value="&lt;?php echo $this-&gt;escape($this-&gt;pageInfo-&gt;search);?&gt;" class="text_area" onchange="document.adminForm.submit();" /&gt;
&lt;button onclick="this.form.submit();"&gt;&lt;?php echo JText::_( 'GO' ); ?&gt;&lt;/button&gt;
&lt;button onclick="document.getElementById('search').value='';this.form.submit();"&gt;&lt;?php echo JText::_( 'RESET' ); ?&gt;&lt;/button&gt;
&lt;/td&gt;
&lt;td nowrap="nowrap"&gt;
&lt;?php if($this-&gt;affiliate_active){
echo $this-&gt;partner-&gt;display("filter_partner",$this-&gt;pageInfo-&gt;filter-&gt;filter_partner,false);
}
echo $this-&gt;payment-&gt;display("filter_payment",$this-&gt;pageInfo-&gt;filter-&gt;filter_payment,false);
echo $this-&gt;category-&gt;display("filter_status",$this-&gt;pageInfo-&gt;filter-&gt;filter_status,false); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table class="adminlist" cellpadding="1"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th class="hikashop_order_num_title title titlenum"&gt;
&lt;?php echo JText::_( 'HIKA_NUM' );?&gt;
&lt;/th&gt;
&lt;th class="hikashop_order_select_title title titlebox"&gt;
&lt;input type="checkbox" name="toggle" value="" onclick="checkAll(&lt;?php echo count($this-&gt;rows); ?&gt;);" /&gt;
&lt;/th&gt;
&lt;th class="hikashop_order_number_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('ORDER_NUMBER'), 'b.order_number', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
&lt;th class="hikashop_order_customer_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('CUSTOMER'), 'c.name', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
&lt;th class="hikashop_order_payment_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('PAYMENT_METHOD'), 'b.order_payment_method', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
&lt;th class="hikashop_order_date_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('DATE'), 'b.order_created', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
&lt;th class="hikashop_order_modified_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('HIKA_LAST_MODIFIED'), 'b.order_modified', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
&lt;th class="hikashop_order_status_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('ORDER_STATUS'), 'b.order_status', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;

&lt;th class="hikashop\_order\_shipping\_title title"&gt;
&lt;?php echo JHTML::\_('grid.sort', JText::\_('HIKASHOP\_SHIPPING'), 'b.order\_shipping\_price', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;

&lt;th class="hikashop_order_total_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('HIKASHOP_TOTAL'), 'b.order_full_price', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
&lt;?php $count_fields=0;
if(hikashop_level(2) &amp;&amp; !empty($this-&gt;fields)){
foreach($this-&gt;fields as $field){
$count_fields++;
echo '&lt;th class="hikashop_order_'.$field-&gt;field_namekey.'_title title"&gt;'.JHTML::_('grid.sort', $this-&gt;fieldsClass-&gt;trans($field-&gt;field_realname), 'b.'.$field-&gt;field_namekey, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ).'&lt;/th&gt;';
}
}
if($this-&gt;affiliate_active){?&gt;
&lt;th class="hikashop_order_partner_title title"&gt;
&lt;?php echo JText::_('PARTNER'); ?&gt;
&lt;/th&gt;
&lt;?php }?&gt;
&lt;th class="hikashop_order_id_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_( 'ID' ), 'b.order_id', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tfoot&gt;
&lt;tr&gt;
&lt;td colspan="&lt;?php if($this-&gt;affiliate_active){echo 11+$count_fields;}else{echo 10+$count_fields;}?&gt;"&gt;
&lt;?php echo $this-&gt;pagination-&gt;getListFooter(); ?&gt;
&lt;?php echo $this-&gt;pagination-&gt;getResultsCounter(); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tfoot&gt;
&lt;tbody&gt;
&lt;?php
$k = 0;
for($i = 0,$a = count($this-&gt;rows);$i&lt;$a;$i++){
$row =&amp; $this-&gt;rows[$i];
?&gt;
&lt;tr class="&lt;?php echo "row$k"; ?&gt;"&gt;
&lt;td class="hikashop_order_num_value"&gt;
&lt;?php echo $this-&gt;pagination-&gt;getRowOffset($i);
?&gt;
&lt;/td&gt;
&lt;td class="hikashop_order_select_value"&gt;
&lt;?php echo JHTML::_('grid.id', $i, $row-&gt;order_id ); ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_order_number_value"&gt;
&lt;?php if($this-&gt;manage){ ?&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('order&amp;task=edit&amp;cid[]='.$row-&gt;order_id.'&amp;cancel_redirect='.urlencode(base64_encode(hikashop_completeLink('order')))); ?&gt;"&gt;
&lt;?php } ?&gt;
&lt;?php echo $row-&gt;order_number; ?&gt;
&lt;?php if($this-&gt;manage){ ?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_order_customer_value"&gt;
&lt;?php
if(!empty($row-&gt;username)){
echo $row-&gt;name.' ( '.$row-&gt;username.' )&lt;/a&gt;&lt;br/&gt;';
}
$url = hikashop_completeLink('user&amp;task=edit&amp;cid[]='.$row-&gt;user_id);
$config =&amp; hikashop_config();
if(hikashop_isAllowed($config-&gt;get('acl_user_manage','all'))) echo $row-&gt;user_email.'&lt;a href="'.$url.'"&gt;&lt;img src="'.HIKASHOP_IMAGES.'edit2.png" alt="edit"/&gt;&lt;/a&gt;';
?&gt;
&lt;/td&gt;
&lt;td class="hikashop_order_payment_value"&gt;
&lt;?php if(!empty($row-&gt;order_payment_method)){
if(!empty($this-&gt;payments[$row-&gt;order_payment_method])){
echo $this-&gt;payments[$row-&gt;order_payment_method]-&gt;payment_name;
}else{
echo $row-&gt;order_payment_method;
}
} ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_order_date_value"&gt;
&lt;?php echo hikashop_getDate($row-&gt;order_created,'%Y-%m-%d %H:%M');?&gt;
&lt;/td&gt;
&lt;td class="hikashop_order_modified_value"&gt;
&lt;?php echo hikashop_getDate($row-&gt;order_modified,'%Y-%m-%d %H:%M');?&gt;
&lt;/td&gt;
&lt;td class="hikashop_order_status_value"&gt;
&lt;?php if($this-&gt;manage){ ?&gt;
&lt;a class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('order&amp;task=changestatus&amp;order_id='.$row-&gt;order_id,true);?&gt;" id="status_change_link_&lt;?php echo $row-&gt;order_id;?&gt;"&gt;&lt;/a&gt;
&lt;?php
$onchange = ' onfocus="this.oldvalue = this.value;" onchange="var link = document.getElementById(\'status_change_link_'.$row-&gt;order_id.'\');link.href = link.href+\'&amp;status=\' +this.value; this.value=this.oldvalue; SqueezeBox.fromElement(link,{parse: \'rel\'});"';
}
echo $this-&gt;category-&gt;display("filter_status_".$row-&gt;order_id,$row-&gt;order_status,$onchange);
?&gt;
&lt;/td&gt;

&lt;td class="hikashop\_shipping\_total\_value"&gt;
&lt;?php echo $this-&gt;currencyHelper-&gt;format($row-&gt;order\_shipping\_price,$row-&gt;order\_currency\_id);?&gt;

&lt;/td&gt;

&lt;td class="hikashop_order_total_value"&gt;
&lt;?php echo $this-&gt;currencyHelper-&gt;format($row-&gt;order_full_price,$row-&gt;order_currency_id);?&gt;
&lt;/td&gt;
&lt;?php
if(hikashop_level(2) &amp;&amp; !empty($this-&gt;fields)){
foreach($this-&gt;fields as $field){
$namekey = $field-&gt;field_namekey;
echo '&lt;td class="hikashop_order_'.$namekey.'_value"&gt;'.$this-&gt;fieldsClass-&gt;show($field,$row-&gt;$namekey).'&lt;/td&gt;';
}
}
if($this-&gt;affiliate_active){?&gt;
&lt;td class="hikashop_order_partner_value"&gt;
&lt;?php
if(bccomp($row-&gt;order_partner_price,0,5)){
echo $this-&gt;currencyHelper-&gt;format($row-&gt;order_partner_price,$row-&gt;order_partner_currency_id);
if(empty($row-&gt;order_partner_paid)){
echo JText::_('NOT_PAID').'&lt;img src="'.HIKASHOP_IMAGES.'delete2.png" /&gt;';
}else{
echo JText::_('PAID').'&lt;img src="'.HIKASHOP_IMAGES.'ok.png" /&gt;';
}
}
?&gt;
&lt;/td&gt;
&lt;?php }?&gt;
&lt;td class="hikashop_order_id_value"&gt;
&lt;?php echo $row-&gt;order_id; ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
$k = 1-$k;
}
?&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;input type="hidden" name="option" value="&lt;?php echo HIKASHOP_COMPONENT; ?&gt;" /&gt;
&lt;input type="hidden" name="task" value="" /&gt;
&lt;input type="hidden" name="ctrl" value="&lt;?php echo JRequest::getCmd('ctrl'); ?&gt;" /&gt;
&lt;input type="hidden" name="boxchecked" value="0" /&gt;
&lt;input type="hidden" name="filter_order" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value; ?&gt;" /&gt;
&lt;input type="hidden" name="filter_order_Dir" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir; ?&gt;" /&gt;
&lt;?php echo JHTML::_( 'form.token' ); ?&gt;
&lt;/form&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0MzQzLWNoYW5nZS1maWVsZHMtaW4tb3JkZXJzLWJhY2tlbmQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 9 months ago [\#38077](#38077) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change fields in orders backend](/forum/4-how-to/34343-change-fields-in-orders-backend?start=20#38077 "I use HikaShop for wholesale orders. Our sales person enters orders for all our sales. He is listed as the customer for all the orders in the backend under &quot;Customer&quot;. Is there a way to replace the...")*

The payment method name is displaying for everyone else. Could you do a screenshot of your orders listing so that we can see the problem ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0MzQzLWNoYW5nZS1maWVsZHMtaW4tb3JkZXJzLWJhY2tlbmQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile")
- [ Offline](/forum/user/916-mohairbears)

Less More

- Posts: 611
- Thank you received: 13
-

14 years 9 months ago [\#38202](#38202) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Re: Change fields in orders backend](/forum/4-how-to/34343-change-fields-in-orders-backend?start=20#38202 "I use HikaShop for wholesale orders. Our sales person enters orders for all our sales. He is listed as the customer for all the orders in the backend under &quot;Customer&quot;. Is there a way to replace the...")*

[ ![screendump.jpg](/forum/attachment/2619) ](/forum/attachment/2619 "screendump.jpg")

thanks

- [ ![screendump.jpg](/forum/attachment/2619) ](/forum/attachment/2619 "screendump.jpg") [ ](/forum/attachment/2619?download=1 "screendump.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0MzQzLWNoYW5nZS1maWVsZHMtaW4tb3JkZXJzLWJhY2tlbmQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 9 months ago [\#38288](#38288) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change fields in orders backend](/forum/4-how-to/34343-change-fields-in-orders-backend?start=20#38288 "I use HikaShop for wholesale orders. Our sales person enters orders for all our sales. He is listed as the customer for all the orders in the backend under &quot;Customer&quot;. Is there a way to replace the...")*

That's strange. Do you see the payment method if you edit an order, on the right of the screen ?
If no, then it must come from the checkout when the payment information is not saved in the order.

Otherwise, it could well mean that your payment method name is empty. Is that the case ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0MzQzLWNoYW5nZS1maWVsZHMtaW4tb3JkZXJzLWJhY2tlbmQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile")
- [ Offline](/forum/user/916-mohairbears)

Less More

- Posts: 611
- Thank you received: 13
-

14 years 9 months ago [\#38289](#38289) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Re: Change fields in orders backend](/forum/4-how-to/34343-change-fields-in-orders-backend?start=20#38289 "I use HikaShop for wholesale orders. Our sales person enters orders for all our sales. He is listed as the customer for all the orders in the backend under &quot;Customer&quot;. Is there a way to replace the...")*

sorted, payment method name is empty.

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0MzQzLWNoYW5nZS1maWVsZHMtaW4tb3JkZXJzLWJhY2tlbmQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
