Good evening everyone) Please help me find a file in which you can change the sorting option size selection, or can it somehow be changed otherwise?

So that they are in order
Array of options from the database, for output on the site are obtained by the request
$product_option_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_option po LEFT JOIN `" . DB_PREFIX . "option` o ON (po.option_id = o.option_id) LEFT JOIN " . DB_PREFIX . "option_description od ON (o.option_id = od.option_id) WHERE po.product_id = '" . (int)$product_id . "' AND od.language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY o.sort_order"); in the /catalog/model/catalog/product.php file, public function getProductOptions($product_id) and sorted according to the "Sort Order" which is given to the options in the admin section, in the Catalog >> Options section
Or you can change the query from the database at your discretion.
Source: https://ru.stackoverflow.com/questions/894972/
All Articles