Seller Name/Lastname function in Mail Templates (Woocommerce)
Author | Posts |
---|---|
June 19, 2014 at 3:53 pm 22191 | |
Aaron M | Hi, Im trying to integrate the seller name and last name in the email templates when an order is made. So I have put admin-new-order.php in wp-content/themes/dokan/woocommerce/emails/ to override the default woocommerce template but or it doesent send, or it doesnt work. I tried with : 1- (Dokan Variable) 2 -seller_first_name . ' ' . $order->seller_last_name ); ?> (Woocommerce variable?) 3 - (Dokan Variable) 4 - (Dokan Variable) Anybody could help me with that, I'm stuck here Thanks in Advance! |
June 19, 2014 at 8:12 pm 22202 | |
Will | Just a quick thought but double check you’re using the actual Dokan theme and not a child theme? If you’re not using a child theme I’d suggest you do that so you don’t overwrite these emails when you update the theme. |
June 19, 2014 at 9:50 pm 22207 | |
Rubens | Hi Will, Im using the child theme Thank you for the light 🙂 |
June 19, 2014 at 9:53 pm 22208 | |
Will | If you’re using the child theme then you should be putting it in wp-content/themes/dokan-child/woocommerce/emails/ I believe – not in the Dokan theme. |
June 19, 2014 at 10:02 pm 22210 | |
Rubens | Yes done. It’s safer this way. Still looking how to include the variable ^^ |
June 22, 2014 at 1:23 pm 22292 | |
Sk | Hello Rubens, you could use the fowlling hook to send mail.
To write email template please check dokan default templates from Thank you. |
July 23, 2014 at 1:57 pm 24011 | |
Aaron M | hi Rubens, you could add the seller info to emails? |
July 23, 2014 at 5:03 pm 24016 | |
Rubens | >> Sk_Shaikat: Thank you but what I just need is the variables to show the seller First and Last name into the emails. |
August 3, 2014 at 6:07 pm 24436 | |
Sk | Hello Rubens, write this function in
and this add action in
Thank you |
August 30, 2014 at 2:23 pm 26068 | |
SCHAEPPER | Hi, thanks for this function. Is there a way to change the parameter to show the shop name instead of the Seller Name? The shop name is more meaningful for the buyer than the seller name. Thanks in advance for any tips. |
August 31, 2014 at 12:35 pm 26112 | |
Sk | Hello SCHAEPPER, [php] ?> <tfoot> Thank you 🙂 |
September 1, 2014 at 1:34 am 26125 | |
Aaron M | works perfect, thanks sk_shaikat |