Skip to content

Conversation

@ravneetsingh1224
Copy link
Contributor

No description provided.

<label for="phone">Phone number</label><span class="text-danger">*</span>
<input class="form-control" type="text" name="phone" id="phone" size="50" value="[@phone@]">
</div>
[% if [@toggle:ecommerce.sms_marketing_feature@] %]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can't use feature toggles in webshop templates because they should not be long-term

Copy link
Contributor

@netonessa netonessa Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you really want the conditional it should be

[% if [@config:ecommerce.sms_marketing_feature@] || [@opt_in_sms@] %]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants