QUESTION:
I would like to disable the timezone field in the frontend. It is totally unnecessary field because all customers are in the same timezone. How to disable it?
SOLUTION:
If your customers are in the same timezone, you can disable/remove the Select Timezone field by removing line from 120 to 136 in the file app/code/Bss/GiftCard/view/frontend/web/template/product/view/type/giftcard/send-info.html:
<div class="field bss-giftcard-timezone">
<label data-bind="attr: {for: getType() + '_timezone'}" class="label">
<span><!-- ko i18n: 'Select Timezone'--><!-- /ko --></span>
</label>
<div class="control">
<select data-bind="
value: timeZone,
options: getTimezoneList(),
optionsText: 'label',
optionsValue: 'value',
optionsCaption: $t('Choose an Timezone...'),
attr: {
id: getType() + '_timezone',
name: getType() + '_timezone'
}"></select>
</div>
</div>
Meanwhile, if your customers have different timezones, you should consider whether you want to disable the Timezone field or not as it will limit the user experience and can create unexpected issues.
If you need any further assistance, please feel free to contact us. We'd be happy to support you!
Count on us! Here are some information about BSS Commerce if you might be interested:
BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
Discover our extensions: https://bsscommerce.com/magento-2-extensions.html.
Our Magento B2B Extension by BSS Commerce is a flagship, widely used global solution, providing an all-in-one system for pricing, account management, and efficient B2B workflows.
>>> If you want to improve your visibility, install Magento SEO Extension by BSS Commerce
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article