function get_colmap() { $colmap = parent::get_colmap(); if (isset($colmap['cm_ship_class_id']) and !count($colmap['cm_ship_class_id'][2])) { $colmap['cm_ship_class_id'][2] = cmShipping::fetch_ship_class_opts($this->db); } return $colmap; }
function get_colmap() { if (empty($this->_colmap_filled)) { // remember if we did this already $this->colmap['parent_cat_id'][2] = $this->get_categories_for_select(); $this->colmap['ship_class_id'][2] = cmShipping::fetch_ship_class_opts($this->db); } if (!defined('CSHOP_USE_BUNDLES') or !CSHOP_USE_BUNDLES) { unset($this->colmap['is_used_in_bundle']); } return $this->colmap; }