Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

DarkRa

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

DarkRa's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Reacting Well Rare

Recent Badges

1

Reputation

  1. Тоже нужна была такая возможность. Сделал так: в файле admin\model\catalog\product.php строки: // Start filter $this->db->query("DELETE FROM " . DB_PREFIX . "product_to_value WHERE product_id = '" . (int)$product_id . "'"); if (isset($data['product_to_value_id'])) { foreach ($data['product_to_value_id'] as $option_id => $value_id) { $this->db->query("INSERT INTO " . DB_PREFIX . "product_to_value SET product_id = '" . (int)$product_id . "', option_id = '" . (int)$option_id . "', value_id = '" . (int)$value_id . "'"); } } // End filter изменил на: // Start filter $this->db->query("DELETE FROM " . DB_PREFIX . "product_to_value WHERE product_id = '" . (int)$product_id . "'"); if (isset($data['product_to_value_id'])) { foreach ($data['product_to_value_id'] as $option_id => $value_arr) { foreach($value_arr as $value_id) { $this->db->query("INSERT INTO " . DB_PREFIX . "product_to_value SET product_id = '" . (int)$product_id . "', option_id = '" . (int)$option_id . "', value_id = '" . (int)$value_id . "'"); } } } // End filter в файле admin\controller\catalog\filter.php строку: $html .= '<select name="product_to_value_id[' . $option['option_id'] . ']">'; изменил на: $html .= '<select multiple name="product_to_value_id[' . $option['option_id'] . '][]">';
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.