
Originally Posted by
nrg77
Yes I did....Please note that it is not giving me any syntax error or any error. It just doesn't show the products. But I know it is enabled since the specials do show in the sideboxes....
Ok, I think I remember having this issue too!
instead of Step 1. I listed, do the below.
In the original file of includes/modules/pages/specials/main_template_vars.php, replace 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);
}
with this:
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);
}
}