How to customize or remove shipping from step engine ?

vikas.k
vikas.k Posts: 9 🧑🏻‍🚀 - Cadet

Hello Everyone I want to remove shipping from checkout step so is there any out of box functionality available in spryker ?

Answers

  • Hidran Arias
    Hidran Arias Senior Technical Trainer Sprykee Posts: 110 ⚖️ - Guardians (admin)
    edited October 24

    In order to do that, You would have to override the CheckoutPageFactory. Also the StepFactorty.

    In the StepFactory, override the parent method:

    Screenshot 2025-10-24 at 16.39.27.png

    Screenshot 2025-10-24 at 16.39.44.png
    
        
            
                Screenshot 2025-10-24 at 16.38.49.png
        
    
    
    You have to also override the CheckoutPageRouteProviderPlugin , override the addRoutes method, copy the parent one and remove the route for the shipment.

    Override the SummaryStep so you remove any post conditions related to the Shipment.
    There are also pre conditions before the order is placed and an array of plugins are executed in Pyz/Zed/Checkout/CheckoutDependencyProvider:
    Comment out the Shipment plugin
    Screenshot 2025-10-24 at 16.37.40.png
    Also the states in your OMS related to Shipment