0

I have added custom variable in order email template .The variable have the value in sales_order and sales_order_grid table .Once place the order the custom variable doesn't not have any data it shows empty,after that go to backend check that same order and click send email button manually got a email it shows the data in custom variable ,

Anyone face this problem help me?

1 Answer 1

0

Might the custom variable value set at the checkout success page.
If you using offline payment like Cash on delivery or Bank Transfer or Purchase then order email is fire before go to order success page and On placed time.

That way you do not get custom variable at email during order place.

The event might be checkout_onepage_controller_success_action

2
  • my variable saved during order in sales_order and sales_order_grid table and i am using online payment how to set variable in success page please help me
    – kanidhaya
    Jun 2, 2020 at 8:22
  • So can u please explain what i do that for this issue shall i create a event to send order email
    – kanidhaya
    Jun 2, 2020 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.