Jump to content

Edit History

PF22

PF22

I created a hook function in my module

function hookLibreecoute($params)
	{
			$hashfilename = ProductDownload::getFilenameFromIdProduct($params['id_product']);
			$productsMP3Info[$params['id_product']] = md5("aqf15ergh15g1serg3q5eg1qe56rg1".ProductDownload::getFilenameFromFilename($hashfilename)."cmszdf289r1h152fr481z15g12g");
			$smarty->assign(array('productsMP3Info' => $productsMP3Info));
	

	}

Do I have to set a line of code with return instruction ?

And how can I call it in my tpl product -list file?
With product as params for the function...

PF22

PF22

I created a hook function in my module

function hookLibreecoute($params)
	{
			$hashfilename = ProductDownload::getFilenameFromIdProduct($params['id_product']);
			$productsMP3Info[$params['id_product']] = md5("aqf15ergh15g1serg3q5eg1qe56rg1".ProductDownload::getFilenameFromFilename($hashfilename)."cmszdf289r1h152fr481z15g12g");
			$smarty->assign(array('productsMP3Info' => $productsMP3Info));
	

	}

Do I have to set a line of code with return instruction ?

And how can I call it in my tpl product -list file?

×
×
  • Create New...