Jump to content

Get products in Manufacturers block


Trolls

Recommended Posts

Hi guys,

 

I am trying to customize Block manufacturers module to get 2 or 3 products names in the manufacturers' block under manufacturer name.

 

I just can't retrieve products in the blockmanufacturer.php file.

 

I defined products as follows:
 

'products'=> Manufacturer::getProducts(intval($product->id_manufacturer), intval($cookie->id_lang), 1, 2, NULL, NULL, true),

 

but it throws 4 exceptions 

 


Notice: Undefined variable: product in [MY SITE]\modules\blockmanufacturer\blockmanufacturer.php on line 71

Notice: Trying to get property of non-object in [MY SITE]\modules\blockmanufacturer\blockmanufacturer.php on line 71

Notice: Undefined variable: cookie in [MY SITE]\modules\blockmanufacturer\blockmanufacturer.php on line 71

Notice: Trying to get property of non-objectin [MY SITE]\modules\blockmanufacturer\blockmanufacturer.php on line 71

 

Could any one please help me with this ?

 

Thanks in advance for your help.

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