Hide delivery option based on checkbox value

Hide the delivery option from the checkout if the checkbox is enabled in the customer record.Else the working should be standard.create a new entity field in the customer record(checkbox)Hide the delivery method section from the checkout page- In this scenario, there should be a default shipping method will be selected in the order.

Solution:

1.Create a checkbox in the customer record.

2.Get the value of checkbox using profilemodel() in javascript entry point file.

3.Using the getcontext variable hide the template and deploy it.

4.set the shipping method using “setShippingMethod()”.

5.Deploy extension

Leave a comment

Your email address will not be published. Required fields are marked *