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

ubuntu - How to disable Kernel Module Signing in linux -

java - Ebean enhancement ignores a model -

How to combine associative arrays in bash? -