Post by Happymoomoo » Fri Dec 22, 2017 12:14 pm

Hi,
The email alert (one that is sent to the admin) does not contain the selected options chosen for my products. I have checked the code which seems to be correct

Code: Select all

{% if option %}
{% for option in product.option %}
	- {{ option.name }} {{ option.value }}
I would also like that email to contain the address of the person ordering as well.

Any help would be appreciated.

Thanks

Newbie

Posts

Joined
Fri Dec 22, 2017 12:10 pm

Post by stevesnow50 » Sat May 12, 2018 12:38 am

Hello there

I have OpenCart 3.0.2.0. Does anyone have an answer on this please?
Which files to change?

Thank you!

Newbie

Posts

Joined
Thu Mar 29, 2018 12:34 am

Post by stevesnow50 » Fri Jun 22, 2018 11:31 pm

Anybody?

Newbie

Posts

Joined
Thu Mar 29, 2018 12:34 am

Post by sw!tch » Sat Jun 23, 2018 12:57 am

Well assuming you are talking about the admin alert email. You can backup and try this to get the options.

catalog/view/theme/default/template/mail/order_alert.twig

find this

Code: Select all

{% if option %}
{% for option in product.option %}
	- {{ option.name }} {{ option.value }}
{% endfor %}
{% endif %}
and replace with

Code: Select all

{% if product.option %}
{% for option in product.option %}
	- {{ option.name }} {{ option.value }}
{% endfor %}
{% endif %}
Untested backup and try at your own risk.

Edit this was actually already addressed here - viewtopic.php?f=201&t=204440

If you want address and all that you can reference the add method in the controller and add in the the appropriate variables to the alert method and order_alert.twig.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Who is online

Users browsing this forum: Bing [Bot], Google [Bot], nonnedelectari, zigi00x and 178 guests