Add Customer IP address to invoice

  • Posts: 6
  • Thank you received: 0
9 years 8 months ago #195944

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.4

I am trying to add the customers IP address to the admin invoice that gets mailed to site owner. We need to have that present on the printed invoices. Is there a way to add this. what is the code. I have seen other messages about adding email addresses, but i need to add the customer ip address.

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195956

Hi,

You can get the IP in the field "order_ip" of the order.
You can also get some IP information in the order history but the field "order_ip" will be easier ; you can use the email tags to display easily that field

{VAR:order.order_ip}

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
9 years 7 months ago #197240

Thank you for the response.....but can you walk me through how to do that ..step by step.

Example: The current invoices we print for our records have the following information-

SUMMARY OF THE ORDER

Customer:
Order Number

Payment Method

Shipping Method

Billing Address Shipping Address




Name Unit Price Qty Total

Subtotal
Shipping
Total

I am trying to add a field that would show :customer ip address: somewhere on this form, preferably after order number.

Thanks

Last edit: 9 years 7 months ago by travisb. Reason: add more info

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #197263

Hi,

For more details about how customize the display, I recommend you that documentation page:
www.hikashop.com/support/documentation/1...ize-the-display.html

Depending of the invoice you're talking about, you will need to override the "front-end | order | show" or the "back-end | order | invoice" view.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum