php - How I can add image on top of email on opencart order add file&

I have the following line of code
$data['logo'] = $order_info['store_url'] . 'image/' . $this->config->get('config_logo');
Which includes the logo on top of my email. Now I want to add another image, what should I do?
Answer
Solution:
It's relatively easy:
- Duplicate that line of code,
- Rename
$data['logo']
to something that makes sense for your needs e.g.$data['other_image']
, - Change
$this->config->get('config_logo');
to the filename of the image bearing in mind that the image must be in thepublic_html/image
folder.
Make sure you reference the new variable{{other_image}}
in the appropriate.twig
file.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: fastcgi sent in stderr: "primary script unknown" while reading response header from upstream
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.