Skip to content

Commit 70bcb2a

Browse files
authored
Merge pull request #549 from Ecwid/ECOM-3268
ECOM-3268 Add a setting to show price ranges in product cards
2 parents befcff3 + a4ee0b1 commit 70bcb2a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ fun FetchedStoreProfile.DesignSettings.toUpdated(): UpdatedStoreProfile.DesignSe
424424
productListImageSize = productListImageSize,
425425
productListNameBehaviour = productListNameBehaviour,
426426
productListPriceBehaviour = productListPriceBehaviour,
427+
productListShowPriceRanges = productListShowPriceRanges,
427428
productListRatingSectionBehavior = productListRatingSectionBehavior,
428429
productListSKUBehaviour = productListSKUBehaviour,
429430
productListShowAdditionalImage = productListShowAdditionalImage,

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ data class UpdatedStoreProfile(
591591
@JsonFieldName("product_list_price_behavior")
592592
val productListPriceBehaviour: String? = null,
593593

594+
@JsonFieldName("product_list_show_price_ranges")
595+
val productListShowPriceRanges: Boolean? = null,
596+
594597
@JsonFieldName("product_list_rating_section_behavior")
595598
val productListRatingSectionBehavior: String? = null,
596599

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,9 @@ data class FetchedStoreProfile(
691691
@JsonFieldName("product_list_price_behavior")
692692
val productListPriceBehaviour: String? = null,
693693

694+
@JsonFieldName("product_list_show_price_ranges")
695+
val productListShowPriceRanges: Boolean? = null,
696+
694697
@JsonFieldName("product_list_rating_section_behavior")
695698
val productListRatingSectionBehavior: String? = null,
696699

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
149149
AllowNullable(FetchedStoreProfile.DesignSettings::productListImageSize),
150150
AllowNullable(FetchedStoreProfile.DesignSettings::productListNameBehaviour),
151151
AllowNullable(FetchedStoreProfile.DesignSettings::productListPriceBehaviour),
152+
AllowNullable(FetchedStoreProfile.DesignSettings::productListShowPriceRanges),
152153
AllowNullable(FetchedStoreProfile.DesignSettings::productListRatingSectionBehavior),
153154
AllowNullable(FetchedStoreProfile.DesignSettings::productListSKUBehaviour),
154155
AllowNullable(FetchedStoreProfile.DesignSettings::productListShowAdditionalImage),

0 commit comments

Comments
 (0)