Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

slupostrupek

Pioneers
  • Posts

    32
  • Joined

  • Last visited

Reputation Activity

  1. Like
    slupostrupek got a reaction from frankl in [Contribution] Products Specifications   
    I've found the simplest solution on problem with wrong display names of filters above them.
     
    in file: bm_products_filter.php
    Comment lines: 114,115,116
     
    Change line 119 into this:
    $box_label = '<p class="bboxfilter ' . $specs_array['specification_name'] . '">' . $specs_array['specification_name'] . '</p>';
     
    And change line: 183
    into this:
     
    $box_text .= $box_label . tep_get_filter_string($specs_array['filter_display'], $filters_select_array, FILENAME_PRODUCTS_FILTERS, $var, $$var);
     
    And comment those lines under it:
     
    //if ($box_text != '<br clear=all>') {
    // $box_text = $box_label .$box_text;
    //}
  2. Like
    slupostrupek got a reaction from frankl in [Contribution] Products Specifications   
    Notice: Uninitialized string offset: 1 in /home/xxx/public_html/xxx/includes/functions/products_specifications.php on line 666
     
    This is that line:
    $checked = ($filter['id'] == $filter_value[$checkbox_id]) ? true : false;
     
    Solution:
    if(is_array($filter_value)){
    $checked = ($filter['id'] == $filter_value[$checkbox_id]) ? true : false;
    }else{
    $checked = ($filter['id'] == $filter_value) ? true : false;
    }
     
     
     
    Notice: Use of undefined constant SPECIFICATIONS_FILTER_SHOW_COUNT - assumed 'SPECIFICATIONS_FILTER_SHOW_COUNT' in/home/xxx/public_html/xxx/includes/functions/products_specifications.php on line 630
    Thouse errors occure because of missing one insert in sql file.
     
     
     
    Something like this:
    (NULL, 'Show count', 'SPECIFICATIONS_FILTER_SHOW_COUNT', 'False', 'Show counter', 1610, 225, '2009-08-12 15:16:55', '2009-06-18 12:07:30', NULL, 'tep_cfg_select_option(array(''True'', ''False''), '),
  3. Like
    slupostrupek got a reaction from frankl in [Contribution] Products Specifications   
    I give up with new version that you provide. It's too many of things there up to do.
     
    But, when i turned on notices and errors i have many notices about constants:
     
     
     
    Notice: Use of undefined constant SPECIFICATIONS_FILTER_SHOW_COUNT - assumed 'SPECIFICATIONS_FILTER_SHOW_COUNT' in/home/xxx/public_html/xxx/includes/functions/html_output.php on line 374
     
    Notice: Undefined variable: box_label in /home/xxx/public_html/xxx/includes/modules/boxes/bm_products_filter.php on line 119
     
    Notice: Use of undefined constant SPECIFICATIONS_FILTER_SHOW_COUNT - assumed 'SPECIFICATIONS_FILTER_SHOW_COUNT' in/home/xxx/public_html/xxx/includes/functions/products_specifications.php on line 630
     
    Notice: Use of undefined constant SPECIFICATIONS_FILTER_SHOW_COUNT - assumed 'SPECIFICATIONS_FILTER_SHOW_COUNT' in/home/xxx/public_html/xxx/includes/functions/products_specifications.php on line 685
     
    Notice: Uninitialized string offset: 1 in /home/xxx/public_html/xxx/includes/functions/products_specifications.php on line 666
     
    Notice: Constant SPECIFICATIONS_SHOW_NAME_PRODUCTS already defined in /home/xxx/public_html/xxx/includes/application_top.php on line 68
×
×
  • Create New...