No header on products

tomislav1234

Avatar: tomislav1234

2012-08-23 12:21

I have header ( banner ) that i uploaded on every site main(parent) and subpages, but that header is not shown when i click on my producsts description.

» Quick.Cart v5.x

treewood (OpenSolution)

Avatar: treewood

2012-08-23 12:52

i guess you want to display header from page that product is assigned? if so then what to do when subpage dont have header but main page have header ? what should display in this product details if this product is assigned to subpage not to main page?

tomislav1234

Avatar: tomislav1234

2012-08-23 13:37

all main pages have same logo / header. Also all subpages have same header. products are located on subpages. But when i open each products they dont have header just transparent dimension of header so i see background. i want that when i click on products to see same picture as i see at main and subpages on header.

treewood (OpenSolution)

Avatar: treewood

2012-08-24 07:42

ok then edit actions/products.php and find this:

$aData['sPages'] = $oProduct->throwProductsPagesTree$iProduct );


and replace to:

$aData['sPages'] = $oProduct->throwProductsPagesTree$iProduct );

if( isset( 
$oProduct->aProductsPages[$iProduct] ) && !defined'MOBILE' ) ){
  
$iPage current$oProduct->aProductsPages[$iProduct] );
  if( !empty( 
$oPage->aPages[$iPage]['sBanner'] ) ){
    
$aData['sBanner'] = $oPage->aPages[$iPage]['sBanner'];
    
$sBanner $oTpl->tBlock'pages_default.tpl''BANNER' );
  }
}

tomislav1234

Avatar: tomislav1234

2012-08-24 13:47

tnx ;)

Back to top
about us | contact