Post by Alaque123 » Thu Aug 12, 2021 6:58 pm

I want to add product image to order_alert mail for Opencart 3.0.2.0 version. I tinkered with the model and controller files but could not succeed. I guess I need to write at least one query to the model file, has anyone done this before? Can you help me. thanks

Newbie

Posts

Joined
Tue Feb 04, 2020 8:33 am

Post by ADD Creative » Thu Aug 12, 2021 11:51 pm

Just use the product model.

Code: Select all

$this->load->model('catalog/product');

$product_info = $this->model_catalog_product->getProduct($order_product['product_id']);

if ($product_info) {
	if ($product_info['image']) {

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 7 guests