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.
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
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.
Offline
Ah, got it, thanks for that.
If anyone else wants to do this, all you have to do is move:
// +-- // | 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:
// +-- // | 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
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));
Offline