php - how to display image on success notification message in opencart? -


how display image of product in success message of opencart when user click on add cart button?
changed in catalog/controller/checkout/cart.php code:

$json['success'] = sprintf($this->language->get('text_success'), $this->url->link('product/product', 'product_id=' . $this->request->post['product_id']), $product_info['name'], $this->url->link('checkout/cart'));   

to

$json['success'] = sprintf($this->language->get('text_success'), $this->url->link('product/product', 'product_id=' . $this->request->post['product_id']), $product_info['image'], $this->url->link('checkout/cart')); 

but result this:

you added data/demo/hp_1.jpg cart.

just post answer here, had commented. in reply, put image url <img> tag. that's there it.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -