Add option to auto-calculate shipping in cart for default country

Created on 21 May 2025, 18 days ago

Problem/Motivation

When loading the cart, it would be helpful to auto-calculate the shipping costs based on the selected default country. So the user could optionally use the calculation form to update the precise shipping cost for his destination, but does not have to.

This also has the positive side-effect to provide the estimated shipping costs to quick-checkout payment methods like PayPal Express Checkout in cart, which currently misses the shipping price and therefor the user has to always re-confirm the payment, which is bad for UX and conversions ( 🐛 Needs to redirect users on UNPROCESSABLE_ENTITY > PAYER_ACTION_REQUIRED - No checkout possible Active )

For that reason, a second option should allow to "Update the original order" so that commerce_cart_estimate sets the order on the real order object instead of a "preview clone", so that this works.

commerce_cart_estimate has great potential to solve these issues elegantly. Both options should be opt-in.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024