Kryptronic Software Support Forum

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.

#1 11-24-2009 23:06:43

mfjm2000
Member
Registered: 01-19-2009
Posts: 19

how to randomize featured items on splash page (for CCP7)

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

 

#2 11-24-2009 23:39:09

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: how to randomize featured items on splash page (for CCP7)

It would be in apps/ecom/ECOM/ECOM.php.

John

Offline

 

#3 11-25-2009 15:21:57

mfjm2000
Member
Registered: 01-19-2009
Posts: 19

Re: how to randomize featured items on splash page (for CCP7)

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:

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

 

#4 11-25-2009 15:24:21

mfjm2000
Member
Registered: 01-19-2009
Posts: 19

Re: how to randomize featured items on splash page (for CCP7)

never mind -- ignore my last post... it did work, i uploaded the ecom.php file again.

Offline

 

#5 05-13-2010 16:59:15

crimsonoctopus
Member
Registered: 05-29-2007
Posts: 17

Re: how to randomize featured items on splash page (for CCP7)

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

 

#6 05-13-2010 17:30:45

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: how to randomize featured items on splash page (for CCP7)

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

 

#7 05-14-2010 13:58:21

crimsonoctopus
Member
Registered: 05-29-2007
Posts: 17

Re: how to randomize featured items on splash page (for CCP7)

Thanks John - I got it working. User error of course - a problem easily solved by another cup of coffee! smile

Offline

 

#8 05-15-2010 08:38:35

Casimiro
Member
Registered: 01-25-2010
Posts: 175
Website

Re: how to randomize featured items on splash page (for CCP7)

Thanks.  This worked for me as well.

Offline

 

Board footer