Browse Source

Product price optimization

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

+ 1 - 4
engine/fetdata/shop_product.go

@@ -138,10 +138,7 @@ func (this *ShopProduct) Price() float64 {
 }
 }
 
 
 func (this *ShopProduct) PriceFormat(format string) string {
 func (this *ShopProduct) PriceFormat(format string) string {
-	if this == nil {
-		return ""
-	}
-	return utils.Float64ToStrF(this.object.A_price, format)
+	return utils.Float64ToStrF(this.Price(), format)
 }
 }
 
 
 func (this *ShopProduct) Name() string {
 func (this *ShopProduct) Name() string {