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
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']) {
Who is online
Users browsing this forum: No registered users and 7 guests