Hello,
I can't understand how to display the HikaShop GeoLocation data (from HikaShop GeoLocation plugin) on order page in admin area.
I found this template:
/administrator/components/com_hikashop/views/order/tmpl/form.php
Where I can see:
<tr>
<td class="key">
<?php echo JText::_( 'IP' ); ?>
</td>
<td><?php
echo $this->order->order_ip;
if(!empty($this->order->geolocation) && $this->order->geolocation->geolocation_country!='Reserved'){
echo ' ( '.$this->order->geolocation->geolocation_city.' '.$this->order->geolocation->geolocation_state.' '.$this->order->geolocation->geolocation_country.' )';
}
?></td>
</tr>
But when I open an order from the Orders page:
/administrator/index.php?option=com_hikashop&ctrl=order
via this link:
/administrator/index.php?option=com_hikashop&ctrl=order&task=edit&cid[]=X
the other order view template is used, not form.php.
I have two questions:
- how can I display GeoLocation data on order edit page in admin area?
- where form.php order view template is used?
The HikaShop GeoLocation plugin params:
- Orders geolocation = Yes
- Customers geolocation = Yes
- Geolocation service = Both
- API key is filled
I can see GeoLocation data on user edit page in admin area:
/administrator/index.php?option=com_hikashop&ctrl=user&task=edit&cid=X
for example:
IP X.X.X.X ( Chula Vista CA United States )
Thus, the plugin works fine and successfully store the data.
Thanks in advance!