Jump to content

How to display manufacturer name in ajax cart, checkout and product category slider


Recommended Posts

I' m trying to display Manufacturer Name under three different places:

 

1: Header Ajax Cart

2: Checkout, in cart line

3: In the product slider for related products

 

I try both of this solution that works on other templates:

 

{$product.manufacturer_name|escape:'htmlall':'UTF-8'}

{$product_manufacturer->name|escape:'html':'UTF-8'}

{$product.manufacturer_name}

 

Any Ideas? maybe this is not called from there so is not possible?

 

Thanks :)

 

  • Like 1
Link to comment
Share on other sites

For the one's need this info i figured out like this:

 

 

 

Prestashop 1.6

 

1: Header Cart (blockcart.tpl)

 

{Manufacturer::getnamebyid($product.id_manufacturer)}

 

 

 

 

 

2: Checkout, in cart line (shopping-cart-product-line.tpl)

 

{Manufacturer::getnamebyid($product.id_manufacturer)}

 

 

 

 

3: In the product slider for related products (productscategory.tpl)

{Manufacturer::getNameById($categoryProduct.id_manufacturer)|escape:'htmlall':'UTF-8'}

 

 

Thanks!

  • Like 1
Link to comment
Share on other sites

  • 8 months later...

And insert link manufacturer and image in productcategory, this name show correct. but this link not know

<span class="marcas_product_category"><a href="">{Manufacturer::getNameById($categoryProduct.id_manufacturer)|escape:'htmlall':'UTF-8'}</a></span>
 

 

For the one's need this info i figured out like this:

 

 

 

Prestashop 1.6

 

1: Header Cart (blockcart.tpl)

 

{Manufacturer::getnamebyid($product.id_manufacturer)}

 

 

 

 

 

2: Checkout, in cart line (shopping-cart-product-line.tpl)

 

{Manufacturer::getnamebyid($product.id_manufacturer)}

 

 

 

 

3: In the product slider for related products (productscategory.tpl)

{Manufacturer::getNameById($categoryProduct.id_manufacturer)|escape:'htmlall':'UTF-8'}

 

 

Thanks!

An

Link to comment
Share on other sites

  • 1 year later...

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