Okay
  Public Ticket #3422843
Technical Question about emailing my users
Closed

Comments

  •  3
    Nektarios Vardikos started the conversation

    Hi, I'd like to ask you about the following issue I'm facing. 

    When a customer applies for a B2B account, we inform them that their application is under review. Some customers may believe they qualify for a B2B account, but unfortunately, they don't meet our wholesale requirements. However we don't want to disappoint them, and would like to send them a message explaining that they are eligible for a regular B2C account instead.

    Currently, within B2BKing, the only option is to approve a user by selecting either B2B or B2C approval. However, the message they receive after approval remains the same, which can cause confusion among applicants. It would be beneficial for applicants to know about their account type:  

    1. If they have been approved as a B2B user, they should get a welcoming message (this is currently working well).   

    2. If they have been rejected as a B2B user, they should receive a different email message as B2C users (like a message guiding them about B2C regular account instead).

    Many thanks.

  •  2,218
    WebWizards replied

    Hello Nektarios,

    You can achieve this by modifying the PHP email template of the "account approved" email.


    You can follow these steps:

    (1) Download the file I prepared here: https://drive.google.com/file/d/11EdsaC4OczqV5NkfVtLoZ660Byxl1mBU/view?usp=sharing

    (2) Copy the file to your theme folder (or preferably the child theme folder)

    It should be directly under the theme. So if your theme is storefront, the file should be copied to wp-content/themes/storefront/

    I set a different text there for the 2 situations (b2b and b2c):

    5363627763.png


    (3) You can edit that PHP file directly to set different texts for the 2 situations. The PHP file can be opened with any text editor, even notepad for example.




  •  3
    Nektarios Vardikos replied

    Many thanks for this. We've tried with some issues at the beginning as B2BKing was prioritising sending of the original email, however we've managed it to work. Best regards.