ssossossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums Forums OroCommerce Remove shipping method step

This topic contains 6 replies, has 2 voices, and was last updated by  Markos 7 months, 1 week ago.

  • Creator
    Topic
  • #32210

    Markos
    Participant

    Hello,

    How can I remove the shipping step. Because I only sell digital products.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #32212

    dnahrebecki
    Moderator

    Hello @Markos,
    you can create your own checkout workflow (for example by copy of existing one https://github.com/orocommerce/orocommerce/blob/master/src/Oro/Bundle/CheckoutBundle/Resources/config/oro/workflows.yml) and activate it on UI. Please make sure that all definitions related to shipping should be removed.
    Also, please make sure that no shipping options/form fields are used in template of checkout billing information step ( https://github.com/orocommerce/orocommerce/blob/master/src/Oro/Bundle/CheckoutBundle/Resources/views/layouts/default/oro_checkout_frontend_checkout/templates/billing_information.html.twig ). If you would need, you can override it in your application and make all changes in it.

    workflows

    UI

    #32213

    Markos
    Participant

    Hello @dnahrebecki

    What should I remove from workflows.yml?

    I copy and modify workflows.yml at the following location:

    Remove shipping options/form fields at the following location:

    Thank you for your time.

    #32214

    dnahrebecki
    Moderator

    This is a version of code that works: https://gist.github.com/dnahrebecki/a49e0a46bf29f58cc13406b91f2f182d

    Also, there is a bug in https://github.com/orocommerce/orocommerce/blob/master/src/Oro/Bundle/CheckoutBundle/Migrations/Data/ORM/data/emails/order/order_confirmation.html.twig#L18
    I created an issue for that, but for now (as a workaround) please add

    I’ve tested it on commerce application and I was able to make a complete checkout without shipping. However, please mind, that I removed only things related to shipping that blocks me from completing checkout. You might clean this up a bit more if you need.

    Best Regards,
    Daniel Nahrebecki

    #32215

    Markos
    Participant

    Hello @dnahrebecki

    I updated the translation cache in http://example.com/admin/translation/ -> Update Cache. Do I need to update the labels manually.

    Thank you for your time.

    #32216

    dnahrebecki
    Moderator

    The easiest way will be to copy existing translations from https://github.com/orocommerce/orocommerce/blob/master/src/Oro/Bundle/CheckoutBundle/Resources/translations/workflows.en.yml#L10 and adjust to your labels

    Best Regards,
    Daniel Nahrebecki

    #32217

    Markos
    Participant

    @dnahrebecki. Thank you for your help.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.