Skip to content

Commit

Permalink
Added cta_text to ShopCollectionBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Nov 26, 2024
1 parent f8ea18b commit d4186ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etna/core/blocks/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class ShopCollectionBlock(blocks.StructBlock):
label="Description",
max_length=255,
)

cta_text = blocks.CharBlock(
label="CTA text",
max_length=50,
default="Shop now",
)

url = blocks.URLBlock(
label="URL",
Expand All @@ -27,6 +33,8 @@ class ShopCollectionBlock(blocks.StructBlock):
required=False,
)



class Meta:
icon = "shop"
label = "Shop collection"

0 comments on commit d4186ad

Please sign in to comment.