/** * Sets a global value for a fieldname for a specific product * Is to be used by other scripts to populate a field value for a prodct * that was already fetched from the database - so it doesn't need to e fetched again * Can be also used to override a value * * @param int $product_id * @param string $field_name * @param mixed $value */ function set_field( $product_id, $field_name, $value ) { $GLOBALS['product_info'][$product_id][$field_name] = $value; }