|
@@ -68,7 +68,7 @@ func (self *OrderController) Create() {
|
|
|
if product.ColorId > 0 {
|
|
if product.ColorId > 0 {
|
|
|
productColor := product_model.GetProductAttrValueById(product.ColorId)
|
|
productColor := product_model.GetProductAttrValueById(product.ColorId)
|
|
|
if productColor != nil {
|
|
if productColor != nil {
|
|
|
- sizeName = productColor.Name
|
|
|
|
|
|
|
+ colorName = productColor.Name
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
totalPrice := product.Price * count
|
|
totalPrice := product.Price * count
|
|
@@ -166,7 +166,7 @@ func (self *OrderController) MultipleCreate() {
|
|
|
if product.ColorId > 0 {
|
|
if product.ColorId > 0 {
|
|
|
productColor := product_model.GetProductAttrValueById(product.ColorId)
|
|
productColor := product_model.GetProductAttrValueById(product.ColorId)
|
|
|
if productColor != nil {
|
|
if productColor != nil {
|
|
|
- sizeName = productColor.Name
|
|
|
|
|
|
|
+ colorName = productColor.Name
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
totalPrice += product.Price * cNums
|
|
totalPrice += product.Price * cNums
|