Woocommerce Email NEW ACCOUNT template notification FIRST NAME - php

I need first name in email new account template [woocommerce]
my code -> https://pastebin.com/iTfM6Nmz

WooCommerce doesn't have this functionality built in. The new account email can be sent before an order is placed, which would mean it's before any user information has been captured like first name.
After an order has been placed and you have billing information, then you could pull it in with something like
"Hi" . $order->billing_first_name . "Your recent order on"
But that would be on order confirmation emails, or anything after account creation.
You could also check out this thread: https://wordpress.org/support/topic/how-to-add-customer-name-to-new-customer-admin-order-email/
It's essentially recommending the Follow Up Emails extension to help customize emails. Again it will struggle if the user hasn't added their account information when they register, though, so you might want to look for a way to require filling in WooCommerce user information during registration, assuming it's separate from the purchase flow.

Related

Send email to client or user when creating product with woocommerce

I want to be able to send emails to specific users or clients when creating a product using woocommerce
When a product is created, I want to send out an email like an invoice requesting the emailed user to come and make the payment on the website
Is there a way to achieve this?

Order tracking link in confirmation mail in magento

I want to send a order tracking link on the confirmation email that magento sends when a customer places an order,that link should take customer to main page or the tracking page of the courier company. can someone guide me
say for example i'm using a Fedex for shipping of the orders placed by the customer & i want to add the field something like this on the confirmation email that magento sends to the customer when the order is placed....
EX.. Track your order https://www.fedex.com/apps/fedextrack/?action=track
If you are using Magento's default sales order email, you can edit the html in this location - app/locale/en_US/template/email/directory/sales/order_new.html
Just add the link anywhere you want in that Html file
Try this might help,
http://www.courierscripts.com
You can integrate this with Magento back end to generate tracking info along with order.

Woocommerce confirm booking email to show customer information

I'm sure this is something very simple to do, but I just can't figure it out.
My questions concerns the WooCommerce booking confirmation email that is being sent to the admin. I would like it to contain all of the customer information including address and meta.
Does anyone know how to pull the info into the email?
Read this, you will find the answer : https://www.sellwithwp.com/customizing-woocommerce-order-emails/

magento order notification doesn't contain email of a customer

I would like to know if there is possibility to include customers email into email notification that is sent to sales person after order is made.
I get all the data like name, last name, address of a customer, ordered items, but no email of a customer. Is there a way to add email of customer to email notifications for sales department?
Thanks in advance and best regards.
If you wish to see your customer’s email address in the order confirmation emails sent out by Magento, you will have to edit (or create a new template and assign it to new order emails) the new order confirmation email template and add this code to it.
{{htmlescape var=$order.getCustomerEmail()}}
First make sure you already have the email template in Transactional emails. If you do not know how to do that you can google it or look at this Stackoverflow post: Magento - New Order mail.
In the corresponding transactional email template add the following code wherever you want the email address to appear:
email: {{var order.getCustomerEmail()}}
regards

How to add firstname and lastname in magento newsletter subscription?

I am new to magento. Magento default have only email id for newsletter subscrption. How add the first name and last name in the newsletter subscription? I saw many tutorials. But they are not much clear. Help me to find out this?
There is a free extension, that adds fields for gender, firstname and lastname and makes it available in the backend grid for export via xml/csv: http://www.magentocommerce.com/magento-connect/extended-newsletter-subscription-for-guests.html
You can use both function variables {{var subscriber.getSubscriberFirstname()}} and {{var subscriber.getSubscriberLastname()}} in your email templates.
It will use the guests name entered in the extended subscription form or the customers name, if the user is logged in. The only thing is that if the user is logged in and fills out the extended subscription form with another email address than the one he has registered with, those two variables will return nothing.
Go to System > Transactional Email > Choose one layout to edit. Use this var:
{{var customer.lastname}}
See more at: http://www.mesmerlab.com/create-new-email-template-magento/
The problem is that in the newsletter_subscriber table there are no columns for first name or last name.
This has been addressed in the answer to this question:
Adding a custom field to Magento's subscription module

Categories