Jump to content

Trying to display the manufacturer name on the product details page


Recommended Posts

Hi there,

I tried to use the instructions here:

http://www.prestashop.com/forums/viewthread/63278/integration/add_manufacturer_in_shopping_cart_table

...to display the manufacturer name of a product on the product details page.

As you've guessed from me announcing my attempt here, it didn't work.

When I use the code {$product.manufacturer_name... it crashes the rest of the code after that, whereas if i put $product->manufacturer_name... it still doesn't work but at least the rest of the page does work as normal.

Do you need to alter any PHP file or class file to allow this to work?

Link to comment
Share on other sites

Okay, some progress.

I now have the manufacturer's name appearing in the products page, but I tried to link it to the manufacturer page which is created by the manufacturer's block.

If you click the name of a manufacturer on the manufacturer's block, it takes you to a page which is populated by every product in the store, by that particular manufacturer. Anybody know where the code is to alter this page?

Also, I can't get my manufacturer's name to link to those pages. I stole the code...

getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More magic by' mod='blockmanufacturer'} {$product->manufacturer_name}">

... straight out of blockmanufacterer folder. But all the links link to the last manufacturer on the list. Can't figure out where my code is wrong.

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