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.
Hi all,
I want to change the following in prodmulti.php
if (empty($header)) {
if ($ns == 'prodshow') {$header = 'What other customers bought';} else {$header ='Items'}
} else {
$header .= ' Featured Items';
So that the header instead of saying items will say the category name $catname, but I just don't know how to do it.
Thank you
Offline
You are not being very clear with this. - We have the code:
// +-- // | Define the header text. // +-- $header = $this->globals('ecom.prod_store_header'); if (empty($header)) { if ($ns == 'prodshow') {$header = 'Related Items';} else {$header = 'Items';} } else { $header .= ' Featured Items'; } // End of if statement. $header = $this->xhtml_encode($header); $random = 'x' . $this->random_key(8);
...but then what? - Are you always wanting to display the category of the products being viewed, the category being viewed when in the catlist / catshow namespace, the category name when in the prodshow namespace... ?
Offline
This is untested, but might work for what you want:
// +-- // | Define the header text. // +-- $header = $this->globals('ecom.prod_store_header'); $proddisp = $this->globals('ecom.prod_proddetail'); $prodcat = $proddisp['xcat']; if (empty($header)) { if ($ns == 'prodshow') {$header = 'Related Items';} else {$header = 'Items';} } else { $header .= $prodcat; } // End of if statement. $header = $this->xhtml_encode($header); $random = 'x' . $this->random_key(8);
Last edited by Design_Wholesale (01-27-2011 15:18:32)
Offline