/**
  * 	Returns an option from the individual settings. If no option is not found in the individual settings, it will return the option from the main settings.
  */
 public function get_option($name)
 {
     if (isset($this->individual_settings[$name])) {
         $value = fpd_convert_string_value_to_int($this->individual_settings[$name]);
     } else {
         $value = fpd_get_option('fpd_' . $name);
     }
     return $value;
 }
 public function get_option($name)
 {
     global $wpdb;
     $options = $wpdb->get_row("SELECT options FROM " . FPD_PRODUCTS_TABLE . " WHERE ID=" . $this->id . "");
     if (isset($options->options)) {
         $options = fpd_convert_obj_string_to_array($options->options);
         if (isset($options[$name])) {
             $value = fpd_convert_string_value_to_int($options[$name]);
         } else {
             $value = fpd_get_option('fpd_' . $name);
         }
     } else {
         $value = fpd_get_option('fpd_' . $name);
     }
     return $value;
 }