Advertisement
kotvalera83

Untitled

Oct 9th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. E_custome_product
  2. search
  3. $q = trim(urldecode($this->params['slug']));
  4. $q_arr = explode(' ', $q);
  5. $params_s['conditions']["OR"] = array();
  6. foreach ($q_arr as $value) {
  7. array_push($params_s['conditions']["OR"], array( 'sku LIKE' => '%'.$value.'%', 'sku_full LIKE' => '%'.$value.'%'));
  8. }
  9.  
  10.  
  11. E_search_attribute_values - value
  12. search
  13. $q = trim(urldecode($this->params['slug']));
  14. $search_model->find_by_value($q);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement