Jump to content

dvale

Members
  • Content count

    63
  • Joined

  • Last visited


Reputation Activity

  1. Like
    dvale got a reaction from bruyndoncx in [Contribution] Products Specifications   
    Full credit to Henry Withoot for fixing this bug.
     
    admin/categories.php
     
    Find :
    '" . (int) $specifications['specification_description_id'] . "',
     
     
    Replace for:
    '" . (int)$specifications['specifications_id'] . "',
     
     
    Thank you Henry Withoot for you help on this one.
     
    Regards,
    Paul
  2. Like
    dvale got a reaction from oscMarket in [Contribution] Products Specifications   
    There is now a smart way to set special characters of filters over db table specification_filter_aliasses
     
    catalog/includes/modules/products_filter.php
     
    /////////////FIND/////////////
    $filters_select_array[$filter_index] = array ('id' => ($filter_id),
    'text' => $filter_text,
    'count' => $count
    );
    $filter_index++;
     
     
    /////////////PLACE BEFORE/////////////
    $needles = array('slash', 'inch', 'comma');
    $haystack = array('/', '"', ',');
    $filter_text = str_replace($needles, $haystack, $filter_text);
     
    /////////////So it looks like this/////////////
     

    $needles = array('slash', 'inch', 'comma'); $haystack = array('/', '"', ','); $filter_text = str_replace($needles, $haystack, $filter_text); //str_replace($needles, $replacements, $string); $filters_select_array[$filter_index] = array ('id' => ($filter_id), 'text' => $filter_text, 'count' => $count ); $filter_index++;
     
    So now you can replace special characters with keywords in this way:
    / = slash
    " = inch
    , = comma
    ...and so on, depending of your need.
     
    For example to type:
     
    3/4"
     
    ...now you type:
     
    3slash4inch
     
    In this way the filters and values are set with keywords allowing the proper display of the Special Characters.
     
    Live example here https://www.shopperstation.com/auto_parts/index.php?cPath=3_12
     
    Full credit to Henry Withoot
    Donations will be accepted through PayPal
    osc2nuke@gmail.com
     
    Regards,
    Paul
  3. Like
    dvale got a reaction from oscMarket in [Contribution] Products Specifications   
    There is now a smart way to set special characters of filters over db table specification_filter_aliasses
     
    catalog/includes/modules/products_filter.php
     
    /////////////FIND/////////////
    $filters_select_array[$filter_index] = array ('id' => ($filter_id),
    'text' => $filter_text,
    'count' => $count
    );
    $filter_index++;
     
     
    /////////////PLACE BEFORE/////////////
    $needles = array('slash', 'inch', 'comma');
    $haystack = array('/', '"', ',');
    $filter_text = str_replace($needles, $haystack, $filter_text);
     
    /////////////So it looks like this/////////////
     

    $needles = array('slash', 'inch', 'comma'); $haystack = array('/', '"', ','); $filter_text = str_replace($needles, $haystack, $filter_text); //str_replace($needles, $replacements, $string); $filters_select_array[$filter_index] = array ('id' => ($filter_id), 'text' => $filter_text, 'count' => $count ); $filter_index++;
     
    So now you can replace special characters with keywords in this way:
    / = slash
    " = inch
    , = comma
    ...and so on, depending of your need.
     
    For example to type:
     
    3/4"
     
    ...now you type:
     
    3slash4inch
     
    In this way the filters and values are set with keywords allowing the proper display of the Special Characters.
     
    Live example here https://www.shopperstation.com/auto_parts/index.php?cPath=3_12
     
    Full credit to Henry Withoot
    Donations will be accepted through PayPal
    osc2nuke@gmail.com
     
    Regards,
    Paul
  4. Like
    dvale got a reaction from bruyndoncx in [Contribution] Products Specifications   
    Full credit to Henry Withoot for fixing this bug.
     
    admin/categories.php
     
    Find :
    '" . (int) $specifications['specification_description_id'] . "',
     
     
    Replace for:
    '" . (int)$specifications['specifications_id'] . "',
     
     
    Thank you Henry Withoot for you help on this one.
     
    Regards,
    Paul
  5. Like
    dvale reacted to wenonae in Problems with "Quantity for Product Attributes Mod"   
    Thanks..this info was perfect.
×