Jump to content

SOLVED: how to get var in ps.1.4.3


Recommended Posts

Hi There, i used to use: ps 1.3.3 where i in product.php could call fx. $product->id and get the productid

 

i now see in the new 1.4 that this has changed, i can no longer fetch variables this way... so how to do it ?

 

please note that i want to get other than just the productid if not i could just use $_GET['productid'] but thats not a solution..

 

fx. i would like to get $product-ean13 var. which i then make a databaseresult on (in a custom table) in the old days i would do like below.:

 

before $smarty->display(_PS_THEME_DIR_.'product.tpl');

 

and $smarty->assign must have added: self:: $smarty->assign to work

 

i can see that this is now done in controllers/productcontroller.php

Link to comment
Share on other sites

×
×
  • Create New...