price fix
This commit is contained in:
parent
957494bb37
commit
2595fe9225
|
|
@ -722,7 +722,7 @@ func prepearAttributesWithFlat(data *models.Product) ([]gm.ProductAttributeValue
|
|||
Price: 0,
|
||||
}
|
||||
|
||||
if len(data.ColorVariants) == 0 && len(data.SizeVariants) != 0 {
|
||||
if len(data.ColorVariants) == 0 && len(data.SizeVariants) == 0 {
|
||||
|
||||
if data.Price.OriginalPrice.Value > data.Price.DiscountedPrice.Value {
|
||||
productAttributeValues = append(productAttributeValues, []gm.ProductAttributeValue{
|
||||
|
|
|
|||
Loading…
Reference in New Issue