add Uber delivery fee display and checkout validation logic, and update docker-compose container naming

This commit is contained in:
Alaguraj0361 2026-04-06 21:50:22 +05:30
parent d349eaf642
commit 264036f0de

View File

@ -23,13 +23,9 @@
<!-- Custom Checkout Page Logic -->
<template id="chennora_checkout_custom" inherit_id="website_sale.checkout" name="Chennora Checkout Custom" priority="99">
<!-- Add error banner after the Address header -->
<!-- Add error banner and script after the main Address header (safest anchor point) -->
<xpath expr="//h3" position="after">
<div id="uber_error" class="alert alert-danger d-none my-3" role="alert"></div>
</xpath>
<!-- Script for Uber Quote -->
<xpath expr="//footer" position="after">
<script type="text/javascript">
(function() {
function initUberQuote() {
@ -95,7 +91,7 @@
}
}).catch(err => {
console.error("Uber Fetch error", err);
enableButton(); // Fallback to let them try to payment
enableButton(); // Fallback
});
}
}