Forums / Templates, Stylesheets, Page Layout / Manufactures pages overrides

Manufactures pages overrides

Views: 443

Results 1 to 2 of 2
4 Jun 2011, 6:05 PM
#1
zskiman avatar

zskiman

New Zenner

Join Date:
Mar 2005
Posts:
69
Plugin Contributions:
0

Manufactures pages overrides

im hoping someone can help me out, having a bear of a time with this one. we are showing manufactures pages which are realy almost identical to the catagory ($cPath) or advanced search results pages. I can turn the right sidebox off on these pages using an if statement in either tpl_main_page.php or in the sidebox modules files using the cPath explode method. I cant figure out how to use Manufactures_id to do the same. i have tried

tpl_main_page.php

if ($current_page_base == 'index' and $manufacturers_id > 0){
$flag_disable_right = true;
}

and seem to get nowhere.

I have also tried building a 'Product_list' Override folder with a seperate tpl_main_page.php and that didnt seem to work

here is the page(s) that are suspect!!

http://www.stogieboys.com/zen/index.php?main_page=index&manufacturers_id=3

thanks
mike z

Never be afraid to try something new, remember that amateurs built the ark, professionals built the Titanic

4 Jun 2011, 6:20 PM
#2
zskiman avatar

zskiman

New Zenner

Join Date:
Mar 2005
Posts:
69
Plugin Contributions:
0

Re: Manufactures pages overrides

Ok i figured out how to do it, but was really looking for a more top level approach !

in sidebox module i used

if (in_array($current_page_base,explode(",",'product_info,document_product_info,conditions,returns,contact_us,account,account_edit,address_book,account_password,wishlist,account_history,account_history_info,shippinginfo,privacy')) ) {
$show_blank_sidebox_right2 = true;
} else if ($this_is_home_page) {
$show_blank_sidebox_right2 = false;
}else{
$show_blank_sidebox_right2 = false;

}

Never be afraid to try something new, remember that amateurs built the ark, professionals built the Titanic