Jump to content

displaying the manufacturer name in the New products block


jerrrrrrrry

Recommended Posts

hello ,

i 'm a pure newbie in prestashop development

what i would like is to display the manufacturer name in the new products block

i manage to display the manufacturer id in the tpl but

i guess it would be something that would go in here in blocknewproducts.php

 

 

public function hookRightColumn($params)

{

global $smarty;

 

$newProducts = Product::getNewProducts((int)($params['cookie']->id_lang), 0, (int)(Configuration::get('NEW_PRODUCTS_NBR')));

if (!$newProducts AND !Configuration::get('PS_BLOCK_NEWPRODUCTS_DISPLAY'))

return;

$smarty->assign(array('new_products' => $newProducts, 'mediumSize' => Image::getSize('medium')));

 

return $this->display(__FILE__, 'blocknewproducts.tpl');

}

any help would be welcome,

i found ideas here but it's better to modify the php i think http://www.prestashop.com/forums/topic/2177-resolu-recuperer-le-nom-du-fabricant-dans-un-module/

 

thanks

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...