cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Shipping Address from Checkout page

Remove Shipping Address from Checkout page

Hi, in Magento 2, when you check out, it asks for your shipping address. I would like to remove that, as I only have one shipping method, and it is Store Pickup, thus, there would be no need to fill out a shipping address.


How would I go about accomplishing that? Please advise.

Thank you.

4 REPLIES 4

Re: Remove Shipping Address from Checkout page

@jingxin, By default Magento 2 native with no functionality available for Store Pickup.

 

You can purchase any paid extension for Store Pickup and install those extension in your store.

 

After Install extension in your store you can disable all other shipping method from Stores -> configuration.

 

Active Store Pickup Shipping Method so only store pickup method is display in shipping method in checkout page.

 

I haven't display your image which you have uploded, please show its in other link.

 

Update:

You can just hide your shipping method block using css,

 

.checkout-shipping-method .step-title{display:none}
#checkout-shipping-method-load{display:none}

 

If issue solved, click Kudos and Accept as Solution.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Remove Shipping Address from Checkout page

Hi, I have installed Store Pickup extension by Magedelight and have disabled all other shipping methods accordingly. Please find below an image i took as an example.shipping.PNG

So i would like to remove the entirety of Shipping Address ,as it has no use. Please advice.

Thank you.

 The link for the image is here.

http://imgur.com/a/9aLUS

Re: Remove Shipping Address from Checkout page

@jingxin

 

Magento\Checkout\view\frontend\layout\checkout_index_index.xml

 

comment below code

 <item name="shipping-step" xsi:type="array">
.................
</item>

using that you can remove, but more complex start after that, becuase magento will validate field when you click on continue button.

 

Hope it will help you.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Remove Shipping Address from Checkout page

override checkout_index_index.xml and place below code

 

<referenceBlock name="checkout.root">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="checkout" xsi:type="array">
<item name="children" xsi:type="array">
<item name="steps" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shipping-step" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shippingAddress" xsi:type="array">
<item name="config" xsi:type="array">
<item name="componentDisabled" xsi:type="boolean">true</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</referenceBlock>