Jump to content

How to get manufacturer_name attribute in shopping-cart-product-line.tpl


rocdev

Recommended Posts

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

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

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

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