variant test
This commit is contained in:
parent
10c250695a
commit
4201c053fb
|
|
@ -291,6 +291,8 @@ func CreateJSONFromModel(model models.TrendyolProductDetailModel) map[string]int
|
|||
}
|
||||
}
|
||||
}
|
||||
// NOTE: Modified here
|
||||
if len(variants) > 0 {
|
||||
|
||||
for i := 0; i < len(model.AllVariants); i++ {
|
||||
singleVariant := model.AllVariants[i]
|
||||
|
|
@ -342,8 +344,6 @@ func CreateJSONFromModel(model models.TrendyolProductDetailModel) map[string]int
|
|||
for i := 0; i < len(model.AlternativeVariants); i++ {
|
||||
alternativeVariant := model.AlternativeVariants[i]
|
||||
|
||||
if len(variants) > 0 {
|
||||
|
||||
// get the first variant for attribute info
|
||||
fv := variants[0]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue