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-16-2014 07:06:42

Graham
Member
Registered: 09-30-2004
Posts: 981
Website

Move category description below items in category

When a customer clicks on a category, at present they see the category title, then the description, then the items in the category.

What I want to do is to add more text to the description, but if I just do that as it stands it will push the items in the category way down the page.

So what I'd like to do is to swap the positions such that the item images appear at the top and then I can talk about the items in the category below that.

Can someone tell me where I can change the code to do this, please.

Offline

 

#2 11-17-2014 10:02:31

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Move category description below items in category

You'd need to change the order of how things are presented (catshow include vs catlist function call) in {private}/apps/ecom/ECOM_Cat/ECOM_Cat.php.  Make your changes in the catshow() function.


Nick Hendler

Offline

 

#3 11-20-2014 11:19:21

Graham
Member
Registered: 09-30-2004
Posts: 981
Website

Re: Move category description below items in category

Ah, got it, thanks for that.

If anyone else wants to do this, all you have to do is move:

Code:

// +--
// | Display our category.
// +--

$this->CORE_Display->include_file('ecom','catshow.php');

// if ($this->debug) {$this->debugger("catshow: Finished displaying category header.  App: ecom");}

To below:

Code:

// +--
// | Now display products in this category.
// +--

$this->globals('ecom.prod_prodnum',$result[0]['proddispnum']);
$this->globals('ecom.prod_prodtype',$result[0]['proddisptype']);
$this->globals('ecom.prod_prodname',$result[0]['name']);

$this->exec_namespace(array('app'       => 'ecom',
                            'namespace' => 'prodlist',
                            'type'      => '*',
                            'params'    => null));

Offline

 

#4 02-16-2015 19:31:39

mdowning
Member
From: California
Registered: 11-05-2010
Posts: 725
Website

Re: Move category description below items in category

I'll have to remember this, thanks.

Graham wrote:

Ah, got it, thanks for that.

If anyone else wants to do this, all you have to do is move:

Code:

// +--
// | Display our category.
// +--

$this->CORE_Display->include_file('ecom','catshow.php');

// if ($this->debug) {$this->debugger("catshow: Finished displaying category header.  App: ecom");}

To below:

Code:

// +--
// | Now display products in this category.
// +--

$this->globals('ecom.prod_prodnum',$result[0]['proddispnum']);
$this->globals('ecom.prod_prodtype',$result[0]['proddisptype']);
$this->globals('ecom.prod_prodname',$result[0]['name']);

$this->exec_namespace(array('app'       => 'ecom',
                            'namespace' => 'prodlist',
                            'type'      => '*',
                            'params'    => null));

http://tuxedothemes.org/
Wordpress Themes for business, blogs and personal use.

Offline

 

Board footer