Skip to content

Commit

Permalink
ECWID-138159 Custom URL slugs for catalog pages: Product and categori…
Browse files Browse the repository at this point in the history
…es export/import in CSV: add 'customLsug' field
  • Loading branch information
carlecwid committed Jul 4, 2024
1 parent 3c0f56a commit 4131a68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fun FetchedProduct.toUpdated(): UpdatedProduct {
description = description,
descriptionTranslated = descriptionTranslated,
sku = sku,
customSlug = customSlug,

enabled = enabled,
quantity = quantity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ data class UpdatedProduct(
val description: String? = null,
val descriptionTranslated: LocalizedValueMap? = null,
val sku: String? = null,
val customSlug: String? = null,
val isSampleProduct: Boolean? = null,

val enabled: Boolean? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data class FetchedProduct(
val sku: String = "",
val isSampleProduct: Boolean? = null,
val url: String? = null,
val customSlug: String? = null,

val created: Date = Date(),
val createTimestamp: Int = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ val fetchedProductNullablePropertyRules: List<NullablePropertyRule<*, *>> = list
IgnoreNullable(FetchedProduct::tax),
IgnoreNullable(FetchedProduct::unlimited),
IgnoreNullable(FetchedProduct::url),
IgnoreNullable(FetchedProduct::customSlug),
IgnoreNullable(FetchedProduct::warningLimit),
IgnoreNullable(FetchedProduct::weight),
IgnoreNullable(FetchedProduct::wholesalePrices),
Expand Down

0 comments on commit 4131a68

Please sign in to comment.