How to remove TIME option from DELVIRY DATE calender option at chekcout

Created by Katie Bui, Modified on Thu, 06 Dec 2018 at 02:39 PM by Katie Bui

Question:

we are using one step checkout in one of our project and we want to remove TIME option from DELVIRY DATE calender option at chekcout. How we can achieve this, we did not found any setting in backend regarding this.


Answer:


To achieve this, can you please try again with this solution:


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