rocdev Posted May 14, 2013 Share Posted May 14, 2013 Hi, I'm trying to get manufacturer_name attribute in shopping-cart-product-line.tpl, but I can only access to manufacturer_id. Anyone know any way to get the manufacturer name, in smarty, with the manufacturer id? or when can I edit the query in order to get it? Thanks! Link to comment Share on other sites More sharing options...
PascalVG Posted May 15, 2013 Share Posted May 15, 2013 Are you sure $manufacturer_name is not made available? otherwise you might try to use something like: Manufacturer::getNameById((int)$this->id_manufacturer) or Manufacturer::getNameById((int)$id_manufacturer) or so. Hope this helps, pascal Link to comment Share on other sites More sharing options...
rocdev Posted May 15, 2013 Author Share Posted May 15, 2013 Yes I'm sure, I checked with print_r. But with your solution definitely solves my problem! Thanks a lot! By the way, is there some documentation to see those methods? Link to comment Share on other sites More sharing options...
vekia Posted May 16, 2013 Share Posted May 16, 2013 thanks for the information that everything works fine now, I marked this thread as solved regards Link to comment Share on other sites More sharing options...
PascalVG Posted May 20, 2013 Share Posted May 20, 2013 Hi RocDev, glad it helped! Documentation of source code is still a weak point. :-( What helps is looking at classes/objectModel.php for very general functions and then the class files where specific functions for that class/object is defined... pascal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now