Browse Source

Return product price generation, code comments

Vova Tkach 5 years ago
parent
commit
2758bd1001
1 changed files with 3 additions and 1 deletions
  1. 3 1
      engine/fetdata/shop_product.go

+ 3 - 1
engine/fetdata/shop_product.go

@@ -134,7 +134,9 @@ func (this *ShopProduct) Price() float64 {
 	if this == nil {
 		return 0
 	}
-	return this.object.A_price * this.Currency().Coefficient()
+	// TODO: read currency from session?
+	// this.object.A_price * this.Currency().Coefficient()
+	return this.object.A_price
 }
 
 func (this *ShopProduct) PriceFormat(format string) string {