
Originally Posted by
athena
I followed the instructions but it did not work at all. everything is the same. Specials is still in the drop down menu and the side boxes shift to the left.
I double checked to see that they uploaded properly.
The website is here
www.thethreadedneedle.com
Thanks for any help ...prefer to just turn specials off completely as they will never happen at this shop.
I missed one set of instructions. Open up includes/modules/pages/specials/main_template_vars.php and change this:
Code:
$num_products_count = $specials->RecordCount();
if ($num_products_count) {
if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
$col_width = floor(100/$num_products_count);
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
}
$list_box_contents = array();
while (!$specials->EOF) {
Code:
$num_products_count = $specials->RecordCount();
if ($num_products_count ==0) {
$col_width=0;
} else {
if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
$col_width = floor(100/$num_products_count);
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
}
}
$list_box_contents = array();
while (!$specials->EOF) {
You can also turn off specials in the admin, "configuration", "layout settings", "Categories Box - Show Specials Link".
Bookmarks