Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/templates/customer/edit_account/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ <h2 name="contact" id="contact">Contact Information</h2>
<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@] %]

<div class="form-group">
<label>
<input type='checkbox' id="subscribe_sms" [%if [@opt_in_sms@]%]checked[%/if%]>
<input type="hidden" name="opt_in_sms" value="[@opt_in_sms@]">
Subscribe to SMS notifications
</label>
</div>
[%/if%]
<div class="form-group">
<label for="fax">Fax number</label>
<input class="form-control" type="text" name="fax" id="fax" size="50" value="[@fax@]">
Expand Down