• Resolved kiwiman

    (@kiwiman)


    Hi,

    In the emails that are sent to the subscriber, I want to change where it says “Product” to the name of the actual product. I have found the file to do this but I’m unsure of the code to do it. Can you please advise?

    Eg: Hi there. You have successfully subscribed a product. We will inform you when the product becomes available. Product details are shown below for your reference:

    Bonus question, how to have the customers name instead of “There” ie: Hi Bill instead of Hi There.

    Many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @kiwiman You can achieve this by overriding its email template. As we are using Woocommerce email feature, you have to copy plugin’ subscriber email template into your active theme’s woocommerce/emails folder or you can do this by going Woocommerce > Settings > Emails > Select Confirm subscriber wmail > Click on Copy file to theme button.
    Now just open the copied file from your theme’s folder and do the modifications.

    Thread Starter kiwiman

    (@kiwiman)

    Hi Khokan,

    Thanks for the response. I understand about the theme and copying the files across, the issue I have is what code do I use so that I can display the product name on the email template instead of “a Product”? Also how to display the customers name instead of the impersonal “Hi there” which it is currently. Can you please advise?

    Thanks

    @kiwiman, yes you can do that.

    However, for this you need to do custom code and fetch the product name and display the same.

    Let us know if you need any further help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add name of product to emails’ is closed to new replies.