The customer's IP address is stored against the order record in the back end of Magento (ver 1.7.0.2 but it is not available as a variable to add to the New Order Confirmation Email.
Can anyone help me change the email template so that I can get this field added to the email?
Many thanks
6 months late maybe, but is this what you're looking for?
$order->getRemoteIp()
I've not tried it in the context of an email template but I'd guess this:
{{var remote_ip}}
or failing that, try:
{{var order.getRemoteIp()}}
FWIW I found the getRemoteIp() function used in app/design/adminhtml/default/default/template/sales/order/view/info.phtml.
Related
After upgrading Magento to 2.4.3-p3 version all the order emails are not showing the items in the emails.
Does anyone have come across such an issue and had a solution?
I can see https://community.magento.com/t5/Magento-2-x-Technical-Issues/Order-Email-not-showing-itemized-list-Magento-2-3-4/td-p/432836 but that's for Magento2.3.4 version and solutions on that tread does not help.
Any help is appreciated.
Check the email templates, find and replace:
{{layout handle="sales_email_order_items" order=$order area="frontend"}}
to
{{layout handle="sales_email_order_items" order_id=$order_id area="frontend"}}
ie. The variable order is changed to order_id
I am working on a plugin for magento and I have created observer for share wishlist action, but I need to know email addresses that customer wrote in a box. Do you have any idea, how to achieve that?
I found the solution for my question, if someone would have the same issue, just read the $_POST variable "emails"
I want to add customer email to invoice and shipment pdfs. A good solution would be to add it to address template. But I couldn't find the right variable. What is the easiest way to accomplish this.
Something like this not working example would be perfect.
{{depend email}}Email: {{var email}}{{/depend}}
I am using Magento 1.7.0.2 with Firegento Pdf.
For Guest
{{var order.getBillingAddress().getEmail()}}
and for member
{{var order.getCustomerEmail()}}
tested in magento 1.9
Just add the following code into your custom email template:
Email: {{htmlescape var=$order.getCustomerEmail()}}
I have made a test putting the var {{var payment_html}} inside the email template "order_update.html" however when Magento sends an email using this template, any payment information is printed on the box "Payment Details". After that, I searched about it and I found out on this link that some variables don't make effect for some templates. I would like to know if is possible to show off the payment details on the order update email template.
Does anybody have idea about how to do that?
I am looking to output the "user agent" information of the client who placed an order through our Magento driven shopping cart.
I've figured out that {{var order.getRemoteIp()}} outputs the IP address of the client.
I need a way to output the user-agent of the client, as well.
Is it even possible?
Many thanks.
Looking at the code for 1.5 (as you didn't specify a version), I would say it's not possible as they have no provision for storing that info on the order or quote. You could write and extension to help you with that, but as it stands it seems to be in the 'not possible' category.