Three bugs prevented home_delivery from reaching sale.order: 1. #home-delivery-btn (shop sidebar) had no JS handler — clicking it did nothing. Now it toggles active state and persists choice to sessionStorage. 2. _executeSaveCartAsDraft (Save Cart button) never included is_delivery in the request body. Now reads the toggle button state (or the page-level data-home-delivery-enabled fallback) and sends is_delivery correctly. 3. #home-delivery-checkbox on checkout page was unchecked by default and always shown. Now it is pre-checked when group_order.home_delivery is True, wrapped in t-if to hide it when delivery is not configured, and synced bidirectionally with sessionStorage so the shop-page toggle state carries over to checkout. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| description | ||
| src | ||
| tests | ||