You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Is there a way to do randomized feature items in the splash page like in the CCP6 thread #18 in
https://forum.kryptronic.com/viewtopic.php?id=20518
it says to go to private_dir/khxc/app/ccp0/CCP/CCP.php to change it but the new CCP7 has a totaly different file structure and I can't find a ccp.php.
while I am at this too... how do I change the title header to the featured product items (on the splash page). I purchased one of the zipskins and the header to the splash page featured products items says "Website Featured Items". I want it changed to "Featured Items".
Offline
The code change in https://forum.kryptronic.com/viewtopic.php?id=20518 doesn't work... I changed it and only the header would load up.
here is my code:
// +--
// | Piece together our SQL statement and execute it.
// +--
$count = $this->globals('core_settings.ecom.prodfeaturenum');
if (empty($count)) {$count = 1;}
$sql .= $where;
$result = $this->CORE_DB->sql_do(array('sql' => $sql,
'table' => $table,
'order' => array('RAND()' => 'ASC'),
'count' => $count,
'offset' => 0));
if ($this->IsError($result)) {return 1;}
if (empty($result)) {
if ($this->debug) {$this->debugger("prodfeature: Did not locate any featured products to display. App: ecom");}
return 1;
} // End of if statement.Offline
never mind -- ignore my last post... it did work, i uploaded the ecom.php file again.
Offline
Same thing happened to me pretty much - only a piece of the home page loaded, not the whole template. Mine never started working though. Does anyone else have any hints for making this happen? I need the same thing - to randomize featured products on the home page.
Thanks!
Offline
This works as I have used it ever since it has been posted for ccp6, you just need to make sure you don't introduce any syntax errors when saving the change.
John
Offline
Thanks John - I got it working. User error of course - a problem easily solved by another cup of coffee! ![]()
Offline
Pages: 1