Skip to content

Commit

Permalink
feat: add editable SHOP_DEFAULT_TAX_RATE setting
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-hulski committed Mar 25, 2022
1 parent 0db39f8 commit b3721ad
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions cartridge/shop/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@
default=10.0,
)

register_setting(
name="SHOP_DEFAULT_TAX_RATE",
label=_("Default Tax Rate"),
description=_("Default tax rate in % when no custom tax handling is implemented."),
editable=True,
default=0,
)

register_setting(
name="SHOP_DISCOUNT_FIELD_IN_CART",
label=_("Discount in Cart"),
Expand Down Expand Up @@ -305,6 +313,14 @@
),
)

register_setting(
name="SHOP_TAX_INCLUDED",
label=_("Tax included"),
description="If True, tax is already included in a product's price.",
editable=False,
default=False,
)

register_setting(
name="SHOP_USE_VARIATIONS",
label=_("Use product variations"),
Expand Down Expand Up @@ -346,11 +362,3 @@
editable=False,
default=True,
)

register_setting(
name="SHOP_TAX_INCLUDED",
label=_("Tax included"),
description="The product prices are already including tax (boolean).",
editable=False,
default=False,
)

0 comments on commit b3721ad

Please sign in to comment.