How to remove time option from Delivery Date

Created by Katie Bui, Modified on Fri, 12 Oct 2018 at 02:24 PM by Katie Bui

Question:

we are using One Step Checkout module in one of our projects, we want to remove TIME option from DELIVERY DATE calendar option at checkout. How we can achieve this?


Answer:


Edit File: Bss_OneStepCheckout_M2_v2.0.6/view/frontend/layout/onestepcheckout_index_index.xml

line 52-57
Before
<item name="config" xsi:type="array">
                                                                        <item name="template" xsi:type="string">ui/form/field</item>
                                                                        <item name="options" xsi:type="array">
                                                                            <item name="timeFormat" xsi:type="string">hh:mm</item>
                                                                            <item name="showsTime" xsi:type="string">true</item>
                                                                        </item>
                                                                    </item>

After

<item name="config" xsi:type="array">
                                                                        <item name="template" xsi:type="string">ui/form/field</item>
                                                                    </item>
                                                                    <item name="options" xsi:type="array">
                                                                        <item name="timeFormat" xsi:type="string">hh:mm</item>
                                                                        <item name="showsTime" xsi:type="boolean">false</item>
                                                                    </item>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article