PDA

View Full Version : Modifying HotPicksParams for Category ID


GetVisible
31-03-07, 11:54
Does anyone know the script that contains the $oHotPIcksParams->iCategoryId= element so I can change it?

Ta

Andy
02-04-07, 03:01
I think its in include/elements/hot_picks.php

Not 100% though

amarath
02-04-07, 18:25
Hi,

If you are looking to specifiy the Hot Picks Category for each page, you must edit the hot pick parameters within each of the four class.page PHP pages within
includes/classes/.

This is where you can specify the Category ID parameter.

I hope this is what you are looking for.

Thanks

Amo

gbaxendale
20-04-07, 23:30
Hello all,

I have been reading through the various threads trying to get undertsand how to get the Hot Picks to show a specific category and after sometime have now managed to work it out.

I thought I would explain how I got it to work for me in case it works for anyone else as it seems awkward...

Go to the folder ../includes/classes

In turn edit the following files:

class.page_search.php
class.page_product.php
class.page_index.php
class.page_category.php


Add the following in full (category 4 shows electrical products) after the section that says function buildData(), some already have the hotpicks section some don't just overwrite the exisiting section or if does not exist just insert it including the brackets:


}
# hot picks
$aHotPickParams = array("iLimit"=>12,"iCategoryId"=>4);
$this->oHotPick = $oClient->call('getHotPickProductList', $aHotPickParams);
}
That did it for me.

Demo: http://www.yourelectricals.co.uk/db

Hope it helps.
Gaz

ushop-online
20-04-07, 23:55
Hate to rain on your parade but 'category.php' and 'product.php' are not working but 'search.php' is.