Jump to content

Injecting category name into new module


PleXy

Recommended Posts

Hey guys,

 

I'm using the module "Home new products" which you can find here: http://www.prestashop.com/forums/topic/76697-module-home-new-products-block-module/

 

I've been trying to inject the category names into each product that shows up on my homepage using the following code in homenewproducts.tpl

{strip}
{$category->name|escape:'htmlall':'UTF-8'}
{$categoryNameComplement|escape:'htmlall':'UTF-8'}
{/strip}

 

But - the category name isn't assigned with Smarty and I have no idea how I should assign it.

All I know is that I need to add some coding into homenewproducts.php.

 

 

Here's my site. If you compare the homepage to the category pages you see that I want the category name below each product name.

http://timstore.se.hemsida.eu/

 

 

Can anyone help me?

 

Thanks in advance!

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