Jump to content

Display only one particular category in special module


Recommended Posts

Hi,

 

 

As we know, special module will display all the price dropped products. Now, My clients wants to display only one category products in the special module. I have copy pasted the special module and tried to change the below code.

 

file : blockspecials.php

from:

 

BlockSpecial::$cache_special = Product::getPricesDrop((int)$params['cookie']->id_lang, 0, Configuration::get('BLOCKSPECIAL_SPECIAL_NBR'));

 

To:

 

BlockSpecial::$cache_special = $category->getProducts((int)$params['cookie']->id_lang, 1, Configuration::get('BLOCKSPECIAL_SPECIAL_NBR'));

 

But it is not working. Page is blank. Can anyone please help me on this ?

 

It is little bit urgent. Client wants to go live in next month starting.

 

Thanks in Advance.

Mani

Edited by Mani rathnam (see edit history)
Link to comment
Share on other sites

Hi,

 

Now it is working fine. But it is displaying "Pre-tax retail price" not the "Retail price with tax". Can anyone please help me on this ?

 

For the same product, the price is displaying properly in the category page but it is showing another price in new module.

Not sure where the issue is.

 

please help me on this.

 

Thanks in Advance.

Mani

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