Skip to content

How to add Options value of custom shipping method to order total in magento2

I have created a custom shipping method and added two radio options of

  • weekday delivery for 5$
  • weekend delivery for 10$

which becomes visible when the user selects the custom shipping method. Now I want to add the radio option value to the order total (which means 5$ should add to the total amount of the order). Anyone can help?