Jump to content

HOW TO INSERT QUERY IN PRODUCT COMPARISON TPL


spemar

Recommended Posts

I've add this line code in ProductController:

 

 

public function imagePos2()

 

{

$result = Db::getInstance()->executeS('

SELECT `id_image`

FROM `'._DB_PREFIX_.'image`

WHERE `id_product` = '.(int)$id_product.'

AND position = 2');

$smarty>assign('ImEtich', $result);

}

 

How to get image in product-comparison.tpl?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...