0

I have implemented and eshop with commerce module in drupal 8. How can I add extra cost in case the customer chooses the cash on delivery method? I use payment module. Is there any solution or some other alternative? I tried rules also, but there is not any event that is triggered on payment method selection.

  • The question would be how will Drupal know when delivery is completed... At some point I think you’d need a second human interaction with your commerce forms. And I think that’s the answer. Forms. Either you submit second form, containing the “incomplete purchase form, or something like amazon, let your delivery agent present the purchaser with a mobile form, let that complete your order. Is there more info you could provide? Just looking for a hook maybe? – Prestosaurus Apr 1 at 14:58
  • @Prestosaurus thanks for the help! What I need basically, is a fixed cost to be added in case a client chooses the cash on delivery method. Ofcourse this cost should be visible and be added in the cart summary total price. I found this link as well as a module but they are for drupal 7 only.. – Dimitris Markopoulos Apr 2 at 5:26
  • Presenting a product with a different price to the user is what product types, product attributes, and product variations are for. But there could be 100 ways to alter a commerce product price. The "fixed" cost could even be"dynamic" based on distance from the shipping address, but, I think having a more concise question will help get a better response... docs.drupalcommerce.org/commerce2/user-guide/products/…, is there a more particular issue? – Prestosaurus Apr 2 at 14:55
  • @Prestosaurus in my case the cash on delivery extra cost is not related to product or its type but it is universal for all products no matter distance etc. It is an extra fee for a particular payment method. So the question is whether it is possible an extra fee to be added and be displayed in cart summary in any order in case a customer chooses the COD as payment gateway. – Dimitris Markopoulos Apr 2 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.