/** * Calculate a product subtotal * @Developer brandon * @Date Oct 12, 2010 */ public function product_subtotal() { return format::number($this->quantity * $this->variant->price); }