public function get_sales()
{
if (!isset($this->sales)) {
if ('' == get_post_meta($this->ID, '_give_form_sales', true)) {
add_post_meta($this->ID, '_give_form_sales', 0);
}
// End if
$this->sales = get_post_meta($this->ID, '_give_form_sales', true);
if ($this->sales < 0) {
// Never let sales be less than zero
$this->sales = 0;
}
}
return $this->sales;
}