• In the body text for ‘Customer New Account’, the code {customer_first_name} gets ignored in favor of the customer’s username in the actual email sent. The email preview shows correctly the customer’s first name, but the email sent uses the customer’s username instead.

    The code, {customer_first_name}, gets used correctly elsewhere (email preview and actual email sent), for example, in ‘Customer Completed Order’.

    Maybe a coincidence, but this code was working correctly in ‘Customer New Account’ before the recent plugin update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • {customer_first_name} is a woocommerce billing field, if the customer signed up without making an order (registration or the order failed) then there wouldn’t be that field available, the placeholder script is designed to check if there is a name (which is why it would work before with other users) and if it comes back empty it uses the users “display name” which would default to username with nothing else there.

    Because of that I don’t suggest adding {customer_first_name} to the Customer New Account email unless accounts are only created after an order is successful.

    I hope that makes sense.

    Ben

    Thread Starter gzhajjar

    (@gzhajjar)

    Hi Ben, the process is such that customer registers (signs up) for an account right at checkout after adding product to cart. This was tested 3 days ago and was working.

    Hey,
    Sorry if I’m not being clear, I tried to explain how that could work given the testing of a successful order.

    I can tell you that nothing changed with that placeholder since version 1.1.5 of this plugin.

    I don’t know what to offer other then the advice I did since it’s a matter of timing with when the email is dispatched and if the database contains the first name or not. The code checks for the first name and that code hasn’t changed.

    Perhaps I’ll look for other fallback paths in a further update.

    Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug using {customer_first_name} in Customer New Account’ is closed to new replies.